2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sudo 1.8.2.
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, 2010 Free Software
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.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://www.sudo.ws/bugs/ about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
572 PACKAGE_TARNAME='sudo'
573 PACKAGE_VERSION='1.8.2'
574 PACKAGE_STRING='sudo 1.8.2'
575 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
578 ac_config_libobj_dir=compat
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='LTLIBOBJS
773 program_transform_name
786 enable_option_checking
845 with_password_timeout
856 with_ldap_secret_file
863 enable_authentication
871 enable_shell_sets_home
880 enable_gss_krb5_ccache_name
895 ac_precious_vars='build_alias
908 # Initialize some variables set by options.
910 ac_init_version=false
911 ac_unrecognized_opts=
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
922 program_transform_name=s,x,x,
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
997 cache_file=config.cache ;;
999 -datadir | --datadir | --datadi | --datad)
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1011 -disable-* | --disable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_$ac_useropt"
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1025 eval enable_$ac_useropt=no ;;
1027 -docdir | --docdir | --docdi | --doc | --do)
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1037 -enable-* | --enable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_$ac_useropt"
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1051 eval enable_$ac_useropt=\$ac_optarg ;;
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 htmldir=$ac_optarg ;;
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1096 -libdir | --libdir | --libdi | --libd)
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1187 -psdir | --psdir | --psdi | --psd | --ps)
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 sbindir=$ac_optarg ;;
1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204 | --sharedst | --shareds | --shared | --share | --shar \
1206 ac_prev=sharedstatedir ;;
1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 sharedstatedir=$ac_optarg ;;
1213 -site | --site | --sit)
1215 -site=* | --site=* | --sit=*)
1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221 srcdir=$ac_optarg ;;
1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224 | --syscon | --sysco | --sysc | --sys | --sy)
1225 ac_prev=sysconfdir ;;
1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228 sysconfdir=$ac_optarg ;;
1230 -target | --target | --targe | --targ | --tar | --ta | --t)
1231 ac_prev=target_alias ;;
1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233 target_alias=$ac_optarg ;;
1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238 -version | --version | --versio | --versi | --vers | -V)
1239 ac_init_version=: ;;
1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1255 eval with_$ac_useropt=\$ac_optarg ;;
1257 -without-* | --without-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1271 eval with_$ac_useropt=no ;;
1274 # Obsolete; use --with-x.
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1291 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1292 Try \`$0 --help' for more information"
1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 case $ac_envvar in #(
1299 '' | [0-9]* | *[!_$as_cr_alnum]* )
1300 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 as_fn_error $? "missing argument to $ac_option"
1321 if test -n "$ac_unrecognized_opts"; then
1322 case $enable_option_checking in
1324 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329 # Check all directory arguments for consistency.
1330 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
1335 eval ac_val=\$$ac_var
1336 # Remove trailing slashes.
1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\$ac_val;;
1342 # Be sure to have absolute directory names.
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1355 target=$target_alias
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1362 If a cross compiler is detected then cross compile mode will be used" >&2
1363 elif test "x$build_alias" != "x$host_alias"; then
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371 test "$silent" = yes && exec 6>/dev/null
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 as_fn_error $? "working directory cannot be determined"
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379 as_fn_error $? "pwd does not report name of working directory"
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$as_myself" ||
1387 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$as_myself" : 'X\(//\)[^/]' \| \
1389 X"$as_myself" : 'X\(//\)$' \| \
1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391 $as_echo X"$as_myself" |
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1414 ac_srcdir_defaulted=no
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 # Report the --help message.
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1448 \`configure' configures sudo 1.8.2 to adapt to many kinds of systems.
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1455 Defaults for the options are specified in brackets.
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking ...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1479 For better control, use the options below.
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1506 --build=BUILD configure for building on BUILD [guessed]
1507 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511 if test -n "$ac_init_help"; then
1512 case $ac_init_help in
1513 short | recursive ) echo "Configuration of sudo 1.8.2:";;
1518 --disable-option-checking ignore unrecognized --enable/--with options
1519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1521 --disable-authentication
1522 Do not require authentication by default
1523 --disable-root-mailer Don't run the mailer as root, run as the user
1524 --disable-setreuid Don't try to use the setreuid() function
1525 --disable-setresuid Don't try to use the setresuid() function
1526 --disable-shadow Never use shadow passwords
1527 --disable-root-sudo Don't allow root to run sudo
1528 --enable-log-host Log the hostname in the log file
1529 --enable-noargs-shell If sudo is given no arguments run a shell
1530 --enable-shell-sets-home
1531 Set $HOME to target user in shell mode
1532 --disable-path-info Print 'command not allowed' not 'command not found'
1533 --enable-env-debug Whether to enable environment debugging.
1534 --enable-zlib[=PATH] Whether to enable or disable zlib
1535 --enable-env-reset Whether to enable environment resetting by default.
1536 --enable-warnings Whether to enable compiler warnings
1537 --enable-admin-flag Whether to create a Ubuntu-style admin flag file
1538 --disable-nls Disable natural language support using gettext
1539 --enable-gss-krb5-ccache-name
1540 Use GSS-API to set the Kerberos V cred cache name
1541 --enable-shared[=PKGS] build shared libraries [default=yes]
1542 --enable-static[=PKGS] build static libraries [default=yes]
1543 --enable-fast-install[=PKGS]
1544 optimize for fast installation [default=yes]
1545 --disable-libtool-lock avoid locking (might break parallel builds)
1546 --disable-sia Disable SIA on Digital UNIX
1547 --disable-largefile omit support for large files
1548 --disable-pam-session Disable PAM session support
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-otp-only deprecated
1554 --with-alertmail deprecated
1555 --with-devel add development options
1556 --with-CC C compiler to use
1557 --with-rpath pass -R flag in addition to -L for lib paths
1558 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1559 --with-bsm-audit enable BSM audit support
1560 --with-linux-audit enable Linux audit support
1561 --with-incpath additional places to look for include files
1562 --with-libpath additional places to look for libraries
1563 --with-libraries additional libraries to link with
1564 --with-efence link with -lefence for malloc() debugging
1565 --with-csops add CSOps standard options
1566 --without-passwd don't use passwd/shadow file for authentication
1567 --with-skey=DIR enable S/Key support
1568 --with-opie=DIR enable OPIE support
1569 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1570 --with-SecurID[=DIR] enable SecurID support
1571 --with-fwtk[=DIR] enable FWTK AuthSRV support
1572 --with-kerb4[=DIR] enable Kerberos IV support
1573 --with-kerb5[=DIR] enable Kerberos V support
1574 --with-aixauth enable AIX general authentication support
1575 --with-pam enable PAM support
1576 --with-AFS enable AFS support
1577 --with-DCE enable DCE support
1578 --with-logincap enable BSD login class support
1579 --with-bsdauth enable BSD authentication support
1580 --with-project enable Solaris project support
1581 --without-lecture don't print lecture for first-time sudoer
1582 --with-logging log via syslog, file, or both
1583 --with-logfac syslog facility to log with (default is "auth")
1584 --with-goodpri syslog priority for commands (def is "notice")
1585 --with-badpri syslog priority for failures (def is "alert")
1586 --with-logpath path to the sudo log file
1587 --with-loglen maximum length of a log file line (default is 80)
1588 --with-ignore-dot ignore '.' in the PATH
1589 --without-mail-if-no-user
1590 do not send mail if user not in sudoers
1591 --with-mail-if-no-host send mail if user in sudoers but not for this host
1592 --with-mail-if-noperms send mail if user not allowed to run command
1593 --with-mailto who should get sudo mail (default is "root")
1594 --with-mailsubject subject of sudo mail
1595 --with-passprompt default password prompt
1596 --with-badpass-message message the user sees when the password is wrong
1597 --with-fqdn expect fully qualified hosts in sudoers
1598 --with-timedir path to the sudo timestamp dir
1599 --with-iologdir=DIR directory to store sudo I/O log files in
1600 --with-sendmail set path to sendmail
1601 --without-sendmail do not send mail at all
1602 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1603 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1604 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1605 --with-umask umask with which the prog should run (default is
1607 --without-umask Preserves the umask of the user invoking sudo.
1608 --with-umask-override Use the umask specified in sudoers even if it is
1609 less restrictive than the user's.
1610 --with-runas-default User to run commands as (default is "root")
1611 --with-exempt=group no passwd needed for users in this group
1612 --with-editor=path Default editor for visudo (defaults to vi)
1613 --with-env-editor Use the environment variable EDITOR for visudo
1614 --with-passwd-tries number of tries to enter password (default is 3)
1615 --with-timeout minutes before sudo asks for passwd again (def is 5
1617 --with-password-timeout passwd prompt timeout in minutes (default is 5
1619 --with-tty-tickets use a different ticket file for each tty
1620 --with-insults insult the user for entering an incorrect password
1621 --with-all-insults include all the sudo insult sets
1622 --with-classic-insults include the insults from the "classic" sudo
1623 --with-csops-insults include CSOps insults
1624 --with-hal-insults include 2001-like insults
1625 --with-goons-insults include the insults from the "Goon Show"
1626 --with-nsswitch[=PATH] path to nsswitch.conf
1627 --with-ldap[=DIR] enable LDAP support
1628 --with-ldap-conf-file path to LDAP configuration file
1629 --with-ldap-secret-file path to LDAP secret password file
1630 --with-pc-insults replace politically incorrect insults with less
1632 --with-secure-path override the user's path with a built-in one
1633 --without-interfaces don't try to read the ip addr of ether interfaces
1634 --with-stow properly handle GNU stow packaging
1635 --with-askpass=PATH Fully qualified pathname of askpass helper
1636 --with-plugindir set directory to load plugins from
1637 --with-selinux enable SELinux support
1638 --with-pic try to use only PIC/non-PIC objects [default=use
1640 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1641 --with-sysroot=DIR Search for dependent libraries within DIR
1642 (or the compiler's sysroot if not specified).
1643 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1644 --with-netsvc[=PATH] path to netsvc.conf
1645 --with-pam-login enable specific PAM session for sudo -i
1647 Some influential environment variables:
1648 CC C compiler command
1649 CFLAGS C compiler flags
1650 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1651 nonstandard directory <lib dir>
1652 LIBS libraries to pass to the linker, e.g. -l<library>
1653 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1654 you have headers in a nonstandard directory <include dir>
1656 YACC The `Yet Another Compiler Compiler' implementation to use.
1657 Defaults to the first program found out of: `bison -y', `byacc',
1659 YFLAGS The list of arguments that will be passed by default to $YACC.
1660 This script will default YFLAGS to the empty string to avoid a
1661 default value of `-d' given by some make applications.
1663 Use these variables to override the choices made by `configure' or to help
1664 it to find libraries and programs with nonstandard names/locations.
1666 Report bugs to <http://www.sudo.ws/bugs/>.
1671 if test "$ac_init_help" = "recursive"; then
1672 # If there are subdirs, report their specific --help.
1673 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1674 test -d "$ac_dir" ||
1675 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1680 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1682 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1683 # A ".." for each directory in $ac_dir_suffix.
1684 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1685 case $ac_top_builddir_sub in
1686 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1690 ac_abs_top_builddir=$ac_pwd
1691 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1692 # for backward compatibility:
1693 ac_top_builddir=$ac_top_build_prefix
1696 .) # We are building in place.
1698 ac_top_srcdir=$ac_top_builddir_sub
1699 ac_abs_top_srcdir=$ac_pwd ;;
1700 [\\/]* | ?:[\\/]* ) # Absolute name.
1701 ac_srcdir=$srcdir$ac_dir_suffix;
1702 ac_top_srcdir=$srcdir
1703 ac_abs_top_srcdir=$srcdir ;;
1705 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1706 ac_top_srcdir=$ac_top_build_prefix$srcdir
1707 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1709 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1711 cd "$ac_dir" || { ac_status=$?; continue; }
1712 # Check for guested configure.
1713 if test -f "$ac_srcdir/configure.gnu"; then
1715 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1716 elif test -f "$ac_srcdir/configure"; then
1718 $SHELL "$ac_srcdir/configure" --help=recursive
1720 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1722 cd "$ac_pwd" || { ac_status=$?; break; }
1726 test -n "$ac_init_help" && exit $ac_status
1727 if $ac_init_version; then
1729 sudo configure 1.8.2
1730 generated by GNU Autoconf 2.68
1732 Copyright (C) 2010 Free Software Foundation, Inc.
1733 This configure script is free software; the Free Software Foundation
1734 gives unlimited permission to copy, distribute and modify it.
1739 ## ------------------------ ##
1740 ## Autoconf initialization. ##
1741 ## ------------------------ ##
1743 # ac_fn_c_try_compile LINENO
1744 # --------------------------
1745 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_compile ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext
1750 if { { ac_try="$ac_compile"
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_compile") 2>conftest.err
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest.$ac_objext; then :
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1779 } # ac_fn_c_try_compile
1781 # ac_fn_c_try_link LINENO
1782 # -----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext conftest$ac_exeext
1788 if { { ac_try="$ac_link"
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_link") 2>conftest.err
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest$ac_exeext && {
1807 test "$cross_compiling" = yes ||
1808 $as_test_x conftest$ac_exeext
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819 # interfere with the next link command; also delete a directory that is
1820 # left behind by Apple's compiler. We do this before executing the actions.
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1825 } # ac_fn_c_try_link
1827 # ac_fn_c_try_cpp LINENO
1828 # ----------------------
1829 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if { { ac_try="$ac_cpp conftest.$ac_ext"
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } > conftest.i && {
1849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1864 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists and can be compiled using the include files in
1867 # INCLUDES, setting the cache variable VAR accordingly.
1868 ac_fn_c_check_header_compile ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1881 if ac_fn_c_try_compile "$LINENO"; then :
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 } # ac_fn_c_check_header_compile
1895 # ac_fn_c_try_run LINENO
1896 # ----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1898 # that executables *can* be run.
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if { { ac_try="$ac_link"
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>&5
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1913 { { case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_try") 2>&5
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; }; }; then :
1925 $as_echo "$as_me: program exited with status $ac_status" >&5
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 ac_retval=$ac_status
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1937 # ac_fn_c_check_func LINENO FUNC VAR
1938 # ----------------------------------
1939 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1940 ac_fn_c_check_func ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952 #define $2 innocuous_$2
1954 /* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1960 # include <limits.h>
1962 # include <assert.h>
1967 /* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1974 /* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977 #if defined __stub_$2 || defined __stub___$2
1989 if ac_fn_c_try_link "$LINENO"; then :
1994 rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_func
2004 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2007 # the include files in INCLUDES and setting the cache variable VAR
2009 ac_fn_c_check_header_mongrel ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if eval \${$3+:} false; then :
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2022 # Is the header compilable?
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2024 $as_echo_n "checking $2 usability... " >&6; }
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_header_compiler=yes
2033 ac_header_compiler=no
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2037 $as_echo "$ac_header_compiler" >&6; }
2039 # Is the header present?
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2041 $as_echo_n "checking $2 presence... " >&6; }
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2046 if ac_fn_c_try_cpp "$LINENO"; then :
2047 ac_header_preproc=yes
2049 ac_header_preproc=no
2051 rm -f conftest.err conftest.i conftest.$ac_ext
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2053 $as_echo "$ac_header_preproc" >&6; }
2055 # So? What about this header?
2056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2059 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2065 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2067 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2069 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2071 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074 ( $as_echo "## --------------------------------------- ##
2075 ## Report this to http://www.sudo.ws/bugs/ ##
2076 ## --------------------------------------- ##"
2077 ) | sed "s/^/$as_me: WARNING: /" >&2
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081 $as_echo_n "checking for $2... " >&6; }
2082 if eval \${$3+:} false; then :
2083 $as_echo_n "(cached) " >&6
2085 eval "$3=\$ac_header_compiler"
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 } # ac_fn_c_check_header_mongrel
2095 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2096 # -------------------------------------------
2097 # Tests whether TYPE exists after having included INCLUDES, setting cache
2098 # variable VAR accordingly.
2099 ac_fn_c_check_type ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if eval \${$3+:} false; then :
2105 $as_echo_n "(cached) " >&6
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2133 if ac_fn_c_try_compile "$LINENO"; then :
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147 } # ac_fn_c_check_type
2149 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2150 # --------------------------------------------
2151 # Tries to find the compile-time value of EXPR in a program that includes
2152 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2154 ac_fn_c_compute_int ()
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if test "$cross_compiling" = yes; then
2158 # Depending upon the size, compute the lo and hi bounds.
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2165 static int test_array [1 - 2 * !(($2) >= 0)];
2172 if ac_fn_c_try_compile "$LINENO"; then :
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2181 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189 ac_hi=$ac_mid; break
2191 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2192 if test $ac_lo -le $ac_mid; then
2196 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2207 static int test_array [1 - 2 * !(($2) < 0)];
2214 if ac_fn_c_try_compile "$LINENO"; then :
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2223 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231 ac_lo=$ac_mid; break
2233 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2234 if test $ac_mid -le $ac_hi; then
2238 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 # Binary search between lo and hi bounds.
2249 while test "x$ac_lo" != "x$ac_hi"; do
2250 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2257 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2264 if ac_fn_c_try_compile "$LINENO"; then :
2267 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2279 static long int longval () { return $2; }
2280 static unsigned long int ulongval () { return $2; }
2287 FILE *f = fopen ("conftest.val", "w");
2292 long int i = longval ();
2295 fprintf (f, "%ld", i);
2299 unsigned long int i = ulongval ();
2302 fprintf (f, "%lu", i);
2304 /* Do not output a trailing newline, as this causes \r\n confusion
2305 on some platforms. */
2306 return ferror (f) || fclose (f) != 0;
2312 if ac_fn_c_try_run "$LINENO"; then :
2313 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2318 conftest.$ac_objext conftest.beam conftest.$ac_ext
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323 as_fn_set_status $ac_retval
2325 } # ac_fn_c_compute_int
2327 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2328 # ----------------------------------------------------
2329 # Tries to find if the field MEMBER exists in type AGGR, after including
2330 # INCLUDES, setting cache variable VAR accordingly.
2331 ac_fn_c_check_member ()
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2335 $as_echo_n "checking for $2.$3... " >&6; }
2336 if eval \${$4+:} false; then :
2337 $as_echo_n "(cached) " >&6
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2352 if ac_fn_c_try_compile "$LINENO"; then :
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2362 if (sizeof ac_aggr.$3)
2368 if ac_fn_c_try_compile "$LINENO"; then :
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2379 $as_echo "$ac_res" >&6; }
2380 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2382 } # ac_fn_c_check_member
2384 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2385 # ---------------------------------------------
2386 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2388 ac_fn_c_check_decl ()
2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391 as_decl_name=`echo $2|sed 's/ *(.*//'`
2392 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2394 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2395 if eval \${$3+:} false; then :
2396 $as_echo_n "(cached) " >&6
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2404 #ifndef $as_decl_name
2406 (void) $as_decl_use;
2408 (void) $as_decl_name;
2416 if ac_fn_c_try_compile "$LINENO"; then :
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2425 $as_echo "$ac_res" >&6; }
2426 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2428 } # ac_fn_c_check_decl
2429 cat >config.log <<_ACEOF
2430 This file contains any messages produced by compilers while
2431 running configure, to aid debugging if configure makes a mistake.
2433 It was created by sudo $as_me 1.8.2, which was
2434 generated by GNU Autoconf 2.68. Invocation command line was
2446 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2447 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2448 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2449 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2450 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2452 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2453 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2455 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2456 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2457 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2458 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2459 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2460 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2461 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 test -z "$as_dir" && as_dir=.
2470 $as_echo "PATH: $as_dir"
2486 # Keep a trace of the command line.
2487 # Strip out --no-create and --no-recursion so they do not pile up.
2488 # Strip out --silent because we don't want to record it for future runs.
2489 # Also quote any args containing shell meta-characters.
2490 # Make two passes to allow for proper duplicate-argument suppression.
2494 ac_must_keep_next=false
2500 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2502 | -silent | --silent | --silen | --sile | --sil)
2505 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2508 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2510 as_fn_append ac_configure_args1 " '$ac_arg'"
2511 if test $ac_must_keep_next = true; then
2512 ac_must_keep_next=false # Got value, back to normal.
2515 *=* | --config-cache | -C | -disable-* | --disable-* \
2516 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2517 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2518 | -with-* | --with-* | -without-* | --without-* | --x)
2519 case "$ac_configure_args0 " in
2520 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2523 -* ) ac_must_keep_next=true ;;
2526 as_fn_append ac_configure_args " '$ac_arg'"
2531 { ac_configure_args0=; unset ac_configure_args0;}
2532 { ac_configure_args1=; unset ac_configure_args1;}
2534 # When interrupted or exit'd, cleanup temporary files, and complete
2535 # config.log. We remove comments because anyway the quotes in there
2536 # would cause problems or look ugly.
2537 # WARNING: Use '\'' to represent an apostrophe within the trap.
2538 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2539 trap 'exit_status=$?
2540 # Save into config.log some information that might help in debugging.
2544 $as_echo "## ---------------- ##
2545 ## Cache variables. ##
2546 ## ---------------- ##"
2548 # The following way of writing the cache mishandles newlines in values,
2550 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2551 eval ac_val=\$$ac_var
2555 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2556 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2559 _ | IFS | as_nl) ;; #(
2560 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2561 *) { eval $ac_var=; unset $ac_var;} ;;
2566 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2567 *${as_nl}ac_space=\ *)
2569 "s/'\''/'\''\\\\'\'''\''/g;
2570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2573 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2580 $as_echo "## ----------------- ##
2581 ## Output variables. ##
2582 ## ----------------- ##"
2584 for ac_var in $ac_subst_vars
2586 eval ac_val=\$$ac_var
2588 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2590 $as_echo "$ac_var='\''$ac_val'\''"
2594 if test -n "$ac_subst_files"; then
2595 $as_echo "## ------------------- ##
2596 ## File substitutions. ##
2597 ## ------------------- ##"
2599 for ac_var in $ac_subst_files
2601 eval ac_val=\$$ac_var
2603 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2605 $as_echo "$ac_var='\''$ac_val'\''"
2610 if test -s confdefs.h; then
2611 $as_echo "## ----------- ##
2618 test "$ac_signal" != 0 &&
2619 $as_echo "$as_me: caught signal $ac_signal"
2620 $as_echo "$as_me: exit $exit_status"
2622 rm -f core *.core core.conftest.* &&
2623 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2626 for ac_signal in 1 2 13 15; do
2627 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2631 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2632 rm -f -r conftest* confdefs.h
2634 $as_echo "/* confdefs.h */" > confdefs.h
2636 # Predefined preprocessor variables.
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE_NAME "$PACKAGE_NAME"
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2650 cat >>confdefs.h <<_ACEOF
2651 #define PACKAGE_STRING "$PACKAGE_STRING"
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_URL "$PACKAGE_URL"
2663 # Let the site file select an alternate cache file if it wants to.
2664 # Prefer an explicitly selected file to automatically selected ones.
2667 if test -n "$CONFIG_SITE"; then
2668 # We do not want a PATH search for config.site.
2669 case $CONFIG_SITE in #((
2670 -*) ac_site_file1=./$CONFIG_SITE;;
2671 */*) ac_site_file1=$CONFIG_SITE;;
2672 *) ac_site_file1=./$CONFIG_SITE;;
2674 elif test "x$prefix" != xNONE; then
2675 ac_site_file1=$prefix/share/config.site
2676 ac_site_file2=$prefix/etc/config.site
2678 ac_site_file1=$ac_default_prefix/share/config.site
2679 ac_site_file2=$ac_default_prefix/etc/config.site
2681 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2683 test "x$ac_site_file" = xNONE && continue
2684 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2686 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2687 sed 's/^/| /' "$ac_site_file" >&5
2689 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2691 as_fn_error $? "failed to load site script $ac_site_file
2692 See \`config.log' for more details" "$LINENO" 5; }
2696 if test -r "$cache_file"; then
2697 # Some versions of bash will fail to source /dev/null (special files
2698 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2699 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2701 $as_echo "$as_me: loading cache $cache_file" >&6;}
2703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2704 *) . "./$cache_file";;
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2709 $as_echo "$as_me: creating cache $cache_file" >&6;}
2713 # Check that the precious variables saved in the cache have kept the same
2715 ac_cache_corrupted=false
2716 for ac_var in $ac_precious_vars; do
2717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2718 eval ac_new_set=\$ac_env_${ac_var}_set
2719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2720 eval ac_new_val=\$ac_env_${ac_var}_value
2721 case $ac_old_set,$ac_new_set in
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2724 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2725 ac_cache_corrupted=: ;;
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2728 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2729 ac_cache_corrupted=: ;;
2732 if test "x$ac_old_val" != "x$ac_new_val"; then
2733 # differences in whitespace do not lead to failure.
2734 ac_old_val_w=`echo x $ac_old_val`
2735 ac_new_val_w=`echo x $ac_new_val`
2736 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2738 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2739 ac_cache_corrupted=:
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2742 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2743 eval $ac_var=\$ac_old_val
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2746 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2748 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2751 # Pass precious variables to config.status.
2752 if test "$ac_new_set" = set; then
2754 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2755 *) ac_arg=$ac_var=$ac_new_val ;;
2757 case " $ac_configure_args " in
2758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2759 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2763 if $ac_cache_corrupted; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2767 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2768 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2770 ## -------------------- ##
2771 ## Main body of script. ##
2772 ## -------------------- ##
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 ac_config_headers="$ac_config_headers config.h pathnames.h"
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2784 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2873 # Begin initial values for man page substitution
2875 iolog_dir=/var/log/sudo-io
2876 timedir=/var/adm/sudo
2881 passprompt="Password:"
2893 mailsub="*** SECURITY information for %h ***"
2894 badpass_message="Sorry, try again."
2905 ldap_conf=/etc/ldap.conf
2906 ldap_secret=/etc/ldap.secret
2907 netsvc_conf=/etc/netsvc.conf
2908 noexec_file=/usr/local/libexec/sudo_noexec.so
2909 nsswitch_conf=/etc/nsswitch.conf
2910 secure_path="not set"
2912 # End initial values for man page substitution
2919 : ${SUDOERS_MODE='0440'}
2920 : ${SUDOERS_UID='0'}
2921 : ${SUDOERS_GID='0'}
2941 shadow_libs_optional=
2948 # Check whether --with-otp-only was given.
2949 if test "${with_otp_only+set}" = set; then :
2950 withval=$with_otp_only; case $with_otp_only in
2951 yes) with_passwd="no"
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
2953 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2960 # Check whether --with-alertmail was given.
2961 if test "${with_alertmail+set}" = set; then :
2962 withval=$with_alertmail; case $with_alertmail in
2963 *) with_mailto="$with_alertmail"
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
2965 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2973 # Check whether --with-devel was given.
2974 if test "${with_devel+set}" = set; then :
2975 withval=$with_devel; case $with_devel in
2976 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
2977 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2978 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2983 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2984 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2991 # Check whether --with-CC was given.
2992 if test "${with_CC+set}" = set; then :
2993 withval=$with_CC; case $with_CC in
2994 yes) as_fn_error $? "\"must give --with-CC an argument.\"" "$LINENO" 5
2996 no) as_fn_error $? "\"illegal argument: --without-CC.\"" "$LINENO" 5
3005 # Check whether --with-rpath was given.
3006 if test "${with_rpath+set}" = set; then :
3007 withval=$with_rpath; case $with_rpath in
3009 *) as_fn_error $? "\"--with-rpath does not take an argument.\"" "$LINENO" 5
3016 # Check whether --with-blibpath was given.
3017 if test "${with_blibpath+set}" = set; then :
3018 withval=$with_blibpath; case $with_blibpath in
3020 *) { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
3021 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
3028 # Check whether --with-bsm-audit was given.
3029 if test "${with_bsm_audit+set}" = set; then :
3030 withval=$with_bsm_audit; case $with_bsm_audit in
3031 yes) $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3033 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
3034 SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
3037 *) as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3044 ac_cpp='$CPP $CPPFLAGS'
3045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048 if test -n "$ac_tool_prefix"; then
3049 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_CC+:} false; then :
3054 $as_echo_n "(cached) " >&6
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 if test -n "$CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3087 if test -z "$ac_cv_prog_CC"; then
3089 # Extract the first word of "gcc", so it can be a program name with args.
3090 set dummy gcc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$ac_ct_CC"; then
3097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_ac_ct_CC="gcc"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3117 if test -n "$ac_ct_CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3119 $as_echo "$ac_ct_CC" >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3125 if test "x$ac_ct_CC" = x; then
3128 case $cross_compiling:$ac_tool_warned in
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132 ac_tool_warned=yes ;;
3140 if test -z "$CC"; then
3141 if test -n "$ac_tool_prefix"; then
3142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3143 set dummy ${ac_tool_prefix}cc; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_prog_CC+:} false; then :
3147 $as_echo_n "(cached) " >&6
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159 ac_cv_prog_CC="${ac_tool_prefix}cc"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 if test -n "$CC"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3172 $as_echo "$CC" >&6; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3181 if test -z "$CC"; then
3182 # Extract the first word of "cc", so it can be a program name with args.
3183 set dummy cc; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if ${ac_cv_prog_CC+:} false; then :
3187 $as_echo_n "(cached) " >&6
3189 if test -n "$CC"; then
3190 ac_cv_prog_CC="$CC" # Let the user override the test.
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3201 ac_prog_rejected=yes
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 if test $ac_prog_rejected = yes; then
3213 # We found a bogon in the path, so make sure we never use it.
3214 set dummy $ac_cv_prog_CC
3216 if test $# != 0; then
3217 # We chose a different compiler from the bogus one.
3218 # However, it has the same basename, so the bogon will be chosen
3219 # first if we set CC to just the basename; use the full file name.
3221 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3227 if test -n "$CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229 $as_echo "$CC" >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3237 if test -z "$CC"; then
3238 if test -n "$ac_tool_prefix"; then
3239 for ac_prog in cl.exe
3241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_CC+:} false; then :
3246 $as_echo_n "(cached) " >&6
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 if test -n "$CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3278 test -n "$CC" && break
3281 if test -z "$CC"; then
3283 for ac_prog in cl.exe
3285 # Extract the first word of "$ac_prog", so it can be a program name with args.
3286 set dummy $ac_prog; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3292 if test -n "$ac_ct_CC"; then
3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_ac_ct_CC="$ac_prog"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313 if test -n "$ac_ct_CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3315 $as_echo "$ac_ct_CC" >&6; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3322 test -n "$ac_ct_CC" && break
3325 if test "x$ac_ct_CC" = x; then
3328 case $cross_compiling:$ac_tool_warned in
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3332 ac_tool_warned=yes ;;
3341 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "no acceptable C compiler found in \$PATH
3344 See \`config.log' for more details" "$LINENO" 5; }
3346 # Provide some information about the compiler.
3347 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3350 for ac_option in --version -v -V -qversion; do
3351 { { ac_try="$ac_compiler $ac_option >&5"
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3360 if test -s conftest.err; then
3362 ... rest of stderr output deleted ...
3363 10q' conftest.err >conftest.er1
3364 cat conftest.er1 >&5
3366 rm -f conftest.er1 conftest.err
3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3382 ac_clean_files_save=$ac_clean_files
3383 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3384 # Try to create an executable without -o first, disregard a.out.
3385 # It will help us diagnose broken compilers, and finding out an intuition
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3388 $as_echo_n "checking whether the C compiler works... " >&6; }
3389 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3391 # The possible output files:
3392 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3395 for ac_file in $ac_files
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3404 if { { ac_try="$ac_link_default"
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411 (eval "$ac_link_default") 2>&5
3413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414 test $ac_status = 0; }; then :
3415 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3416 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3417 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3418 # so that the user can short-circuit this test for compilers unknown to
3420 for ac_file in $ac_files ''
3422 test -f "$ac_file" || continue
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3427 # We found the default executable, but exeext='' is most
3431 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3433 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3435 # We set ac_cv_exeext here because the later test for it is not
3436 # safe: cross compilers may not add the suffix if given an `-o'
3437 # argument, so we may need to know it at that point already.
3438 # Even if this section looks crufty: it has the advantage of
3445 test "$ac_cv_exeext" = no && ac_cv_exeext=
3450 if test -z "$ac_file"; then :
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 $as_echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 as_fn_error 77 "C compiler cannot create executables
3459 See \`config.log' for more details" "$LINENO" 5; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462 $as_echo "yes" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3465 $as_echo_n "checking for C compiler default output file name... " >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3467 $as_echo "$ac_file" >&6; }
3468 ac_exeext=$ac_cv_exeext
3470 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3471 ac_clean_files=$ac_clean_files_save
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3473 $as_echo_n "checking for suffix of executables... " >&6; }
3474 if { { ac_try="$ac_link"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_link") 2>&5
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; then :
3485 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3486 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3487 # work properly (i.e., refer to `conftest.exe'), while it won't with
3489 for ac_file in conftest.exe conftest conftest.*; do
3490 test -f "$ac_file" || continue
3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3493 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3502 See \`config.log' for more details" "$LINENO" 5; }
3504 rm -f conftest conftest$ac_cv_exeext
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3506 $as_echo "$ac_cv_exeext" >&6; }
3508 rm -f conftest.$ac_ext
3509 EXEEXT=$ac_cv_exeext
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3517 FILE *f = fopen ("conftest.out", "w");
3518 return ferror (f) || fclose (f) != 0;
3524 ac_clean_files="$ac_clean_files conftest.out"
3525 # Check that the compiler produces executables we can run. If not, either
3526 # the compiler is broken, or we cross compile.
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3528 $as_echo_n "checking whether we are cross compiling... " >&6; }
3529 if test "$cross_compiling" != yes; then
3530 { { ac_try="$ac_link"
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_link") 2>&5
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }
3541 if { ac_try='./conftest$ac_cv_exeext'
3542 { { case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_try") 2>&5
3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551 test $ac_status = 0; }; }; then
3554 if test "$cross_compiling" = maybe; then
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error $? "cannot run C compiled programs.
3560 If you meant to cross compile, use \`--host'.
3561 See \`config.log' for more details" "$LINENO" 5; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3566 $as_echo "$cross_compiling" >&6; }
3568 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3569 ac_clean_files=$ac_clean_files_save
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3571 $as_echo_n "checking for suffix of object files... " >&6; }
3572 if ${ac_cv_objext+:} false; then :
3573 $as_echo_n "(cached) " >&6
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3586 rm -f conftest.o conftest.obj
3587 if { { ac_try="$ac_compile"
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593 $as_echo "$ac_try_echo"; } >&5
3594 (eval "$ac_compile") 2>&5
3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597 test $ac_status = 0; }; then :
3598 for ac_file in conftest.o conftest.obj conftest.*; do
3599 test -f "$ac_file" || continue;
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3607 $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error $? "cannot compute suffix of object files: cannot compile
3613 See \`config.log' for more details" "$LINENO" 5; }
3615 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3618 $as_echo "$ac_cv_objext" >&6; }
3619 OBJEXT=$ac_cv_objext
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3622 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3623 if ${ac_cv_c_compiler_gnu+:} false; then :
3624 $as_echo_n "(cached) " >&6
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3640 if ac_fn_c_try_compile "$LINENO"; then :
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3650 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3651 if test $ac_compiler_gnu = yes; then
3656 ac_test_CFLAGS=${CFLAGS+set}
3657 ac_save_CFLAGS=$CFLAGS
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3659 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3660 if ${ac_cv_prog_cc_g+:} false; then :
3661 $as_echo_n "(cached) " >&6
3663 ac_save_c_werror_flag=$ac_c_werror_flag
3664 ac_c_werror_flag=yes
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3678 if ac_fn_c_try_compile "$LINENO"; then :
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3693 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_c_werror_flag=$ac_save_c_werror_flag
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3709 if ac_fn_c_try_compile "$LINENO"; then :
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 ac_c_werror_flag=$ac_save_c_werror_flag
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3720 $as_echo "$ac_cv_prog_cc_g" >&6; }
3721 if test "$ac_test_CFLAGS" = set; then
3722 CFLAGS=$ac_save_CFLAGS
3723 elif test $ac_cv_prog_cc_g = yes; then
3724 if test "$GCC" = yes; then
3730 if test "$GCC" = yes; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3737 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3738 if ${ac_cv_prog_cc_c89+:} false; then :
3739 $as_echo_n "(cached) " >&6
3741 ac_cv_prog_cc_c89=no
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3747 #include <sys/types.h>
3748 #include <sys/stat.h>
3749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3750 struct buf { int x; };
3751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3752 static char *e (p, i)
3758 static char *f (char * (*g) (char **, int), char **p, ...)
3763 s = g (p, va_arg (v,int));
3768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3769 function prototypes and stuff, but not '\xHH' hex character constants.
3770 These don't provoke an error unfortunately, instead are silently treated
3771 as 'x'. The following induces an error, until -std is added to get
3772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3773 array size at least. It's necessary to write '\x00'==0 to get something
3774 that's true only with -std. */
3775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3777 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3778 inside strings and character constants. */
3780 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3782 int test (int i, double x);
3783 struct s1 {int (*f) (int a);};
3784 struct s2 {int (*f) (double a);};
3785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3796 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3797 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3799 CC="$ac_save_CC $ac_arg"
3800 if ac_fn_c_try_compile "$LINENO"; then :
3801 ac_cv_prog_cc_c89=$ac_arg
3803 rm -f core conftest.err conftest.$ac_objext
3804 test "x$ac_cv_prog_cc_c89" != "xno" && break
3806 rm -f conftest.$ac_ext
3811 case "x$ac_cv_prog_cc_c89" in
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3814 $as_echo "none needed" >&6; } ;;
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3817 $as_echo "unsupported" >&6; } ;;
3819 CC="$CC $ac_cv_prog_cc_c89"
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3821 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3823 if test "x$ac_cv_prog_cc_c89" != xno; then :
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 # Check whether --with-linux-audit was given.
3836 if test "${with_linux_audit+set}" = set; then :
3837 withval=$with_linux_audit; case $with_linux_audit in
3838 yes) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840 #include <libaudit.h>
3844 int i = AUDIT_USER_CMD; (void)i;
3849 if ac_fn_c_try_compile "$LINENO"; then :
3851 $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3853 SUDO_LIBS="${SUDO_LIBS} -laudit"
3854 SUDOERS_LIBS="${SUDO_LIBS} -laudit"
3855 SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
3859 as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865 *) as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3872 # Check whether --with-incpath was given.
3873 if test "${with_incpath+set}" = set; then :
3874 withval=$with_incpath; case $with_incpath in
3875 yes) as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
3877 no) as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
3879 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3880 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3881 for i in ${with_incpath}; do
3882 CPPFLAGS="${CPPFLAGS} -I${i}"
3890 # Check whether --with-libpath was given.
3891 if test "${with_libpath+set}" = set; then :
3892 withval=$with_libpath; case $with_libpath in
3893 yes) as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
3895 no) as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
3897 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3898 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3905 # Check whether --with-libraries was given.
3906 if test "${with_libraries+set}" = set; then :
3907 withval=$with_libraries; case $with_libraries in
3908 yes) as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
3910 no) as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
3912 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3913 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
3920 # Check whether --with-efence was given.
3921 if test "${with_efence+set}" = set; then :
3922 withval=$with_efence; case $with_efence in
3923 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
3924 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
3925 LIBS="${LIBS} -lefence"
3926 if test -f /usr/local/lib/libefence.a; then
3927 with_libpath="${with_libpath} /usr/local/lib"
3931 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
3932 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
3939 # Check whether --with-csops was given.
3940 if test "${with_csops+set}" = set; then :
3941 withval=$with_csops; case $with_csops in
3942 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
3943 $as_echo "$as_me: Adding CSOps standard options" >&6;}
3947 with_classic_insults=yes
3948 with_csops_insults=yes
3951 : ${mansectform='5'}
3954 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
3955 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
3962 # Check whether --with-passwd was given.
3963 if test "${with_passwd+set}" = set; then :
3964 withval=$with_passwd; case $with_passwd in
3965 yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
3966 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
3968 $as_echo "$with_passwd" >&6; }
3970 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
3972 *) as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
3979 # Check whether --with-skey was given.
3980 if test "${with_skey+set}" = set; then :
3981 withval=$with_skey; case $with_skey in
3983 *) $as_echo "#define HAVE_SKEY 1" >>confdefs.h
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
3986 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3988 $as_echo "yes" >&6; }
3989 AUTH_REG="$AUTH_REG S/Key"
3996 # Check whether --with-opie was given.
3997 if test "${with_opie+set}" = set; then :
3998 withval=$with_opie; case $with_opie in
4000 *) $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4003 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4005 $as_echo "yes" >&6; }
4006 AUTH_REG="$AUTH_REG NRL_OPIE"
4013 # Check whether --with-long-otp-prompt was given.
4014 if test "${with_long_otp_prompt+set}" = set; then :
4015 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4016 yes) $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4019 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4021 $as_echo "yes" >&6; }
4024 no) long_otp_prompt=off
4026 *) as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4033 # Check whether --with-SecurID was given.
4034 if test "${with_SecurID+set}" = set; then :
4035 withval=$with_SecurID; case $with_SecurID in
4037 *) $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4040 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4042 $as_echo "yes" >&6; }
4043 AUTH_EXCL="$AUTH_EXCL SecurID"
4050 # Check whether --with-fwtk was given.
4051 if test "${with_fwtk+set}" = set; then :
4052 withval=$with_fwtk; case $with_fwtk in
4054 *) $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4057 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4059 $as_echo "yes" >&6; }
4060 AUTH_EXCL="$AUTH_EXCL FWTK"
4067 # Check whether --with-kerb4 was given.
4068 if test "${with_kerb4+set}" = set; then :
4069 withval=$with_kerb4; case $with_kerb4 in
4071 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try kerberos IV authentication" >&5
4072 $as_echo_n "checking whether to try kerberos IV authentication... " >&6; }
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4074 $as_echo "yes" >&6; }
4075 AUTH_REG="$AUTH_REG kerb4"
4082 # Check whether --with-kerb5 was given.
4083 if test "${with_kerb5+set}" = set; then :
4084 withval=$with_kerb5; case $with_kerb5 in
4086 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4087 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4089 $as_echo "yes" >&6; }
4090 AUTH_REG="$AUTH_REG kerb5"
4097 # Check whether --with-aixauth was given.
4098 if test "${with_aixauth+set}" = set; then :
4099 withval=$with_aixauth; case $with_aixauth in
4100 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4102 *) as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4109 # Check whether --with-pam was given.
4110 if test "${with_pam+set}" = set; then :
4111 withval=$with_pam; case $with_pam in
4112 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
4114 *) as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
4121 # Check whether --with-AFS was given.
4122 if test "${with_AFS+set}" = set; then :
4123 withval=$with_AFS; case $with_AFS in
4124 yes) $as_echo "#define HAVE_AFS 1" >>confdefs.h
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4127 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4129 $as_echo "yes" >&6; }
4130 AUTH_REG="$AUTH_REG AFS"
4133 *) as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4140 # Check whether --with-DCE was given.
4141 if test "${with_DCE+set}" = set; then :
4142 withval=$with_DCE; case $with_DCE in
4143 yes) $as_echo "#define HAVE_DCE 1" >>confdefs.h
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4146 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4148 $as_echo "yes" >&6; }
4149 AUTH_REG="$AUTH_REG DCE"
4152 *) as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4159 # Check whether --with-logincap was given.
4160 if test "${with_logincap+set}" = set; then :
4161 withval=$with_logincap; case $with_logincap in
4163 *) as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4170 # Check whether --with-bsdauth was given.
4171 if test "${with_bsdauth+set}" = set; then :
4172 withval=$with_bsdauth; case $with_bsdauth in
4173 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4175 *) as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4182 # Check whether --with-project was given.
4183 if test "${with_project+set}" = set; then :
4184 withval=$with_project; case $with_project in
4187 *) as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4194 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4196 # Check whether --with-lecture was given.
4197 if test "${with_lecture+set}" = set; then :
4198 withval=$with_lecture; case $with_lecture in
4199 yes|short|always) lecture=once
4201 no|none|never) lecture=never
4203 *) as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4208 if test "$lecture" = "once"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4210 $as_echo "yes" >&6; }
4212 $as_echo "#define NO_LECTURE 1" >>confdefs.h
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4219 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4221 # Check whether --with-logging was given.
4222 if test "${with_logging+set}" = set; then :
4223 withval=$with_logging; case $with_logging in
4224 yes) as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
4226 no) as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
4228 syslog) $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4231 $as_echo "syslog" >&6; }
4233 file) $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4236 $as_echo "file" >&6; }
4238 both) $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4241 $as_echo "both" >&6; }
4243 *) as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4247 $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4249 $as_echo "syslog" >&6; }
4254 # Check whether --with-logfac was given.
4255 if test "${with_logfac+set}" = set; then :
4256 withval=$with_logfac; case $with_logfac in
4257 yes) as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
4259 no) as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
4261 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
4263 *) as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4270 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4272 # Check whether --with-goodpri was given.
4273 if test "${with_goodpri+set}" = set; then :
4274 withval=$with_goodpri; case $with_goodpri in
4275 yes) as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4277 no) as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
4279 alert|crit|debug|emerg|err|info|notice|warning)
4280 goodpri=$with_goodpri
4282 *) as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4288 cat >>confdefs.h <<_ACEOF
4289 #define PRI_SUCCESS "$goodpri"
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4293 $as_echo "$goodpri" >&6; }
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4296 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4298 # Check whether --with-badpri was given.
4299 if test "${with_badpri+set}" = set; then :
4300 withval=$with_badpri; case $with_badpri in
4301 yes) as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
4303 no) as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
4305 alert|crit|debug|emerg|err|info|notice|warning)
4308 *) as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
4314 cat >>confdefs.h <<_ACEOF
4315 #define PRI_FAILURE "$badpri"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4319 $as_echo "$badpri" >&6; }
4322 # Check whether --with-logpath was given.
4323 if test "${with_logpath+set}" = set; then :
4324 withval=$with_logpath; case $with_logpath in
4325 yes) as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
4327 no) as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4334 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4336 # Check whether --with-loglen was given.
4337 if test "${with_loglen+set}" = set; then :
4338 withval=$with_loglen; case $with_loglen in
4339 yes) as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
4341 no) as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
4343 [0-9]*) loglen=$with_loglen
4345 *) as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4351 cat >>confdefs.h <<_ACEOF
4352 #define MAXLOGFILELEN $loglen
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4356 $as_echo "$loglen" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4359 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4361 # Check whether --with-ignore-dot was given.
4362 if test "${with_ignore_dot+set}" = set; then :
4363 withval=$with_ignore_dot; case $with_ignore_dot in
4368 *) as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4373 if test "$ignore_dot" = "on"; then
4374 $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4377 $as_echo "yes" >&6; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4384 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4386 # Check whether --with-mail-if-no-user was given.
4387 if test "${with_mail_if_no_user+set}" = set; then :
4388 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4389 yes) mail_no_user=on
4391 no) mail_no_user=off
4393 *) as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4398 if test "$mail_no_user" = "on"; then
4399 $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4402 $as_echo "yes" >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4409 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4411 # Check whether --with-mail-if-no-host was given.
4412 if test "${with_mail_if_no_host+set}" = set; then :
4413 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4414 yes) mail_no_host=on
4416 no) mail_no_host=off
4418 *) as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4423 if test "$mail_no_host" = "on"; then
4424 $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4427 $as_echo "yes" >&6; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4434 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4436 # Check whether --with-mail-if-noperms was given.
4437 if test "${with_mail_if_noperms+set}" = set; then :
4438 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4439 yes) mail_noperms=on
4441 no) mail_noperms=off
4443 *) as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4448 if test "$mail_noperms" = "on"; then
4449 $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4452 $as_echo "yes" >&6; }
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4459 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4461 # Check whether --with-mailto was given.
4462 if test "${with_mailto+set}" = set; then :
4463 withval=$with_mailto; case $with_mailto in
4464 yes) as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
4466 no) as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
4468 *) mailto=$with_mailto
4474 cat >>confdefs.h <<_ACEOF
4475 #define MAILTO "$mailto"
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4479 $as_echo "$mailto" >&6; }
4482 # Check whether --with-mailsubject was given.
4483 if test "${with_mailsubject+set}" = set; then :
4484 withval=$with_mailsubject; case $with_mailsubject in
4485 yes) as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4487 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4488 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4490 *) mailsub="$with_mailsubject"
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4492 $as_echo_n "checking sudo mail subject... " >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4494 $as_echo "Using alert mail subject: $mailsub" >&6; }
4500 cat >>confdefs.h <<_ACEOF
4501 #define MAILSUBJECT "$mailsub"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4506 $as_echo_n "checking for bad password prompt... " >&6; }
4508 # Check whether --with-passprompt was given.
4509 if test "${with_passprompt+set}" = set; then :
4510 withval=$with_passprompt; case $with_passprompt in
4511 yes) as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4513 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4514 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4516 *) passprompt="$with_passprompt"
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4521 $as_echo "$passprompt" >&6; }
4523 cat >>confdefs.h <<_ACEOF
4524 #define PASSPROMPT "$passprompt"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4529 $as_echo_n "checking for bad password message... " >&6; }
4531 # Check whether --with-badpass-message was given.
4532 if test "${with_badpass_message+set}" = set; then :
4533 withval=$with_badpass_message; case $with_badpass_message in
4534 yes) as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4536 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4537 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4539 *) badpass_message="$with_badpass_message"
4545 cat >>confdefs.h <<_ACEOF
4546 #define INCORRECT_PASSWORD "$badpass_message"
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4550 $as_echo "$badpass_message" >&6; }
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4553 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4555 # Check whether --with-fqdn was given.
4556 if test "${with_fqdn+set}" = set; then :
4557 withval=$with_fqdn; case $with_fqdn in
4562 *) as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4567 if test "$fqdn" = "on"; then
4568 $as_echo "#define FQDN 1" >>confdefs.h
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4571 $as_echo "yes" >&6; }
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4578 # Check whether --with-timedir was given.
4579 if test "${with_timedir+set}" = set; then :
4580 withval=$with_timedir; case $with_timedir in
4581 yes) as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5
4583 no) as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5
4590 # Check whether --with-iologdir was given.
4591 if test "${with_iologdir+set}" = set; then :
4592 withval=$with_iologdir; case $with_iologdir in
4594 no) as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
4601 # Check whether --with-sendmail was given.
4602 if test "${with_sendmail+set}" = set; then :
4603 withval=$with_sendmail; case $with_sendmail in
4604 yes) with_sendmail=""
4607 *) cat >>confdefs.h <<EOF
4608 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4617 # Check whether --with-sudoers-mode was given.
4618 if test "${with_sudoers_mode+set}" = set; then :
4619 withval=$with_sudoers_mode; case $with_sudoers_mode in
4620 yes) as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4622 no) as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4624 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
4626 0*) SUDOERS_MODE=$with_sudoers_mode
4628 *) as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4635 # Check whether --with-sudoers-uid was given.
4636 if test "${with_sudoers_uid+set}" = set; then :
4637 withval=$with_sudoers_uid; case $with_sudoers_uid in
4638 yes) as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4640 no) as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4642 [0-9]*) SUDOERS_UID=$with_sudoers_uid
4644 *) as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4651 # Check whether --with-sudoers-gid was given.
4652 if test "${with_sudoers_gid+set}" = set; then :
4653 withval=$with_sudoers_gid; case $with_sudoers_gid in
4654 yes) as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4656 no) as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4658 [0-9]*) SUDOERS_GID=$with_sudoers_gid
4660 *) as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4667 $as_echo_n "checking for umask programs should be run with... " >&6; }
4669 # Check whether --with-umask was given.
4670 if test "${with_umask+set}" = set; then :
4671 withval=$with_umask; case $with_umask in
4672 yes) as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
4676 [0-9]*) sudo_umask=$with_umask
4678 *) as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
4684 cat >>confdefs.h <<_ACEOF
4685 #define SUDO_UMASK $sudo_umask
4688 if test "$sudo_umask" = "0777"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4690 $as_echo "user" >&6; }
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4693 $as_echo "$sudo_umask" >&6; }
4697 # Check whether --with-umask-override was given.
4698 if test "${with_umask_override+set}" = set; then :
4699 withval=$with_umask_override; case $with_umask_override in
4700 yes) $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4704 no) umask_override=off
4706 *) as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4713 $as_echo_n "checking for default user to run commands as... " >&6; }
4715 # Check whether --with-runas-default was given.
4716 if test "${with_runas_default+set}" = set; then :
4717 withval=$with_runas_default; case $with_runas_default in
4718 yes) as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4720 no) as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
4722 *) runas_default="$with_runas_default"
4728 cat >>confdefs.h <<_ACEOF
4729 #define RUNAS_DEFAULT "$runas_default"
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4733 $as_echo "$runas_default" >&6; }
4736 # Check whether --with-exempt was given.
4737 if test "${with_exempt+set}" = set; then :
4738 withval=$with_exempt; case $with_exempt in
4739 yes) as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
4741 no) as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
4744 cat >>confdefs.h <<_ACEOF
4745 #define EXEMPTGROUP "$with_exempt"
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4749 $as_echo_n "checking for group to be exempt from password... " >&6; }
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4751 $as_echo "$with_exempt" >&6; }
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4758 $as_echo_n "checking for editor that visudo should use... " >&6; }
4760 # Check whether --with-editor was given.
4761 if test "${with_editor+set}" = set; then :
4762 withval=$with_editor; case $with_editor in
4763 yes) as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
4765 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4768 cat >>confdefs.h <<_ACEOF
4769 #define EDITOR "$with_editor"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4773 $as_echo "$with_editor" >&6; }
4774 editor="$with_editor"
4778 $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4780 $as_echo "vi" >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4785 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4787 # Check whether --with-env-editor was given.
4788 if test "${with_env_editor+set}" = set; then :
4789 withval=$with_env_editor; case $with_env_editor in
4794 *) as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4799 if test "$env_editor" = "on"; then
4800 $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4803 $as_echo "yes" >&6; }
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4810 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4812 # Check whether --with-passwd-tries was given.
4813 if test "${with_passwd_tries+set}" = set; then :
4814 withval=$with_passwd_tries; case $with_passwd_tries in
4816 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4818 [1-9]*) passwd_tries=$with_passwd_tries
4820 *) as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4826 cat >>confdefs.h <<_ACEOF
4827 #define TRIES_FOR_PASSWORD $passwd_tries
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4831 $as_echo "$passwd_tries" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4834 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4836 # Check whether --with-timeout was given.
4837 if test "${with_timeout+set}" = set; then :
4838 withval=$with_timeout; case $with_timeout in
4842 [0-9]*) timeout=$with_timeout
4844 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4850 cat >>confdefs.h <<_ACEOF
4851 #define TIMEOUT $timeout
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4855 $as_echo "$timeout" >&6; }
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4858 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4860 # Check whether --with-password-timeout was given.
4861 if test "${with_password_timeout+set}" = set; then :
4862 withval=$with_password_timeout; case $with_password_timeout in
4864 no) password_timeout=0
4866 [0-9]*) password_timeout=$with_password_timeout
4868 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4874 cat >>confdefs.h <<_ACEOF
4875 #define PASSWORD_TIMEOUT $password_timeout
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4879 $as_echo "$password_timeout" >&6; }
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4882 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4884 # Check whether --with-tty-tickets was given.
4885 if test "${with_tty_tickets+set}" = set; then :
4886 withval=$with_tty_tickets; case $with_tty_tickets in
4891 *) as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4896 if test "$tty_tickets" = "off"; then
4897 $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4903 $as_echo "yes" >&6; }
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4907 $as_echo_n "checking whether to include insults... " >&6; }
4909 # Check whether --with-insults was given.
4910 if test "${with_insults+set}" = set; then :
4911 withval=$with_insults; case $with_insults in
4913 with_classic_insults=yes
4914 with_csops_insults=yes
4916 disabled) insults=off
4917 with_classic_insults=yes
4918 with_csops_insults=yes
4922 *) as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
4927 if test "$insults" = "on"; then
4928 $as_echo "#define USE_INSULTS 1" >>confdefs.h
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4931 $as_echo "yes" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4938 # Check whether --with-all-insults was given.
4939 if test "${with_all_insults+set}" = set; then :
4940 withval=$with_all_insults; case $with_all_insults in
4941 yes) with_classic_insults=yes
4942 with_csops_insults=yes
4943 with_hal_insults=yes
4944 with_goons_insults=yes
4947 *) as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
4954 # Check whether --with-classic-insults was given.
4955 if test "${with_classic_insults+set}" = set; then :
4956 withval=$with_classic_insults; case $with_classic_insults in
4957 yes) $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
4961 *) as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
4968 # Check whether --with-csops-insults was given.
4969 if test "${with_csops_insults+set}" = set; then :
4970 withval=$with_csops_insults; case $with_csops_insults in
4971 yes) $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
4975 *) as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
4982 # Check whether --with-hal-insults was given.
4983 if test "${with_hal_insults+set}" = set; then :
4984 withval=$with_hal_insults; case $with_hal_insults in
4985 yes) $as_echo "#define HAL_INSULTS 1" >>confdefs.h
4989 *) as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
4996 # Check whether --with-goons-insults was given.
4997 if test "${with_goons_insults+set}" = set; then :
4998 withval=$with_goons_insults; case $with_goons_insults in
4999 yes) $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
5003 *) as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
5010 # Check whether --with-nsswitch was given.
5011 if test "${with_nsswitch+set}" = set; then :
5012 withval=$with_nsswitch; case $with_nsswitch in
5014 yes) with_nsswitch="/etc/nsswitch.conf"
5022 # Check whether --with-ldap was given.
5023 if test "${with_ldap+set}" = set; then :
5024 withval=$with_ldap; case $with_ldap in
5026 *) $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5029 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5031 $as_echo "yes" >&6; }
5038 # Check whether --with-ldap-conf-file was given.
5039 if test "${with_ldap_conf_file+set}" = set; then :
5040 withval=$with_ldap_conf_file;
5043 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5044 cat >>confdefs.h <<EOF
5045 #define _PATH_LDAP_CONF "$ldap_conf"
5050 # Check whether --with-ldap-secret-file was given.
5051 if test "${with_ldap_secret_file+set}" = set; then :
5052 withval=$with_ldap_secret_file;
5055 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5056 cat >>confdefs.h <<EOF
5057 #define _PATH_LDAP_SECRET "$ldap_secret"
5062 # Check whether --with-pc-insults was given.
5063 if test "${with_pc_insults+set}" = set; then :
5064 withval=$with_pc_insults; case $with_pc_insults in
5065 yes) $as_echo "#define PC_INSULTS 1" >>confdefs.h
5069 *) as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5075 if test "$insults" = "on"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5077 $as_echo_n "checking which insult sets to include... " >&6; }
5079 test "$with_goons_insults" = "yes" && i="goons ${i}"
5080 test "$with_hal_insults" = "yes" && i="hal ${i}"
5081 test "$with_csops_insults" = "yes" && i="csops ${i}"
5082 test "$with_classic_insults" = "yes" && i="classic ${i}"
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5084 $as_echo "$i" >&6; }
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5088 $as_echo_n "checking whether to override the user's path... " >&6; }
5090 # Check whether --with-secure-path was given.
5091 if test "${with_secure_path+set}" = set; then :
5092 withval=$with_secure_path; case $with_secure_path in
5093 yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5094 cat >>confdefs.h <<_ACEOF
5095 #define SECURE_PATH "$with_secure_path"
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5099 $as_echo "$with_secure_path" >&6; }
5100 secure_path="set to $with_secure_path"
5102 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5105 *) cat >>confdefs.h <<_ACEOF
5106 #define SECURE_PATH "$with_secure_path"
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5110 $as_echo "$with_secure_path" >&6; }
5111 secure_path="set to F<$with_secure_path>"
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5121 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5123 # Check whether --with-interfaces was given.
5124 if test "${with_interfaces+set}" = set; then :
5125 withval=$with_interfaces; case $with_interfaces in
5126 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5127 $as_echo "yes" >&6; }
5129 no) $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5134 *) as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5139 $as_echo "yes" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5144 $as_echo_n "checking whether stow should be used... " >&6; }
5146 # Check whether --with-stow was given.
5147 if test "${with_stow+set}" = set; then :
5148 withval=$with_stow; case $with_stow in
5149 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5150 $as_echo "yes" >&6; }
5151 $as_echo "#define USE_STOW 1" >>confdefs.h
5154 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5157 *) as_fn_error $? "\"--with-stow does not take an argument.\"" "$LINENO" 5
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5167 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5169 # Check whether --with-askpass was given.
5170 if test "${with_askpass+set}" = set; then :
5171 withval=$with_askpass; case $with_askpass in
5172 yes) as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5175 *) cat >>confdefs.h <<EOF
5176 #define _PATH_SUDO_ASKPASS "$with_askpass"
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5188 # Check whether --with-plugindir was given.
5189 if test "${with_plugindir+set}" = set; then :
5190 withval=$with_plugindir; case $with_plugindir in
5191 no) as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
5196 with_plugindir="$libexecdir"
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5202 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5203 # Check whether --enable-authentication was given.
5204 if test "${enable_authentication+set}" = set; then :
5205 enableval=$enable_authentication; case "$enableval" in
5206 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207 $as_echo "yes" >&6; }
5209 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5211 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5214 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5217 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223 $as_echo "yes" >&6; }
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5228 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5229 # Check whether --enable-root-mailer was given.
5230 if test "${enable_root_mailer+set}" = set; then :
5231 enableval=$enable_root_mailer; case "$enableval" in
5232 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5235 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5236 $as_echo "yes" >&6; }
5237 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5240 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5243 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5253 # Check whether --enable-setreuid was given.
5254 if test "${enable_setreuid+set}" = set; then :
5255 enableval=$enable_setreuid; case "$enableval" in
5256 no) SKIP_SETREUID=yes
5264 # Check whether --enable-setresuid was given.
5265 if test "${enable_setresuid+set}" = set; then :
5266 enableval=$enable_setresuid; case "$enableval" in
5267 no) SKIP_SETRESUID=yes
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5276 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5277 # Check whether --enable-shadow was given.
5278 if test "${enable_shadow+set}" = set; then :
5279 enableval=$enable_shadow; case "$enableval" in
5280 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5283 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5284 $as_echo "yes" >&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-shadow: $enableval" >&5
5290 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $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 root should be allowed to use sudo" >&5
5301 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5302 # Check whether --enable-root-sudo was given.
5303 if test "${enable_root_sudo+set}" = set; then :
5304 enableval=$enable_root_sudo; case "$enableval" in
5305 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5308 no) $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5314 *) as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5320 $as_echo "yes" >&6; }
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5325 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5326 # Check whether --enable-log-host was given.
5327 if test "${enable_log_host+set}" = set; then :
5328 enableval=$enable_log_host; case "$enableval" in
5329 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330 $as_echo "yes" >&6; }
5331 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5334 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5337 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5340 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5351 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5352 # Check whether --enable-noargs-shell was given.
5353 if test "${enable_noargs_shell+set}" = set; then :
5354 enableval=$enable_noargs_shell; case "$enableval" in
5355 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356 $as_echo "yes" >&6; }
5357 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5360 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5363 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5366 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5377 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5378 # Check whether --enable-shell-sets-home was given.
5379 if test "${enable_shell_sets_home+set}" = set; then :
5380 enableval=$enable_shell_sets_home; case "$enableval" in
5381 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5382 $as_echo "yes" >&6; }
5383 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5386 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5389 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5392 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5403 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5404 # Check whether --enable-path_info was given.
5405 if test "${enable_path_info+set}" = set; then :
5406 enableval=$enable_path_info; case "$enableval" in
5407 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5410 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5411 $as_echo "yes" >&6; }
5412 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5416 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5419 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5430 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5431 # Check whether --enable-env_debug was given.
5432 if test "${enable_env_debug+set}" = set; then :
5433 enableval=$enable_env_debug; case "$enableval" in
5434 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5435 $as_echo "yes" >&6; }
5436 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5439 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5442 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5445 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5455 # Check whether --enable-zlib was given.
5456 if test "${enable_zlib+set}" = set; then :
5457 enableval=$enable_zlib;
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5464 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5465 # Check whether --enable-env_reset was given.
5466 if test "${enable_env_reset+set}" = set; then :
5467 enableval=$enable_env_reset; case "$enableval" in
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5474 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5480 if test "$env_reset" = "on"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5482 $as_echo "yes" >&6; }
5483 $as_echo "#define ENV_RESET TRUE" >>confdefs.h
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 $as_echo "#define ENV_RESET FALSE" >>confdefs.h
5492 # Check whether --enable-warnings was given.
5493 if test "${enable_warnings+set}" = set; then :
5494 enableval=$enable_warnings; case "$enableval" in
5495 yes) if test X"$with_devel" != X"yes" -a -n "$GCC"; then
5496 CFLAGS="${CFLAGS} -Wall"
5500 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5501 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5508 # Check whether --enable-admin-flag was given.
5509 if test "${enable_admin_flag+set}" = set; then :
5510 enableval=$enable_admin_flag; case "$enableval" in
5511 yes) $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5515 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5516 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5523 # Check whether --enable-nls was given.
5524 if test "${enable_nls+set}" = set; then :
5525 enableval=$enable_nls;
5532 # Check whether --with-selinux was given.
5533 if test "${with_selinux+set}" = set; then :
5534 withval=$with_selinux; case $with_selinux in
5535 yes) SELINUX_USAGE="[-r role] [-t type] "
5536 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5538 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5539 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5540 PROGS="${PROGS} sesh"
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5543 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5544 if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
5545 $as_echo_n "(cached) " >&6
5547 ac_check_lib_save_LIBS=$LIBS
5548 LIBS="-lselinux $LIBS"
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5552 /* Override any GCC internal prototype to avoid an error.
5553 Use char because int might match the return type of a GCC
5554 builtin and then its argument prototype would still apply. */
5558 char setkeycreatecon ();
5562 return setkeycreatecon ();
5567 if ac_fn_c_try_link "$LINENO"; then :
5568 ac_cv_lib_selinux_setkeycreatecon=yes
5570 ac_cv_lib_selinux_setkeycreatecon=no
5572 rm -f core conftest.err conftest.$ac_objext \
5573 conftest$ac_exeext conftest.$ac_ext
5574 LIBS=$ac_check_lib_save_LIBS
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5577 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5578 if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
5579 $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5585 *) as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5591 # Check whether --enable-gss_krb5_ccache_name was given.
5592 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5593 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5595 check_gss_krb5_ccache_name=no
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5600 $as_echo_n "checking for library containing strerror... " >&6; }
5601 if ${ac_cv_search_strerror+:} false; then :
5602 $as_echo_n "(cached) " >&6
5604 ac_func_search_save_LIBS=$LIBS
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5608 /* Override any GCC internal prototype to avoid an error.
5609 Use char because int might match the return type of a GCC
5610 builtin and then its argument prototype would still apply. */
5623 for ac_lib in '' cposix; do
5624 if test -z "$ac_lib"; then
5625 ac_res="none required"
5628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5630 if ac_fn_c_try_link "$LINENO"; then :
5631 ac_cv_search_strerror=$ac_res
5633 rm -f core conftest.err conftest.$ac_objext \
5635 if ${ac_cv_search_strerror+:} false; then :
5639 if ${ac_cv_search_strerror+:} false; then :
5642 ac_cv_search_strerror=no
5645 LIBS=$ac_func_search_save_LIBS
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5648 $as_echo "$ac_cv_search_strerror" >&6; }
5649 ac_res=$ac_cv_search_strerror
5650 if test "$ac_res" != no; then :
5651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5656 ac_cpp='$CPP $CPPFLAGS'
5657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5661 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5662 # On Suns, sometimes $CPP names a directory.
5663 if test -n "$CPP" && test -d "$CPP"; then
5666 if test -z "$CPP"; then
5667 if ${ac_cv_prog_CPP+:} false; then :
5668 $as_echo_n "(cached) " >&6
5670 # Double quotes because CPP needs to be expanded
5671 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5674 for ac_c_preproc_warn_flag in '' yes
5676 # Use a header file that comes with gcc, so configuring glibc
5677 # with a fresh cross-compiler works.
5678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5679 # <limits.h> exists even on freestanding compilers.
5680 # On the NeXT, cc -E runs the code through the compiler's parser,
5681 # not just through cpp. "Syntax error" is here to catch this case.
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5685 # include <limits.h>
5687 # include <assert.h>
5691 if ac_fn_c_try_cpp "$LINENO"; then :
5694 # Broken: fails on valid input.
5697 rm -f conftest.err conftest.i conftest.$ac_ext
5699 # OK, works on sane cases. Now check whether nonexistent headers
5700 # can be detected and how.
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5703 #include <ac_nonexistent.h>
5705 if ac_fn_c_try_cpp "$LINENO"; then :
5706 # Broken: success on invalid input.
5709 # Passes both tests.
5713 rm -f conftest.err conftest.i conftest.$ac_ext
5716 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5717 rm -f conftest.i conftest.err conftest.$ac_ext
5718 if $ac_preproc_ok; then :
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5731 $as_echo "$CPP" >&6; }
5733 for ac_c_preproc_warn_flag in '' yes
5735 # Use a header file that comes with gcc, so configuring glibc
5736 # with a fresh cross-compiler works.
5737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5738 # <limits.h> exists even on freestanding compilers.
5739 # On the NeXT, cc -E runs the code through the compiler's parser,
5740 # not just through cpp. "Syntax error" is here to catch this case.
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5744 # include <limits.h>
5746 # include <assert.h>
5750 if ac_fn_c_try_cpp "$LINENO"; then :
5753 # Broken: fails on valid input.
5756 rm -f conftest.err conftest.i conftest.$ac_ext
5758 # OK, works on sane cases. Now check whether nonexistent headers
5759 # can be detected and how.
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 #include <ac_nonexistent.h>
5764 if ac_fn_c_try_cpp "$LINENO"; then :
5765 # Broken: success on invalid input.
5768 # Passes both tests.
5772 rm -f conftest.err conftest.i conftest.$ac_ext
5775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5776 rm -f conftest.i conftest.err conftest.$ac_ext
5777 if $ac_preproc_ok; then :
5780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5782 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5783 See \`config.log' for more details" "$LINENO" 5; }
5787 ac_cpp='$CPP $CPPFLAGS'
5788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5792 if test -n "$ac_tool_prefix"; then
5793 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5794 set dummy ${ac_tool_prefix}ar; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_prog_AR+:} false; then :
5798 $as_echo_n "(cached) " >&6
5800 if test -n "$AR"; then
5801 ac_cv_prog_AR="$AR" # Let the user override the test.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_AR="${ac_tool_prefix}ar"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 if test -n "$AR"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5823 $as_echo "$AR" >&6; }
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5831 if test -z "$ac_cv_prog_AR"; then
5833 # Extract the first word of "ar", so it can be a program name with args.
5834 set dummy ar; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5838 $as_echo_n "(cached) " >&6
5840 if test -n "$ac_ct_AR"; then
5841 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_prog_ac_ct_AR="ar"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5861 if test -n "$ac_ct_AR"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5863 $as_echo "$ac_ct_AR" >&6; }
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5869 if test "x$ac_ct_AR" = x; then
5872 case $cross_compiling:$ac_tool_warned in
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5876 ac_tool_warned=yes ;;
5884 if test -n "$ac_tool_prefix"; then
5885 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if ${ac_cv_prog_RANLIB+:} false; then :
5890 $as_echo_n "(cached) " >&6
5892 if test -n "$RANLIB"; then
5893 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 RANLIB=$ac_cv_prog_RANLIB
5913 if test -n "$RANLIB"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5915 $as_echo "$RANLIB" >&6; }
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5923 if test -z "$ac_cv_prog_RANLIB"; then
5924 ac_ct_RANLIB=$RANLIB
5925 # Extract the first word of "ranlib", so it can be a program name with args.
5926 set dummy ranlib; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5930 $as_echo_n "(cached) " >&6
5932 if test -n "$ac_ct_RANLIB"; then
5933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_ac_ct_RANLIB="ranlib"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5953 if test -n "$ac_ct_RANLIB"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5955 $as_echo "$ac_ct_RANLIB" >&6; }
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5961 if test "x$ac_ct_RANLIB" = x; then
5964 case $cross_compiling:$ac_tool_warned in
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968 ac_tool_warned=yes ;;
5970 RANLIB=$ac_ct_RANLIB
5973 RANLIB="$ac_cv_prog_RANLIB"
5976 if test X"$AR" = X"false"; then
5977 as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
5980 if test "x$ac_cv_prog_cc_c89" = "xno"; then
5981 as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
5985 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5986 if test -f "$ac_dir/install-sh"; then
5988 ac_install_sh="$ac_aux_dir/install-sh -c"
5990 elif test -f "$ac_dir/install.sh"; then
5992 ac_install_sh="$ac_aux_dir/install.sh -c"
5994 elif test -f "$ac_dir/shtool"; then
5996 ac_install_sh="$ac_aux_dir/shtool install -c"
6000 if test -z "$ac_aux_dir"; then
6001 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6004 # These three variables are undocumented and unsupported,
6005 # and are intended to be withdrawn in a future Autoconf release.
6006 # They can cause serious problems if a builder's source tree is in a directory
6007 # whose full name contains unusual characters.
6008 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6009 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6010 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6013 # Make sure we can run config.sub.
6014 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6015 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6018 $as_echo_n "checking build system type... " >&6; }
6019 if ${ac_cv_build+:} false; then :
6020 $as_echo_n "(cached) " >&6
6022 ac_build_alias=$build_alias
6023 test "x$ac_build_alias" = x &&
6024 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6025 test "x$ac_build_alias" = x &&
6026 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6027 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6028 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6032 $as_echo "$ac_cv_build" >&6; }
6033 case $ac_cv_build in
6035 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6038 ac_save_IFS=$IFS; IFS='-'
6044 # Remember, the first character of IFS is used to create $*,
6045 # except with old shells:
6048 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6052 $as_echo_n "checking host system type... " >&6; }
6053 if ${ac_cv_host+:} false; then :
6054 $as_echo_n "(cached) " >&6
6056 if test "x$host_alias" = x; then
6057 ac_cv_host=$ac_cv_build
6059 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6060 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6065 $as_echo "$ac_cv_host" >&6; }
6068 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6071 ac_save_IFS=$IFS; IFS='-'
6077 # Remember, the first character of IFS is used to create $*,
6078 # except with old shells:
6081 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6089 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6095 macro_revision='1.3293'
6109 ltmain="$ac_aux_dir/ltmain.sh"
6111 # Backslashify metacharacters that are still active within
6112 # double-quoted strings.
6113 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6115 # Same as above, but do not quote variable references.
6116 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6118 # Sed substitution to delay expansion of an escaped shell variable in a
6119 # double_quote_subst'ed string.
6120 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6122 # Sed substitution to delay expansion of an escaped single quote.
6123 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6125 # Sed substitution to avoid accidental globbing in evaled expressions
6126 no_glob_subst='s/\*/\\\*/g'
6128 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6129 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6130 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6133 $as_echo_n "checking how to print strings... " >&6; }
6134 # Test print first, because it will be a builtin if present.
6135 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6136 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6138 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6141 # Use this function as a fallback that always works.
6142 func_fallback_echo ()
6144 eval 'cat <<_LTECHO_EOF
6148 ECHO='func_fallback_echo'
6151 # func_echo_all arg...
6152 # Invoke $ECHO with all args, space-separated.
6159 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6160 $as_echo "printf" >&6; } ;;
6161 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6162 $as_echo "print -r" >&6; } ;;
6163 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6164 $as_echo "cat" >&6; } ;;
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6181 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6182 if ${ac_cv_path_SED+:} false; then :
6183 $as_echo_n "(cached) " >&6
6185 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6186 for ac_i in 1 2 3 4 5 6 7; do
6187 ac_script="$ac_script$as_nl$ac_script"
6189 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6190 { ac_script=; unset ac_script;}
6191 if test -z "$SED"; then
6192 ac_path_SED_found=false
6193 # Loop through the user's path and test for each of PROGNAME-LIST
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 test -z "$as_dir" && as_dir=.
6199 for ac_prog in sed gsed; do
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6202 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6203 # Check for GNU ac_path_SED and select it if it is found.
6204 # Check for GNU $ac_path_SED
6205 case `"$ac_path_SED" --version 2>&1` in
6207 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6210 $as_echo_n 0123456789 >"conftest.in"
6213 cat "conftest.in" "conftest.in" >"conftest.tmp"
6214 mv "conftest.tmp" "conftest.in"
6215 cp "conftest.in" "conftest.nl"
6216 $as_echo '' >> "conftest.nl"
6217 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6219 as_fn_arith $ac_count + 1 && ac_count=$as_val
6220 if test $ac_count -gt ${ac_path_SED_max-0}; then
6221 # Best one so far, save it but keep looking for a better one
6222 ac_cv_path_SED="$ac_path_SED"
6223 ac_path_SED_max=$ac_count
6225 # 10*(2^10) chars as input seems more than enough
6226 test $ac_count -gt 10 && break
6228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6231 $ac_path_SED_found && break 3
6236 if test -z "$ac_cv_path_SED"; then
6237 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6245 $as_echo "$ac_cv_path_SED" >&6; }
6246 SED="$ac_cv_path_SED"
6249 test -z "$SED" && SED=sed
6250 Xsed="$SED -e 1s/^X//"
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6263 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6264 if ${ac_cv_path_GREP+:} false; then :
6265 $as_echo_n "(cached) " >&6
6267 if test -z "$GREP"; then
6268 ac_path_GREP_found=false
6269 # Loop through the user's path and test for each of PROGNAME-LIST
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6274 test -z "$as_dir" && as_dir=.
6275 for ac_prog in grep ggrep; do
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6278 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6279 # Check for GNU ac_path_GREP and select it if it is found.
6280 # Check for GNU $ac_path_GREP
6281 case `"$ac_path_GREP" --version 2>&1` in
6283 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6286 $as_echo_n 0123456789 >"conftest.in"
6289 cat "conftest.in" "conftest.in" >"conftest.tmp"
6290 mv "conftest.tmp" "conftest.in"
6291 cp "conftest.in" "conftest.nl"
6292 $as_echo 'GREP' >> "conftest.nl"
6293 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6295 as_fn_arith $ac_count + 1 && ac_count=$as_val
6296 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6297 # Best one so far, save it but keep looking for a better one
6298 ac_cv_path_GREP="$ac_path_GREP"
6299 ac_path_GREP_max=$ac_count
6301 # 10*(2^10) chars as input seems more than enough
6302 test $ac_count -gt 10 && break
6304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6307 $ac_path_GREP_found && break 3
6312 if test -z "$ac_cv_path_GREP"; then
6313 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6316 ac_cv_path_GREP=$GREP
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6321 $as_echo "$ac_cv_path_GREP" >&6; }
6322 GREP="$ac_cv_path_GREP"
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6326 $as_echo_n "checking for egrep... " >&6; }
6327 if ${ac_cv_path_EGREP+:} false; then :
6328 $as_echo_n "(cached) " >&6
6330 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6331 then ac_cv_path_EGREP="$GREP -E"
6333 if test -z "$EGREP"; then
6334 ac_path_EGREP_found=false
6335 # Loop through the user's path and test for each of PROGNAME-LIST
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6340 test -z "$as_dir" && as_dir=.
6341 for ac_prog in egrep; do
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6344 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6345 # Check for GNU ac_path_EGREP and select it if it is found.
6346 # Check for GNU $ac_path_EGREP
6347 case `"$ac_path_EGREP" --version 2>&1` in
6349 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6352 $as_echo_n 0123456789 >"conftest.in"
6355 cat "conftest.in" "conftest.in" >"conftest.tmp"
6356 mv "conftest.tmp" "conftest.in"
6357 cp "conftest.in" "conftest.nl"
6358 $as_echo 'EGREP' >> "conftest.nl"
6359 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6361 as_fn_arith $ac_count + 1 && ac_count=$as_val
6362 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6363 # Best one so far, save it but keep looking for a better one
6364 ac_cv_path_EGREP="$ac_path_EGREP"
6365 ac_path_EGREP_max=$ac_count
6367 # 10*(2^10) chars as input seems more than enough
6368 test $ac_count -gt 10 && break
6370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6373 $ac_path_EGREP_found && break 3
6378 if test -z "$ac_cv_path_EGREP"; then
6379 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6382 ac_cv_path_EGREP=$EGREP
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6388 $as_echo "$ac_cv_path_EGREP" >&6; }
6389 EGREP="$ac_cv_path_EGREP"
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6393 $as_echo_n "checking for fgrep... " >&6; }
6394 if ${ac_cv_path_FGREP+:} false; then :
6395 $as_echo_n "(cached) " >&6
6397 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6398 then ac_cv_path_FGREP="$GREP -F"
6400 if test -z "$FGREP"; then
6401 ac_path_FGREP_found=false
6402 # Loop through the user's path and test for each of PROGNAME-LIST
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6407 test -z "$as_dir" && as_dir=.
6408 for ac_prog in fgrep; do
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6411 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6412 # Check for GNU ac_path_FGREP and select it if it is found.
6413 # Check for GNU $ac_path_FGREP
6414 case `"$ac_path_FGREP" --version 2>&1` in
6416 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6419 $as_echo_n 0123456789 >"conftest.in"
6422 cat "conftest.in" "conftest.in" >"conftest.tmp"
6423 mv "conftest.tmp" "conftest.in"
6424 cp "conftest.in" "conftest.nl"
6425 $as_echo 'FGREP' >> "conftest.nl"
6426 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6428 as_fn_arith $ac_count + 1 && ac_count=$as_val
6429 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6430 # Best one so far, save it but keep looking for a better one
6431 ac_cv_path_FGREP="$ac_path_FGREP"
6432 ac_path_FGREP_max=$ac_count
6434 # 10*(2^10) chars as input seems more than enough
6435 test $ac_count -gt 10 && break
6437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6440 $ac_path_FGREP_found && break 3
6445 if test -z "$ac_cv_path_FGREP"; then
6446 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6449 ac_cv_path_FGREP=$FGREP
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6455 $as_echo "$ac_cv_path_FGREP" >&6; }
6456 FGREP="$ac_cv_path_FGREP"
6459 test -z "$GREP" && GREP=grep
6479 # Check whether --with-gnu-ld was given.
6480 if test "${with_gnu_ld+set}" = set; then :
6481 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6487 if test "$GCC" = yes; then
6488 # Check if gcc -print-prog-name=ld gives a path.
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6490 $as_echo_n "checking for ld used by $CC... " >&6; }
6493 # gcc leaves a trailing carriage return which upsets mingw
6494 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6496 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6499 # Accept absolute paths.
6501 re_direlt='/[^/][^/]*/\.\./'
6502 # Canonicalize the pathname of ld
6503 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6504 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6505 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6507 test -z "$LD" && LD="$ac_prog"
6510 # If it fails, then pretend we aren't using GCC.
6514 # If it is relative, then search for the first ld in PATH.
6518 elif test "$with_gnu_ld" = yes; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6520 $as_echo_n "checking for GNU ld... " >&6; }
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6523 $as_echo_n "checking for non-GNU ld... " >&6; }
6525 if ${lt_cv_path_LD+:} false; then :
6526 $as_echo_n "(cached) " >&6
6528 if test -z "$LD"; then
6529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6530 for ac_dir in $PATH; do
6532 test -z "$ac_dir" && ac_dir=.
6533 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6534 lt_cv_path_LD="$ac_dir/$ac_prog"
6535 # Check to see if the program is GNU ld. I'd rather use --version,
6536 # but apparently some variants of GNU ld only accept -v.
6537 # Break only if it was the GNU/non-GNU ld that we prefer.
6538 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6539 *GNU* | *'with BFD'*)
6540 test "$with_gnu_ld" != no && break
6543 test "$with_gnu_ld" != yes && break
6550 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6555 if test -n "$LD"; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6557 $as_echo "$LD" >&6; }
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 $as_echo "no" >&6; }
6562 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6564 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6565 if ${lt_cv_prog_gnu_ld+:} false; then :
6566 $as_echo_n "(cached) " >&6
6568 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6569 case `$LD -v 2>&1 </dev/null` in
6570 *GNU* | *'with BFD'*)
6571 lt_cv_prog_gnu_ld=yes
6574 lt_cv_prog_gnu_ld=no
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6579 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6580 with_gnu_ld=$lt_cv_prog_gnu_ld
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6591 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6592 if ${lt_cv_path_NM+:} false; then :
6593 $as_echo_n "(cached) " >&6
6595 if test -n "$NM"; then
6596 # Let the user override the test.
6599 lt_nm_to_check="${ac_tool_prefix}nm"
6600 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6601 lt_nm_to_check="$lt_nm_to_check nm"
6603 for lt_tmp_nm in $lt_nm_to_check; do
6604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6605 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6607 test -z "$ac_dir" && ac_dir=.
6608 tmp_nm="$ac_dir/$lt_tmp_nm"
6609 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6610 # Check to see if the nm accepts a BSD-compat flag.
6611 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6612 # nm: unknown option "B" ignored
6613 # Tru64's nm complains that /dev/null is an invalid object file
6614 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6615 */dev/null* | *'Invalid file or object type'*)
6616 lt_cv_path_NM="$tmp_nm -B"
6620 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6622 lt_cv_path_NM="$tmp_nm -p"
6626 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6627 continue # so that we can try to find one that supports BSD flags
6636 : ${lt_cv_path_NM=no}
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6640 $as_echo "$lt_cv_path_NM" >&6; }
6641 if test "$lt_cv_path_NM" != "no"; then
6644 # Didn't find any BSD compatible name lister, look for dumpbin.
6645 if test -n "$DUMPBIN"; then :
6646 # Let the user override the test.
6648 if test -n "$ac_tool_prefix"; then
6649 for ac_prog in dumpbin "link -dump"
6651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_DUMPBIN+:} false; then :
6656 $as_echo_n "(cached) " >&6
6658 if test -n "$DUMPBIN"; then
6659 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6668 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 DUMPBIN=$ac_cv_prog_DUMPBIN
6679 if test -n "$DUMPBIN"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6681 $as_echo "$DUMPBIN" >&6; }
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6688 test -n "$DUMPBIN" && break
6691 if test -z "$DUMPBIN"; then
6692 ac_ct_DUMPBIN=$DUMPBIN
6693 for ac_prog in dumpbin "link -dump"
6695 # Extract the first word of "$ac_prog", so it can be a program name with args.
6696 set dummy $ac_prog; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6700 $as_echo_n "(cached) " >&6
6702 if test -n "$ac_ct_DUMPBIN"; then
6703 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6723 if test -n "$ac_ct_DUMPBIN"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6725 $as_echo "$ac_ct_DUMPBIN" >&6; }
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6732 test -n "$ac_ct_DUMPBIN" && break
6735 if test "x$ac_ct_DUMPBIN" = x; then
6738 case $cross_compiling:$ac_tool_warned in
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742 ac_tool_warned=yes ;;
6744 DUMPBIN=$ac_ct_DUMPBIN
6748 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6750 DUMPBIN="$DUMPBIN -symbols"
6758 if test "$DUMPBIN" != ":"; then
6762 test -z "$NM" && NM=nm
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6770 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6771 if ${lt_cv_nm_interface+:} false; then :
6772 $as_echo_n "(cached) " >&6
6774 lt_cv_nm_interface="BSD nm"
6775 echo "int some_variable = 0;" > conftest.$ac_ext
6776 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6777 (eval "$ac_compile" 2>conftest.err)
6778 cat conftest.err >&5
6779 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6780 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6781 cat conftest.err >&5
6782 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6783 cat conftest.out >&5
6784 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6785 lt_cv_nm_interface="MS dumpbin"
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6790 $as_echo "$lt_cv_nm_interface" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6793 $as_echo_n "checking whether ln -s works... " >&6; }
6795 if test "$LN_S" = "ln -s"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6797 $as_echo "yes" >&6; }
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6800 $as_echo "no, using $LN_S" >&6; }
6803 # find the maximum length of command line arguments
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6805 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6806 if ${lt_cv_sys_max_cmd_len+:} false; then :
6807 $as_echo_n "(cached) " >&6
6814 # On DJGPP, this test can blow up pretty badly due to problems in libc
6815 # (any single argument exceeding 2000 bytes causes a buffer overrun
6816 # during glob expansion). Even if it were fixed, the result of this
6817 # check would be larger than it should be.
6818 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6822 # Under GNU Hurd, this test is not required because there is
6823 # no limit to the length of command line arguments.
6824 # Libtool will interpret -1 as no limit whatsoever
6825 lt_cv_sys_max_cmd_len=-1;
6828 cygwin* | mingw* | cegcc*)
6829 # On Win9x/ME, this test blows up -- it succeeds, but takes
6830 # about 5 minutes as the teststring grows exponentially.
6831 # Worse, since 9x/ME are not pre-emptively multitasking,
6832 # you end up with a "frozen" computer, even though with patience
6833 # the test eventually succeeds (with a max line length of 256k).
6834 # Instead, let's just punt: use the minimum linelength reported by
6835 # all of the supported platforms: 8192 (on NT/2K/XP).
6836 lt_cv_sys_max_cmd_len=8192;
6840 # On MiNT this can take a long time and run out of memory.
6841 lt_cv_sys_max_cmd_len=8192;
6845 # On AmigaOS with pdksh, this test takes hours, literally.
6846 # So we just punt and use a minimum line length of 8192.
6847 lt_cv_sys_max_cmd_len=8192;
6850 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6851 # This has been around since 386BSD, at least. Likely further.
6852 if test -x /sbin/sysctl; then
6853 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6854 elif test -x /usr/sbin/sysctl; then
6855 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6857 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6859 # And add a safety zone
6860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6865 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6866 lt_cv_sys_max_cmd_len=196608
6870 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6871 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6872 # nice to cause kernel panics so lets avoid the loop below.
6873 # First set a reasonable default.
6874 lt_cv_sys_max_cmd_len=16384
6876 if test -x /sbin/sysconfig; then
6877 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6878 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6883 lt_cv_sys_max_cmd_len=102400
6885 sysv5* | sco5v6* | sysv4.2uw2*)
6886 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6887 if test -n "$kargmax"; then
6888 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6890 lt_cv_sys_max_cmd_len=32768
6894 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6895 if test -n "$lt_cv_sys_max_cmd_len"; then
6896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6899 # Make teststring a little bigger before we do anything with it.
6900 # a 1K string should be a reasonable start.
6901 for i in 1 2 3 4 5 6 7 8 ; do
6902 teststring=$teststring$teststring
6904 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6905 # If test is not a shell built-in, we'll probably end up computing a
6906 # maximum length that is only half of the actual maximum length, but
6908 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6909 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6910 test $i != 17 # 1/2 MB should be enough
6913 teststring=$teststring$teststring
6915 # Only check the string length outside the loop.
6916 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6918 # Add a significant safety factor because C++ compilers can tack on
6919 # massive amounts of additional arguments before passing them to the
6920 # linker. It appears as though 1/2 is a usable value.
6921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6928 if test -n $lt_cv_sys_max_cmd_len ; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6930 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6933 $as_echo "none" >&6; }
6935 max_cmd_len=$lt_cv_sys_max_cmd_len
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6947 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6948 # Try some XSI features
6951 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6953 && eval 'test $(( 1 + 1 )) -eq 2 \
6954 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6957 $as_echo "$xsi_shell" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6961 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6963 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6965 && lt_shell_append=yes
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6967 $as_echo "$lt_shell_append" >&6; }
6970 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6980 # test EBCDIC or ASCII
6981 case `echo X|tr X '\101'` in
6982 A) # ASCII based system
6983 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6984 lt_SP2NL='tr \040 \012'
6985 lt_NL2SP='tr \015\012 \040\040'
6987 *) # EBCDIC based system
6988 lt_SP2NL='tr \100 \n'
6989 lt_NL2SP='tr \r\n \100\100'
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7002 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7003 if ${lt_cv_to_host_file_cmd+:} false; then :
7004 $as_echo_n "(cached) " >&6
7009 *-*-mingw* ) # actually msys
7010 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7013 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7015 * ) # otherwise, assume *nix
7016 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7022 *-*-mingw* ) # actually msys
7023 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7026 lt_cv_to_host_file_cmd=func_convert_file_noop
7028 * ) # otherwise, assume *nix
7029 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7033 * ) # unhandled hosts (and "normal" native builds)
7034 lt_cv_to_host_file_cmd=func_convert_file_noop
7040 to_host_file_cmd=$lt_cv_to_host_file_cmd
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7042 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7049 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7050 if ${lt_cv_to_tool_file_cmd+:} false; then :
7051 $as_echo_n "(cached) " >&6
7053 #assume ordinary cross tools, or native build.
7054 lt_cv_to_tool_file_cmd=func_convert_file_noop
7058 *-*-mingw* ) # actually msys
7059 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7067 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7069 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7076 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7077 if ${lt_cv_ld_reload_flag+:} false; then :
7078 $as_echo_n "(cached) " >&6
7080 lt_cv_ld_reload_flag='-r'
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7083 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7084 reload_flag=$lt_cv_ld_reload_flag
7085 case $reload_flag in
7087 *) reload_flag=" $reload_flag" ;;
7089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7091 cygwin* | mingw* | pw32* | cegcc*)
7092 if test "$GCC" != yes; then
7097 if test "$GCC" = yes; then
7098 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7100 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7113 if test -n "$ac_tool_prefix"; then
7114 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7115 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_prog_OBJDUMP+:} false; then :
7119 $as_echo_n "(cached) " >&6
7121 if test -n "$OBJDUMP"; then
7122 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 OBJDUMP=$ac_cv_prog_OBJDUMP
7142 if test -n "$OBJDUMP"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7144 $as_echo "$OBJDUMP" >&6; }
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7152 if test -z "$ac_cv_prog_OBJDUMP"; then
7153 ac_ct_OBJDUMP=$OBJDUMP
7154 # Extract the first word of "objdump", so it can be a program name with args.
7155 set dummy objdump; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7159 $as_echo_n "(cached) " >&6
7161 if test -n "$ac_ct_OBJDUMP"; then
7162 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7171 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7182 if test -n "$ac_ct_OBJDUMP"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7184 $as_echo "$ac_ct_OBJDUMP" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7190 if test "x$ac_ct_OBJDUMP" = x; then
7193 case $cross_compiling:$ac_tool_warned in
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7197 ac_tool_warned=yes ;;
7199 OBJDUMP=$ac_ct_OBJDUMP
7202 OBJDUMP="$ac_cv_prog_OBJDUMP"
7205 test -z "$OBJDUMP" && OBJDUMP=objdump
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7216 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7217 if ${lt_cv_deplibs_check_method+:} false; then :
7218 $as_echo_n "(cached) " >&6
7220 lt_cv_file_magic_cmd='$MAGIC_CMD'
7221 lt_cv_file_magic_test_file=
7222 lt_cv_deplibs_check_method='unknown'
7223 # Need to set the preceding variable on all platforms that support
7224 # interlibrary dependencies.
7225 # 'none' -- dependencies not supported.
7226 # `unknown' -- same as none, but documents that we really don't know.
7227 # 'pass_all' -- all dependencies passed with no checks.
7228 # 'test_compile' -- check by making test program.
7229 # 'file_magic [[regex]]' -- check by looking for files in library path
7230 # which responds to the $file_magic_cmd with a given extended regex.
7231 # If you have `file' or equivalent on your system and you're not sure
7232 # whether `pass_all' will *always* work, you probably want this one.
7236 lt_cv_deplibs_check_method=pass_all
7240 lt_cv_deplibs_check_method=pass_all
7244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7245 lt_cv_file_magic_cmd='/usr/bin/file -L'
7246 lt_cv_file_magic_test_file=/shlib/libc.so
7250 # func_win32_libid is a shell function defined in ltmain.sh
7251 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7252 lt_cv_file_magic_cmd='func_win32_libid'
7256 # Base MSYS/MinGW do not provide the 'file' command needed by
7257 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7258 # unless we find 'file', for example because we are cross-compiling.
7259 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7260 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7261 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7262 lt_cv_file_magic_cmd='func_win32_libid'
7264 # Keep this pattern in sync with the one in func_win32_libid.
7265 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7266 lt_cv_file_magic_cmd='$OBJDUMP -f'
7271 # use the weaker test based on 'objdump'. See mingw*.
7272 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7273 lt_cv_file_magic_cmd='$OBJDUMP -f'
7276 darwin* | rhapsody*)
7277 lt_cv_deplibs_check_method=pass_all
7280 freebsd* | dragonfly*)
7281 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7284 # Not sure whether the presence of OpenBSD here was a mistake.
7285 # Let's accept both of them until this is cleared up.
7286 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7287 lt_cv_file_magic_cmd=/usr/bin/file
7288 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7292 lt_cv_deplibs_check_method=pass_all
7297 lt_cv_deplibs_check_method=pass_all
7301 lt_cv_deplibs_check_method=pass_all
7304 hpux10.20* | hpux11*)
7305 lt_cv_file_magic_cmd=/usr/bin/file
7308 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7309 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7312 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7313 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7316 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7317 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7323 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7327 irix5* | irix6* | nonstopux*)
7329 *-32|*"-32 ") libmagic=32-bit;;
7330 *-n32|*"-n32 ") libmagic=N32;;
7331 *-64|*"-64 ") libmagic=64-bit;;
7332 *) libmagic=never-match;;
7334 lt_cv_deplibs_check_method=pass_all
7337 # This must be Linux ELF.
7338 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7339 lt_cv_deplibs_check_method=pass_all
7343 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7351 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7352 lt_cv_file_magic_cmd=/usr/bin/file
7353 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7357 lt_cv_deplibs_check_method=pass_all
7361 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7368 osf3* | osf4* | osf5*)
7369 lt_cv_deplibs_check_method=pass_all
7373 lt_cv_deplibs_check_method=pass_all
7377 lt_cv_deplibs_check_method=pass_all
7380 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7381 lt_cv_deplibs_check_method=pass_all
7385 case $host_vendor in
7387 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]'
7388 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7391 lt_cv_deplibs_check_method=pass_all
7394 lt_cv_file_magic_cmd='/bin/file'
7395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7398 lt_cv_file_magic_cmd='/bin/file'
7399 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7400 lt_cv_file_magic_test_file=/lib/libc.so
7403 lt_cv_deplibs_check_method=pass_all
7406 lt_cv_deplibs_check_method=pass_all
7412 lt_cv_deplibs_check_method=pass_all
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7418 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7422 if test "$build" = "$host"; then
7425 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7428 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7434 file_magic_cmd=$lt_cv_file_magic_cmd
7435 deplibs_check_method=$lt_cv_deplibs_check_method
7436 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7459 if test -n "$ac_tool_prefix"; then
7460 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7461 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_DLLTOOL+:} false; then :
7465 $as_echo_n "(cached) " >&6
7467 if test -n "$DLLTOOL"; then
7468 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 DLLTOOL=$ac_cv_prog_DLLTOOL
7488 if test -n "$DLLTOOL"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7490 $as_echo "$DLLTOOL" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7498 if test -z "$ac_cv_prog_DLLTOOL"; then
7499 ac_ct_DLLTOOL=$DLLTOOL
7500 # Extract the first word of "dlltool", so it can be a program name with args.
7501 set dummy dlltool; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7505 $as_echo_n "(cached) " >&6
7507 if test -n "$ac_ct_DLLTOOL"; then
7508 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7528 if test -n "$ac_ct_DLLTOOL"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7530 $as_echo "$ac_ct_DLLTOOL" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7536 if test "x$ac_ct_DLLTOOL" = x; then
7539 case $cross_compiling:$ac_tool_warned in
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7543 ac_tool_warned=yes ;;
7545 DLLTOOL=$ac_ct_DLLTOOL
7548 DLLTOOL="$ac_cv_prog_DLLTOOL"
7551 test -z "$DLLTOOL" && DLLTOOL=dlltool
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7563 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7564 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7565 $as_echo_n "(cached) " >&6
7567 lt_cv_sharedlib_from_linklib_cmd='unknown'
7570 cygwin* | mingw* | pw32* | cegcc*)
7571 # two different shell functions defined in ltmain.sh
7572 # decide which to use based on capabilities of $DLLTOOL
7573 case `$DLLTOOL --help 2>&1` in
7574 *--identify-strict*)
7575 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7578 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7583 # fallback: assume linklib IS sharedlib
7584 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7590 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7591 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7592 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7600 if test -n "$ac_tool_prefix"; then
7603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if ${ac_cv_prog_AR+:} false; then :
7608 $as_echo_n "(cached) " >&6
7610 if test -n "$AR"; then
7611 ac_cv_prog_AR="$AR" # Let the user override the test.
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 if test -n "$AR"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7633 $as_echo "$AR" >&6; }
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7640 test -n "$AR" && break
7643 if test -z "$AR"; then
7647 # Extract the first word of "$ac_prog", so it can be a program name with args.
7648 set dummy $ac_prog; ac_word=$2
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650 $as_echo_n "checking for $ac_word... " >&6; }
7651 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7652 $as_echo_n "(cached) " >&6
7654 if test -n "$ac_ct_AR"; then
7655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7664 ac_cv_prog_ac_ct_AR="$ac_prog"
7665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7675 if test -n "$ac_ct_AR"; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7677 $as_echo "$ac_ct_AR" >&6; }
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7684 test -n "$ac_ct_AR" && break
7687 if test "x$ac_ct_AR" = x; then
7690 case $cross_compiling:$ac_tool_warned in
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7694 ac_tool_warned=yes ;;
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7714 $as_echo_n "checking for archiver @FILE support... " >&6; }
7715 if ${lt_cv_ar_at_file+:} false; then :
7716 $as_echo_n "(cached) " >&6
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7730 if ac_fn_c_try_compile "$LINENO"; then :
7731 echo conftest.$ac_objext > conftest.lst
7732 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7734 (eval $lt_ar_try) 2>&5
7736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7737 test $ac_status = 0; }
7738 if test "$ac_status" -eq 0; then
7739 # Ensure the archiver fails upon bogus file names.
7740 rm -f conftest.$ac_objext libconftest.a
7741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7742 (eval $lt_ar_try) 2>&5
7744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745 test $ac_status = 0; }
7746 if test "$ac_status" -ne 0; then
7750 rm -f conftest.* libconftest.a
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7757 $as_echo "$lt_cv_ar_at_file" >&6; }
7759 if test "x$lt_cv_ar_at_file" = xno; then
7762 archiver_list_spec=$lt_cv_ar_at_file
7771 if test -n "$ac_tool_prefix"; then
7772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7773 set dummy ${ac_tool_prefix}strip; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if ${ac_cv_prog_STRIP+:} false; then :
7777 $as_echo_n "(cached) " >&6
7779 if test -n "$STRIP"; then
7780 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 STRIP=$ac_cv_prog_STRIP
7800 if test -n "$STRIP"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7802 $as_echo "$STRIP" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7810 if test -z "$ac_cv_prog_STRIP"; then
7812 # Extract the first word of "strip", so it can be a program name with args.
7813 set dummy strip; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7817 $as_echo_n "(cached) " >&6
7819 if test -n "$ac_ct_STRIP"; then
7820 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829 ac_cv_prog_ac_ct_STRIP="strip"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7840 if test -n "$ac_ct_STRIP"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7842 $as_echo "$ac_ct_STRIP" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7848 if test "x$ac_ct_STRIP" = x; then
7851 case $cross_compiling:$ac_tool_warned in
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7855 ac_tool_warned=yes ;;
7860 STRIP="$ac_cv_prog_STRIP"
7863 test -z "$STRIP" && STRIP=:
7870 if test -n "$ac_tool_prefix"; then
7871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if ${ac_cv_prog_RANLIB+:} false; then :
7876 $as_echo_n "(cached) " >&6
7878 if test -n "$RANLIB"; then
7879 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7888 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 RANLIB=$ac_cv_prog_RANLIB
7899 if test -n "$RANLIB"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7901 $as_echo "$RANLIB" >&6; }
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7909 if test -z "$ac_cv_prog_RANLIB"; then
7910 ac_ct_RANLIB=$RANLIB
7911 # Extract the first word of "ranlib", so it can be a program name with args.
7912 set dummy ranlib; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7916 $as_echo_n "(cached) " >&6
7918 if test -n "$ac_ct_RANLIB"; then
7919 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928 ac_cv_prog_ac_ct_RANLIB="ranlib"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7939 if test -n "$ac_ct_RANLIB"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7941 $as_echo "$ac_ct_RANLIB" >&6; }
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7947 if test "x$ac_ct_RANLIB" = x; then
7950 case $cross_compiling:$ac_tool_warned in
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7954 ac_tool_warned=yes ;;
7956 RANLIB=$ac_ct_RANLIB
7959 RANLIB="$ac_cv_prog_RANLIB"
7962 test -z "$RANLIB" && RANLIB=:
7969 # Determine commands to create old-style static archives.
7970 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7971 old_postinstall_cmds='chmod 644 $oldlib'
7972 old_postuninstall_cmds=
7974 if test -n "$RANLIB"; then
7977 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7980 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7983 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7988 lock_old_archive_extraction=yes ;;
7990 lock_old_archive_extraction=no ;;
8013 for ac_prog in gawk mawk nawk awk
8015 # Extract the first word of "$ac_prog", so it can be a program name with args.
8016 set dummy $ac_prog; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if ${ac_cv_prog_AWK+:} false; then :
8020 $as_echo_n "(cached) " >&6
8022 if test -n "$AWK"; then
8023 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_prog_AWK="$ac_prog"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8043 if test -n "$AWK"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8045 $as_echo "$AWK" >&6; }
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8052 test -n "$AWK" && break
8073 # If no C compiler was specified, use CC.
8076 # If no C compiler flags were specified, use CFLAGS.
8077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8079 # Allow CC to be a program name with arguments.
8083 # Check for command to grab the raw symbol name followed by C symbol from nm.
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8085 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8086 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8087 $as_echo_n "(cached) " >&6
8090 # These are sane defaults that work on at least a few old systems.
8091 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8093 # Character class describing NM global symbol codes.
8094 symcode='[BCDEGRST]'
8096 # Regexp to match symbols that can be accessed directly from C.
8097 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8099 # Define system-specific variables.
8104 cygwin* | mingw* | pw32* | cegcc*)
8105 symcode='[ABCDGISTW]'
8108 if test "$host_cpu" = ia64; then
8109 symcode='[ABCDEGRST]'
8113 symcode='[BCDEGRST]'
8116 symcode='[BCDEGQRST]'
8127 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8135 # If we're using GNU nm, then use its standard symbol codes.
8136 case `$NM -V 2>&1` in
8137 *GNU* | *'with BFD'*)
8138 symcode='[ABCDGIRSTW]' ;;
8141 # Transform an extracted symbol line into a proper C declaration.
8142 # Some systems (esp. on ia64) link data and code symbols differently,
8143 # so use this general approach.
8144 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8146 # Transform an extracted symbol line into symbol name and symbol address
8147 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8148 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'"
8150 # Handle CRLF in mingw tool chain
8154 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8158 # Try without a prefix underscore, then with it.
8159 for ac_symprfx in "" "_"; do
8161 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8162 symxfrm="\\1 $ac_symprfx\\2 \\2"
8164 # Write the raw and C identifiers.
8165 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8166 # Fake it for dumpbin and say T for any non-static function
8167 # and D for any global variable.
8168 # Also find C++ and __fastcall symbols from MSVC++,
8169 # which start with @ or ?.
8170 lt_cv_sys_global_symbol_pipe="$AWK '"\
8171 " {last_section=section; section=\$ 3};"\
8172 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8173 " \$ 0!~/External *\|/{next};"\
8174 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8175 " {if(hide[section]) next};"\
8176 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8177 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8178 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8179 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8180 " ' prfx=^$ac_symprfx"
8182 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8184 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8186 # Check to see that the pipe works correctly.
8190 cat > conftest.$ac_ext <<_LT_EOF
8195 void nm_test_func(void);
8196 void nm_test_func(void){}
8200 int main(){nm_test_var='a';nm_test_func();return(0);}
8203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8204 (eval $ac_compile) 2>&5
8206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8207 test $ac_status = 0; }; then
8208 # Now try to grab the symbols.
8210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8211 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8214 test $ac_status = 0; } && test -s "$nlist"; then
8215 # Try sorting and uniquifying the output.
8216 if sort "$nlist" | uniq > "$nlist"T; then
8217 mv -f "$nlist"T "$nlist"
8222 # Make sure that we snagged all the symbols we need.
8223 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8224 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8225 cat <<_LT_EOF > conftest.$ac_ext
8226 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8227 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8228 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8229 relocations are performed -- see ld's documentation on pseudo-relocs. */
8230 # define LT_DLSYM_CONST
8231 #elif defined(__osf__)
8232 /* This system does not cope well with relocations in const data. */
8233 # define LT_DLSYM_CONST
8235 # define LT_DLSYM_CONST const
8243 # Now generate the symbol file.
8244 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8246 cat <<_LT_EOF >> conftest.$ac_ext
8248 /* The mapping between symbol names and symbols. */
8249 LT_DLSYM_CONST struct {
8253 lt__PROGRAM__LTX_preloaded_symbols[] =
8255 { "@PROGRAM@", (void *) 0 },
8257 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8258 cat <<\_LT_EOF >> conftest.$ac_ext
8262 /* This works around a problem in FreeBSD linker */
8263 #ifdef FREEBSD_WORKAROUND
8264 static const void *lt_preloaded_setup() {
8265 return lt__PROGRAM__LTX_preloaded_symbols;
8273 # Now try linking the two files.
8274 mv conftest.$ac_objext conftstm.$ac_objext
8275 lt_globsym_save_LIBS=$LIBS
8276 lt_globsym_save_CFLAGS=$CFLAGS
8277 LIBS="conftstm.$ac_objext"
8278 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8280 (eval $ac_link) 2>&5
8282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8283 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8286 LIBS=$lt_globsym_save_LIBS
8287 CFLAGS=$lt_globsym_save_CFLAGS
8289 echo "cannot find nm_test_func in $nlist" >&5
8292 echo "cannot find nm_test_var in $nlist" >&5
8295 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8298 echo "$progname: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8301 rm -rf conftest* conftst*
8303 # Do not use the global_symbol_pipe unless it works.
8304 if test "$pipe_works" = yes; then
8307 lt_cv_sys_global_symbol_pipe=
8313 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8314 lt_cv_sys_global_symbol_to_cdecl=
8316 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8318 $as_echo "failed" >&6; }
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8321 $as_echo "ok" >&6; }
8324 # Response file support.
8325 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8326 nm_file_list_spec='@'
8327 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8328 nm_file_list_spec='@'
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8358 $as_echo_n "checking for sysroot... " >&6; }
8360 # Check whether --with-sysroot was given.
8361 if test "${with_sysroot+set}" = set; then :
8362 withval=$with_sysroot;
8369 case ${with_sysroot} in #(
8371 if test "$GCC" = yes; then
8372 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8376 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8382 $as_echo "${with_sysroot}" >&6; }
8383 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8388 $as_echo "${lt_sysroot:-no}" >&6; }
8394 # Check whether --enable-libtool-lock was given.
8395 if test "${enable_libtool_lock+set}" = set; then :
8396 enableval=$enable_libtool_lock;
8399 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8401 # Some flags need to be propagated to the compiler or linker for good
8405 # Find out which ABI we are using.
8406 echo 'int i;' > conftest.$ac_ext
8407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8408 (eval $ac_compile) 2>&5
8410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8411 test $ac_status = 0; }; then
8412 case `/usr/bin/file conftest.$ac_objext` in
8424 # Find out which ABI we are using.
8425 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8427 (eval $ac_compile) 2>&5
8429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8430 test $ac_status = 0; }; then
8431 if test "$lt_cv_prog_gnu_ld" = yes; then
8432 case `/usr/bin/file conftest.$ac_objext` in
8434 LD="${LD-ld} -melf32bsmip"
8437 LD="${LD-ld} -melf32bmipn32"
8440 LD="${LD-ld} -melf64bmip"
8444 case `/usr/bin/file conftest.$ac_objext` in
8460 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8461 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8462 # Find out which ABI we are using.
8463 echo 'int i;' > conftest.$ac_ext
8464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8465 (eval $ac_compile) 2>&5
8467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8468 test $ac_status = 0; }; then
8469 case `/usr/bin/file conftest.o` in
8472 x86_64-*kfreebsd*-gnu)
8473 LD="${LD-ld} -m elf_i386_fbsd"
8476 LD="${LD-ld} -m elf_i386"
8478 ppc64-*linux*|powerpc64-*linux*)
8479 LD="${LD-ld} -m elf32ppclinux"
8482 LD="${LD-ld} -m elf_s390"
8485 LD="${LD-ld} -m elf32_sparc"
8491 x86_64-*kfreebsd*-gnu)
8492 LD="${LD-ld} -m elf_x86_64_fbsd"
8495 LD="${LD-ld} -m elf_x86_64"
8497 ppc*-*linux*|powerpc*-*linux*)
8498 LD="${LD-ld} -m elf64ppc"
8500 s390*-*linux*|s390*-*tpf*)
8501 LD="${LD-ld} -m elf64_s390"
8504 LD="${LD-ld} -m elf64_sparc"
8514 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8515 SAVE_CFLAGS="$CFLAGS"
8516 CFLAGS="$CFLAGS -belf"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8518 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8519 if ${lt_cv_cc_needs_belf+:} false; then :
8520 $as_echo_n "(cached) " >&6
8523 ac_cpp='$CPP $CPPFLAGS'
8524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8539 if ac_fn_c_try_link "$LINENO"; then :
8540 lt_cv_cc_needs_belf=yes
8542 lt_cv_cc_needs_belf=no
8544 rm -f core conftest.err conftest.$ac_objext \
8545 conftest$ac_exeext conftest.$ac_ext
8547 ac_cpp='$CPP $CPPFLAGS'
8548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8554 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8555 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8556 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8557 CFLAGS="$SAVE_CFLAGS"
8561 # Find out which ABI we are using.
8562 echo 'int i;' > conftest.$ac_ext
8563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8564 (eval $ac_compile) 2>&5
8566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8567 test $ac_status = 0; }; then
8568 case `/usr/bin/file conftest.o` in
8570 case $lt_cv_prog_gnu_ld in
8571 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8573 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8585 need_locks="$enable_libtool_lock"
8587 if test -n "$ac_tool_prefix"; then
8588 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8589 set dummy ${ac_tool_prefix}mt; ac_word=$2
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591 $as_echo_n "checking for $ac_word... " >&6; }
8592 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8593 $as_echo_n "(cached) " >&6
8595 if test -n "$MANIFEST_TOOL"; then
8596 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 test -z "$as_dir" && as_dir=.
8603 for ac_exec_ext in '' $ac_executable_extensions; do
8604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8605 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8616 if test -n "$MANIFEST_TOOL"; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8618 $as_echo "$MANIFEST_TOOL" >&6; }
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8626 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8627 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8628 # Extract the first word of "mt", so it can be a program name with args.
8629 set dummy mt; ac_word=$2
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8631 $as_echo_n "checking for $ac_word... " >&6; }
8632 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8633 $as_echo_n "(cached) " >&6
8635 if test -n "$ac_ct_MANIFEST_TOOL"; then
8636 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 test -z "$as_dir" && as_dir=.
8643 for ac_exec_ext in '' $ac_executable_extensions; do
8644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8645 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8656 if test -n "$ac_ct_MANIFEST_TOOL"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8658 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8664 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8667 case $cross_compiling:$ac_tool_warned in
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8671 ac_tool_warned=yes ;;
8673 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8676 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8679 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8681 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8682 if ${lt_cv_path_mainfest_tool+:} false; then :
8683 $as_echo_n "(cached) " >&6
8685 lt_cv_path_mainfest_tool=no
8686 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8687 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8688 cat conftest.err >&5
8689 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8690 lt_cv_path_mainfest_tool=yes
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8695 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8696 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8706 rhapsody* | darwin*)
8707 if test -n "$ac_tool_prefix"; then
8708 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8709 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8711 $as_echo_n "checking for $ac_word... " >&6; }
8712 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8713 $as_echo_n "(cached) " >&6
8715 if test -n "$DSYMUTIL"; then
8716 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8722 test -z "$as_dir" && as_dir=.
8723 for ac_exec_ext in '' $ac_executable_extensions; do
8724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8725 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8735 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8736 if test -n "$DSYMUTIL"; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8738 $as_echo "$DSYMUTIL" >&6; }
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741 $as_echo "no" >&6; }
8746 if test -z "$ac_cv_prog_DSYMUTIL"; then
8747 ac_ct_DSYMUTIL=$DSYMUTIL
8748 # Extract the first word of "dsymutil", so it can be a program name with args.
8749 set dummy dsymutil; ac_word=$2
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751 $as_echo_n "checking for $ac_word... " >&6; }
8752 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8753 $as_echo_n "(cached) " >&6
8755 if test -n "$ac_ct_DSYMUTIL"; then
8756 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8765 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8776 if test -n "$ac_ct_DSYMUTIL"; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8778 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8784 if test "x$ac_ct_DSYMUTIL" = x; then
8787 case $cross_compiling:$ac_tool_warned in
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8791 ac_tool_warned=yes ;;
8793 DSYMUTIL=$ac_ct_DSYMUTIL
8796 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8799 if test -n "$ac_tool_prefix"; then
8800 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8801 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if ${ac_cv_prog_NMEDIT+:} false; then :
8805 $as_echo_n "(cached) " >&6
8807 if test -n "$NMEDIT"; then
8808 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8817 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827 NMEDIT=$ac_cv_prog_NMEDIT
8828 if test -n "$NMEDIT"; then
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8830 $as_echo "$NMEDIT" >&6; }
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8838 if test -z "$ac_cv_prog_NMEDIT"; then
8839 ac_ct_NMEDIT=$NMEDIT
8840 # Extract the first word of "nmedit", so it can be a program name with args.
8841 set dummy nmedit; ac_word=$2
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843 $as_echo_n "checking for $ac_word... " >&6; }
8844 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8845 $as_echo_n "(cached) " >&6
8847 if test -n "$ac_ct_NMEDIT"; then
8848 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854 test -z "$as_dir" && as_dir=.
8855 for ac_exec_ext in '' $ac_executable_extensions; do
8856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8857 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8868 if test -n "$ac_ct_NMEDIT"; then
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8870 $as_echo "$ac_ct_NMEDIT" >&6; }
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8876 if test "x$ac_ct_NMEDIT" = x; then
8879 case $cross_compiling:$ac_tool_warned in
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8883 ac_tool_warned=yes ;;
8885 NMEDIT=$ac_ct_NMEDIT
8888 NMEDIT="$ac_cv_prog_NMEDIT"
8891 if test -n "$ac_tool_prefix"; then
8892 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8893 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895 $as_echo_n "checking for $ac_word... " >&6; }
8896 if ${ac_cv_prog_LIPO+:} false; then :
8897 $as_echo_n "(cached) " >&6
8899 if test -n "$LIPO"; then
8900 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 test -z "$as_dir" && as_dir=.
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919 LIPO=$ac_cv_prog_LIPO
8920 if test -n "$LIPO"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8922 $as_echo "$LIPO" >&6; }
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8930 if test -z "$ac_cv_prog_LIPO"; then
8932 # Extract the first word of "lipo", so it can be a program name with args.
8933 set dummy lipo; ac_word=$2
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935 $as_echo_n "checking for $ac_word... " >&6; }
8936 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8937 $as_echo_n "(cached) " >&6
8939 if test -n "$ac_ct_LIPO"; then
8940 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 test -z "$as_dir" && as_dir=.
8947 for ac_exec_ext in '' $ac_executable_extensions; do
8948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8949 ac_cv_prog_ac_ct_LIPO="lipo"
8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8960 if test -n "$ac_ct_LIPO"; then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8962 $as_echo "$ac_ct_LIPO" >&6; }
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965 $as_echo "no" >&6; }
8968 if test "x$ac_ct_LIPO" = x; then
8971 case $cross_compiling:$ac_tool_warned in
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8975 ac_tool_warned=yes ;;
8980 LIPO="$ac_cv_prog_LIPO"
8983 if test -n "$ac_tool_prefix"; then
8984 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8985 set dummy ${ac_tool_prefix}otool; ac_word=$2
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8987 $as_echo_n "checking for $ac_word... " >&6; }
8988 if ${ac_cv_prog_OTOOL+:} false; then :
8989 $as_echo_n "(cached) " >&6
8991 if test -n "$OTOOL"; then
8992 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 test -z "$as_dir" && as_dir=.
8999 for ac_exec_ext in '' $ac_executable_extensions; do
9000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9001 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9011 OTOOL=$ac_cv_prog_OTOOL
9012 if test -n "$OTOOL"; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9014 $as_echo "$OTOOL" >&6; }
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9022 if test -z "$ac_cv_prog_OTOOL"; then
9024 # Extract the first word of "otool", so it can be a program name with args.
9025 set dummy otool; ac_word=$2
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9027 $as_echo_n "checking for $ac_word... " >&6; }
9028 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9029 $as_echo_n "(cached) " >&6
9031 if test -n "$ac_ct_OTOOL"; then
9032 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038 test -z "$as_dir" && as_dir=.
9039 for ac_exec_ext in '' $ac_executable_extensions; do
9040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9041 ac_cv_prog_ac_ct_OTOOL="otool"
9042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9051 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9052 if test -n "$ac_ct_OTOOL"; then
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9054 $as_echo "$ac_ct_OTOOL" >&6; }
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057 $as_echo "no" >&6; }
9060 if test "x$ac_ct_OTOOL" = x; then
9063 case $cross_compiling:$ac_tool_warned in
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9067 ac_tool_warned=yes ;;
9072 OTOOL="$ac_cv_prog_OTOOL"
9075 if test -n "$ac_tool_prefix"; then
9076 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9077 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079 $as_echo_n "checking for $ac_word... " >&6; }
9080 if ${ac_cv_prog_OTOOL64+:} false; then :
9081 $as_echo_n "(cached) " >&6
9083 if test -n "$OTOOL64"; then
9084 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9093 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9103 OTOOL64=$ac_cv_prog_OTOOL64
9104 if test -n "$OTOOL64"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9106 $as_echo "$OTOOL64" >&6; }
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109 $as_echo "no" >&6; }
9114 if test -z "$ac_cv_prog_OTOOL64"; then
9115 ac_ct_OTOOL64=$OTOOL64
9116 # Extract the first word of "otool64", so it can be a program name with args.
9117 set dummy otool64; ac_word=$2
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119 $as_echo_n "checking for $ac_word... " >&6; }
9120 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9121 $as_echo_n "(cached) " >&6
9123 if test -n "$ac_ct_OTOOL64"; then
9124 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9133 ac_cv_prog_ac_ct_OTOOL64="otool64"
9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9143 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9144 if test -n "$ac_ct_OTOOL64"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9146 $as_echo "$ac_ct_OTOOL64" >&6; }
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9152 if test "x$ac_ct_OTOOL64" = x; then
9155 case $cross_compiling:$ac_tool_warned in
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9159 ac_tool_warned=yes ;;
9161 OTOOL64=$ac_ct_OTOOL64
9164 OTOOL64="$ac_cv_prog_OTOOL64"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9194 $as_echo_n "checking for -single_module linker flag... " >&6; }
9195 if ${lt_cv_apple_cc_single_mod+:} false; then :
9196 $as_echo_n "(cached) " >&6
9198 lt_cv_apple_cc_single_mod=no
9199 if test -z "${LT_MULTI_MODULE}"; then
9200 # By default we will add the -single_module flag. You can override
9201 # by either setting the environment variable LT_MULTI_MODULE
9202 # non-empty at configure time, or by adding -multi_module to the
9204 rm -rf libconftest.dylib*
9205 echo "int foo(void){return 1;}" > conftest.c
9206 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9207 -dynamiclib -Wl,-single_module conftest.c" >&5
9208 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9209 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9211 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9212 lt_cv_apple_cc_single_mod=yes
9214 cat conftest.err >&5
9216 rm -rf libconftest.dylib*
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9221 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9223 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9224 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9225 $as_echo_n "(cached) " >&6
9227 lt_cv_ld_exported_symbols_list=no
9228 save_LDFLAGS=$LDFLAGS
9229 echo "_main" > conftest.sym
9230 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9242 if ac_fn_c_try_link "$LINENO"; then :
9243 lt_cv_ld_exported_symbols_list=yes
9245 lt_cv_ld_exported_symbols_list=no
9247 rm -f core conftest.err conftest.$ac_objext \
9248 conftest$ac_exeext conftest.$ac_ext
9249 LDFLAGS="$save_LDFLAGS"
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9253 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9255 $as_echo_n "checking for -force_load linker flag... " >&6; }
9256 if ${lt_cv_ld_force_load+:} false; then :
9257 $as_echo_n "(cached) " >&6
9259 lt_cv_ld_force_load=no
9260 cat > conftest.c << _LT_EOF
9261 int forced_loaded() { return 2;}
9263 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9264 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9265 echo "$AR cru libconftest.a conftest.o" >&5
9266 $AR cru libconftest.a conftest.o 2>&5
9267 echo "$RANLIB libconftest.a" >&5
9268 $RANLIB libconftest.a 2>&5
9269 cat > conftest.c << _LT_EOF
9270 int main() { return 0;}
9272 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9273 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9275 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9276 lt_cv_ld_force_load=yes
9278 cat conftest.err >&5
9280 rm -f conftest.err libconftest.a conftest conftest.c
9281 rm -rf conftest.dSYM
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9285 $as_echo "$lt_cv_ld_force_load" >&6; }
9287 rhapsody* | darwin1.[012])
9288 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9290 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9291 darwin*) # darwin 5.x on
9292 # if running on 10.5 or later, the deployment target defaults
9293 # to the OS version, if on x86, and 10.4, the deployment
9294 # target defaults to 10.4. Don't you love it?
9295 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9296 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9297 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9299 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9301 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9305 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9306 _lt_dar_single_mod='$single_module'
9308 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9309 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9311 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9313 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9314 _lt_dsymutil='~$DSYMUTIL $lib || :'
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9323 $as_echo_n "checking for ANSI C header files... " >&6; }
9324 if ${ac_cv_header_stdc+:} false; then :
9325 $as_echo_n "(cached) " >&6
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9342 if ac_fn_c_try_compile "$LINENO"; then :
9343 ac_cv_header_stdc=yes
9345 ac_cv_header_stdc=no
9347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9349 if test $ac_cv_header_stdc = yes; then
9350 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9357 $EGREP "memchr" >/dev/null 2>&1; then :
9360 ac_cv_header_stdc=no
9366 if test $ac_cv_header_stdc = yes; then
9367 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9374 $EGREP "free" >/dev/null 2>&1; then :
9377 ac_cv_header_stdc=no
9383 if test $ac_cv_header_stdc = yes; then
9384 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9385 if test "$cross_compiling" = yes; then :
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9392 #if ((' ' & 0x0FF) == 0x020)
9393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9396 # define ISLOWER(c) \
9397 (('a' <= (c) && (c) <= 'i') \
9398 || ('j' <= (c) && (c) <= 'r') \
9399 || ('s' <= (c) && (c) <= 'z'))
9400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9408 for (i = 0; i < 256; i++)
9409 if (XOR (islower (i), ISLOWER (i))
9410 || toupper (i) != TOUPPER (i))
9415 if ac_fn_c_try_run "$LINENO"; then :
9418 ac_cv_header_stdc=no
9420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9421 conftest.$ac_objext conftest.beam conftest.$ac_ext
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9427 $as_echo "$ac_cv_header_stdc" >&6; }
9428 if test $ac_cv_header_stdc = yes; then
9430 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9434 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9436 inttypes.h stdint.h unistd.h
9438 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9439 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9441 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9442 cat >>confdefs.h <<_ACEOF
9443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9451 for ac_header in dlfcn.h
9453 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9455 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9456 cat >>confdefs.h <<_ACEOF
9457 #define HAVE_DLFCN_H 1
9477 # Check whether --enable-shared was given.
9478 if test "${enable_shared+set}" = set; then :
9479 enableval=$enable_shared; p=${PACKAGE-default}
9481 yes) enable_shared=yes ;;
9482 no) enable_shared=no ;;
9485 # Look at the argument we got. We use all the common list separators.
9486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9487 for pkg in $enableval; do
9489 if test "X$pkg" = "X$p"; then
9508 # Check whether --enable-static was given.
9509 if test "${enable_static+set}" = set; then :
9510 enableval=$enable_static; p=${PACKAGE-default}
9512 yes) enable_static=yes ;;
9513 no) enable_static=no ;;
9516 # Look at the argument we got. We use all the common list separators.
9517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9518 for pkg in $enableval; do
9520 if test "X$pkg" = "X$p"; then
9540 # Check whether --with-pic was given.
9541 if test "${with_pic+set}" = set; then :
9542 withval=$with_pic; pic_mode="$withval"
9548 test -z "$pic_mode" && pic_mode=default
9556 # Check whether --enable-fast-install was given.
9557 if test "${enable_fast_install+set}" = set; then :
9558 enableval=$enable_fast_install; p=${PACKAGE-default}
9560 yes) enable_fast_install=yes ;;
9561 no) enable_fast_install=no ;;
9563 enable_fast_install=no
9564 # Look at the argument we got. We use all the common list separators.
9565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9566 for pkg in $enableval; do
9568 if test "X$pkg" = "X$p"; then
9569 enable_fast_install=yes
9576 enable_fast_install=yes
9589 # This can be used to rebuild libtool when needed
9590 LIBTOOL_DEPS="$ltmain"
9592 # Always use our own libtool.
9593 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9620 test -z "$LN_S" && LN_S="ln -s"
9635 if test -n "${ZSH_VERSION+set}" ; then
9636 setopt NO_GLOB_SUBST
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9640 $as_echo_n "checking for objdir... " >&6; }
9641 if ${lt_cv_objdir+:} false; then :
9642 $as_echo_n "(cached) " >&6
9644 rm -f .libs 2>/dev/null
9645 mkdir .libs 2>/dev/null
9646 if test -d .libs; then
9649 # MS-DOS does not allow filenames that begin with a dot.
9652 rmdir .libs 2>/dev/null
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9655 $as_echo "$lt_cv_objdir" >&6; }
9656 objdir=$lt_cv_objdir
9662 cat >>confdefs.h <<_ACEOF
9663 #define LT_OBJDIR "$lt_cv_objdir/"
9671 # AIX sometimes has problems with the GCC collect2 program. For some
9672 # reason, if we set the COLLECT_NAMES environment variable, the problems
9673 # vanish in a puff of smoke.
9674 if test "X${COLLECT_NAMES+set}" != Xset; then
9676 export COLLECT_NAMES
9683 can_build_shared=yes
9685 # All known linkers require a `.a' archive for static linking (except MSVC,
9686 # which needs '.lib').
9689 with_gnu_ld="$lt_cv_prog_gnu_ld"
9692 old_CFLAGS="$CFLAGS"
9694 # Set sane defaults for various variables
9695 test -z "$CC" && CC=cc
9696 test -z "$LTCC" && LTCC=$CC
9697 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9698 test -z "$LD" && LD=ld
9699 test -z "$ac_objext" && ac_objext=o
9701 for cc_temp in $compiler""; do
9703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9709 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9712 # Only perform the check for file, if the check method requires it
9713 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9714 case $deplibs_check_method in
9716 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9718 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9719 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9720 $as_echo_n "(cached) " >&6
9724 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9727 lt_save_MAGIC_CMD="$MAGIC_CMD"
9728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9729 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9730 for ac_dir in $ac_dummy; do
9732 test -z "$ac_dir" && ac_dir=.
9733 if test -f $ac_dir/${ac_tool_prefix}file; then
9734 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9735 if test -n "$file_magic_test_file"; then
9736 case $deplibs_check_method in
9738 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9740 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9741 $EGREP "$file_magic_regex" > /dev/null; then
9746 *** Warning: the command libtool uses to detect shared libraries,
9747 *** $file_magic_cmd, produces output that libtool cannot recognize.
9748 *** The result is that libtool may fail to recognize shared libraries
9749 *** as such. This will affect the creation of libtool libraries that
9750 *** depend on shared libraries, but programs linked with such libtool
9751 *** libraries will work regardless of this problem. Nevertheless, you
9752 *** may want to report the problem to your system manager and/or to
9753 *** bug-libtool@gnu.org
9763 MAGIC_CMD="$lt_save_MAGIC_CMD"
9768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9769 if test -n "$MAGIC_CMD"; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9771 $as_echo "$MAGIC_CMD" >&6; }
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774 $as_echo "no" >&6; }
9781 if test -z "$lt_cv_path_MAGIC_CMD"; then
9782 if test -n "$ac_tool_prefix"; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9784 $as_echo_n "checking for file... " >&6; }
9785 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9786 $as_echo_n "(cached) " >&6
9790 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9793 lt_save_MAGIC_CMD="$MAGIC_CMD"
9794 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9795 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9796 for ac_dir in $ac_dummy; do
9798 test -z "$ac_dir" && ac_dir=.
9799 if test -f $ac_dir/file; then
9800 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9801 if test -n "$file_magic_test_file"; then
9802 case $deplibs_check_method in
9804 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9805 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9806 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9807 $EGREP "$file_magic_regex" > /dev/null; then
9812 *** Warning: the command libtool uses to detect shared libraries,
9813 *** $file_magic_cmd, produces output that libtool cannot recognize.
9814 *** The result is that libtool may fail to recognize shared libraries
9815 *** as such. This will affect the creation of libtool libraries that
9816 *** depend on shared libraries, but programs linked with such libtool
9817 *** libraries will work regardless of this problem. Nevertheless, you
9818 *** may want to report the problem to your system manager and/or to
9819 *** bug-libtool@gnu.org
9829 MAGIC_CMD="$lt_save_MAGIC_CMD"
9834 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9835 if test -n "$MAGIC_CMD"; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9837 $as_echo "$MAGIC_CMD" >&6; }
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9853 # Use C for the default configuration in the libtool script
9857 ac_cpp='$CPP $CPPFLAGS'
9858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9863 # Source file extension for C test sources.
9866 # Object file extension for compiled C test sources.
9870 # Code to be used in simple compile tests
9871 lt_simple_compile_test_code="int some_variable = 0;"
9873 # Code to be used in simple link tests
9874 lt_simple_link_test_code='int main(){return(0);}'
9882 # If no C compiler was specified, use CC.
9885 # If no C compiler flags were specified, use CFLAGS.
9886 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9888 # Allow CC to be a program name with arguments.
9891 # Save the default compiler, since it gets overwritten when the other
9892 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9893 compiler_DEFAULT=$CC
9895 # save warnings/boilerplate of simple test code
9896 ac_outfile=conftest.$ac_objext
9897 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9898 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9899 _lt_compiler_boilerplate=`cat conftest.err`
9902 ac_outfile=conftest.$ac_objext
9903 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9904 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9905 _lt_linker_boilerplate=`cat conftest.err`
9910 ## There is no encapsulation within the following macros, do not change
9911 ## the running order or otherwise move them around unless you know exactly
9912 ## what you are doing...
9913 if test -n "$compiler"; then
9915 lt_prog_compiler_no_builtin_flag=
9917 if test "$GCC" = yes; then
9918 case $cc_basename in
9920 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9922 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9926 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9927 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9928 $as_echo_n "(cached) " >&6
9930 lt_cv_prog_compiler_rtti_exceptions=no
9931 ac_outfile=conftest.$ac_objext
9932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9933 lt_compiler_flag="-fno-rtti -fno-exceptions"
9934 # Insert the option either (1) after the last *FLAGS variable, or
9935 # (2) before a word containing "conftest.", or (3) at the end.
9936 # Note that $ac_compile itself does not contain backslashes and begins
9937 # with a dollar sign (not a hyphen), so the echo should work correctly.
9938 # The option is referenced via a variable to avoid confusing sed.
9939 lt_compile=`echo "$ac_compile" | $SED \
9940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9942 -e 's:$: $lt_compiler_flag:'`
9943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9944 (eval "$lt_compile" 2>conftest.err)
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 if (exit $ac_status) && test -s "$ac_outfile"; then
9949 # The compiler can only warn and ignore the option if not recognized
9950 # So say no if there are warnings other than the usual output.
9951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9953 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9954 lt_cv_prog_compiler_rtti_exceptions=yes
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9961 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9963 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9964 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9976 lt_prog_compiler_wl=
9977 lt_prog_compiler_pic=
9978 lt_prog_compiler_static=
9981 if test "$GCC" = yes; then
9982 lt_prog_compiler_wl='-Wl,'
9983 lt_prog_compiler_static='-static'
9987 # All AIX code is PIC.
9988 if test "$host_cpu" = ia64; then
9989 # AIX 5 now supports IA64 processor
9990 lt_prog_compiler_static='-Bstatic'
9997 # see comment about AmigaOS4 .so support
9998 lt_prog_compiler_pic='-fPIC'
10001 # FIXME: we need at least 68020 code to build shared libraries, but
10002 # adding the `-m68020' flag to GCC prevents building anything better,
10004 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10009 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10010 # PIC is the default for these OSes.
10013 mingw* | cygwin* | pw32* | os2* | cegcc*)
10014 # This hack is so that the source file can tell whether it is being
10015 # built for inclusion in a dll (and should export symbols for example).
10016 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10017 # (--disable-auto-import) libraries
10018 lt_prog_compiler_pic='-DDLL_EXPORT'
10021 darwin* | rhapsody*)
10022 # PIC is the default on this platform
10023 # Common symbols not allowed in MH_DYLIB files
10024 lt_prog_compiler_pic='-fno-common'
10028 # PIC is the default for Haiku.
10029 # The "-static" flag exists, but is broken.
10030 lt_prog_compiler_static=
10034 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10035 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10036 # sets the default TLS model and affects inlining.
10042 lt_prog_compiler_pic='-fPIC'
10048 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10049 # Instead, we relocate shared libraries at runtime.
10053 # Just because we use GCC doesn't mean we suddenly get shared libraries
10054 # on systems that don't support them.
10055 lt_prog_compiler_can_build_shared=no
10060 # QNX uses GNU C++, but need to define -shared option too, otherwise
10061 # it will coredump.
10062 lt_prog_compiler_pic='-fPIC -shared'
10066 if test -d /usr/nec; then
10067 lt_prog_compiler_pic=-Kconform_pic
10072 lt_prog_compiler_pic='-fPIC'
10076 case $cc_basename in
10077 nvcc*) # Cuda Compiler Driver 2.2
10078 lt_prog_compiler_wl='-Xlinker '
10079 lt_prog_compiler_pic='-Xcompiler -fPIC'
10083 # PORTME Check for flag to pass linker flags through the system compiler.
10086 lt_prog_compiler_wl='-Wl,'
10087 if test "$host_cpu" = ia64; then
10088 # AIX 5 now supports IA64 processor
10089 lt_prog_compiler_static='-Bstatic'
10091 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10095 mingw* | cygwin* | pw32* | os2* | cegcc*)
10096 # This hack is so that the source file can tell whether it is being
10097 # built for inclusion in a dll (and should export symbols for example).
10098 lt_prog_compiler_pic='-DDLL_EXPORT'
10101 hpux9* | hpux10* | hpux11*)
10102 lt_prog_compiler_wl='-Wl,'
10103 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10104 # not for PA HP-UX.
10110 lt_prog_compiler_pic='+Z'
10113 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10114 lt_prog_compiler_static='${wl}-a ${wl}archive'
10117 irix5* | irix6* | nonstopux*)
10118 lt_prog_compiler_wl='-Wl,'
10119 # PIC (with -KPIC) is the default.
10120 lt_prog_compiler_static='-non_shared'
10123 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10124 case $cc_basename in
10125 # old Intel for x86_64 which still supported -KPIC.
10127 lt_prog_compiler_wl='-Wl,'
10128 lt_prog_compiler_pic='-KPIC'
10129 lt_prog_compiler_static='-static'
10131 # icc used to be incompatible with GCC.
10132 # ICC 10 doesn't accept -KPIC any more.
10134 lt_prog_compiler_wl='-Wl,'
10135 lt_prog_compiler_pic='-fPIC'
10136 lt_prog_compiler_static='-static'
10138 # Lahey Fortran 8.1.
10140 lt_prog_compiler_wl='-Wl,'
10141 lt_prog_compiler_pic='--shared'
10142 lt_prog_compiler_static='--static'
10145 # NAG Fortran compiler
10146 lt_prog_compiler_wl='-Wl,-Wl,,'
10147 lt_prog_compiler_pic='-PIC'
10148 lt_prog_compiler_static='-Bstatic'
10150 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10151 # Portland Group compilers (*not* the Pentium gcc compiler,
10152 # which looks to be a dead project)
10153 lt_prog_compiler_wl='-Wl,'
10154 lt_prog_compiler_pic='-fpic'
10155 lt_prog_compiler_static='-Bstatic'
10158 lt_prog_compiler_wl='-Wl,'
10159 # All Alpha code is PIC.
10160 lt_prog_compiler_static='-non_shared'
10162 xl* | bgxl* | bgf* | mpixl*)
10163 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10164 lt_prog_compiler_wl='-Wl,'
10165 lt_prog_compiler_pic='-qpic'
10166 lt_prog_compiler_static='-qstaticlink'
10169 case `$CC -V 2>&1 | sed 5q` in
10170 *Sun\ F* | *Sun*Fortran*)
10171 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10172 lt_prog_compiler_pic='-KPIC'
10173 lt_prog_compiler_static='-Bstatic'
10174 lt_prog_compiler_wl=''
10178 lt_prog_compiler_pic='-KPIC'
10179 lt_prog_compiler_static='-Bstatic'
10180 lt_prog_compiler_wl='-Wl,'
10188 lt_prog_compiler_pic='-KPIC'
10189 lt_prog_compiler_static='-Bstatic'
10193 # QNX uses GNU C++, but need to define -shared option too, otherwise
10194 # it will coredump.
10195 lt_prog_compiler_pic='-fPIC -shared'
10198 osf3* | osf4* | osf5*)
10199 lt_prog_compiler_wl='-Wl,'
10200 # All OSF/1 code is PIC.
10201 lt_prog_compiler_static='-non_shared'
10205 lt_prog_compiler_static='-non_shared'
10209 lt_prog_compiler_pic='-KPIC'
10210 lt_prog_compiler_static='-Bstatic'
10211 case $cc_basename in
10212 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10213 lt_prog_compiler_wl='-Qoption ld ';;
10215 lt_prog_compiler_wl='-Wl,';;
10220 lt_prog_compiler_wl='-Qoption ld '
10221 lt_prog_compiler_pic='-PIC'
10222 lt_prog_compiler_static='-Bstatic'
10225 sysv4 | sysv4.2uw2* | sysv4.3*)
10226 lt_prog_compiler_wl='-Wl,'
10227 lt_prog_compiler_pic='-KPIC'
10228 lt_prog_compiler_static='-Bstatic'
10232 if test -d /usr/nec ;then
10233 lt_prog_compiler_pic='-Kconform_pic'
10234 lt_prog_compiler_static='-Bstatic'
10238 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10239 lt_prog_compiler_wl='-Wl,'
10240 lt_prog_compiler_pic='-KPIC'
10241 lt_prog_compiler_static='-Bstatic'
10245 lt_prog_compiler_wl='-Wl,'
10246 lt_prog_compiler_can_build_shared=no
10250 lt_prog_compiler_pic='-pic'
10251 lt_prog_compiler_static='-Bstatic'
10255 lt_prog_compiler_can_build_shared=no
10261 # For platforms which do not support PIC, -DPIC is meaningless:
10263 lt_prog_compiler_pic=
10266 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10271 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10272 if ${lt_cv_prog_compiler_pic+:} false; then :
10273 $as_echo_n "(cached) " >&6
10275 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10278 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10279 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10282 # Check to make sure the PIC flag actually works.
10284 if test -n "$lt_prog_compiler_pic"; then
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10286 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10287 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10288 $as_echo_n "(cached) " >&6
10290 lt_cv_prog_compiler_pic_works=no
10291 ac_outfile=conftest.$ac_objext
10292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10293 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10294 # Insert the option either (1) after the last *FLAGS variable, or
10295 # (2) before a word containing "conftest.", or (3) at the end.
10296 # Note that $ac_compile itself does not contain backslashes and begins
10297 # with a dollar sign (not a hyphen), so the echo should work correctly.
10298 # The option is referenced via a variable to avoid confusing sed.
10299 lt_compile=`echo "$ac_compile" | $SED \
10300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10302 -e 's:$: $lt_compiler_flag:'`
10303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10304 (eval "$lt_compile" 2>conftest.err)
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 if (exit $ac_status) && test -s "$ac_outfile"; then
10309 # The compiler can only warn and ignore the option if not recognized
10310 # So say no if there are warnings other than the usual output.
10311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10313 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10314 lt_cv_prog_compiler_pic_works=yes
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10321 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10323 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10324 case $lt_prog_compiler_pic in
10326 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10329 lt_prog_compiler_pic=
10330 lt_prog_compiler_can_build_shared=no
10346 # Check to make sure the static flag actually works.
10348 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10350 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10351 if ${lt_cv_prog_compiler_static_works+:} false; then :
10352 $as_echo_n "(cached) " >&6
10354 lt_cv_prog_compiler_static_works=no
10355 save_LDFLAGS="$LDFLAGS"
10356 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10357 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10358 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10359 # The linker can only warn and ignore the option if not recognized
10360 # So say no if there are warnings
10361 if test -s conftest.err; then
10362 # Append any errors to the config.log.
10363 cat conftest.err 1>&5
10364 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10366 if diff conftest.exp conftest.er2 >/dev/null; then
10367 lt_cv_prog_compiler_static_works=yes
10370 lt_cv_prog_compiler_static_works=yes
10374 LDFLAGS="$save_LDFLAGS"
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10378 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10380 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10383 lt_prog_compiler_static=
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10393 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10394 if ${lt_cv_prog_compiler_c_o+:} false; then :
10395 $as_echo_n "(cached) " >&6
10397 lt_cv_prog_compiler_c_o=no
10398 $RM -r conftest 2>/dev/null
10402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10404 lt_compiler_flag="-o out/conftest2.$ac_objext"
10405 # Insert the option either (1) after the last *FLAGS variable, or
10406 # (2) before a word containing "conftest.", or (3) at the end.
10407 # Note that $ac_compile itself does not contain backslashes and begins
10408 # with a dollar sign (not a hyphen), so the echo should work correctly.
10409 lt_compile=`echo "$ac_compile" | $SED \
10410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10412 -e 's:$: $lt_compiler_flag:'`
10413 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10414 (eval "$lt_compile" 2>out/conftest.err)
10416 cat out/conftest.err >&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10420 # The compiler can only warn and ignore the option if not recognized
10421 # So say no if there are warnings
10422 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10423 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10424 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10425 lt_cv_prog_compiler_c_o=yes
10430 # SGI C++ compiler will create directory out/ii_files/ for
10431 # template instantiation
10432 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10433 $RM out/* && rmdir out
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10440 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10448 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10449 if ${lt_cv_prog_compiler_c_o+:} false; then :
10450 $as_echo_n "(cached) " >&6
10452 lt_cv_prog_compiler_c_o=no
10453 $RM -r conftest 2>/dev/null
10457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10459 lt_compiler_flag="-o out/conftest2.$ac_objext"
10460 # Insert the option either (1) after the last *FLAGS variable, or
10461 # (2) before a word containing "conftest.", or (3) at the end.
10462 # Note that $ac_compile itself does not contain backslashes and begins
10463 # with a dollar sign (not a hyphen), so the echo should work correctly.
10464 lt_compile=`echo "$ac_compile" | $SED \
10465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10467 -e 's:$: $lt_compiler_flag:'`
10468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10469 (eval "$lt_compile" 2>out/conftest.err)
10471 cat out/conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10475 # The compiler can only warn and ignore the option if not recognized
10476 # So say no if there are warnings
10477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10478 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10479 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10480 lt_cv_prog_compiler_c_o=yes
10485 # SGI C++ compiler will create directory out/ii_files/ for
10486 # template instantiation
10487 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10488 $RM out/* && rmdir out
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10495 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10500 hard_links="nottested"
10501 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10502 # do not overwrite the value of need_locks provided by the user
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10504 $as_echo_n "checking if we can lock with hard links... " >&6; }
10507 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10509 ln conftest.a conftest.b 2>&5 || hard_links=no
10510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10512 $as_echo "$hard_links" >&6; }
10513 if test "$hard_links" = no; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10515 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10528 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10531 allow_undefined_flag=
10532 always_export_symbols=no
10534 archive_expsym_cmds=
10535 compiler_needs_object=no
10536 enable_shared_with_static_runtimes=no
10537 export_dynamic_flag_spec=
10538 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10539 hardcode_automatic=no
10541 hardcode_direct_absolute=no
10542 hardcode_libdir_flag_spec=
10543 hardcode_libdir_flag_spec_ld=
10544 hardcode_libdir_separator=
10545 hardcode_minus_L=no
10546 hardcode_shlibpath_var=unsupported
10548 link_all_deplibs=unknown
10550 module_expsym_cmds=
10551 old_archive_from_new_cmds=
10552 old_archive_from_expsyms_cmds=
10553 thread_safe_flag_spec=
10554 whole_archive_flag_spec=
10555 # include_expsyms should be a list of space-separated symbols to be *always*
10556 # included in the symbol list
10558 # exclude_expsyms can be an extended regexp of symbols to exclude
10559 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10560 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10561 # as well as any symbol that contains `d'.
10562 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10563 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10564 # platforms (ab)use it in PIC code, but their linkers get confused if
10565 # the symbol is explicitly referenced. Since portable code cannot
10566 # rely on this symbol name, it's probably fine to never include it in
10567 # preloaded symbol tables.
10568 # Exclude shared library initialization/finalization symbols.
10569 extract_expsyms_cmds=
10572 cygwin* | mingw* | pw32* | cegcc*)
10573 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10574 # When not using gcc, we currently assume that we are using
10575 # Microsoft Visual C++.
10576 if test "$GCC" != yes; then
10581 # we just hope/assume this is gcc and not c89 (= MSVC++)
10591 # On some targets, GNU ld is compatible enough with the native linker
10592 # that we're better off using the native interface for both.
10593 lt_use_gnu_ld_interface=no
10594 if test "$with_gnu_ld" = yes; then
10597 # The AIX port of GNU ld has always aspired to compatibility
10598 # with the native linker. However, as the warning in the GNU ld
10599 # block says, versions before 2.19.5* couldn't really create working
10600 # shared libraries, regardless of the interface used.
10601 case `$LD -v 2>&1` in
10602 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10603 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10604 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10606 lt_use_gnu_ld_interface=yes
10611 lt_use_gnu_ld_interface=yes
10616 if test "$lt_use_gnu_ld_interface" = yes; then
10617 # If archive_cmds runs LD, not CC, wlarc should be empty
10620 # Set some defaults for GNU ld with shared library support. These
10621 # are reset later if shared libraries are not supported. Putting them
10622 # here allows them to be overridden if necessary.
10623 runpath_var=LD_RUN_PATH
10624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10625 export_dynamic_flag_spec='${wl}--export-dynamic'
10626 # ancient GNU ld didn't support --whole-archive et. al.
10627 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10628 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10630 whole_archive_flag_spec=
10632 supports_anon_versioning=no
10633 case `$LD -v 2>&1` in
10634 *GNU\ gold*) supports_anon_versioning=yes ;;
10635 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10636 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10637 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10638 *\ 2.11.*) ;; # other 2.11 versions
10639 *) supports_anon_versioning=yes ;;
10642 # See if GNU ld supports shared libraries.
10645 # On AIX/PPC, the GNU linker is very broken
10646 if test "$host_cpu" != ia64; then
10650 *** Warning: the GNU linker, at least up to release 2.19, is reported
10651 *** to be unable to reliably create shared libraries on AIX.
10652 *** Therefore, libtool is disabling shared libraries support. If you
10653 *** really care for shared libraries, you may want to install binutils
10654 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10655 *** You will then need to restart the configuration process.
10664 # see comment about AmigaOS4 .so support
10665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10666 archive_expsym_cmds=''
10669 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)'
10670 hardcode_libdir_flag_spec='-L$libdir'
10671 hardcode_minus_L=yes
10677 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10678 allow_undefined_flag=unsupported
10679 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10680 # support --undefined. This deserves some investigation. FIXME
10681 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10687 cygwin* | mingw* | pw32* | cegcc*)
10688 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10689 # as there is no search path for DLLs.
10690 hardcode_libdir_flag_spec='-L$libdir'
10691 export_dynamic_flag_spec='${wl}--export-all-symbols'
10692 allow_undefined_flag=unsupported
10693 always_export_symbols=no
10694 enable_shared_with_static_runtimes=yes
10695 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10696 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10698 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10700 # If the export-symbols file already is a .def file (1st line
10701 # is EXPORTS), use it as is; otherwise, prepend...
10702 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10703 cp $export_symbols $output_objdir/$soname.def;
10705 echo EXPORTS > $output_objdir/$soname.def;
10706 cat $export_symbols >> $output_objdir/$soname.def;
10708 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10716 link_all_deplibs=yes
10721 hardcode_shlibpath_var=no
10722 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10723 export_dynamic_flag_spec='${wl}-E'
10724 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10725 # Instead, shared libraries are loaded at an image base (0x10000000 by
10726 # default) and relocated if they conflict, which is a slow very memory
10727 # consuming and fragmenting process. To avoid this, we pick a random,
10728 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10729 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10730 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10731 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'
10734 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10736 if test "$host_os" = linux-dietlibc; then
10737 case $cc_basename in
10738 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10741 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10742 && test "$tmp_diet" = no
10744 tmp_addflag=' $pic_flag'
10745 tmp_sharedflag='-shared'
10746 case $cc_basename,$host_cpu in
10747 pgcc*) # Portland Group C compiler
10748 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10749 tmp_addflag=' $pic_flag'
10751 pgf77* | pgf90* | pgf95* | pgfortran*)
10752 # Portland Group f77 and f90 compilers
10753 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10754 tmp_addflag=' $pic_flag -Mnomain' ;;
10755 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10756 tmp_addflag=' -i_dynamic' ;;
10757 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10758 tmp_addflag=' -i_dynamic -nofor_main' ;;
10759 ifc* | ifort*) # Intel Fortran compiler
10760 tmp_addflag=' -nofor_main' ;;
10761 lf95*) # Lahey Fortran 8.1
10762 whole_archive_flag_spec=
10763 tmp_sharedflag='--shared' ;;
10764 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10765 tmp_sharedflag='-qmkshrobj'
10767 nvcc*) # Cuda Compiler Driver 2.2
10768 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10769 compiler_needs_object=yes
10772 case `$CC -V 2>&1 | sed 5q` in
10773 *Sun\ C*) # Sun C 5.9
10774 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10775 compiler_needs_object=yes
10776 tmp_sharedflag='-G' ;;
10777 *Sun\ F*) # Sun Fortran 8.3
10778 tmp_sharedflag='-G' ;;
10780 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10782 if test "x$supports_anon_versioning" = xyes; then
10783 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10785 echo "local: *; };" >> $output_objdir/$libname.ver~
10786 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10789 case $cc_basename in
10790 xlf* | bgf* | bgxlf* | mpixlf*)
10791 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10792 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10793 hardcode_libdir_flag_spec=
10794 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10795 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10796 if test "x$supports_anon_versioning" = xyes; then
10797 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10798 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10799 echo "local: *; };" >> $output_objdir/$libname.ver~
10800 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10811 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10814 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10815 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10820 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10824 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10825 *** create shared libraries on Solaris systems. Therefore, libtool
10826 *** is disabling shared libraries support. We urge you to upgrade GNU
10827 *** binutils to release 2.9.1 or newer. Another option is to modify
10828 *** your PATH or compiler configuration so that the native linker is
10829 *** used, and then restart.
10832 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10833 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10834 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10841 case `$LD -v 2>&1` in
10842 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10846 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10847 *** reliably create shared libraries on SCO systems. Therefore, libtool
10848 *** is disabling shared libraries support. We urge you to upgrade GNU
10849 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10850 *** your PATH or compiler configuration so that the native linker is
10851 *** used, and then restart.
10856 # For security reasons, it is highly recommended that you always
10857 # use absolute paths for naming shared libraries, and exclude the
10858 # DT_RUNPATH tag from executables and libraries. But doing so
10859 # requires that you compile everything twice, which is a pain.
10860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10872 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10874 hardcode_direct=yes
10875 hardcode_shlibpath_var=no
10879 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10881 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10888 if test "$ld_shlibs" = no; then
10890 hardcode_libdir_flag_spec=
10891 export_dynamic_flag_spec=
10892 whole_archive_flag_spec=
10895 # PORTME fill in a description of your system's linker (not GNU ld)
10898 allow_undefined_flag=unsupported
10899 always_export_symbols=yes
10900 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'
10901 # Note: this linker hardcodes the directories in LIBPATH if there
10902 # are no directories specified by -L.
10903 hardcode_minus_L=yes
10904 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10905 # Neither direct hardcoding nor static linking is supported with a
10907 hardcode_direct=unsupported
10912 if test "$host_cpu" = ia64; then
10913 # On IA64, the linker does run time linking by default, so we don't
10914 # have to do anything special.
10915 aix_use_runtimelinking=no
10916 exp_sym_flag='-Bexport'
10919 # If we're using GNU nm, then we don't want the "-C" option.
10920 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10921 # Also, AIX nm treats weak defined symbols like other global
10922 # defined symbols, whereas GNU nm marks them as "W".
10923 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10924 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10926 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'
10928 aix_use_runtimelinking=no
10930 # Test if we are trying to use run time linking or normal
10931 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10932 # need to do runtime linking.
10933 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10934 for ld_flag in $LDFLAGS; do
10935 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10936 aix_use_runtimelinking=yes
10943 exp_sym_flag='-bexport'
10944 no_entry_flag='-bnoentry'
10947 # When large executables or shared objects are built, AIX ld can
10948 # have problems creating the table of contents. If linking a library
10949 # or program results in "error TOC overflow" add -mminimal-toc to
10950 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10951 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10954 hardcode_direct=yes
10955 hardcode_direct_absolute=yes
10956 hardcode_libdir_separator=':'
10957 link_all_deplibs=yes
10958 file_list_spec='${wl}-f,'
10960 if test "$GCC" = yes; then
10961 case $host_os in aix4.[012]|aix4.[012].*)
10962 # We only want to do this on AIX 4.2 and lower, the check
10963 # below for broken collect2 doesn't work under 4.3+
10964 collect2name=`${CC} -print-prog-name=collect2`
10965 if test -f "$collect2name" &&
10966 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10968 # We have reworked collect2
10971 # We have old collect2
10972 hardcode_direct=unsupported
10973 # It fails to find uninstalled libraries when the uninstalled
10974 # path is not listed in the libpath. Setting hardcode_minus_L
10975 # to unsupported forces relinking
10976 hardcode_minus_L=yes
10977 hardcode_libdir_flag_spec='-L$libdir'
10978 hardcode_libdir_separator=
10982 shared_flag='-shared'
10983 if test "$aix_use_runtimelinking" = yes; then
10984 shared_flag="$shared_flag "'${wl}-G'
10988 if test "$host_cpu" = ia64; then
10989 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10990 # chokes on -Wl,-G. The following line is correct:
10993 if test "$aix_use_runtimelinking" = yes; then
10994 shared_flag='${wl}-G'
10996 shared_flag='${wl}-bM:SRE'
11001 export_dynamic_flag_spec='${wl}-bexpall'
11002 # It seems that -bexpall does not export symbols beginning with
11003 # underscore (_), so it is better to generate a list of symbols to export.
11004 always_export_symbols=yes
11005 if test "$aix_use_runtimelinking" = yes; then
11006 # Warning - without using the other runtime loading flags (-brtl),
11007 # -berok will link without error, but may produce a broken library.
11008 allow_undefined_flag='-berok'
11009 # Determine the default libpath from the value encoded in an
11010 # empty executable.
11011 if test "${lt_cv_aix_libpath+set}" = set; then
11012 aix_libpath=$lt_cv_aix_libpath
11014 if ${lt_cv_aix_libpath_+:} false; then :
11015 $as_echo_n "(cached) " >&6
11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11028 if ac_fn_c_try_link "$LINENO"; then :
11030 lt_aix_libpath_sed='
11031 /Import File Strings/,/^$/ {
11033 s/^0 *\([^ ]*\) *$/\1/
11037 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11038 # Check for a 64-bit object if we didn't find anything.
11039 if test -z "$lt_cv_aix_libpath_"; then
11040 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11043 rm -f core conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext conftest.$ac_ext
11045 if test -z "$lt_cv_aix_libpath_"; then
11046 lt_cv_aix_libpath_="/usr/lib:/lib"
11051 aix_libpath=$lt_cv_aix_libpath_
11054 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11055 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11057 if test "$host_cpu" = ia64; then
11058 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11059 allow_undefined_flag="-z nodefs"
11060 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"
11062 # Determine the default libpath from the value encoded in an
11063 # empty executable.
11064 if test "${lt_cv_aix_libpath+set}" = set; then
11065 aix_libpath=$lt_cv_aix_libpath
11067 if ${lt_cv_aix_libpath_+:} false; then :
11068 $as_echo_n "(cached) " >&6
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11081 if ac_fn_c_try_link "$LINENO"; then :
11083 lt_aix_libpath_sed='
11084 /Import File Strings/,/^$/ {
11086 s/^0 *\([^ ]*\) *$/\1/
11090 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11091 # Check for a 64-bit object if we didn't find anything.
11092 if test -z "$lt_cv_aix_libpath_"; then
11093 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11096 rm -f core conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
11098 if test -z "$lt_cv_aix_libpath_"; then
11099 lt_cv_aix_libpath_="/usr/lib:/lib"
11104 aix_libpath=$lt_cv_aix_libpath_
11107 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11108 # Warning - without using the other run time loading flags,
11109 # -berok will link without error, but may produce a broken library.
11110 no_undefined_flag=' ${wl}-bernotok'
11111 allow_undefined_flag=' ${wl}-berok'
11112 if test "$with_gnu_ld" = yes; then
11113 # We only use this code for GNU lds that support --whole-archive.
11114 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11116 # Exported symbols can be pulled into shared objects from archives
11117 whole_archive_flag_spec='$convenience'
11119 archive_cmds_need_lc=yes
11120 # This is similar to how AIX traditionally builds its shared libraries.
11121 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'
11129 # see comment about AmigaOS4 .so support
11130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11131 archive_expsym_cmds=''
11134 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)'
11135 hardcode_libdir_flag_spec='-L$libdir'
11136 hardcode_minus_L=yes
11142 export_dynamic_flag_spec=-rdynamic
11145 cygwin* | mingw* | pw32* | cegcc*)
11146 # When not using gcc, we currently assume that we are using
11147 # Microsoft Visual C++.
11148 # hardcode_libdir_flag_spec is actually meaningless, as there is
11149 # no search path for DLLs.
11150 case $cc_basename in
11153 hardcode_libdir_flag_spec=' '
11154 allow_undefined_flag=unsupported
11155 always_export_symbols=yes
11157 # Tell ltmain to make .lib files, not .a files.
11159 # Tell ltmain to make .dll files, not .so files.
11161 # FIXME: Setting linknames here is a bad hack.
11162 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11163 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11164 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11166 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11168 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11170 # The linker will not automatically build a static lib if we build a DLL.
11171 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11172 enable_shared_with_static_runtimes=yes
11173 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11175 old_postinstall_cmds='chmod 644 $oldlib'
11176 postlink_cmds='lt_outputfile="@OUTPUT@"~
11177 lt_tool_outputfile="@TOOL_OUTPUT@"~
11178 case $lt_outputfile in
11181 lt_outputfile="$lt_outputfile.exe"
11182 lt_tool_outputfile="$lt_tool_outputfile.exe"
11185 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11186 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11187 $RM "$lt_outputfile.manifest";
11191 # Assume MSVC wrapper
11192 hardcode_libdir_flag_spec=' '
11193 allow_undefined_flag=unsupported
11194 # Tell ltmain to make .lib files, not .a files.
11196 # Tell ltmain to make .dll files, not .so files.
11198 # FIXME: Setting linknames here is a bad hack.
11199 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11200 # The linker will automatically build a .lib file if we build a DLL.
11201 old_archive_from_new_cmds='true'
11202 # FIXME: Should let the user specify the lib program.
11203 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11204 enable_shared_with_static_runtimes=yes
11209 darwin* | rhapsody*)
11212 archive_cmds_need_lc=no
11214 hardcode_automatic=yes
11215 hardcode_shlibpath_var=unsupported
11216 if test "$lt_cv_ld_force_load" = "yes"; then
11217 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11219 whole_archive_flag_spec=''
11221 link_all_deplibs=yes
11222 allow_undefined_flag="$_lt_dar_allow_undefined"
11223 case $cc_basename in
11224 ifort*) _lt_dar_can_shared=yes ;;
11225 *) _lt_dar_can_shared=$GCC ;;
11227 if test "$_lt_dar_can_shared" = "yes"; then
11228 output_verbose_link_cmd=func_echo_all
11229 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11230 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11231 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}"
11232 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}"
11241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11242 hardcode_libdir_flag_spec='-L$libdir'
11243 hardcode_shlibpath_var=no
11250 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11251 # support. Future versions do this automatically, but an explicit c++rt0.o
11252 # does not break anything, and helps significantly (at the cost of a little
11255 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11256 hardcode_libdir_flag_spec='-R$libdir'
11257 hardcode_direct=yes
11258 hardcode_shlibpath_var=no
11261 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11264 hardcode_direct=yes
11265 hardcode_minus_L=yes
11266 hardcode_shlibpath_var=no
11269 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11270 freebsd* | dragonfly*)
11271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11272 hardcode_libdir_flag_spec='-R$libdir'
11273 hardcode_direct=yes
11274 hardcode_shlibpath_var=no
11278 if test "$GCC" = yes; then
11279 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11281 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'
11283 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11284 hardcode_libdir_separator=:
11285 hardcode_direct=yes
11287 # hardcode_minus_L: Not really in the search PATH,
11288 # but as the default location of the library.
11289 hardcode_minus_L=yes
11290 export_dynamic_flag_spec='${wl}-E'
11294 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11295 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11297 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11299 if test "$with_gnu_ld" = no; then
11300 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11301 hardcode_libdir_flag_spec_ld='+b $libdir'
11302 hardcode_libdir_separator=:
11303 hardcode_direct=yes
11304 hardcode_direct_absolute=yes
11305 export_dynamic_flag_spec='${wl}-E'
11306 # hardcode_minus_L: Not really in the search PATH,
11307 # but as the default location of the library.
11308 hardcode_minus_L=yes
11313 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11316 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11319 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11322 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11328 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11331 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11335 # Older versions of the 11.00 compiler do not understand -b yet
11336 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11338 $as_echo_n "checking if $CC understands -b... " >&6; }
11339 if ${lt_cv_prog_compiler__b+:} false; then :
11340 $as_echo_n "(cached) " >&6
11342 lt_cv_prog_compiler__b=no
11343 save_LDFLAGS="$LDFLAGS"
11344 LDFLAGS="$LDFLAGS -b"
11345 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11347 # The linker can only warn and ignore the option if not recognized
11348 # So say no if there are warnings
11349 if test -s conftest.err; then
11350 # Append any errors to the config.log.
11351 cat conftest.err 1>&5
11352 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11354 if diff conftest.exp conftest.er2 >/dev/null; then
11355 lt_cv_prog_compiler__b=yes
11358 lt_cv_prog_compiler__b=yes
11362 LDFLAGS="$save_LDFLAGS"
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11366 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11368 if test x"$lt_cv_prog_compiler__b" = xyes; then
11369 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11371 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11377 if test "$with_gnu_ld" = no; then
11378 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11379 hardcode_libdir_separator=:
11384 hardcode_shlibpath_var=no
11387 hardcode_direct=yes
11388 hardcode_direct_absolute=yes
11389 export_dynamic_flag_spec='${wl}-E'
11391 # hardcode_minus_L: Not really in the search PATH,
11392 # but as the default location of the library.
11393 hardcode_minus_L=yes
11399 irix5* | irix6* | nonstopux*)
11400 if test "$GCC" = yes; then
11401 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11402 # Try to use the -exported_symbol ld option, if it does not
11403 # work, assume that -exports_file does not work either and
11404 # implicitly export all symbols.
11405 # This should be the same for all languages, so no per-tag cache variable.
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11407 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11408 if ${lt_cv_irix_exported_symbol+:} false; then :
11409 $as_echo_n "(cached) " >&6
11411 save_LDFLAGS="$LDFLAGS"
11412 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11415 int foo (void) { return 0; }
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 lt_cv_irix_exported_symbol=yes
11420 lt_cv_irix_exported_symbol=no
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 LDFLAGS="$save_LDFLAGS"
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11427 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11428 if test "$lt_cv_irix_exported_symbol" = yes; then
11429 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11433 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11435 archive_cmds_need_lc='no'
11436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11437 hardcode_libdir_separator=:
11439 link_all_deplibs=yes
11443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11446 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11448 hardcode_libdir_flag_spec='-R$libdir'
11449 hardcode_direct=yes
11450 hardcode_shlibpath_var=no
11454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11455 hardcode_direct=yes
11456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11457 hardcode_libdir_separator=:
11458 hardcode_shlibpath_var=no
11465 if test -f /usr/libexec/ld.so; then
11466 hardcode_direct=yes
11467 hardcode_shlibpath_var=no
11468 hardcode_direct_absolute=yes
11469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11470 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11471 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11472 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11473 export_dynamic_flag_spec='${wl}-E'
11476 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11478 hardcode_libdir_flag_spec='-R$libdir'
11481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11482 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11492 hardcode_libdir_flag_spec='-L$libdir'
11493 hardcode_minus_L=yes
11494 allow_undefined_flag=unsupported
11495 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'
11496 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11500 if test "$GCC" = yes; then
11501 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11502 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11504 allow_undefined_flag=' -expect_unresolved \*'
11505 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11507 archive_cmds_need_lc='no'
11508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11509 hardcode_libdir_separator=:
11512 osf4* | osf5*) # as osf3* with the addition of -msym flag
11513 if test "$GCC" = yes; then
11514 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11515 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11518 allow_undefined_flag=' -expect_unresolved \*'
11519 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11520 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~
11521 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11523 # Both c and cxx compiler support -rpath directly
11524 hardcode_libdir_flag_spec='-rpath $libdir'
11526 archive_cmds_need_lc='no'
11527 hardcode_libdir_separator=:
11531 no_undefined_flag=' -z defs'
11532 if test "$GCC" = yes; then
11534 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11535 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11536 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11538 case `$CC -V 2>&1` in
11541 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11542 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11543 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11547 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11548 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11549 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11553 hardcode_libdir_flag_spec='-R$libdir'
11554 hardcode_shlibpath_var=no
11556 solaris2.[0-5] | solaris2.[0-5].*) ;;
11558 # The compiler driver will combine and reorder linker options,
11559 # but understands `-z linker_flag'. GCC discards it without `$wl',
11560 # but is careful enough not to reorder.
11561 # Supported since Solaris 2.6 (maybe 2.5.1?)
11562 if test "$GCC" = yes; then
11563 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11565 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11569 link_all_deplibs=yes
11573 if test "x$host_vendor" = xsequent; then
11574 # Use $CC to link under sequent, because it throws in some extra .o
11575 # files that make .init and .fini sections work.
11576 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11578 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11580 hardcode_libdir_flag_spec='-L$libdir'
11581 hardcode_direct=yes
11582 hardcode_minus_L=yes
11583 hardcode_shlibpath_var=no
11587 case $host_vendor in
11589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11590 hardcode_direct=yes # is this really true???
11593 ## LD is ld it makes a PLAMLIB
11594 ## CC just makes a GrossModule.
11595 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11596 reload_cmds='$CC -r -o $output$reload_objs'
11600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11601 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11604 runpath_var='LD_RUN_PATH'
11605 hardcode_shlibpath_var=no
11609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11610 hardcode_shlibpath_var=no
11611 export_dynamic_flag_spec='-Bexport'
11615 if test -d /usr/nec; then
11616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11617 hardcode_shlibpath_var=no
11618 runpath_var=LD_RUN_PATH
11619 hardcode_runpath_var=yes
11624 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11625 no_undefined_flag='${wl}-z,text'
11626 archive_cmds_need_lc=no
11627 hardcode_shlibpath_var=no
11628 runpath_var='LD_RUN_PATH'
11630 if test "$GCC" = yes; then
11631 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11632 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11634 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11635 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11639 sysv5* | sco3.2v5* | sco5v6*)
11640 # Note: We can NOT use -z defs as we might desire, because we do not
11641 # link with -lc, and that would cause any symbols used from libc to
11642 # always be unresolved, which means just about no library would
11643 # ever link correctly. If we're not using GNU ld we use -z text
11644 # though, which does catch some bad symbols but isn't as heavy-handed
11646 no_undefined_flag='${wl}-z,text'
11647 allow_undefined_flag='${wl}-z,nodefs'
11648 archive_cmds_need_lc=no
11649 hardcode_shlibpath_var=no
11650 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11651 hardcode_libdir_separator=':'
11652 link_all_deplibs=yes
11653 export_dynamic_flag_spec='${wl}-Bexport'
11654 runpath_var='LD_RUN_PATH'
11656 if test "$GCC" = yes; then
11657 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11658 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11660 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11661 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11667 hardcode_libdir_flag_spec='-L$libdir'
11668 hardcode_shlibpath_var=no
11676 if test x$host_vendor = xsni; then
11678 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11679 export_dynamic_flag_spec='${wl}-Blargedynsym'
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11686 $as_echo "$ld_shlibs" >&6; }
11687 test "$ld_shlibs" = no && can_build_shared=no
11689 with_gnu_ld=$with_gnu_ld
11706 # Do we need to explicitly link libc?
11708 case "x$archive_cmds_need_lc" in
11710 # Assume -lc should be added
11711 archive_cmds_need_lc=yes
11713 if test "$enable_shared" = yes && test "$GCC" = yes; then
11714 case $archive_cmds in
11716 # FIXME: we may have to deal with multi-command sequences.
11719 # Test whether the compiler implicitly links with -lc since on some
11720 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11721 # to ld, don't add -lc before -lgcc.
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11723 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11724 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11725 $as_echo_n "(cached) " >&6
11728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11731 (eval $ac_compile) 2>&5
11733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11734 test $ac_status = 0; } 2>conftest.err; then
11737 libobjs=conftest.$ac_objext
11739 wl=$lt_prog_compiler_wl
11740 pic_flag=$lt_prog_compiler_pic
11746 lt_save_allow_undefined_flag=$allow_undefined_flag
11747 allow_undefined_flag=
11748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11749 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11752 test $ac_status = 0; }
11754 lt_cv_archive_cmds_need_lc=no
11756 lt_cv_archive_cmds_need_lc=yes
11758 allow_undefined_flag=$lt_save_allow_undefined_flag
11760 cat conftest.err 1>&5
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11766 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11767 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11931 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11933 if test "$GCC" = yes; then
11935 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11936 *) lt_awk_arg="/^libraries:/" ;;
11939 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11940 *) lt_sed_strip_eq="s,=/,/,g" ;;
11942 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11943 case $lt_search_path_spec in
11945 # if the path contains ";" then we assume it to be the separator
11946 # otherwise default to the standard path separator (i.e. ":") - it is
11947 # assumed that no part of a normal pathname contains ";" but that should
11948 # okay in the real world where ";" in dirpaths is itself problematic.
11949 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11952 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11955 # Ok, now we have the path, separated by spaces, we can step through it
11956 # and add multilib dir if necessary.
11957 lt_tmp_lt_search_path_spec=
11958 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11959 for lt_sys_path in $lt_search_path_spec; do
11960 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11961 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11963 test -d "$lt_sys_path" && \
11964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11967 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11968 BEGIN {RS=" "; FS="/|\n";} {
11971 for (lt_i = NF; lt_i > 0; lt_i--) {
11972 if ($lt_i != "" && $lt_i != ".") {
11973 if ($lt_i == "..") {
11976 if (lt_count == 0) {
11977 lt_foo="/" $lt_i lt_foo;
11984 if (lt_foo != "") { lt_freq[lt_foo]++; }
11985 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11987 # AWK program above erroneously prepends '/' to C:/dos/paths
11990 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11991 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11993 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11995 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11997 library_names_spec=
11998 libname_spec='lib$name'
12002 postuninstall_cmds=
12006 shlibpath_overrides_runpath=unknown
12008 dynamic_linker="$host_os ld.so"
12009 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12010 need_lib_prefix=unknown
12011 hardcode_into_libs=no
12013 # when you set need_version to no, make sure it does not cause -set_version
12014 # flags to be left without arguments
12015 need_version=unknown
12020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12021 shlibpath_var=LIBPATH
12023 # AIX 3 has no versioning support, so we append a major version to the name.
12024 soname_spec='${libname}${release}${shared_ext}$major'
12031 hardcode_into_libs=yes
12032 if test "$host_cpu" = ia64; then
12033 # AIX 5 supports IA64
12034 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12035 shlibpath_var=LD_LIBRARY_PATH
12037 # With GCC up to 2.95.x, collect2 would create an import file
12038 # for dependence libraries. The import file would start with
12039 # the line `#! .'. This would cause the generated library to
12040 # depend on `.', always an invalid library. This was fixed in
12041 # development snapshots of GCC prior to 3.0.
12043 aix4 | aix4.[01] | aix4.[01].*)
12044 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12046 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12049 can_build_shared=no
12053 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12054 # soname into executable. Probably we can add versioning support to
12055 # collect2, so additional links can be useful in future.
12056 if test "$aix_use_runtimelinking" = yes; then
12057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12058 # instead of lib<name>.a to let people know that these are not
12059 # typical AIX shared libraries.
12060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 # We preserve .a as extension for shared libraries through AIX4.2
12063 # and later when we are not doing run time linking.
12064 library_names_spec='${libname}${release}.a $libname.a'
12065 soname_spec='${libname}${release}${shared_ext}$major'
12067 shlibpath_var=LIBPATH
12074 # Since July 2007 AmigaOS4 officially supports .so libraries.
12075 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12079 library_names_spec='$libname.ixlibrary $libname.a'
12080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12081 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
12087 library_names_spec='${libname}${shared_ext}'
12088 dynamic_linker="$host_os ld.so"
12089 shlibpath_var=LIBRARY_PATH
12095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12096 soname_spec='${libname}${release}${shared_ext}$major'
12097 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12098 shlibpath_var=LD_LIBRARY_PATH
12099 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12100 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12101 # the default ld.so.conf also contains /usr/contrib/lib and
12102 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12103 # libtool to hard-code these into programs
12106 cygwin* | mingw* | pw32* | cegcc*)
12107 version_type=windows
12112 case $GCC,$cc_basename in
12115 library_names_spec='$libname.dll.a'
12116 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12117 postinstall_cmds='base_file=`basename \${file}`~
12118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12119 dldir=$destdir/`dirname \$dlpath`~
12120 test -d \$dldir || mkdir -p \$dldir~
12121 $install_prog $dir/$dlname \$dldir/$dlname~
12122 chmod a+x \$dldir/$dlname~
12123 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12124 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12127 dlpath=$dir/\$dldll~
12129 shlibpath_overrides_runpath=yes
12133 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12134 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12136 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12139 # MinGW DLLs use traditional 'lib' prefix
12140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12143 # pw32 DLLs use 'pw' prefix rather than 'lib'
12144 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12147 dynamic_linker='Win32 ld.exe'
12152 libname_spec='$name'
12153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12154 library_names_spec='${libname}.dll.lib'
12158 sys_lib_search_path_spec=
12161 for lt_path in $LIB
12164 # Let DOS variable expansion print the short 8.3 style file name.
12165 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12166 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12169 # Convert to MSYS style.
12170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12173 # Convert to unix form, then to dos form, then back to unix form
12174 # but this time dos style (no spaces!) so that the unix form looks
12175 # like /cygdrive/c/PROGRA~1:/cygdr...
12176 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12177 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12178 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12181 sys_lib_search_path_spec="$LIB"
12182 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12183 # It is most probably a Windows format PATH.
12184 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12186 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12188 # FIXME: find the short name or the path components, as spaces are
12189 # common. (e.g. "Program Files" -> "PROGRA~1")
12193 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12194 postinstall_cmds='base_file=`basename \${file}`~
12195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12196 dldir=$destdir/`dirname \$dlpath`~
12197 test -d \$dldir || mkdir -p \$dldir~
12198 $install_prog $dir/$dlname \$dldir/$dlname'
12199 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12200 dlpath=$dir/\$dldll~
12202 shlibpath_overrides_runpath=yes
12203 dynamic_linker='Win32 link.exe'
12207 # Assume MSVC wrapper
12208 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12209 dynamic_linker='Win32 ld.exe'
12212 # FIXME: first we should search . and the directory the executable is in
12216 darwin* | rhapsody*)
12217 dynamic_linker="$host_os dyld"
12218 version_type=darwin
12221 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12222 soname_spec='${libname}${release}${major}$shared_ext'
12223 shlibpath_overrides_runpath=yes
12224 shlibpath_var=DYLD_LIBRARY_PATH
12225 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12227 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12236 soname_spec='${libname}${release}${shared_ext}$major'
12237 shlibpath_var=LD_LIBRARY_PATH
12244 freebsd* | dragonfly*)
12245 # DragonFly does not have aout. When/if they implement a new
12246 # versioning mechanism, adjust this.
12247 if test -x /usr/bin/objformat; then
12248 objformat=`/usr/bin/objformat`
12251 freebsd[123]*) objformat=aout ;;
12252 *) objformat=elf ;;
12255 version_type=freebsd-$objformat
12256 case $version_type in
12258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12267 shlibpath_var=LD_LIBRARY_PATH
12270 shlibpath_overrides_runpath=yes
12272 freebsd3.[01]* | freebsdelf3.[01]*)
12273 shlibpath_overrides_runpath=yes
12274 hardcode_into_libs=yes
12276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12278 shlibpath_overrides_runpath=no
12279 hardcode_into_libs=yes
12281 *) # from 4.6 on, and DragonFly
12282 shlibpath_overrides_runpath=yes
12283 hardcode_into_libs=yes
12292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12293 soname_spec='${libname}${release}${shared_ext}$major'
12294 shlibpath_var=LD_LIBRARY_PATH
12295 hardcode_into_libs=yes
12302 dynamic_linker="$host_os runtime_loader"
12303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12304 soname_spec='${libname}${release}${shared_ext}$major'
12305 shlibpath_var=LIBRARY_PATH
12306 shlibpath_overrides_runpath=yes
12307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12308 hardcode_into_libs=yes
12311 hpux9* | hpux10* | hpux11*)
12312 # Give a soname corresponding to the major version so that dld.sl refuses to
12313 # link against other versions.
12320 hardcode_into_libs=yes
12321 dynamic_linker="$host_os dld.so"
12322 shlibpath_var=LD_LIBRARY_PATH
12323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325 soname_spec='${libname}${release}${shared_ext}$major'
12326 if test "X$HPUX_IA64_MODE" = X32; then
12327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12335 hardcode_into_libs=yes
12336 dynamic_linker="$host_os dld.sl"
12337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340 soname_spec='${libname}${release}${shared_ext}$major'
12341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12346 dynamic_linker="$host_os dld.sl"
12347 shlibpath_var=SHLIB_PATH
12348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12350 soname_spec='${libname}${release}${shared_ext}$major'
12353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12354 postinstall_cmds='chmod 555 $lib'
12355 # or fails outright, so override atomically:
12356 install_override_mode=555
12363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12364 soname_spec='${libname}${release}${shared_ext}$major'
12365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12366 shlibpath_var=LD_LIBRARY_PATH
12367 shlibpath_overrides_runpath=no
12368 hardcode_into_libs=yes
12371 irix5* | irix6* | nonstopux*)
12373 nonstopux*) version_type=nonstopux ;;
12375 if test "$lt_cv_prog_gnu_ld" = yes; then
12383 soname_spec='${libname}${release}${shared_ext}$major'
12384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12386 irix5* | nonstopux*)
12387 libsuff= shlibsuff=
12390 case $LD in # libtool.m4 will add one of these switches to LD
12391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12392 libsuff= shlibsuff= libmagic=32-bit;;
12393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12394 libsuff=32 shlibsuff=N32 libmagic=N32;;
12395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12397 *) libsuff= shlibsuff= libmagic=never-match;;
12401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12402 shlibpath_overrides_runpath=no
12403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12405 hardcode_into_libs=yes
12408 # No shared lib support for Linux oldld, aout, or coff.
12409 linux*oldld* | linux*aout* | linux*coff*)
12413 # This must be Linux ELF.
12414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12419 soname_spec='${libname}${release}${shared_ext}$major'
12420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12421 shlibpath_var=LD_LIBRARY_PATH
12422 shlibpath_overrides_runpath=no
12424 # Some binutils ld are patched to set DT_RUNPATH
12425 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12426 $as_echo_n "(cached) " >&6
12428 lt_cv_shlibpath_overrides_runpath=no
12429 save_LDFLAGS=$LDFLAGS
12430 save_libdir=$libdir
12431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12444 if ac_fn_c_try_link "$LINENO"; then :
12445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12446 lt_cv_shlibpath_overrides_runpath=yes
12449 rm -f core conftest.err conftest.$ac_objext \
12450 conftest$ac_exeext conftest.$ac_ext
12451 LDFLAGS=$save_LDFLAGS
12452 libdir=$save_libdir
12456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12458 # This implies no fast_install, which is unacceptable.
12459 # Some rework will be needed to allow for fast_install
12460 # before this can be enabled.
12461 hardcode_into_libs=yes
12463 # Append ld.so.conf contents to the search path
12464 if test -f /etc/ld.so.conf; then
12465 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;s/"//g;/^$/d' | tr '\n' ' '`
12466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12469 # We used to test for /lib/ld.so.1 and disable shared libraries on
12470 # powerpc, because MkLinux only supported shared libraries with the
12471 # GNU dynamic linker. Since this was broken with cross compilers,
12472 # most powerpc-linux boxes support dynamic linking these days and
12473 # people can always --disable-shared, the test was removed, and we
12474 # assume the GNU/Linux dynamic linker is in use.
12475 dynamic_linker='GNU/Linux ld.so'
12482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12485 dynamic_linker='NetBSD (a.out) ld.so'
12487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12488 soname_spec='${libname}${release}${shared_ext}$major'
12489 dynamic_linker='NetBSD ld.elf_so'
12491 shlibpath_var=LD_LIBRARY_PATH
12492 shlibpath_overrides_runpath=yes
12493 hardcode_into_libs=yes
12498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12499 shlibpath_var=LD_LIBRARY_PATH
12500 shlibpath_overrides_runpath=yes
12507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12508 soname_spec='${libname}${release}${shared_ext}$major'
12509 shlibpath_var=LD_LIBRARY_PATH
12510 shlibpath_overrides_runpath=no
12511 hardcode_into_libs=yes
12512 dynamic_linker='ldqnx.so'
12517 sys_lib_dlsearch_path_spec="/usr/lib"
12519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12521 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12522 *) need_version=no ;;
12524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12526 shlibpath_var=LD_LIBRARY_PATH
12527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12529 openbsd2.[89] | openbsd2.[89].*)
12530 shlibpath_overrides_runpath=no
12533 shlibpath_overrides_runpath=yes
12537 shlibpath_overrides_runpath=yes
12542 libname_spec='$name'
12545 library_names_spec='$libname${shared_ext} $libname.a'
12546 dynamic_linker='OS/2 ld.exe'
12547 shlibpath_var=LIBPATH
12550 osf3* | osf4* | osf5*)
12554 soname_spec='${libname}${release}${shared_ext}$major'
12555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12556 shlibpath_var=LD_LIBRARY_PATH
12557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570 soname_spec='${libname}${release}${shared_ext}$major'
12571 shlibpath_var=LD_LIBRARY_PATH
12572 shlibpath_overrides_runpath=yes
12573 hardcode_into_libs=yes
12574 # ldd complains unless libraries are executable
12575 postinstall_cmds='chmod +x $lib'
12580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12581 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12582 shlibpath_var=LD_LIBRARY_PATH
12583 shlibpath_overrides_runpath=yes
12584 if test "$with_gnu_ld" = yes; then
12592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12593 soname_spec='${libname}${release}${shared_ext}$major'
12594 shlibpath_var=LD_LIBRARY_PATH
12595 case $host_vendor in
12597 shlibpath_overrides_runpath=no
12599 runpath_var=LD_RUN_PATH
12607 shlibpath_overrides_runpath=no
12608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12614 if test -d /usr/nec ;then
12616 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12617 soname_spec='$libname${shared_ext}.$major'
12618 shlibpath_var=LD_LIBRARY_PATH
12622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12623 version_type=freebsd-elf
12626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12627 soname_spec='${libname}${release}${shared_ext}$major'
12628 shlibpath_var=LD_LIBRARY_PATH
12629 shlibpath_overrides_runpath=yes
12630 hardcode_into_libs=yes
12631 if test "$with_gnu_ld" = yes; then
12632 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12634 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12637 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12641 sys_lib_dlsearch_path_spec='/usr/lib'
12645 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12650 shlibpath_var=LD_LIBRARY_PATH
12651 shlibpath_overrides_runpath=no
12652 hardcode_into_libs=yes
12657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658 soname_spec='${libname}${release}${shared_ext}$major'
12659 shlibpath_var=LD_LIBRARY_PATH
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12667 $as_echo "$dynamic_linker" >&6; }
12668 test "$dynamic_linker" = no && can_build_shared=no
12670 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12671 if test "$GCC" = yes; then
12672 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12675 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12676 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12678 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12679 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12774 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12776 if test -n "$hardcode_libdir_flag_spec" ||
12777 test -n "$runpath_var" ||
12778 test "X$hardcode_automatic" = "Xyes" ; then
12780 # We can hardcode non-existent directories.
12781 if test "$hardcode_direct" != no &&
12782 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12783 # have to relink, otherwise we might link with an installed library
12784 # when we should be linking with a yet-to-be-installed one
12785 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12786 test "$hardcode_minus_L" != no; then
12787 # Linking always hardcodes the temporary library directory.
12788 hardcode_action=relink
12790 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12791 hardcode_action=immediate
12794 # We cannot hardcode anything, or else we can only hardcode existing
12796 hardcode_action=unsupported
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12799 $as_echo "$hardcode_action" >&6; }
12801 if test "$hardcode_action" = relink ||
12802 test "$inherit_rpath" = yes; then
12803 # Fast installation is not supported
12804 enable_fast_install=no
12805 elif test "$shlibpath_overrides_runpath" = yes ||
12806 test "$enable_shared" = no; then
12807 # Fast installation is not necessary
12808 enable_fast_install=needless
12816 if test "x$enable_dlopen" != xyes; then
12817 enable_dlopen=unknown
12818 enable_dlopen_self=unknown
12819 enable_dlopen_self_static=unknown
12826 lt_cv_dlopen="load_add_on"
12828 lt_cv_dlopen_self=yes
12831 mingw* | pw32* | cegcc*)
12832 lt_cv_dlopen="LoadLibrary"
12837 lt_cv_dlopen="dlopen"
12842 # if libdl is installed we need to link against it
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12845 if ${ac_cv_lib_dl_dlopen+:} false; then :
12846 $as_echo_n "(cached) " >&6
12848 ac_check_lib_save_LIBS=$LIBS
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12853 /* Override any GCC internal prototype to avoid an error.
12854 Use char because int might match the return type of a GCC
12855 builtin and then its argument prototype would still apply. */
12868 if ac_fn_c_try_link "$LINENO"; then :
12869 ac_cv_lib_dl_dlopen=yes
12871 ac_cv_lib_dl_dlopen=no
12873 rm -f core conftest.err conftest.$ac_objext \
12874 conftest$ac_exeext conftest.$ac_ext
12875 LIBS=$ac_check_lib_save_LIBS
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12879 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12880 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12883 lt_cv_dlopen="dyld"
12885 lt_cv_dlopen_self=yes
12892 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12893 if test "x$ac_cv_func_shl_load" = xyes; then :
12894 lt_cv_dlopen="shl_load"
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12897 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12898 if ${ac_cv_lib_dld_shl_load+:} false; then :
12899 $as_echo_n "(cached) " >&6
12901 ac_check_lib_save_LIBS=$LIBS
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12906 /* Override any GCC internal prototype to avoid an error.
12907 Use char because int might match the return type of a GCC
12908 builtin and then its argument prototype would still apply. */
12916 return shl_load ();
12921 if ac_fn_c_try_link "$LINENO"; then :
12922 ac_cv_lib_dld_shl_load=yes
12924 ac_cv_lib_dld_shl_load=no
12926 rm -f core conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12928 LIBS=$ac_check_lib_save_LIBS
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12931 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12932 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12933 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12935 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12936 if test "x$ac_cv_func_dlopen" = xyes; then :
12937 lt_cv_dlopen="dlopen"
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12940 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12941 if ${ac_cv_lib_dl_dlopen+:} false; then :
12942 $as_echo_n "(cached) " >&6
12944 ac_check_lib_save_LIBS=$LIBS
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12949 /* Override any GCC internal prototype to avoid an error.
12950 Use char because int might match the return type of a GCC
12951 builtin and then its argument prototype would still apply. */
12964 if ac_fn_c_try_link "$LINENO"; then :
12965 ac_cv_lib_dl_dlopen=yes
12967 ac_cv_lib_dl_dlopen=no
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12971 LIBS=$ac_check_lib_save_LIBS
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12974 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12975 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12979 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12980 if ${ac_cv_lib_svld_dlopen+:} false; then :
12981 $as_echo_n "(cached) " >&6
12983 ac_check_lib_save_LIBS=$LIBS
12984 LIBS="-lsvld $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. */
13003 if ac_fn_c_try_link "$LINENO"; then :
13004 ac_cv_lib_svld_dlopen=yes
13006 ac_cv_lib_svld_dlopen=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_svld_dlopen" >&5
13013 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13014 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13015 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13018 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13019 if ${ac_cv_lib_dld_dld_link+:} false; then :
13020 $as_echo_n "(cached) " >&6
13022 ac_check_lib_save_LIBS=$LIBS
13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13027 /* Override any GCC internal prototype to avoid an error.
13028 Use char because int might match the return type of a GCC
13029 builtin and then its argument prototype would still apply. */
13037 return dld_link ();
13042 if ac_fn_c_try_link "$LINENO"; then :
13043 ac_cv_lib_dld_dld_link=yes
13045 ac_cv_lib_dld_dld_link=no
13047 rm -f core conftest.err conftest.$ac_objext \
13048 conftest$ac_exeext conftest.$ac_ext
13049 LIBS=$ac_check_lib_save_LIBS
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13052 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13053 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13054 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13075 if test "x$lt_cv_dlopen" != xno; then
13081 case $lt_cv_dlopen in
13083 save_CPPFLAGS="$CPPFLAGS"
13084 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13086 save_LDFLAGS="$LDFLAGS"
13087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13090 LIBS="$lt_cv_dlopen_libs $LIBS"
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13093 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13094 if ${lt_cv_dlopen_self+:} false; then :
13095 $as_echo_n "(cached) " >&6
13097 if test "$cross_compiling" = yes; then :
13098 lt_cv_dlopen_self=cross
13100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13101 lt_status=$lt_dlunknown
13102 cat > conftest.$ac_ext <<_LT_EOF
13103 #line $LINENO "configure"
13104 #include "confdefs.h"
13113 # define LT_DLGLOBAL RTLD_GLOBAL
13116 # define LT_DLGLOBAL DL_GLOBAL
13118 # define LT_DLGLOBAL 0
13122 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13123 find out it does not work in some platform. */
13124 #ifndef LT_DLLAZY_OR_NOW
13126 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13129 # define LT_DLLAZY_OR_NOW DL_LAZY
13132 # define LT_DLLAZY_OR_NOW RTLD_NOW
13135 # define LT_DLLAZY_OR_NOW DL_NOW
13137 # define LT_DLLAZY_OR_NOW 0
13144 /* When -fvisbility=hidden is used, assume the code has been annotated
13145 correspondingly for the symbols needed. */
13146 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13147 int fnord () __attribute__((visibility("default")));
13150 int fnord () { return 42; }
13153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13154 int status = $lt_dlunknown;
13158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13161 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13162 else puts (dlerror ());
13164 /* dlclose (self); */
13172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13173 (eval $ac_link) 2>&5
13175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13177 (./conftest; exit; ) >&5 2>/dev/null
13179 case x$lt_status in
13180 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13181 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13182 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13185 # compilation failed
13186 lt_cv_dlopen_self=no
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13194 $as_echo "$lt_cv_dlopen_self" >&6; }
13196 if test "x$lt_cv_dlopen_self" = xyes; then
13197 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13199 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13200 if ${lt_cv_dlopen_self_static+:} false; then :
13201 $as_echo_n "(cached) " >&6
13203 if test "$cross_compiling" = yes; then :
13204 lt_cv_dlopen_self_static=cross
13206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13207 lt_status=$lt_dlunknown
13208 cat > conftest.$ac_ext <<_LT_EOF
13209 #line $LINENO "configure"
13210 #include "confdefs.h"
13219 # define LT_DLGLOBAL RTLD_GLOBAL
13222 # define LT_DLGLOBAL DL_GLOBAL
13224 # define LT_DLGLOBAL 0
13228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13229 find out it does not work in some platform. */
13230 #ifndef LT_DLLAZY_OR_NOW
13232 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13235 # define LT_DLLAZY_OR_NOW DL_LAZY
13238 # define LT_DLLAZY_OR_NOW RTLD_NOW
13241 # define LT_DLLAZY_OR_NOW DL_NOW
13243 # define LT_DLLAZY_OR_NOW 0
13250 /* When -fvisbility=hidden is used, assume the code has been annotated
13251 correspondingly for the symbols needed. */
13252 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13253 int fnord () __attribute__((visibility("default")));
13256 int fnord () { return 42; }
13259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13260 int status = $lt_dlunknown;
13264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13267 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13268 else puts (dlerror ());
13270 /* dlclose (self); */
13278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13279 (eval $ac_link) 2>&5
13281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13282 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13283 (./conftest; exit; ) >&5 2>/dev/null
13285 case x$lt_status in
13286 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13287 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13288 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13291 # compilation failed
13292 lt_cv_dlopen_self_static=no
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13300 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13303 CPPFLAGS="$save_CPPFLAGS"
13304 LDFLAGS="$save_LDFLAGS"
13309 case $lt_cv_dlopen_self in
13310 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13311 *) enable_dlopen_self=unknown ;;
13314 case $lt_cv_dlopen_self_static in
13315 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13316 *) enable_dlopen_self_static=unknown ;;
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13339 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13340 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13341 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13342 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13344 $as_echo "yes" >&6; }
13346 # FIXME - insert some real tests, host_os isn't really good enough
13349 if test -n "$STRIP" ; then
13350 striplib="$STRIP -x"
13351 old_striplib="$STRIP -S"
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13353 $as_echo "yes" >&6; }
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361 $as_echo "no" >&6; }
13377 # Report which library types will actually be built
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13379 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13381 $as_echo "$can_build_shared" >&6; }
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13384 $as_echo_n "checking whether to build shared libraries... " >&6; }
13385 test "$can_build_shared" = "no" && enable_shared=no
13387 # On AIX, shared libraries and static libraries use the same namespace, and
13388 # are all built from PIC.
13391 test "$enable_shared" = yes && enable_static=no
13392 if test -n "$RANLIB"; then
13393 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13394 postinstall_cmds='$RANLIB $lib'
13399 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13400 test "$enable_shared" = yes && enable_static=no
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13405 $as_echo "$enable_shared" >&6; }
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13408 $as_echo_n "checking whether to build static libraries... " >&6; }
13409 # Make sure either enable_shared or enable_static is yes.
13410 test "$enable_shared" = yes || enable_static=yes
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13412 $as_echo "$enable_static" >&6; }
13419 ac_cpp='$CPP $CPPFLAGS'
13420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13438 ac_config_commands="$ac_config_commands libtool"
13443 # Only expand once:
13447 if test "$enable_shared" = "no"; then
13453 eval _shrext="$shrext_cmds"
13454 # Darwin uses .dylib for libraries but .so for modules
13455 if test X"$_shrext" = X".dylib"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
13462 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
13464 # Check whether --with-noexec was given.
13465 if test "${with_noexec+set}" = set; then :
13466 withval=$with_noexec; case $with_noexec in
13467 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
13473 with_noexec="$libexecdir/sudo_noexec$_shrext"
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
13477 $as_echo "$with_noexec" >&6; }
13478 NOEXECFILE="sudo_noexec$_shrext"
13479 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
13481 if test X"$with_devel" = X"yes" -a -n "$GCC"; then
13482 CFLAGS="${CFLAGS} -Wall"
13485 # Extract the first word of "uname", so it can be a program name with args.
13486 set dummy uname; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if ${ac_cv_prog_UNAMEPROG+:} false; then :
13490 $as_echo_n "(cached) " >&6
13492 if test -n "$UNAMEPROG"; then
13493 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
13495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496 for as_dir in $PATH
13499 test -z "$as_dir" && as_dir=.
13500 for ac_exec_ext in '' $ac_executable_extensions; do
13501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13502 ac_cv_prog_UNAMEPROG="uname"
13503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13512 UNAMEPROG=$ac_cv_prog_UNAMEPROG
13513 if test -n "$UNAMEPROG"; then
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
13515 $as_echo "$UNAMEPROG" >&6; }
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
13522 # Extract the first word of "tr", so it can be a program name with args.
13523 set dummy tr; ac_word=$2
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525 $as_echo_n "checking for $ac_word... " >&6; }
13526 if ${ac_cv_prog_TRPROG+:} false; then :
13527 $as_echo_n "(cached) " >&6
13529 if test -n "$TRPROG"; then
13530 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
13532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533 for as_dir in $PATH
13536 test -z "$as_dir" && as_dir=.
13537 for ac_exec_ext in '' $ac_executable_extensions; do
13538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13539 ac_cv_prog_TRPROG="tr"
13540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13549 TRPROG=$ac_cv_prog_TRPROG
13550 if test -n "$TRPROG"; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
13552 $as_echo "$TRPROG" >&6; }
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 $as_echo "no" >&6; }
13559 for ac_prog in nroff mandoc
13561 # Extract the first word of "$ac_prog", so it can be a program name with args.
13562 set dummy $ac_prog; ac_word=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if ${ac_cv_prog_NROFFPROG+:} false; then :
13566 $as_echo_n "(cached) " >&6
13568 if test -n "$NROFFPROG"; then
13569 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
13577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13578 ac_cv_prog_NROFFPROG="$ac_prog"
13579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13588 NROFFPROG=$ac_cv_prog_NROFFPROG
13589 if test -n "$NROFFPROG"; then
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
13591 $as_echo "$NROFFPROG" >&6; }
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13598 test -n "$NROFFPROG" && break
13601 if test -n "$NROFFPROG"; then
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -c option" >&5
13603 $as_echo_n "checking whether $NROFFPROG supports the -c option... " >&6; }
13604 if ${sudo_cv_var_nroff_opt_c+:} false; then :
13605 $as_echo_n "(cached) " >&6
13607 if $NROFFPROG -c </dev/null >/dev/null 2>&1; then
13608 sudo_cv_var_nroff_opt_c=yes
13610 sudo_cv_var_nroff_opt_c=no
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_c" >&5
13615 $as_echo "$sudo_cv_var_nroff_opt_c" >&6; }
13616 if test "$sudo_cv_var_nroff_opt_c" = "yes"; then
13617 NROFFPROG="$NROFFPROG -c"
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -Tascii option" >&5
13620 $as_echo_n "checking whether $NROFFPROG supports the -Tascii option... " >&6; }
13621 if ${sudo_cv_var_nroff_opt_Tascii+:} false; then :
13622 $as_echo_n "(cached) " >&6
13624 if $NROFFPROG -Tascii </dev/null >/dev/null 2>&1; then
13625 sudo_cv_var_nroff_opt_Tascii=yes
13627 sudo_cv_var_nroff_opt_Tascii=no
13629 if test "$sudo_cv_var_nroff_opt_Tascii" = "yes"; then
13630 NROFFPROG="$NROFFPROG -Tascii"
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_Tascii" >&5
13635 $as_echo "$sudo_cv_var_nroff_opt_Tascii" >&6; }
13638 mansrcdir='$(srcdir)'
13641 if test -n "$sudo_cv_prev_host"; then
13642 if test "$sudo_cv_prev_host" != "$host"; then
13643 as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
13646 $as_echo_n "checking previous host type... " >&6; }
13647 if ${sudo_cv_prev_host+:} false; then :
13648 $as_echo_n "(cached) " >&6
13650 sudo_cv_prev_host="$host"
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
13654 $as_echo "$sudo_cv_prev_host" >&6; }
13657 # this will produce no output since there is no cached value
13658 if ${sudo_cv_prev_host+:} false; then :
13659 $as_echo_n "(cached) " >&6
13661 sudo_cv_prev_host="$host"
13666 if test -n "$host_os"; then
13667 OS=`echo $host_os | sed 's/[0-9].*//'`
13668 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
13669 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
13678 # getcwd(3) opens a pipe to getpwd(1)!?!
13681 # system headers lack prototypes but gcc helps...
13682 if test -n "$GCC"; then
13683 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
13686 shadow_funcs="getpwanam issecure"
13689 # To get the crypt(3) prototype (so we pass -Wall)
13690 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13691 # AFS support needs -lucb
13692 if test "$with_AFS" = "yes"; then
13693 AFS_LIBS="-lc -lucb"
13695 : ${mansectsu='1m'}
13696 : ${mansectform='4'}
13697 : ${with_rpath='yes'}
13698 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13699 for ac_func in priv_set
13701 ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
13702 if test "x$ac_cv_func_priv_set" = xyes; then :
13703 cat >>confdefs.h <<_ACEOF
13704 #define HAVE_PRIV_SET 1
13712 # To get all prototypes (so we pass -Wall)
13713 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
13714 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
13715 if test X"$with_blibpath" != X"no"; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
13717 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
13718 O_LDFLAGS="$LDFLAGS"
13719 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13731 if ac_fn_c_try_link "$LINENO"; then :
13733 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
13734 blibpath="$with_blibpath"
13735 elif test -n "$GCC"; then
13736 blibpath="/usr/lib:/lib:/usr/local/lib"
13738 blibpath="/usr/lib:/lib"
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13741 $as_echo "yes" >&6; }
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 $as_echo "no" >&6; }
13747 rm -f core conftest.err conftest.$ac_objext \
13748 conftest$ac_exeext conftest.$ac_ext
13750 LDFLAGS="$O_LDFLAGS"
13752 # Use authenticate(3) as the default authentication method
13753 if test X"$with_aixauth" = X""; then
13754 for ac_func in authenticate
13756 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
13757 if test "x$ac_cv_func_authenticate" = xyes; then :
13758 cat >>confdefs.h <<_ACEOF
13759 #define HAVE_AUTHENTICATE 1
13761 AUTH_EXCL_DEF="AIX_AUTH"
13767 # AIX analog of nsswitch.conf, enabled by default
13769 # Check whether --with-netsvc was given.
13770 if test "${with_netsvc+set}" = set; then :
13771 withval=$with_netsvc; case $with_netsvc in
13773 yes) with_netsvc="/etc/netsvc.conf"
13779 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
13780 with_netsvc="/etc/netsvc.conf"
13783 # For implementing getgrouplist()
13784 for ac_func in getgrset
13786 ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
13787 if test "x$ac_cv_func_getgrset" = xyes; then :
13788 cat >>confdefs.h <<_ACEOF
13789 #define HAVE_GETGRSET 1
13796 # LDR_PRELOAD is supported in AIX 5.3 and later
13798 1-4.*) with_noexec=no ;;
13801 # AIX-specific functions
13802 for ac_func in getuserattr setauthdb
13804 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13805 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13806 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13807 cat >>confdefs.h <<_ACEOF
13808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13814 COMMON_OBJS="$COMMON_OBJS aix.lo"
13817 : ${mansectsu='1m'}
13818 : ${mansectform='4'}
13821 # AFS support needs -lBSD
13822 if test "$with_AFS" = "yes"; then
13823 AFS_LIBS="-lc -lBSD"
13825 : ${mansectsu='1m'}
13826 : ${mansectform='4'}
13828 # The HP bundled compiler cannot generate shared libs
13829 if test -z "$GCC"; then
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
13831 $as_echo_n "checking for HP bundled C compiler... " >&6; }
13832 if ${sudo_cv_var_hpccbundled+:} false; then :
13833 $as_echo_n "(cached) " >&6
13835 if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
13836 sudo_cv_var_hpccbundled=yes
13838 sudo_cv_var_hpccbundled=no
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
13843 $as_echo "$sudo_cv_var_hpccbundled" >&6; }
13844 if test "$sudo_cv_var_hpccbundled" = "yes"; then
13845 as_fn_error $? "The HP bundled C compiler is unable to build Sudo, you must use gcc or the HP ANSI C compiler instead." "$LINENO" 5
13849 # Build PA-RISC1.1 objects for better portability
13850 case "$host_cpu" in
13853 if test -n "$GCC"; then
13854 portable_flag="-march=1.1"
13856 portable_flag="+DAportable"
13858 CFLAGS="$CFLAGS $portable_flag"
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
13860 $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
13861 if ${sudo_cv_var_daportable+:} false; then :
13862 $as_echo_n "(cached) " >&6
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13875 if ac_fn_c_try_link "$LINENO"; then :
13876 sudo_cv_var_daportable=yes
13878 sudo_cv_var_daportable=no
13881 rm -f core conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
13887 $as_echo "$sudo_cv_var_daportable" >&6; }
13888 if test X"$sudo_cv_var_daportable" != X"yes"; then
13896 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13900 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13903 shadow_funcs="getspwuid"
13905 # DCE support (requires ANSI C compiler)
13906 if test "$with_DCE" = "yes"; then
13907 # order of libs in 9.X is important. -lc_r must be last
13908 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
13909 LIBS="${LIBS} -ldce -lM -lc_r"
13910 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
13914 shadow_funcs="getprpwnam iscomsec"
13915 shadow_libs="-lsec"
13916 # HP-UX 10.20 libc has an incompatible getline
13917 ac_cv_func_getline="no"
13920 shadow_funcs="getspnam iscomsec"
13921 shadow_libs="-lsec"
13922 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13927 # ignore envariables wrt dynamic lib path
13928 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
13930 : ${CHECKSIA='true'}
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
13932 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
13933 # Check whether --enable-sia was given.
13934 if test "${enable_sia+set}" = set; then :
13935 enableval=$enable_sia; case "$enableval" in
13936 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937 $as_echo "no" >&6; }
13940 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13941 $as_echo "yes" >&6; }
13944 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
13947 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13953 $as_echo "no" >&6; }
13957 shadow_funcs="getprpwnam dispcrypt"
13958 # OSF/1 4.x and higher need -ldb too
13959 if test $OSMAJOR -lt 4; then
13960 shadow_libs="-lsecurity -laud -lm"
13962 shadow_libs="-lsecurity -ldb -laud -lm"
13965 # use SIA by default, if we have it
13966 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
13969 # Some versions of Digital Unix ship with a broken
13970 # copy of prot.h, which we need for shadow passwords.
13971 # XXX - make should remove this as part of distclean
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
13974 $as_echo_n "checking for broken prot.h... " >&6; }
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13978 #include <sys/types.h>
13979 #include <sys/security.h>
13990 if ac_fn_c_try_compile "$LINENO"; then :
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 $as_echo "no" >&6; }
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
13995 $as_echo "yes, fixing locally" >&6; }
13996 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001 : ${mansectform='4'}
14004 OSDEFS="${OSDEFS} -D_BSD_TYPES"
14005 if test -z "$NROFFPROG"; then
14006 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)'
14007 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14008 if test -d /usr/share/catman/local; then
14009 mandir="/usr/share/catman/local"
14011 mandir="/usr/catman/local"
14015 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14016 if test -d "/usr/share/man/local"; then
14017 mandir="/usr/share/man/local"
14019 mandir="/usr/man/local"
14023 # IRIX <= 4 needs -lsun
14024 if test "$OSMAJOR" -le 4; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
14026 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
14027 if ${ac_cv_lib_sun_getpwnam+:} false; then :
14028 $as_echo_n "(cached) " >&6
14030 ac_check_lib_save_LIBS=$LIBS
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14035 /* Override any GCC internal prototype to avoid an error.
14036 Use char because int might match the return type of a GCC
14037 builtin and then its argument prototype would still apply. */
14045 return getpwnam ();
14050 if ac_fn_c_try_link "$LINENO"; then :
14051 ac_cv_lib_sun_getpwnam=yes
14053 ac_cv_lib_sun_getpwnam=no
14055 rm -f core conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
14057 LIBS=$ac_check_lib_save_LIBS
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
14060 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
14061 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
14062 LIBS="${LIBS} -lsun"
14066 : ${mansectsu='1m'}
14067 : ${mansectform='4'}
14069 *-*-linux*|*-*-k*bsd*-gnu)
14070 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14071 # Some Linux versions need to link with -lshadow
14072 shadow_funcs="getspnam"
14073 shadow_libs_optional="-lshadow"
14074 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14077 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
14078 if test -z "$GCC"; then
14079 CFLAGS="${CFLAGS} -D__STDC__"
14082 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
14083 shadow_funcs="getprpwnam"
14084 shadow_libs="-lprot"
14088 shadow_funcs="getauthuid"
14089 shadow_libs="-lauth"
14092 LIBS="${LIBS} -lsun -lbsd"
14093 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
14094 OSDEFS="${OSDEFS} -D_MIPS"
14095 : ${mansectsu='1m'}
14096 : ${mansectform='4'}
14099 OSDEFS="${OSDEFS} -D_ISC"
14101 SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
14103 shadow_funcs="getspnam"
14104 shadow_libs="-lsec"
14106 : ${mansectsu='1m'}
14107 : ${mansectform='4'}
14110 shadow_funcs="getprpwnam"
14111 shadow_libs="-lprot -lx"
14112 : ${mansectsu='1m'}
14113 : ${mansectform='4'}
14115 m88k-motorola-sysv*)
14116 # motorolla's cc (a variant of gcc) does -O but not -O2
14117 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
14118 : ${mansectsu='1m'}
14119 : ${mansectform='4'}
14122 shadow_funcs="getspnam"
14123 shadow_libs="-lsec"
14124 : ${mansectsu='1m'}
14125 : ${mansectform='4'}
14126 : ${with_rpath='yes'}
14128 *-ncr-sysv4*|*-ncr-sysvr4*)
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
14130 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
14131 if ${ac_cv_lib_c89_strcasecmp+:} false; then :
14132 $as_echo_n "(cached) " >&6
14134 ac_check_lib_save_LIBS=$LIBS
14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h. */
14139 /* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14145 char strcasecmp ();
14149 return strcasecmp ();
14154 if ac_fn_c_try_link "$LINENO"; then :
14155 ac_cv_lib_c89_strcasecmp=yes
14157 ac_cv_lib_c89_strcasecmp=no
14159 rm -f core conftest.err conftest.$ac_objext \
14160 conftest$ac_exeext conftest.$ac_ext
14161 LIBS=$ac_check_lib_save_LIBS
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
14164 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
14165 if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
14166 LIBS="${LIBS} -lc89"
14169 : ${mansectsu='1m'}
14170 : ${mansectform='4'}
14171 : ${with_rpath='yes'}
14173 *-ccur-sysv4*|*-ccur-sysvr4*)
14174 LIBS="${LIBS} -lgen"
14175 : ${mansectsu='1m'}
14176 : ${mansectform='4'}
14177 : ${with_rpath='yes'}
14181 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
14182 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
14184 2|3) { $as_echo "$as_me:${as_lineno-$LINENO}: using shlicc as CC" >&5
14185 $as_echo "$as_me: using shlicc as CC" >&6;}
14186 ac_cv_prog_CC=shlicc
14187 CC="$ac_cv_prog_CC"
14191 # Check for newer BSD auth API (just check for >= 3.0?)
14192 if test -z "$with_bsdauth"; then
14193 for ac_func in auth_challenge
14195 ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
14196 if test "x$ac_cv_func_auth_challenge" = xyes; then :
14197 cat >>confdefs.h <<_ACEOF
14198 #define HAVE_AUTH_CHALLENGE 1
14200 AUTH_EXCL_DEF="BSD_AUTH"
14207 # FreeBSD has a real setreuid(2) starting with 2.1 and
14208 # backported to 2.0.5. We just take 2.1 and above...
14214 if test "${with_skey-'no'}" = "yes"; then
14215 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14217 CHECKSHADOW="false"
14218 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14219 : ${with_logincap='maybe'}
14222 # OpenBSD has a real setreuid(2) starting with 3.3 but
14223 # we will use setreuid(2) instead.
14225 CHECKSHADOW="false"
14226 # OpenBSD >= 3.0 supports BSD auth
14227 if test -z "$with_bsdauth"; then
14232 AUTH_EXCL_DEF="BSD_AUTH"
14236 : ${with_logincap='maybe'}
14239 # NetBSD has a real setreuid(2) starting with 1.3.2
14241 0.9*|1.012*|1.3|1.3.1)
14245 CHECKSHADOW="false"
14246 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14247 : ${with_logincap='maybe'}
14250 if test "${with_skey-'no'}" = "yes"; then
14251 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14253 CHECKSHADOW="false"
14254 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14255 : ${with_logincap='yes'}
14258 CHECKSHADOW="false"
14261 # Darwin has a real setreuid(2) starting with 9.0
14262 if test $OSMAJOR -lt 9; then
14265 CHECKSHADOW="false"
14266 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14267 : ${with_logincap='yes'}
14270 # lockf() on is broken on the NeXT -- use flock instead
14271 ac_cv_func_lockf=no
14272 ac_cv_func_flock=yes
14275 : ${mansectsu='1m'}
14276 : ${mansectform='4'}
14277 : ${with_rpath='yes'}
14280 : ${mansectsu='1m'}
14281 : ${mansectform='4'}
14284 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14288 AUTH_REG=${AUTH_REG# }
14289 AUTH_EXCL=${AUTH_EXCL# }
14290 if test -n "$AUTH_EXCL"; then
14292 if test $# != 1; then
14293 as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
14295 if test -n "$AUTH_REG"; then
14296 as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
14299 if test X"${with_skey}${with_opie}" = X"yesyes"; then
14300 as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
14304 : ${mansectform='5'}
14306 if test -n "$with_libpath"; then
14307 for i in ${with_libpath}; do
14309 if test X"$with_rpath" = X"yes"; then
14311 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
14313 *) LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
14317 LDFLAGS="${LDFLAGS} -L$i"
14319 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
14320 blibpath_add="${blibpath_add}:$i"
14325 if test -n "$with_libraries"; then
14326 for i in ${with_libraries}; do
14333 LIBS="${LIBS} ${i}"
14337 if test $ac_cv_c_compiler_gnu = yes; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14339 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14340 if ${ac_cv_prog_gcc_traditional+:} false; then :
14341 $as_echo_n "(cached) " >&6
14343 ac_pattern="Autoconf.*'x'"
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14350 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14351 ac_cv_prog_gcc_traditional=yes
14353 ac_cv_prog_gcc_traditional=no
14358 if test $ac_cv_prog_gcc_traditional = no; then
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14361 #include <termio.h>
14364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14365 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14366 ac_cv_prog_gcc_traditional=yes
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14373 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14374 if test $ac_cv_prog_gcc_traditional = yes; then
14375 CC="$CC -traditional"
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14380 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14381 if ${ac_cv_c_const+:} false; then :
14382 $as_echo_n "(cached) " >&6
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14390 /* FIXME: Include the comments suggested by Paul. */
14391 #ifndef __cplusplus
14392 /* Ultrix mips cc rejects this. */
14393 typedef int charset[2];
14395 /* SunOS 4.1.1 cc rejects this. */
14396 char const *const *pcpcc;
14398 /* NEC SVR4.0.2 mips cc rejects this. */
14399 struct point {int x, y;};
14400 static struct point const zero = {0,0};
14401 /* AIX XL C 1.02.0.0 rejects this.
14402 It does not let you subtract one const X* pointer from another in
14403 an arm of an if-expression whose if-part is not a constant
14405 const char *g = "string";
14406 pcpcc = &g + (g ? g-g : 0);
14407 /* HPUX 7.0 cc rejects these. */
14409 ppc = (char**) pcpcc;
14410 pcpcc = (char const *const *) ppc;
14411 { /* SCO 3.2v4 cc rejects this. */
14413 char const *s = 0 ? (char *) 0 : (char const *) 0;
14418 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14419 int x[] = {25, 17};
14420 const int *foo = &x[0];
14423 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14424 typedef const int *iptr;
14428 { /* AIX XL C 1.02.0.0 rejects this saying
14429 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14430 struct s { int j; const int *ap[3]; };
14431 struct s *b; b->j = 5;
14433 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14434 const int foo = 10;
14435 if (!foo) return 0;
14437 return !cs[0] && !zero.x;
14444 if ac_fn_c_try_compile "$LINENO"; then :
14449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14452 $as_echo "$ac_cv_c_const" >&6; }
14453 if test $ac_cv_c_const = no; then
14455 $as_echo "#define const /**/" >>confdefs.h
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14460 $as_echo_n "checking for working volatile... " >&6; }
14461 if ${ac_cv_c_volatile+:} false; then :
14462 $as_echo_n "(cached) " >&6
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14472 int * volatile y = (int *) 0;
14478 if ac_fn_c_try_compile "$LINENO"; then :
14479 ac_cv_c_volatile=yes
14481 ac_cv_c_volatile=no
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14486 $as_echo "$ac_cv_c_volatile" >&6; }
14487 if test $ac_cv_c_volatile = no; then
14489 $as_echo "#define volatile /**/" >>confdefs.h
14493 if test X"$with_gnu_ld" != "yes" -a -n "$GCC"; then
14495 CFLAGS="$CFLAGS -static-libgcc"
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -static-libgcc" >&5
14497 $as_echo_n "checking whether $CC understands -static-libgcc... " >&6; }
14498 if ${sudo_cv_var_gcc_static_libgcc+:} false; then :
14499 $as_echo_n "(cached) " >&6
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14512 if ac_fn_c_try_link "$LINENO"; then :
14513 sudo_cv_var_gcc_static_libgcc=yes
14515 sudo_cv_var_gcc_static_libgcc=no
14518 rm -f core conftest.err conftest.$ac_objext \
14519 conftest$ac_exeext conftest.$ac_ext
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gcc_static_libgcc" >&5
14524 $as_echo "$sudo_cv_var_gcc_static_libgcc" >&6; }
14526 if test "$sudo_cv_var_gcc_static_libgcc" = "yes"; then
14527 LTLDFLAGS="$LTLDFLAGS -Wc,-static-libgcc"
14530 for ac_prog in 'bison -y' byacc
14532 # Extract the first word of "$ac_prog", so it can be a program name with args.
14533 set dummy $ac_prog; ac_word=$2
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14535 $as_echo_n "checking for $ac_word... " >&6; }
14536 if ${ac_cv_prog_YACC+:} false; then :
14537 $as_echo_n "(cached) " >&6
14539 if test -n "$YACC"; then
14540 ac_cv_prog_YACC="$YACC" # Let the user override the test.
14542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543 for as_dir in $PATH
14546 test -z "$as_dir" && as_dir=.
14547 for ac_exec_ext in '' $ac_executable_extensions; do
14548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14549 ac_cv_prog_YACC="$ac_prog"
14550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14559 YACC=$ac_cv_prog_YACC
14560 if test -n "$YACC"; then
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14562 $as_echo "$YACC" >&6; }
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14565 $as_echo "no" >&6; }
14569 test -n "$YACC" && break
14571 test -n "$YACC" || YACC="yacc"
14573 # Extract the first word of "flex", so it can be a program name with args.
14574 set dummy flex; ac_word=$2
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14576 $as_echo_n "checking for $ac_word... " >&6; }
14577 if ${ac_cv_path_FLEX+:} false; then :
14578 $as_echo_n "(cached) " >&6
14582 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586 for as_dir in $PATH
14589 test -z "$as_dir" && as_dir=.
14590 for ac_exec_ext in '' $ac_executable_extensions; do
14591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14592 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14600 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
14604 FLEX=$ac_cv_path_FLEX
14605 if test -n "$FLEX"; then
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14607 $as_echo "$FLEX" >&6; }
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14610 $as_echo "no" >&6; }
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
14615 $as_echo_n "checking for mv... " >&6; }
14617 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
14618 if test -f "$p"; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14621 $as_echo "$p" >&6; }
14622 cat >>confdefs.h <<EOF
14623 #define _PATH_MV "$p"
14629 if test X"$found" != X"yes"; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14631 $as_echo "not found" >&6; }
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
14635 $as_echo_n "checking for bourne shell... " >&6; }
14637 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
14638 if test -f "$p"; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14641 $as_echo "$p" >&6; }
14642 cat >>confdefs.h <<EOF
14643 #define _PATH_BSHELL "$p"
14649 if test X"$found" != X"yes"; then
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14651 $as_echo "not found" >&6; }
14654 if test -z "$with_sendmail"; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
14656 $as_echo_n "checking for sendmail... " >&6; }
14658 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
14659 if test -f "$p"; then
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14662 $as_echo "$p" >&6; }
14663 cat >>confdefs.h <<EOF
14664 #define _PATH_SUDO_SENDMAIL "$p"
14670 if test X"$found" != X"yes"; then
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14672 $as_echo "not found" >&6; }
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
14677 $as_echo_n "checking for vi... " >&6; }
14679 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
14680 if test -f "$editor"; then
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
14683 $as_echo "$editor" >&6; }
14684 cat >>confdefs.h <<EOF
14685 #define _PATH_VI "$editor"
14691 if test X"$found" != X"yes"; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14693 $as_echo "not found" >&6; }
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
14697 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
14698 if test X"$with_logfac" = X""; then
14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700 /* end confdefs.h. */
14701 #include <syslog.h>
14705 int i = LOG_AUTHPRIV; (void)i;
14710 if ac_fn_c_try_compile "$LINENO"; then :
14713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716 cat >>confdefs.h <<_ACEOF
14717 #define LOGFAC "$logfac"
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
14721 $as_echo "$logfac" >&6; }
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14723 $as_echo_n "checking for ANSI C header files... " >&6; }
14724 if ${ac_cv_header_stdc+:} false; then :
14725 $as_echo_n "(cached) " >&6
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729 #include <stdlib.h>
14730 #include <stdarg.h>
14731 #include <string.h>
14742 if ac_fn_c_try_compile "$LINENO"; then :
14743 ac_cv_header_stdc=yes
14745 ac_cv_header_stdc=no
14747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749 if test $ac_cv_header_stdc = yes; then
14750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753 #include <string.h>
14756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14757 $EGREP "memchr" >/dev/null 2>&1; then :
14760 ac_cv_header_stdc=no
14766 if test $ac_cv_header_stdc = yes; then
14767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14770 #include <stdlib.h>
14773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14774 $EGREP "free" >/dev/null 2>&1; then :
14777 ac_cv_header_stdc=no
14783 if test $ac_cv_header_stdc = yes; then
14784 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14785 if test "$cross_compiling" = yes; then :
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14791 #include <stdlib.h>
14792 #if ((' ' & 0x0FF) == 0x020)
14793 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14794 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14796 # define ISLOWER(c) \
14797 (('a' <= (c) && (c) <= 'i') \
14798 || ('j' <= (c) && (c) <= 'r') \
14799 || ('s' <= (c) && (c) <= 'z'))
14800 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14808 for (i = 0; i < 256; i++)
14809 if (XOR (islower (i), ISLOWER (i))
14810 || toupper (i) != TOUPPER (i))
14815 if ac_fn_c_try_run "$LINENO"; then :
14818 ac_cv_header_stdc=no
14820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14821 conftest.$ac_objext conftest.beam conftest.$ac_ext
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14827 $as_echo "$ac_cv_header_stdc" >&6; }
14828 if test $ac_cv_header_stdc = yes; then
14830 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14834 ac_header_dirent=no
14835 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14836 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14838 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14839 if eval \${$as_ac_Header+:} false; then :
14840 $as_echo_n "(cached) " >&6
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844 #include <sys/types.h>
14856 if ac_fn_c_try_compile "$LINENO"; then :
14857 eval "$as_ac_Header=yes"
14859 eval "$as_ac_Header=no"
14861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 eval ac_res=\$$as_ac_Header
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14865 $as_echo "$ac_res" >&6; }
14866 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14867 cat >>confdefs.h <<_ACEOF
14868 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14871 ac_header_dirent=$ac_hdr; break
14875 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14876 if test $ac_header_dirent = dirent.h; then
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14878 $as_echo_n "checking for library containing opendir... " >&6; }
14879 if ${ac_cv_search_opendir+:} false; then :
14880 $as_echo_n "(cached) " >&6
14882 ac_func_search_save_LIBS=$LIBS
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14886 /* Override any GCC internal prototype to avoid an error.
14887 Use char because int might match the return type of a GCC
14888 builtin and then its argument prototype would still apply. */
14901 for ac_lib in '' dir; do
14902 if test -z "$ac_lib"; then
14903 ac_res="none required"
14906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14908 if ac_fn_c_try_link "$LINENO"; then :
14909 ac_cv_search_opendir=$ac_res
14911 rm -f core conftest.err conftest.$ac_objext \
14913 if ${ac_cv_search_opendir+:} false; then :
14917 if ${ac_cv_search_opendir+:} false; then :
14920 ac_cv_search_opendir=no
14922 rm conftest.$ac_ext
14923 LIBS=$ac_func_search_save_LIBS
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14926 $as_echo "$ac_cv_search_opendir" >&6; }
14927 ac_res=$ac_cv_search_opendir
14928 if test "$ac_res" != no; then :
14929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14935 $as_echo_n "checking for library containing opendir... " >&6; }
14936 if ${ac_cv_search_opendir+:} false; then :
14937 $as_echo_n "(cached) " >&6
14939 ac_func_search_save_LIBS=$LIBS
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14943 /* Override any GCC internal prototype to avoid an error.
14944 Use char because int might match the return type of a GCC
14945 builtin and then its argument prototype would still apply. */
14958 for ac_lib in '' x; do
14959 if test -z "$ac_lib"; then
14960 ac_res="none required"
14963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14965 if ac_fn_c_try_link "$LINENO"; then :
14966 ac_cv_search_opendir=$ac_res
14968 rm -f core conftest.err conftest.$ac_objext \
14970 if ${ac_cv_search_opendir+:} false; then :
14974 if ${ac_cv_search_opendir+:} false; then :
14977 ac_cv_search_opendir=no
14979 rm conftest.$ac_ext
14980 LIBS=$ac_func_search_save_LIBS
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14983 $as_echo "$ac_cv_search_opendir" >&6; }
14984 ac_res=$ac_cv_search_opendir
14985 if test "$ac_res" != no; then :
14986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14993 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14994 if ${ac_cv_header_time+:} false; then :
14995 $as_echo_n "(cached) " >&6
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 #include <sys/types.h>
15000 #include <sys/time.h>
15006 if ((struct tm *) 0)
15012 if ac_fn_c_try_compile "$LINENO"; then :
15013 ac_cv_header_time=yes
15015 ac_cv_header_time=no
15017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15020 $as_echo "$ac_cv_header_time" >&6; }
15021 if test $ac_cv_header_time = yes; then
15023 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15027 for ac_header in malloc.h paths.h utime.h netgroup.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
15029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15030 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15031 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15032 cat >>confdefs.h <<_ACEOF
15033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15040 # Check whether --enable-largefile was given.
15041 if test "${enable_largefile+set}" = set; then :
15042 enableval=$enable_largefile;
15045 if test "$enable_largefile" != no; then
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15048 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15049 if ${ac_cv_sys_largefile_CC+:} false; then :
15050 $as_echo_n "(cached) " >&6
15052 ac_cv_sys_largefile_CC=no
15053 if test "$GCC" != yes; then
15056 # IRIX 6.2 and later do not support large files by default,
15057 # so use the C compiler's -n32 option if that helps.
15058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h. */
15060 #include <sys/types.h>
15061 /* Check that off_t can represent 2**63 - 1 correctly.
15062 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15063 since some C++ compilers masquerading as C compilers
15064 incorrectly reject 9223372036854775807. */
15065 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15066 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15067 && LARGE_OFF_T % 2147483647 == 1)
15077 if ac_fn_c_try_compile "$LINENO"; then :
15080 rm -f core conftest.err conftest.$ac_objext
15082 if ac_fn_c_try_compile "$LINENO"; then :
15083 ac_cv_sys_largefile_CC=' -n32'; break
15085 rm -f core conftest.err conftest.$ac_objext
15089 rm -f conftest.$ac_ext
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15093 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15094 if test "$ac_cv_sys_largefile_CC" != no; then
15095 CC=$CC$ac_cv_sys_largefile_CC
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15099 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15100 if ${ac_cv_sys_file_offset_bits+:} false; then :
15101 $as_echo_n "(cached) " >&6
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15106 #include <sys/types.h>
15107 /* Check that off_t can represent 2**63 - 1 correctly.
15108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15109 since some C++ compilers masquerading as C compilers
15110 incorrectly reject 9223372036854775807. */
15111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15113 && LARGE_OFF_T % 2147483647 == 1)
15123 if ac_fn_c_try_compile "$LINENO"; then :
15124 ac_cv_sys_file_offset_bits=no; break
15126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15129 #define _FILE_OFFSET_BITS 64
15130 #include <sys/types.h>
15131 /* Check that off_t can represent 2**63 - 1 correctly.
15132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15133 since some C++ compilers masquerading as C compilers
15134 incorrectly reject 9223372036854775807. */
15135 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15137 && LARGE_OFF_T % 2147483647 == 1)
15147 if ac_fn_c_try_compile "$LINENO"; then :
15148 ac_cv_sys_file_offset_bits=64; break
15150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151 ac_cv_sys_file_offset_bits=unknown
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15156 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15157 case $ac_cv_sys_file_offset_bits in #(
15160 cat >>confdefs.h <<_ACEOF
15161 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15166 if test $ac_cv_sys_file_offset_bits = unknown; then
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15168 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15169 if ${ac_cv_sys_large_files+:} false; then :
15170 $as_echo_n "(cached) " >&6
15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h. */
15175 #include <sys/types.h>
15176 /* Check that off_t can represent 2**63 - 1 correctly.
15177 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15178 since some C++ compilers masquerading as C compilers
15179 incorrectly reject 9223372036854775807. */
15180 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15181 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15182 && LARGE_OFF_T % 2147483647 == 1)
15192 if ac_fn_c_try_compile "$LINENO"; then :
15193 ac_cv_sys_large_files=no; break
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15198 #define _LARGE_FILES 1
15199 #include <sys/types.h>
15200 /* Check that off_t can represent 2**63 - 1 correctly.
15201 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15202 since some C++ compilers masquerading as C compilers
15203 incorrectly reject 9223372036854775807. */
15204 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15205 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15206 && LARGE_OFF_T % 2147483647 == 1)
15216 if ac_fn_c_try_compile "$LINENO"; then :
15217 ac_cv_sys_large_files=1; break
15219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220 ac_cv_sys_large_files=unknown
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15225 $as_echo "$ac_cv_sys_large_files" >&6; }
15226 case $ac_cv_sys_large_files in #(
15229 cat >>confdefs.h <<_ACEOF
15230 #define _LARGE_FILES $ac_cv_sys_large_files
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
15241 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
15242 if ${sudo_cv_xopen_source_extended+:} false; then :
15243 $as_echo_n "(cached) " >&6
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15247 $ac_includes_default
15248 #include <sys/socket.h>
15257 if ac_fn_c_try_compile "$LINENO"; then :
15258 sudo_cv_xopen_source_extended=no
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h. */
15263 #define _XOPEN_SOURCE_EXTENDED
15264 $ac_includes_default
15265 #include <sys/socket.h>
15274 if ac_fn_c_try_compile "$LINENO"; then :
15275 sudo_cv_xopen_source_extended=yes
15277 sudo_cv_xopen_source_extended=error
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
15285 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
15286 if test "$sudo_cv_xopen_source_extended" = "yes"; then
15287 OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
15288 cat >>confdefs.h <<\EOF
15289 #define _XOPEN_SOURCE_EXTENDED 1
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15296 $as_echo_n "checking POSIX termios... " >&6; }
15297 if ${ac_cv_sys_posix_termios+:} false; then :
15298 $as_echo_n "(cached) " >&6
15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h. */
15302 #include <sys/types.h>
15303 #include <unistd.h>
15304 #include <termios.h>
15309 /* SunOS 4.0.3 has termios.h but not the library calls. */
15315 if ac_fn_c_try_link "$LINENO"; then :
15316 ac_cv_sys_posix_termios=yes
15318 ac_cv_sys_posix_termios=no
15320 rm -f core conftest.err conftest.$ac_objext \
15321 conftest$ac_exeext conftest.$ac_ext
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15324 $as_echo "$ac_cv_sys_posix_termios" >&6; }
15326 if test "$ac_cv_sys_posix_termios" != "yes"; then
15327 as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
15331 if test X"$ac_cv_header_paths_h" = X"yes"; then
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15334 $ac_includes_default
15339 char *p = _PATH_MAILDIR;
15344 if ac_fn_c_try_compile "$LINENO"; then :
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349 if test $maildir = no; then
15350 # Solaris has maillock.h which defines MAILDIR
15351 for ac_header in maillock.h
15353 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
15354 if test "x$ac_cv_header_maillock_h" = xyes; then :
15355 cat >>confdefs.h <<_ACEOF
15356 #define HAVE_MAILLOCK_H 1
15359 cat >>confdefs.h <<\EOF
15360 #define _PATH_MAILDIR MAILDIR
15369 if test $maildir = no; then
15370 for d in /var/mail /var/spool/mail /usr/spool/mail; do
15371 if test -d "$d"; then
15373 cat >>confdefs.h <<EOF
15374 #define _PATH_MAILDIR "$d"
15380 if test $maildir = no; then
15381 # unable to find mail dir, hope for the best
15382 cat >>confdefs.h <<EOF
15383 #define _PATH_MAILDIR "/var/mail"
15390 if test ${with_logincap-'no'} != "no"; then
15391 for ac_header in login_cap.h
15393 ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
15394 if test "x$ac_cv_header_login_cap_h" = xyes; then :
15395 cat >>confdefs.h <<_ACEOF
15396 #define HAVE_LOGIN_CAP_H 1
15398 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
15401 SUDO_LIBS="${SUDO_LIBS} -lutil"
15402 SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
15411 if test ${with_project-'no'} != "no"; then
15412 ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
15413 if test "x$ac_cv_header_project_h" = xyes; then :
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
15416 $as_echo_n "checking for setproject in -lproject... " >&6; }
15417 if ${ac_cv_lib_project_setproject+:} false; then :
15418 $as_echo_n "(cached) " >&6
15420 ac_check_lib_save_LIBS=$LIBS
15421 LIBS="-lproject $LIBS"
15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h. */
15425 /* Override any GCC internal prototype to avoid an error.
15426 Use char because int might match the return type of a GCC
15427 builtin and then its argument prototype would still apply. */
15431 char setproject ();
15435 return setproject ();
15440 if ac_fn_c_try_link "$LINENO"; then :
15441 ac_cv_lib_project_setproject=yes
15443 ac_cv_lib_project_setproject=no
15445 rm -f core conftest.err conftest.$ac_objext \
15446 conftest$ac_exeext conftest.$ac_ext
15447 LIBS=$ac_check_lib_save_LIBS
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
15450 $as_echo "$ac_cv_lib_project_setproject" >&6; }
15451 if test "x$ac_cv_lib_project_setproject" = xyes; then :
15453 $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
15455 SUDO_LIBS="${SUDO_LIBS} -lproject"
15464 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15465 if test "x$ac_cv_type_mode_t" = xyes; then :
15469 cat >>confdefs.h <<_ACEOF
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15476 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15477 if ${ac_cv_type_uid_t+:} false; then :
15478 $as_echo_n "(cached) " >&6
15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h. */
15482 #include <sys/types.h>
15485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15486 $EGREP "uid_t" >/dev/null 2>&1; then :
15487 ac_cv_type_uid_t=yes
15489 ac_cv_type_uid_t=no
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15495 $as_echo "$ac_cv_type_uid_t" >&6; }
15496 if test $ac_cv_type_uid_t = no; then
15498 $as_echo "#define uid_t int" >>confdefs.h
15501 $as_echo "#define gid_t int" >>confdefs.h
15505 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
15506 if test "x$ac_cv_type___signed_char" = xyes; then :
15509 ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
15510 if test "x$ac_cv_type_signed_char" = xyes; then :
15511 $as_echo "#define __signed signed" >>confdefs.h
15514 $as_echo "#define __signed /**/" >>confdefs.h
15520 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
15521 #include <signal.h>
15523 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15526 $as_echo "#define sig_atomic_t int" >>confdefs.h
15530 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
15531 #include <signal.h>
15533 if test "x$ac_cv_type_sigaction_t" = xyes; then :
15535 cat >>confdefs.h <<_ACEOF
15536 #define HAVE_SIGACTION_T 1
15539 $as_echo "#define HAVE_SIGACTION_T 1" >>confdefs.h
15543 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
15544 #if TIME_WITH_SYS_TIME
15545 # include <sys/time.h>
15549 if test "x$ac_cv_type_struct_timespec" = xyes; then :
15550 $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
15554 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
15555 #include <netinet/in.h>
15557 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
15559 cat >>confdefs.h <<_ACEOF
15560 #define HAVE_STRUCT_IN6_ADDR 1
15563 $as_echo "#define HAVE_IN6_ADDR 1" >>confdefs.h
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15569 $as_echo_n "checking for long long int... " >&6; }
15570 if ${ac_cv_type_long_long_int+:} false; then :
15571 $as_echo_n "(cached) " >&6
15573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15574 /* end confdefs.h. */
15576 /* For now, do not test the preprocessor; as of 2007 there are too many
15577 implementations with broken preprocessors. Perhaps this can
15578 be revisited in 2012. In the meantime, code should not expect
15579 #if to work with literals wider than 32 bits. */
15580 /* Test literals. */
15581 long long int ll = 9223372036854775807ll;
15582 long long int nll = -9223372036854775807LL;
15583 unsigned long long int ull = 18446744073709551615ULL;
15584 /* Test constant expressions. */
15585 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15587 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15593 /* Test availability of runtime routines for shift and division. */
15594 long long int llmax = 9223372036854775807ll;
15595 unsigned long long int ullmax = 18446744073709551615ull;
15596 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15597 | (llmax / ll) | (llmax % ll)
15598 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15599 | (ullmax / ull) | (ullmax % ull));
15605 if ac_fn_c_try_link "$LINENO"; then :
15606 if test "$cross_compiling" = yes; then :
15607 ac_cv_type_long_long_int=yes
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15611 #include <limits.h>
15614 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15615 # define LLONG_MAX (HALF - 1 + HALF)
15620 long long int n = 1;
15624 long long int m = n << i;
15627 if (LLONG_MAX / 2 < m)
15635 if ac_fn_c_try_run "$LINENO"; then :
15636 ac_cv_type_long_long_int=yes
15638 ac_cv_type_long_long_int=no
15640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15641 conftest.$ac_objext conftest.beam conftest.$ac_ext
15645 ac_cv_type_long_long_int=no
15647 rm -f core conftest.err conftest.$ac_objext \
15648 conftest$ac_exeext conftest.$ac_ext
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15651 $as_echo "$ac_cv_type_long_long_int" >&6; }
15652 if test $ac_cv_type_long_long_int = yes; then
15654 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15658 # The cast to long int works around a bug in the HP C Compiler
15659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15661 # This bug is HP SR number 8606223364.
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
15663 $as_echo_n "checking size of long int... " >&6; }
15664 if ${ac_cv_sizeof_long_int+:} false; then :
15665 $as_echo_n "(cached) " >&6
15667 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
15670 if test "$ac_cv_type_long_int" = yes; then
15671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15673 as_fn_error 77 "cannot compute sizeof (long int)
15674 See \`config.log' for more details" "$LINENO" 5; }
15676 ac_cv_sizeof_long_int=0
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
15682 $as_echo "$ac_cv_sizeof_long_int" >&6; }
15686 cat >>confdefs.h <<_ACEOF
15687 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
15692 $as_echo_n "checking for size_t... " >&6; }
15693 if ${sudo_cv_type_size_t+:} false; then :
15694 $as_echo_n "(cached) " >&6
15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h. */
15698 #include <sys/types.h>
15701 #include <stdlib.h>
15704 #include <unistd.h>
15707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15708 $EGREP "size_t" >/dev/null 2>&1; then :
15709 sudo_cv_type_size_t=yes
15711 sudo_cv_type_size_t=no
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_size_t" >&5
15717 $as_echo "$sudo_cv_type_size_t" >&6; }
15718 if test $sudo_cv_type_size_t = no; then
15720 $as_echo "#define size_t int" >>confdefs.h
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15725 $as_echo_n "checking for ssize_t... " >&6; }
15726 if ${sudo_cv_type_ssize_t+:} false; then :
15727 $as_echo_n "(cached) " >&6
15729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15730 /* end confdefs.h. */
15731 #include <sys/types.h>
15734 #include <stdlib.h>
15737 #include <unistd.h>
15740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15741 $EGREP "ssize_t" >/dev/null 2>&1; then :
15742 sudo_cv_type_ssize_t=yes
15744 sudo_cv_type_ssize_t=no
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ssize_t" >&5
15750 $as_echo "$sudo_cv_type_ssize_t" >&6; }
15751 if test $sudo_cv_type_ssize_t = no; then
15753 $as_echo "#define ssize_t int" >>confdefs.h
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_t" >&5
15758 $as_echo_n "checking for dev_t... " >&6; }
15759 if ${sudo_cv_type_dev_t+:} false; then :
15760 $as_echo_n "(cached) " >&6
15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15764 #include <sys/types.h>
15767 #include <stdlib.h>
15770 #include <unistd.h>
15773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15774 $EGREP "dev_t" >/dev/null 2>&1; then :
15775 sudo_cv_type_dev_t=yes
15777 sudo_cv_type_dev_t=no
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_dev_t" >&5
15783 $as_echo "$sudo_cv_type_dev_t" >&6; }
15784 if test $sudo_cv_type_dev_t = no; then
15786 $as_echo "#define dev_t int" >>confdefs.h
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ino_t" >&5
15791 $as_echo_n "checking for ino_t... " >&6; }
15792 if ${sudo_cv_type_ino_t+:} false; then :
15793 $as_echo_n "(cached) " >&6
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 #include <sys/types.h>
15800 #include <stdlib.h>
15803 #include <unistd.h>
15806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15807 $EGREP "ino_t" >/dev/null 2>&1; then :
15808 sudo_cv_type_ino_t=yes
15810 sudo_cv_type_ino_t=no
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ino_t" >&5
15816 $as_echo "$sudo_cv_type_ino_t" >&6; }
15817 if test $sudo_cv_type_ino_t = no; then
15819 $as_echo "#define ino_t unsigned int" >>confdefs.h
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
15825 $as_echo_n "checking max length of uid_t... " >&6; }
15826 if ${sudo_cv_uid_t_len+:} false; then :
15827 $as_echo_n "(cached) " >&6
15830 if test "$cross_compiling" = yes; then :
15831 sudo_cv_uid_t_len=10
15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h. */
15837 #include <limits.h>
15838 #include <sys/types.h>
15839 #include <sys/param.h>
15843 uid_t u = (uid_t) -1;
15845 if ((f = fopen("conftestdata", "w")) == NULL)
15848 (void) sprintf(b, "%lu", (unsigned long) u);
15849 (void) fprintf(f, "%d\n", strlen(b));
15854 if ac_fn_c_try_run "$LINENO"; then :
15855 sudo_cv_uid_t_len=`cat conftestdata`
15857 sudo_cv_uid_t_len=10
15859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15860 conftest.$ac_objext conftest.beam conftest.$ac_ext
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
15868 $as_echo "$sudo_cv_uid_t_len" >&6; }
15870 cat >>confdefs.h <<_ACEOF
15871 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
15876 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
15877 #include <sys/socket.h>
15880 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15882 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
15888 CFLAGS="$CFLAGS $OSDEFS"
15889 if test $ac_cv_header_utmpx_h = "yes"; then
15890 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
15891 #include <sys/types.h>
15895 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
15897 cat >>confdefs.h <<_ACEOF
15898 #define HAVE_STRUCT_UTMPX_UT_ID 1
15903 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
15904 #include <sys/types.h>
15908 if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
15910 cat >>confdefs.h <<_ACEOF
15911 #define HAVE_STRUCT_UTMPX_UT_PID 1
15916 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
15917 #include <sys/types.h>
15921 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
15923 cat >>confdefs.h <<_ACEOF
15924 #define HAVE_STRUCT_UTMPX_UT_TV 1
15929 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
15930 #include <sys/types.h>
15934 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
15936 cat >>confdefs.h <<_ACEOF
15937 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15943 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
15944 #include <sys/types.h>
15948 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
15950 cat >>confdefs.h <<_ACEOF
15951 #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
15954 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
15958 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
15959 #include <sys/types.h>
15963 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
15965 cat >>confdefs.h <<_ACEOF
15966 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
15969 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
15977 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
15978 #include <sys/types.h>
15982 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
15984 cat >>confdefs.h <<_ACEOF
15985 #define HAVE_STRUCT_UTMP_UT_ID 1
15990 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
15991 #include <sys/types.h>
15995 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
15997 cat >>confdefs.h <<_ACEOF
15998 #define HAVE_STRUCT_UTMP_UT_PID 1
16003 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
16004 #include <sys/types.h>
16008 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
16010 cat >>confdefs.h <<_ACEOF
16011 #define HAVE_STRUCT_UTMP_UT_TV 1
16016 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
16017 #include <sys/types.h>
16021 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
16023 cat >>confdefs.h <<_ACEOF
16024 #define HAVE_STRUCT_UTMP_UT_TYPE 1
16029 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
16030 #include <sys/types.h>
16034 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
16036 cat >>confdefs.h <<_ACEOF
16037 #define HAVE_STRUCT_UTMP_UT_USER 1
16043 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
16044 #include <sys/types.h>
16048 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
16050 cat >>confdefs.h <<_ACEOF
16051 #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
16054 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16058 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
16059 #include <sys/types.h>
16063 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
16065 cat >>confdefs.h <<_ACEOF
16066 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16069 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
16080 $as_echo_n "checking type of array argument to getgroups... " >&6; }
16081 if ${ac_cv_type_getgroups+:} false; then :
16082 $as_echo_n "(cached) " >&6
16084 if test "$cross_compiling" = yes; then :
16085 ac_cv_type_getgroups=cross
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16089 /* Thanks to Mike Rendell for this test. */
16090 $ac_includes_default
16093 #define MAX(x, y) ((x) > (y) ? (x) : (y))
16098 gid_t gidset[NGID];
16100 union { gid_t gval; long int lval; } val;
16103 for (i = 0; i < NGID; i++)
16104 gidset[i] = val.gval;
16105 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16107 /* Exit non-zero if getgroups seems to require an array of ints. This
16108 happens when gid_t is short int but getgroups modifies an array
16110 return n > 0 && gidset[n] != val.gval;
16113 if ac_fn_c_try_run "$LINENO"; then :
16114 ac_cv_type_getgroups=gid_t
16116 ac_cv_type_getgroups=int
16118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16119 conftest.$ac_objext conftest.beam conftest.$ac_ext
16122 if test $ac_cv_type_getgroups = cross; then
16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h. */
16125 #include <unistd.h>
16128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16129 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
16130 ac_cv_type_getgroups=gid_t
16132 ac_cv_type_getgroups=int
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
16139 $as_echo "$ac_cv_type_getgroups" >&6; }
16141 cat >>confdefs.h <<_ACEOF
16142 #define GETGROUPS_T $ac_cv_type_getgroups
16146 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16147 if test "x$ac_cv_type_size_t" = xyes; then :
16151 cat >>confdefs.h <<_ACEOF
16152 #define size_t unsigned int
16157 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16158 if test "x$ac_cv_func_getgroups" = xyes; then :
16163 # If we don't yet have getgroups, see if it's in -lbsd.
16164 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16166 if test $ac_cv_func_getgroups = no; then
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16168 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
16169 if ${ac_cv_lib_bsd_getgroups+:} false; then :
16170 $as_echo_n "(cached) " >&6
16172 ac_check_lib_save_LIBS=$LIBS
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h. */
16177 /* Override any GCC internal prototype to avoid an error.
16178 Use char because int might match the return type of a GCC
16179 builtin and then its argument prototype would still apply. */
16187 return getgroups ();
16192 if ac_fn_c_try_link "$LINENO"; then :
16193 ac_cv_lib_bsd_getgroups=yes
16195 ac_cv_lib_bsd_getgroups=no
16197 rm -f core conftest.err conftest.$ac_objext \
16198 conftest$ac_exeext conftest.$ac_ext
16199 LIBS=$ac_check_lib_save_LIBS
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16202 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16203 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16204 GETGROUPS_LIB=-lbsd
16209 # Run the program to test the functionality of the system-supplied
16210 # getgroups function only if there is such a function.
16211 if test $ac_cv_func_getgroups = yes; then
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16213 $as_echo_n "checking for working getgroups... " >&6; }
16214 if ${ac_cv_func_getgroups_works+:} false; then :
16215 $as_echo_n "(cached) " >&6
16217 if test "$cross_compiling" = yes; then :
16218 ac_cv_func_getgroups_works=no
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16222 $ac_includes_default
16226 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
16227 return getgroups (0, 0) == -1;
16232 if ac_fn_c_try_run "$LINENO"; then :
16233 ac_cv_func_getgroups_works=yes
16235 ac_cv_func_getgroups_works=no
16237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16238 conftest.$ac_objext conftest.beam conftest.$ac_ext
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16244 $as_echo "$ac_cv_func_getgroups_works" >&6; }
16246 ac_cv_func_getgroups_works=no
16248 if test $ac_cv_func_getgroups_works = yes; then
16250 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16255 for ac_func in strrchr sysconf tzset strftime fstat \
16256 regcomp setlocale nl_langinfo getaddrinfo mbr_check_membership \
16259 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16260 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16261 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16262 cat >>confdefs.h <<_ACEOF
16263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16269 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
16270 if test "x$ac_cv_func_getgrouplist" = xyes; then :
16271 $as_echo "#define HAVE_GETGROUPLIST 1" >>confdefs.h
16274 case " $LIBOBJS " in
16275 *" getgrouplist.$ac_objext "* ) ;;
16276 *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
16283 for ac_func in getline
16285 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16286 if test "x$ac_cv_func_getline" = xyes; then :
16287 cat >>confdefs.h <<_ACEOF
16288 #define HAVE_GETLINE 1
16293 case " $LIBOBJS " in
16294 *" getline.$ac_objext "* ) ;;
16295 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16299 for ac_func in fgetln
16301 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
16302 if test "x$ac_cv_func_fgetln" = xyes; then :
16303 cat >>confdefs.h <<_ACEOF
16304 #define HAVE_FGETLN 1
16315 for ac_func in getutxid getutid
16317 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16318 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16319 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16320 cat >>confdefs.h <<_ACEOF
16321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16323 utmp_style=POSIX; break
16327 if test "$utmp_style" = "LEGACY"; then
16328 for ac_func in getttyent ttyslot
16330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16332 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16333 cat >>confdefs.h <<_ACEOF
16334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16342 for ac_func in openpty
16344 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
16345 if test "x$ac_cv_func_openpty" = xyes; then :
16346 cat >>confdefs.h <<_ACEOF
16347 #define HAVE_OPENPTY 1
16349 for ac_header in util.h pty.h
16351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16352 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16353 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16354 cat >>confdefs.h <<_ACEOF
16355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
16365 $as_echo_n "checking for openpty in -lutil... " >&6; }
16366 if ${ac_cv_lib_util_openpty+:} false; then :
16367 $as_echo_n "(cached) " >&6
16369 ac_check_lib_save_LIBS=$LIBS
16370 LIBS="-lutil $LIBS"
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372 /* end confdefs.h. */
16374 /* Override any GCC internal prototype to avoid an error.
16375 Use char because int might match the return type of a GCC
16376 builtin and then its argument prototype would still apply. */
16389 if ac_fn_c_try_link "$LINENO"; then :
16390 ac_cv_lib_util_openpty=yes
16392 ac_cv_lib_util_openpty=no
16394 rm -f core conftest.err conftest.$ac_objext \
16395 conftest$ac_exeext conftest.$ac_ext
16396 LIBS=$ac_check_lib_save_LIBS
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
16399 $as_echo "$ac_cv_lib_util_openpty" >&6; }
16400 if test "x$ac_cv_lib_util_openpty" = xyes; then :
16402 for ac_header in util.h pty.h
16404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16405 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16406 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16407 cat >>confdefs.h <<_ACEOF
16408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16415 case "$SUDO_LIBS" in
16417 *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
16419 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
16424 for ac_func in _getpty
16426 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
16427 if test "x$ac_cv_func__getpty" = xyes; then :
16428 cat >>confdefs.h <<_ACEOF
16429 #define HAVE__GETPTY 1
16434 for ac_func in grantpt
16436 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
16437 if test "x$ac_cv_func_grantpt" = xyes; then :
16438 cat >>confdefs.h <<_ACEOF
16439 #define HAVE_GRANTPT 1
16442 for ac_func in posix_openpt
16444 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
16445 if test "x$ac_cv_func_posix_openpt" = xyes; then :
16446 cat >>confdefs.h <<_ACEOF
16447 #define HAVE_POSIX_OPENPT 1
16456 for ac_func in revoke
16458 ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
16459 if test "x$ac_cv_func_revoke" = xyes; then :
16460 cat >>confdefs.h <<_ACEOF
16461 #define HAVE_REVOKE 1
16482 for ac_func in unsetenv
16484 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16485 if test "x$ac_cv_func_unsetenv" = xyes; then :
16486 cat >>confdefs.h <<_ACEOF
16487 #define HAVE_UNSETENV 1
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
16490 $as_echo_n "checking whether unsetenv returns void... " >&6; }
16491 if ${sudo_cv_func_unsetenv_void+:} false; then :
16492 $as_echo_n "(cached) " >&6
16494 if test "$cross_compiling" = yes; then :
16495 sudo_cv_func_unsetenv_void=no
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16499 $ac_includes_default
16506 return unsetenv("FOO") != 0;
16513 if ac_fn_c_try_run "$LINENO"; then :
16514 sudo_cv_func_unsetenv_void=no
16516 sudo_cv_func_unsetenv_void=yes
16518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16519 conftest.$ac_objext conftest.beam conftest.$ac_ext
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
16524 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
16525 if test $sudo_cv_func_unsetenv_void = yes; then
16527 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
16532 case " $LIBOBJS " in
16533 *" unsetenv.$ac_objext "* ) ;;
16534 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
16541 if test -z "$SKIP_SETRESUID"; then
16542 for ac_func in setresuid
16544 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
16545 if test "x$ac_cv_func_setresuid" = xyes; then :
16546 cat >>confdefs.h <<_ACEOF
16547 #define HAVE_SETRESUID 1
16551 for ac_func in getresuid
16553 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
16554 if test "x$ac_cv_func_getresuid" = xyes; then :
16555 cat >>confdefs.h <<_ACEOF
16556 #define HAVE_GETRESUID 1
16567 if test -z "$SKIP_SETREUID"; then
16568 for ac_func in setreuid
16570 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
16571 if test "x$ac_cv_func_setreuid" = xyes; then :
16572 cat >>confdefs.h <<_ACEOF
16573 #define HAVE_SETREUID 1
16580 if test -z "$SKIP_SETEUID"; then
16581 for ac_func in seteuid
16583 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
16584 if test "x$ac_cv_func_seteuid" = xyes; then :
16585 cat >>confdefs.h <<_ACEOF
16586 #define HAVE_SETEUID 1
16593 if test X"$with_interfaces" != X"no"; then
16594 for ac_func in getifaddrs
16596 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
16597 if test "x$ac_cv_func_getifaddrs" = xyes; then :
16598 cat >>confdefs.h <<_ACEOF
16599 #define HAVE_GETIFADDRS 1
16601 for ac_func in freeifaddrs
16603 ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
16604 if test "x$ac_cv_func_freeifaddrs" = xyes; then :
16605 cat >>confdefs.h <<_ACEOF
16606 #define HAVE_FREEIFADDRS 1
16616 if test -z "$BROKEN_GETCWD"; then
16617 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
16618 if test "x$ac_cv_func_getcwd" = xyes; then :
16619 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
16622 case " $LIBOBJS " in
16623 *" getcwd.$ac_objext "* ) ;;
16624 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
16632 for ac_func in glob
16634 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
16635 if test "x$ac_cv_func_glob" = xyes; then :
16636 cat >>confdefs.h <<_ACEOF
16637 #define HAVE_GLOB 1
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16640 $as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16647 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16652 if ac_fn_c_try_compile "$LINENO"; then :
16653 $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16656 $as_echo "yes" >&6; }
16658 case " $LIBOBJS " in
16659 *" glob.$ac_objext "* ) ;;
16660 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16665 $as_echo "no" >&6; }
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16669 case " $LIBOBJS " in
16670 *" glob.$ac_objext "* ) ;;
16671 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16678 for ac_func in lockf flock
16680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16681 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16682 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16683 cat >>confdefs.h <<_ACEOF
16684 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16690 for ac_func in innetgr _innetgr
16692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16693 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16694 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16695 cat >>confdefs.h <<_ACEOF
16696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16698 for ac_func in getdomainname
16700 ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
16701 if test "x$ac_cv_func_getdomainname" = xyes; then :
16702 cat >>confdefs.h <<_ACEOF
16703 #define HAVE_GETDOMAINNAME 1
16712 for ac_func in utimes
16714 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
16715 if test "x$ac_cv_func_utimes" = xyes; then :
16716 cat >>confdefs.h <<_ACEOF
16717 #define HAVE_UTIMES 1
16719 for ac_func in futimes futimesat
16721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16722 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16723 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16724 cat >>confdefs.h <<_ACEOF
16725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16732 for ac_func in futime
16734 ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
16735 if test "x$ac_cv_func_futime" = xyes; then :
16736 cat >>confdefs.h <<_ACEOF
16737 #define HAVE_FUTIME 1
16742 case " $LIBOBJS " in
16743 *" utimes.$ac_objext "* ) ;;
16744 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
16751 for ac_func in killpg
16753 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
16754 if test "x$ac_cv_func_killpg" = xyes; then :
16755 cat >>confdefs.h <<_ACEOF
16756 #define HAVE_KILLPG 1
16760 case " $LIBOBJS " in
16761 *" killpg.$ac_objext "* ) ;;
16762 *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
16770 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
16771 if ${sudo_cv_func_fnmatch+:} false; then :
16772 $as_echo_n "(cached) " >&6
16774 rm -f conftestdata; > conftestdata
16775 if test "$cross_compiling" = yes; then :
16776 sudo_cv_func_fnmatch=no
16778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779 /* end confdefs.h. */
16780 #include <fnmatch.h>
16781 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
16783 if ac_fn_c_try_run "$LINENO"; then :
16784 sudo_cv_func_fnmatch=yes
16786 sudo_cv_func_fnmatch=no
16788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16789 conftest.$ac_objext conftest.beam conftest.$ac_ext
16792 rm -f core core.* *.core
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
16796 $as_echo "$sudo_cv_func_fnmatch" >&6; }
16797 if test $sudo_cv_func_fnmatch = yes; then :
16798 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
16801 case " $LIBOBJS " in
16802 *" fnmatch.$ac_objext "* ) ;;
16803 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
16809 $as_echo_n "checking for isblank... " >&6; }
16810 if ${sudo_cv_func_isblank+:} false; then :
16811 $as_echo_n "(cached) " >&6
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h. */
16819 return (isblank('a'));
16824 if ac_fn_c_try_link "$LINENO"; then :
16825 sudo_cv_func_isblank=yes
16827 sudo_cv_func_isblank=no
16829 rm -f core conftest.err conftest.$ac_objext \
16830 conftest$ac_exeext conftest.$ac_ext
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
16833 $as_echo "$sudo_cv_func_isblank" >&6; }
16835 if test "$sudo_cv_func_isblank" = "yes"; then
16837 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
16840 case " $LIBOBJS " in
16841 *" isblank.$ac_objext "* ) ;;
16842 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
16848 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
16849 if test "x$ac_cv_func_memrchr" = xyes; then :
16850 $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
16853 case " $LIBOBJS " in
16854 *" memrchr.$ac_objext "* ) ;;
16855 *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
16861 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16862 if test "x$ac_cv_func_strlcpy" = xyes; then :
16863 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
16866 case " $LIBOBJS " in
16867 *" strlcpy.$ac_objext "* ) ;;
16868 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
16874 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
16875 if test "x$ac_cv_func_strlcat" = xyes; then :
16876 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
16879 case " $LIBOBJS " in
16880 *" strlcat.$ac_objext "* ) ;;
16881 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
16887 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
16888 if test "x$ac_cv_func_setenv" = xyes; then :
16889 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
16892 case " $LIBOBJS " in
16893 *" setenv.$ac_objext "* ) ;;
16894 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
16901 for ac_func in nanosleep
16903 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
16904 if test "x$ac_cv_func_nanosleep" = xyes; then :
16905 cat >>confdefs.h <<_ACEOF
16906 #define HAVE_NANOSLEEP 1
16911 # On Solaris, nanosleep is in librt
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
16913 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
16914 if ${ac_cv_lib_rt_nanosleep+:} false; then :
16915 $as_echo_n "(cached) " >&6
16917 ac_check_lib_save_LIBS=$LIBS
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h. */
16922 /* Override any GCC internal prototype to avoid an error.
16923 Use char because int might match the return type of a GCC
16924 builtin and then its argument prototype would still apply. */
16932 return nanosleep ();
16937 if ac_fn_c_try_link "$LINENO"; then :
16938 ac_cv_lib_rt_nanosleep=yes
16940 ac_cv_lib_rt_nanosleep=no
16942 rm -f core conftest.err conftest.$ac_objext \
16943 conftest$ac_exeext conftest.$ac_ext
16944 LIBS=$ac_check_lib_save_LIBS
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
16947 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
16948 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
16949 REPLAY_LIBS="${REPLAY_LIBS} -lrt"
16951 case " $LIBOBJS " in
16952 *" nanosleep.$ac_objext "* ) ;;
16953 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
16963 for ac_func in closefrom
16965 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
16966 if test "x$ac_cv_func_closefrom" = xyes; then :
16967 cat >>confdefs.h <<_ACEOF
16968 #define HAVE_CLOSEFROM 1
16972 case " $LIBOBJS " in
16973 *" closefrom.$ac_objext "* ) ;;
16974 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
16978 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
16981 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
16982 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
16990 for ac_func in mkstemps mkdtemp
16992 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16993 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16994 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16995 cat >>confdefs.h <<_ACEOF
16996 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17001 for ac_func in random lrand48
17003 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17004 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17005 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17006 cat >>confdefs.h <<_ACEOF
17007 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17013 case " $LIBOBJS " in
17014 *" mktemp.$ac_objext "* ) ;;
17015 *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
17023 for ac_func in snprintf vsnprintf asprintf vasprintf
17025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17027 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17028 cat >>confdefs.h <<_ACEOF
17029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17037 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17038 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17039 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17040 $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
17042 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
17043 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
17044 $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
17049 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
17050 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
17051 $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h. */
17060 #include <sys/types.h>
17061 #include <$ac_header_dirent>
17065 DIR *d; (void)dirfd(d);
17070 if ac_fn_c_try_link "$LINENO"; then :
17071 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17076 #include <sys/types.h>
17077 #include <$ac_header_dirent>
17081 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17086 if ac_fn_c_try_link "$LINENO"; then :
17087 $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
17090 rm -f core conftest.err conftest.$ac_objext \
17091 conftest$ac_exeext conftest.$ac_ext
17093 rm -f core conftest.err conftest.$ac_objext \
17094 conftest$ac_exeext conftest.$ac_ext
17095 if test -n "$NEED_SNPRINTF"; then
17096 case " $LIBOBJS " in
17097 *" snprintf.$ac_objext "* ) ;;
17098 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17103 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17104 if test "x$ac_cv_func_socket" = xyes; then :
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17108 $as_echo_n "checking for socket in -lsocket... " >&6; }
17109 if ${ac_cv_lib_socket_socket+:} false; then :
17110 $as_echo_n "(cached) " >&6
17112 ac_check_lib_save_LIBS=$LIBS
17113 LIBS="-lsocket $LIBS"
17114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17115 /* end confdefs.h. */
17117 /* Override any GCC internal prototype to avoid an error.
17118 Use char because int might match the return type of a GCC
17119 builtin and then its argument prototype would still apply. */
17132 if ac_fn_c_try_link "$LINENO"; then :
17133 ac_cv_lib_socket_socket=yes
17135 ac_cv_lib_socket_socket=no
17137 rm -f core conftest.err conftest.$ac_objext \
17138 conftest$ac_exeext conftest.$ac_ext
17139 LIBS=$ac_check_lib_save_LIBS
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17142 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17143 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17144 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
17147 $as_echo_n "checking for socket in -linet... " >&6; }
17148 if ${ac_cv_lib_inet_socket+:} false; then :
17149 $as_echo_n "(cached) " >&6
17151 ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-linet $LIBS"
17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154 /* end confdefs.h. */
17156 /* Override any GCC internal prototype to avoid an error.
17157 Use char because int might match the return type of a GCC
17158 builtin and then its argument prototype would still apply. */
17171 if ac_fn_c_try_link "$LINENO"; then :
17172 ac_cv_lib_inet_socket=yes
17174 ac_cv_lib_inet_socket=no
17176 rm -f core conftest.err conftest.$ac_objext \
17177 conftest$ac_exeext conftest.$ac_ext
17178 LIBS=$ac_check_lib_save_LIBS
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
17181 $as_echo "$ac_cv_lib_inet_socket" >&6; }
17182 if test "x$ac_cv_lib_inet_socket" = xyes; then :
17183 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
17186 $as_echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17188 $as_echo_n "checking for socket in -lsocket... " >&6; }
17189 if ${ac_cv_lib_socket_socket_lnsl+:} false; then :
17190 $as_echo_n "(cached) " >&6
17192 ac_check_lib_save_LIBS=$LIBS
17193 LIBS="-lsocket -lnsl $LIBS"
17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h. */
17197 /* Override any GCC internal prototype to avoid an error.
17198 Use char because int might match the return type of a GCC
17199 builtin and then its argument prototype would still apply. */
17212 if ac_fn_c_try_link "$LINENO"; then :
17213 ac_cv_lib_socket_socket_lnsl=yes
17215 ac_cv_lib_socket_socket_lnsl=no
17217 rm -f core conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17219 LIBS=$ac_check_lib_save_LIBS
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket_lnsl" >&5
17222 $as_echo "$ac_cv_lib_socket_socket_lnsl" >&6; }
17223 if test "x$ac_cv_lib_socket_socket_lnsl" = xyes; then :
17224 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
17233 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
17234 if test "x$ac_cv_func_inet_addr" = xyes; then :
17237 ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
17238 if test "x$ac_cv_func___inet_addr" = xyes; then :
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
17242 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
17243 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
17244 $as_echo_n "(cached) " >&6
17246 ac_check_lib_save_LIBS=$LIBS
17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h. */
17251 /* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17261 return inet_addr ();
17266 if ac_fn_c_try_link "$LINENO"; then :
17267 ac_cv_lib_nsl_inet_addr=yes
17269 ac_cv_lib_nsl_inet_addr=no
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273 LIBS=$ac_check_lib_save_LIBS
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
17276 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
17277 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
17278 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -linet" >&5
17281 $as_echo_n "checking for inet_addr in -linet... " >&6; }
17282 if ${ac_cv_lib_inet_inet_addr+:} false; then :
17283 $as_echo_n "(cached) " >&6
17285 ac_check_lib_save_LIBS=$LIBS
17286 LIBS="-linet $LIBS"
17287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17288 /* end confdefs.h. */
17290 /* Override any GCC internal prototype to avoid an error.
17291 Use char because int might match the return type of a GCC
17292 builtin and then its argument prototype would still apply. */
17300 return inet_addr ();
17305 if ac_fn_c_try_link "$LINENO"; then :
17306 ac_cv_lib_inet_inet_addr=yes
17308 ac_cv_lib_inet_inet_addr=no
17310 rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17312 LIBS=$ac_check_lib_save_LIBS
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_inet_addr" >&5
17315 $as_echo "$ac_cv_lib_inet_inet_addr" >&6; }
17316 if test "x$ac_cv_lib_inet_inet_addr" = xyes; then :
17317 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
17320 $as_echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lsocket" >&5
17322 $as_echo_n "checking for inet_addr in -lsocket... " >&6; }
17323 if ${ac_cv_lib_socket_inet_addr_lnsl+:} false; then :
17324 $as_echo_n "(cached) " >&6
17326 ac_check_lib_save_LIBS=$LIBS
17327 LIBS="-lsocket -lnsl $LIBS"
17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17331 /* Override any GCC internal prototype to avoid an error.
17332 Use char because int might match the return type of a GCC
17333 builtin and then its argument prototype would still apply. */
17341 return inet_addr ();
17346 if ac_fn_c_try_link "$LINENO"; then :
17347 ac_cv_lib_socket_inet_addr_lnsl=yes
17349 ac_cv_lib_socket_inet_addr_lnsl=no
17351 rm -f core conftest.err conftest.$ac_objext \
17352 conftest$ac_exeext conftest.$ac_ext
17353 LIBS=$ac_check_lib_save_LIBS
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
17356 $as_echo "$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
17357 if test "x$ac_cv_lib_socket_inet_addr_lnsl" = xyes; then :
17358 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
17369 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
17370 if test "x$ac_cv_func_syslog" = xyes; then :
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lsocket" >&5
17374 $as_echo_n "checking for syslog in -lsocket... " >&6; }
17375 if ${ac_cv_lib_socket_syslog+:} false; then :
17376 $as_echo_n "(cached) " >&6
17378 ac_check_lib_save_LIBS=$LIBS
17379 LIBS="-lsocket $LIBS"
17380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17381 /* end confdefs.h. */
17383 /* Override any GCC internal prototype to avoid an error.
17384 Use char because int might match the return type of a GCC
17385 builtin and then its argument prototype would still apply. */
17398 if ac_fn_c_try_link "$LINENO"; then :
17399 ac_cv_lib_socket_syslog=yes
17401 ac_cv_lib_socket_syslog=no
17403 rm -f core conftest.err conftest.$ac_objext \
17404 conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_syslog" >&5
17408 $as_echo "$ac_cv_lib_socket_syslog" >&6; }
17409 if test "x$ac_cv_lib_socket_syslog" = xyes; then :
17410 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lnsl" >&5
17413 $as_echo_n "checking for syslog in -lnsl... " >&6; }
17414 if ${ac_cv_lib_nsl_syslog+:} false; then :
17415 $as_echo_n "(cached) " >&6
17417 ac_check_lib_save_LIBS=$LIBS
17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h. */
17422 /* Override any GCC internal prototype to avoid an error.
17423 Use char because int might match the return type of a GCC
17424 builtin and then its argument prototype would still apply. */
17437 if ac_fn_c_try_link "$LINENO"; then :
17438 ac_cv_lib_nsl_syslog=yes
17440 ac_cv_lib_nsl_syslog=no
17442 rm -f core conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
17444 LIBS=$ac_check_lib_save_LIBS
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_syslog" >&5
17447 $as_echo "$ac_cv_lib_nsl_syslog" >&6; }
17448 if test "x$ac_cv_lib_nsl_syslog" = xyes; then :
17449 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -linet" >&5
17452 $as_echo_n "checking for syslog in -linet... " >&6; }
17453 if ${ac_cv_lib_inet_syslog+:} false; then :
17454 $as_echo_n "(cached) " >&6
17456 ac_check_lib_save_LIBS=$LIBS
17457 LIBS="-linet $LIBS"
17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17459 /* end confdefs.h. */
17461 /* Override any GCC internal prototype to avoid an error.
17462 Use char because int might match the return type of a GCC
17463 builtin and then its argument prototype would still apply. */
17476 if ac_fn_c_try_link "$LINENO"; then :
17477 ac_cv_lib_inet_syslog=yes
17479 ac_cv_lib_inet_syslog=no
17481 rm -f core conftest.err conftest.$ac_objext \
17482 conftest$ac_exeext conftest.$ac_ext
17483 LIBS=$ac_check_lib_save_LIBS
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_syslog" >&5
17486 $as_echo "$ac_cv_lib_inet_syslog" >&6; }
17487 if test "x$ac_cv_lib_inet_syslog" = xyes; then :
17488 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
17497 for ac_func in getprogname
17499 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17500 if test "x$ac_cv_func_getprogname" = xyes; then :
17501 cat >>confdefs.h <<_ACEOF
17502 #define HAVE_GETPROGNAME 1
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
17508 $as_echo_n "checking for __progname... " >&6; }
17509 if ${sudo_cv___progname+:} false; then :
17510 $as_echo_n "(cached) " >&6
17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514 /* end confdefs.h. */
17519 extern char *__progname; (void)puts(__progname);
17524 if ac_fn_c_try_link "$LINENO"; then :
17525 sudo_cv___progname=yes
17527 sudo_cv___progname=no
17529 rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17533 if test "$sudo_cv___progname" = "yes"; then
17534 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17537 case " $LIBOBJS " in
17538 *" getprogname.$ac_objext "* ) ;;
17539 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
17545 $as_echo "$sudo_cv___progname" >&6; }
17551 # gettext() and friends may be located in libc (Linux and Solaris)
17552 # or in libintl. However, it is possible to have libintl installed
17553 # even when gettext() is present in libc. In the case of GNU libintl,
17554 # gettext() will be defined to gettext_libintl in libintl.h.
17555 # Since gcc prefers /usr/local/include to /usr/include, we need to
17556 # make sure we use the gettext() that matches the include file.
17557 if test "$enable_nls" != "no"; then
17558 if test "$enable_nls" != "yes"; then
17559 CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
17561 if test X"$with_rpath" = X"yes"; then
17563 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,+b,$enable_nls/lib"
17565 *) LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,-R$enable_nls/lib"
17569 LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
17571 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17572 blibpath_add="${blibpath_add}:$enable_nls/lib"
17577 for l in "libc" "-lintl" "-lintl -liconv"; do
17578 if test "$l" = "libc"; then
17579 # If user specified a dir for libintl ignore libc
17580 if test "$enable_nls" != "yes"; then
17583 gettext_name=sudo_cv_gettext
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
17585 $as_echo_n "checking for gettext... " >&6; }
17588 gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
17590 $as_echo_n "checking for gettext in $l... " >&6; }
17592 if eval \${$gettext_name+:} false; then :
17593 $as_echo_n "(cached) " >&6
17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597 /* end confdefs.h. */
17599 #include <libintl.h>
17603 (void)gettext((char *)0);
17609 if ac_fn_c_try_link "$LINENO"; then :
17610 eval $gettext_name=yes
17612 eval $gettext_name=no
17615 rm -f core conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext conftest.$ac_ext
17620 eval gettext_result="\$$gettext_name"
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
17622 $as_echo "$gettext_result" >&6; }
17623 test "$gettext_result" = "yes" && break
17627 if test "$sudo_cv_gettext" = "yes"; then
17628 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17631 elif test "$sudo_cv_gettext_lintl" = "yes"; then
17632 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17636 elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
17637 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17640 LIBINTL="-lintl -liconv"
17644 case "$enable_zlib" in
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
17647 $as_echo_n "checking for gzdopen in -lz... " >&6; }
17648 if ${ac_cv_lib_z_gzdopen+:} false; then :
17649 $as_echo_n "(cached) " >&6
17651 ac_check_lib_save_LIBS=$LIBS
17653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17654 /* end confdefs.h. */
17656 /* Override any GCC internal prototype to avoid an error.
17657 Use char because int might match the return type of a GCC
17658 builtin and then its argument prototype would still apply. */
17671 if ac_fn_c_try_link "$LINENO"; then :
17672 ac_cv_lib_z_gzdopen=yes
17674 ac_cv_lib_z_gzdopen=no
17676 rm -f core conftest.err conftest.$ac_objext \
17677 conftest$ac_exeext conftest.$ac_ext
17678 LIBS=$ac_check_lib_save_LIBS
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
17681 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
17682 if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
17684 for ac_header in zlib.h
17686 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17687 if test "x$ac_cv_header_zlib_h" = xyes; then :
17688 cat >>confdefs.h <<_ACEOF
17689 #define HAVE_ZLIB_H 1
17693 enable_zlib=builtin
17705 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17713 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17715 CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
17717 if test X"$with_rpath" = X"yes"; then
17719 *-*-hpux*) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
17721 *) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
17725 ZLIB="${ZLIB} -L$enable_zlib/lib"
17727 if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
17728 blibpath_add="${blibpath_add}:$enable_zlib/lib"
17734 if test X"$enable_zlib" = X"builtin"; then
17735 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17737 CPPFLAGS="${CPPFLAGS}"' -I$(top_srcdir)/zlib'
17738 ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
17740 ac_config_headers="$ac_config_headers zlib/zconf.h"
17742 ac_config_files="$ac_config_files zlib/Makefile"
17746 for ac_func in strsignal
17748 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
17749 if test "x$ac_cv_func_strsignal" = xyes; then :
17750 cat >>confdefs.h <<_ACEOF
17751 #define HAVE_STRSIGNAL 1
17756 case " $LIBOBJS " in
17757 *" strsignal.$ac_objext "* ) ;;
17758 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
17762 HAVE_SIGLIST="false"
17763 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
17764 $ac_includes_default
17765 #include <signal.h>
17768 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
17774 cat >>confdefs.h <<_ACEOF
17775 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
17777 if test $ac_have_decl = 1; then :
17779 HAVE_SIGLIST="true"
17783 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
17784 $ac_includes_default
17785 #include <signal.h>
17788 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
17794 cat >>confdefs.h <<_ACEOF
17795 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
17797 if test $ac_have_decl = 1; then :
17799 HAVE_SIGLIST="true"
17803 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
17804 $ac_includes_default
17805 #include <signal.h>
17808 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
17814 cat >>confdefs.h <<_ACEOF
17815 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
17817 if test $ac_have_decl = 1; then :
17819 HAVE_SIGLIST="true"
17824 if test "$HAVE_SIGLIST" != "true"; then
17825 case " $LIBOBJS " in
17826 *" siglist.$ac_objext "* ) ;;
17827 *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
17837 if test ${with_netsvc-"no"} != "no"; then
17838 cat >>confdefs.h <<EOF
17839 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
17842 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
17843 elif test ${with_nsswitch-"yes"} != "no"; then
17844 cat >>confdefs.h <<EOF
17845 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
17848 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
17852 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
17853 for auth in $AUTH_EXCL_DEF; do
17855 AIX_AUTH) with_aixauth=maybe;;
17856 BSD_AUTH) with_bsdauth=maybe;;
17857 PAM) with_pam=maybe;;
17858 SIA) CHECKSIA=true;;
17863 if test ${with_pam-"no"} != "no"; then
17864 # We already link with -ldl (see LIBDL below) so no need for that here.
17865 SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
17867 for ac_header in security/pam_appl.h pam/pam_appl.h
17869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17870 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17872 cat >>confdefs.h <<_ACEOF
17873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17875 with_pam=yes; break
17880 if test "$with_pam" = "yes"; then
17881 $as_echo "#define HAVE_PAM 1" >>confdefs.h
17883 AUTH_OBJS="$AUTH_OBJS pam.lo";
17887 # Check whether --with-pam-login was given.
17888 if test "${with_pam_login+set}" = set; then :
17889 withval=$with_pam_login; case $with_pam_login in
17890 yes) $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
17893 $as_echo_n "checking whether to use PAM login... " >&6; }
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17895 $as_echo "yes" >&6; }
17898 *) as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
17905 $as_echo_n "checking whether to use PAM session support... " >&6; }
17906 # Check whether --enable-pam_session was given.
17907 if test "${enable_pam_session+set}" = set; then :
17908 enableval=$enable_pam_session; case "$enableval" in
17909 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17910 $as_echo "yes" >&6; }
17912 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17913 $as_echo "no" >&6; }
17914 $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
17917 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17918 $as_echo "no" >&6; }
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
17920 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17925 $as_echo "yes" >&6; }
17931 if test ${with_aixauth-'no'} != "no"; then
17932 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
17934 $as_echo "$as_me: using AIX general authentication" >&6;}
17935 $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
17937 AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
17938 SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
17943 if test ${with_bsdauth-'no'} != "no"; then
17944 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
17945 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
17946 $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
17948 AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
17949 BSDAUTH_USAGE='[-a auth_type] '
17950 AUTH_EXCL=BSD_AUTH; BAMAN=1
17952 as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
17958 if test ${CHECKSIA-'false'} = "true"; then
17959 for ac_func in sia_ses_init
17961 ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
17962 if test "x$ac_cv_func_sia_ses_init" = xyes; then :
17963 cat >>confdefs.h <<_ACEOF
17964 #define HAVE_SIA_SES_INIT 1
17972 if test "$found" = "true"; then
17974 AUTH_OBJS="$AUTH_OBJS sia.lo"
17978 if test ${with_fwtk-'no'} != "no"; then
17979 if test "$with_fwtk" != "yes"; then
17981 if test X"$with_rpath" = X"yes"; then
17983 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
17985 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
17989 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
17991 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17992 blibpath_add="${blibpath_add}:${with_fwtk}"
17995 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
17998 SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
17999 AUTH_OBJS="$AUTH_OBJS fwtk.lo"
18002 if test ${with_SecurID-'no'} != "no"; then
18003 if test "$with_SecurID" != "yes"; then
18005 elif test -d /usr/ace/examples; then
18006 with_SecurID=/usr/ace/examples
18008 with_SecurID=/usr/ace
18010 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
18011 _LDFLAGS="${LDFLAGS}"
18013 if test X"$with_rpath" = X"yes"; then
18015 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18017 *) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18021 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
18023 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18024 blibpath_add="${blibpath_add}:${with_SecurID}"
18028 # Determine whether to use the new or old SecurID API
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
18031 $as_echo_n "checking for SD_Init in -laceclnt... " >&6; }
18032 if ${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+:} false; then :
18033 $as_echo_n "(cached) " >&6
18035 ac_check_lib_save_LIBS=$LIBS
18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041 /* end confdefs.h. */
18043 /* Override any GCC internal prototype to avoid an error.
18044 Use char because int might match the return type of a GCC
18045 builtin and then its argument prototype would still apply. */
18058 if ac_fn_c_try_link "$LINENO"; then :
18059 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
18061 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
18063 rm -f core conftest.err conftest.$ac_objext \
18064 conftest$ac_exeext conftest.$ac_ext
18065 LIBS=$ac_check_lib_save_LIBS
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
18068 $as_echo "$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
18069 if test "x$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" = xyes; then :
18071 AUTH_OBJS="$AUTH_OBJS securid5.lo";
18072 SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
18076 if test X"$with_rpath" = X"yes"; then
18078 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18080 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18084 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID}"
18086 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18087 blibpath_add="${blibpath_add}:${with_SecurID}"
18093 AUTH_OBJS="$AUTH_OBJS securid.lo";
18094 SUDOERS_LIBS="${SUDOERS_LIBS} ${with_SecurID}/sdiclient.a"
18098 LDFLAGS="${_LDFLAGS}"
18102 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
18103 for auth in $AUTH_DEF; do
18105 passwd) : ${with_passwd='maybe'};;
18110 if test ${with_kerb4-'no'} != "no"; then
18111 $as_echo "#define HAVE_KERB4 1" >>confdefs.h
18113 O_LDFLAGS="$LDFLAGS"
18114 if test "$with_kerb4" = "yes"; then
18116 O_CPPFLAGS="$CPPFLAGS"
18117 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
18118 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h. */
18130 if ac_fn_c_try_cpp "$LINENO"; then :
18133 rm -f conftest.err conftest.i conftest.$ac_ext
18135 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
18138 if test X"$with_rpath" = X"yes"; then
18140 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
18142 *) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
18146 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
18148 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18149 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
18153 if test X"$with_rpath" = X"yes"; then
18155 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
18157 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
18161 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib"
18163 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18164 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
18167 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
18168 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18169 if test "x$ac_cv_header_krb_h" = xyes; then :
18177 if test X"$found" = X"no"; then
18178 { $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
18179 $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;}
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18183 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18184 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
18185 $as_echo_n "(cached) " >&6
18187 ac_check_lib_save_LIBS=$LIBS
18189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18190 /* end confdefs.h. */
18192 /* Override any GCC internal prototype to avoid an error.
18193 Use char because int might match the return type of a GCC
18194 builtin and then its argument prototype would still apply. */
18198 char des_cbc_encrypt ();
18202 return des_cbc_encrypt ();
18207 if ac_fn_c_try_link "$LINENO"; then :
18208 ac_cv_lib_des_des_cbc_encrypt=yes
18210 ac_cv_lib_des_des_cbc_encrypt=no
18212 rm -f core conftest.err conftest.$ac_objext \
18213 conftest$ac_exeext conftest.$ac_ext
18214 LIBS=$ac_check_lib_save_LIBS
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18217 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18218 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18223 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18224 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
18225 $as_echo_n "(cached) " >&6
18227 ac_check_lib_save_LIBS=$LIBS
18228 LIBS="-ldes425 $LIBS"
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18238 char des_cbc_encrypt ();
18242 return des_cbc_encrypt ();
18247 if ac_fn_c_try_link "$LINENO"; then :
18248 ac_cv_lib_des425_des_cbc_encrypt=yes
18250 ac_cv_lib_des425_des_cbc_encrypt=no
18252 rm -f core conftest.err conftest.$ac_objext \
18253 conftest$ac_exeext conftest.$ac_ext
18254 LIBS=$ac_check_lib_save_LIBS
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18257 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18258 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using KTH Kerberos IV" >&5
18268 $as_echo_n "checking whether we are using KTH Kerberos IV... " >&6; }
18269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18270 /* end confdefs.h. */
18275 const char *tmp = krb4_version;
18280 if ac_fn_c_try_compile "$LINENO"; then :
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18283 $as_echo "yes" >&6; }
18284 K4LIBS="${K4LIBS} -lcom_err"
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18286 $as_echo_n "checking for main in -lroken... " >&6; }
18287 if ${ac_cv_lib_roken_main+:} false; then :
18288 $as_echo_n "(cached) " >&6
18290 ac_check_lib_save_LIBS=$LIBS
18291 LIBS="-lroken $LIBS"
18292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18304 if ac_fn_c_try_link "$LINENO"; then :
18305 ac_cv_lib_roken_main=yes
18307 ac_cv_lib_roken_main=no
18309 rm -f core conftest.err conftest.$ac_objext \
18310 conftest$ac_exeext conftest.$ac_ext
18311 LIBS=$ac_check_lib_save_LIBS
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18314 $as_echo "$ac_cv_lib_roken_main" >&6; }
18315 if test "x$ac_cv_lib_roken_main" = xyes; then :
18316 K4LIBS="${K4LIBS} -lroken"
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18323 $as_echo "no" >&6; }
18327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18328 as_ac_Lib=`$as_echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb" >&5
18330 $as_echo_n "checking for main in -lkrb... " >&6; }
18331 if eval \${$as_ac_Lib+:} false; then :
18332 $as_echo_n "(cached) " >&6
18334 ac_check_lib_save_LIBS=$LIBS
18335 LIBS="-lkrb $K4LIBS $LIBS"
18336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18337 /* end confdefs.h. */
18348 if ac_fn_c_try_link "$LINENO"; then :
18349 eval "$as_ac_Lib=yes"
18351 eval "$as_ac_Lib=no"
18353 rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18355 LIBS=$ac_check_lib_save_LIBS
18357 eval ac_res=\$$as_ac_Lib
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18359 $as_echo "$ac_res" >&6; }
18360 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18361 K4LIBS="-lkrb $K4LIBS"
18364 as_ac_Lib=`$as_echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb4" >&5
18366 $as_echo_n "checking for main in -lkrb4... " >&6; }
18367 if eval \${$as_ac_Lib+:} false; then :
18368 $as_echo_n "(cached) " >&6
18370 ac_check_lib_save_LIBS=$LIBS
18371 LIBS="-lkrb4 $K4LIBS $LIBS"
18372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18373 /* end confdefs.h. */
18384 if ac_fn_c_try_link "$LINENO"; then :
18385 eval "$as_ac_Lib=yes"
18387 eval "$as_ac_Lib=no"
18389 rm -f core conftest.err conftest.$ac_objext \
18390 conftest$ac_exeext conftest.$ac_ext
18391 LIBS=$ac_check_lib_save_LIBS
18393 eval ac_res=\$$as_ac_Lib
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18395 $as_echo "$ac_res" >&6; }
18396 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18397 K4LIBS="-lkrb4 $K4LIBS"
18399 K4LIBS="-lkrb $K4LIBS"
18400 { $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 SUDOERS_LDFLAGS and possibly add Kerberos libs to SUDOERS_LIBS" >&5
18401 $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 SUDOERS_LDFLAGS and possibly add Kerberos libs to SUDOERS_LIBS" >&2;}
18408 LDFLAGS="$O_LDFLAGS"
18409 SUDOERS_LIBS="${SUDOERS_LIBS} $K4LIBS"
18410 AUTH_OBJS="$AUTH_OBJS kerb4.lo"
18413 if test ${with_kerb5-'no'} != "no"; then
18414 # Extract the first word of "krb5-config", so it can be a program name with args.
18415 set dummy krb5-config; ac_word=$2
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18417 $as_echo_n "checking for $ac_word... " >&6; }
18418 if ${ac_cv_prog_KRB5CONFIG+:} false; then :
18419 $as_echo_n "(cached) " >&6
18421 if test -n "$KRB5CONFIG"; then
18422 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
18424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18425 for as_dir in $PATH
18428 test -z "$as_dir" && as_dir=.
18429 for ac_exec_ext in '' $ac_executable_extensions; do
18430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18431 ac_cv_prog_KRB5CONFIG="yes"
18432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18439 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
18442 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
18443 if test -n "$KRB5CONFIG"; then
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
18445 $as_echo "$KRB5CONFIG" >&6; }
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18448 $as_echo "no" >&6; }
18452 if test -n "$KRB5CONFIG"; then
18453 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18455 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18456 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
18457 SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18459 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h. */
18466 const char *tmp = heimdal_version;
18471 if ac_fn_c_try_compile "$LINENO"; then :
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18474 $as_echo "yes" >&6; }
18475 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18481 $as_echo "no" >&6; }
18485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18487 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18489 if test "$with_kerb5" = "yes"; then
18491 O_CPPFLAGS="$CPPFLAGS"
18492 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
18493 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18495 /* end confdefs.h. */
18505 if ac_fn_c_try_cpp "$LINENO"; then :
18508 rm -f conftest.err conftest.i conftest.$ac_ext
18510 if test X"$found" = X"no"; then
18511 CPPFLAGS="$O_CPPFLAGS"
18512 { $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
18513 $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;}
18517 if test X"$with_rpath" = X"yes"; then
18519 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
18521 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
18525 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
18527 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18528 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
18531 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18535 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537 /* end confdefs.h. */
18542 const char *tmp = heimdal_version;
18547 if ac_fn_c_try_compile "$LINENO"; then :
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18550 $as_echo "yes" >&6; }
18551 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18553 # XXX - need to check whether -lcrypo is needed!
18554 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18556 $as_echo_n "checking for main in -lroken... " >&6; }
18557 if ${ac_cv_lib_roken_main+:} false; then :
18558 $as_echo_n "(cached) " >&6
18560 ac_check_lib_save_LIBS=$LIBS
18561 LIBS="-lroken $LIBS"
18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h. */
18574 if ac_fn_c_try_link "$LINENO"; then :
18575 ac_cv_lib_roken_main=yes
18577 ac_cv_lib_roken_main=no
18579 rm -f core conftest.err conftest.$ac_objext \
18580 conftest$ac_exeext conftest.$ac_ext
18581 LIBS=$ac_check_lib_save_LIBS
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18584 $as_echo "$ac_cv_lib_roken_main" >&6; }
18585 if test "x$ac_cv_lib_roken_main" = xyes; then :
18586 SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18593 $as_echo "no" >&6; }
18594 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
18596 $as_echo_n "checking for main in -lkrb5support... " >&6; }
18597 if ${ac_cv_lib_krb5support_main+:} false; then :
18598 $as_echo_n "(cached) " >&6
18600 ac_check_lib_save_LIBS=$LIBS
18601 LIBS="-lkrb5support $LIBS"
18602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18603 /* end confdefs.h. */
18614 if ac_fn_c_try_link "$LINENO"; then :
18615 ac_cv_lib_krb5support_main=yes
18617 ac_cv_lib_krb5support_main=no
18619 rm -f core conftest.err conftest.$ac_objext \
18620 conftest$ac_exeext conftest.$ac_ext
18621 LIBS=$ac_check_lib_save_LIBS
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
18624 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
18625 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
18626 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
18631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18632 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18635 LIBS="${LIBS} ${SUDOERS_LIBS}"
18636 for ac_func in krb5_verify_user krb5_init_secure_context
18638 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18639 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18640 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18641 cat >>confdefs.h <<_ACEOF
18642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18648 for ac_func in krb5_get_init_creds_opt_alloc
18650 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
18651 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
18652 cat >>confdefs.h <<_ACEOF
18653 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
18657 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
18658 if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
18659 $as_echo_n "(cached) " >&6
18662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18663 /* end confdefs.h. */
18668 krb5_get_init_creds_opt_free(NULL, NULL);
18674 if ac_fn_c_try_compile "$LINENO"; then :
18675 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
18677 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
18680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
18685 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
18690 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
18691 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
18697 if test ${with_AFS-'no'} = "yes"; then
18699 # looks like the "standard" place for AFS libs is /usr/afsws/lib
18700 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
18701 for i in $AFSLIBDIRS; do
18702 if test -d ${i}; then
18704 if test X"$with_rpath" = X"yes"; then
18706 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,+b,$i"
18708 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,-R$i"
18712 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
18714 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18715 blibpath_add="${blibpath_add}:$i"
18718 FOUND_AFSLIBDIR=true
18721 if test -z "$FOUND_AFSLIBDIR"; then
18722 { $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 SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&5
18723 $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 SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
18726 # Order is important here. Note that we build AFS_LIBS from right to left
18727 # since AFS_LIBS may be initialized with BSD compat libs that must go last
18728 AFS_LIBS="-laudit ${AFS_LIBS}"
18729 for i in $AFSLIBDIRS; do
18730 if test -f ${i}/util.a; then
18731 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
18736 if test -z "$FOUND_UTIL_A"; then
18737 AFS_LIBS="-lutil ${AFS_LIBS}"
18739 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
18741 # AFS includes may live in /usr/include on some machines...
18742 for i in /usr/afsws/include; do
18743 if test -d ${i}; then
18744 CPPFLAGS="${CPPFLAGS} -I${i}"
18745 FOUND_AFSINCDIR=true
18749 if test -z "$FOUND_AFSLIBDIR"; then
18750 { $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
18751 $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;}
18754 AUTH_OBJS="$AUTH_OBJS afs.lo"
18757 if test ${with_DCE-'no'} = "yes"; then
18758 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
18759 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
18760 AUTH_OBJS="$AUTH_OBJS dce.lo"
18763 if test "${with_skey-'no'}" = "yes"; then
18764 O_LDFLAGS="$LDFLAGS"
18765 if test "$with_skey" != "yes"; then
18766 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
18768 if test X"$with_rpath" = X"yes"; then
18770 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18772 *) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18776 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
18778 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18779 blibpath_add="${blibpath_add}:${with_skey}/lib"
18783 if test X"$with_rpath" = X"yes"; then
18785 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18787 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18791 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
18793 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18794 blibpath_add="${blibpath_add}:${with_skey}/lib"
18797 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18799 if test "x$ac_cv_header_skey_h" = xyes; then :
18808 O_CPPFLAGS="$CPPFLAGS"
18809 for dir in "" "/usr/local" "/usr/contrib"; do
18810 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
18811 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18813 if test "x$ac_cv_header_skey_h" = xyes; then :
18819 if test "$found" = "no" -o -z "$dir"; then
18820 CPPFLAGS="$O_CPPFLAGS"
18823 if test X"$with_rpath" = X"yes"; then
18825 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18827 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18831 LDFLAGS="${LDFLAGS} -L${dir}/lib"
18833 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18834 blibpath_add="${blibpath_add}:${dir}/lib"
18838 if test X"$with_rpath" = X"yes"; then
18840 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18842 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18846 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
18848 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18849 blibpath_add="${blibpath_add}:${dir}/lib"
18853 if test "$found" = "no"; then
18854 { $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
18855 $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;}
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
18859 $as_echo_n "checking for main in -lskey... " >&6; }
18860 if ${ac_cv_lib_skey_main+:} false; then :
18861 $as_echo_n "(cached) " >&6
18863 ac_check_lib_save_LIBS=$LIBS
18864 LIBS="-lskey $LIBS"
18865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h. */
18877 if ac_fn_c_try_link "$LINENO"; then :
18878 ac_cv_lib_skey_main=yes
18880 ac_cv_lib_skey_main=no
18882 rm -f core conftest.err conftest.$ac_objext \
18883 conftest$ac_exeext conftest.$ac_ext
18884 LIBS=$ac_check_lib_save_LIBS
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
18887 $as_echo "$ac_cv_lib_skey_main" >&6; }
18888 if test "x$ac_cv_lib_skey_main" = xyes; then :
18891 { $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 SUDOERS_LDFLAGS" >&5
18892 $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 SUDOERS_LDFLAGS" >&2;}
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
18896 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
18897 if ${ac_cv_lib_skey_skeyaccess+:} false; then :
18898 $as_echo_n "(cached) " >&6
18900 ac_check_lib_save_LIBS=$LIBS
18901 LIBS="-lskey $LIBS"
18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h. */
18905 /* Override any GCC internal prototype to avoid an error.
18906 Use char because int might match the return type of a GCC
18907 builtin and then its argument prototype would still apply. */
18911 char skeyaccess ();
18915 return skeyaccess ();
18920 if ac_fn_c_try_link "$LINENO"; then :
18921 ac_cv_lib_skey_skeyaccess=yes
18923 ac_cv_lib_skey_skeyaccess=no
18925 rm -f core conftest.err conftest.$ac_objext \
18926 conftest$ac_exeext conftest.$ac_ext
18927 LIBS=$ac_check_lib_save_LIBS
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
18930 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
18931 if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
18932 $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
18938 $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
18939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18940 /* end confdefs.h. */
18946 skeychallenge(NULL, NULL, NULL, 0);
18952 if ac_fn_c_try_compile "$LINENO"; then :
18954 $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18957 $as_echo "yes" >&6; }
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18962 $as_echo "no" >&6; }
18966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18968 LDFLAGS="$O_LDFLAGS"
18969 SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
18970 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
18973 if test "${with_opie-'no'}" = "yes"; then
18974 O_LDFLAGS="$LDFLAGS"
18975 if test "$with_opie" != "yes"; then
18976 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
18978 if test X"$with_rpath" = X"yes"; then
18980 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
18982 *) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
18986 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
18988 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18989 blibpath_add="${blibpath_add}:${with_opie}/lib"
18993 if test X"$with_rpath" = X"yes"; then
18995 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
18997 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
19001 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
19003 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19004 blibpath_add="${blibpath_add}:${with_opie}/lib"
19007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008 /* end confdefs.h. */
19018 if ac_fn_c_try_cpp "$LINENO"; then :
19023 rm -f conftest.err conftest.i conftest.$ac_ext
19026 O_CPPFLAGS="$CPPFLAGS"
19027 for dir in "" "/usr/local" "/usr/contrib"; do
19028 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030 /* end confdefs.h. */
19040 if ac_fn_c_try_cpp "$LINENO"; then :
19043 rm -f conftest.err conftest.i conftest.$ac_ext
19045 if test "$found" = "no" -o -z "$dir"; then
19046 CPPFLAGS="$O_CPPFLAGS"
19049 if test X"$with_rpath" = X"yes"; then
19051 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19053 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19057 LDFLAGS="${LDFLAGS} -L${dir}/lib"
19059 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19060 blibpath_add="${blibpath_add}:${dir}/lib"
19064 if test X"$with_rpath" = X"yes"; then
19066 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19068 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19072 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19074 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19075 blibpath_add="${blibpath_add}:${dir}/lib"
19079 if test "$found" = "no"; then
19080 { $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
19081 $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;}
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
19085 $as_echo_n "checking for main in -lopie... " >&6; }
19086 if ${ac_cv_lib_opie_main+:} false; then :
19087 $as_echo_n "(cached) " >&6
19089 ac_check_lib_save_LIBS=$LIBS
19090 LIBS="-lopie $LIBS"
19091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19092 /* end confdefs.h. */
19103 if ac_fn_c_try_link "$LINENO"; then :
19104 ac_cv_lib_opie_main=yes
19106 ac_cv_lib_opie_main=no
19108 rm -f core conftest.err conftest.$ac_objext \
19109 conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
19113 $as_echo "$ac_cv_lib_opie_main" >&6; }
19114 if test "x$ac_cv_lib_opie_main" = xyes; then :
19117 { $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 SUDOERS_LDFLAGS" >&5
19118 $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 SUDOERS_LDFLAGS" >&2;}
19121 LDFLAGS="$O_LDFLAGS"
19122 SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
19123 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19126 if test ${with_passwd-'no'} != "no"; then
19127 if test -z "$LIB_CRYPT"; then
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19130 $as_echo_n "checking for library containing crypt... " >&6; }
19131 if ${ac_cv_search_crypt+:} false; then :
19132 $as_echo_n "(cached) " >&6
19134 ac_func_search_save_LIBS=$LIBS
19135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136 /* end confdefs.h. */
19138 /* Override any GCC internal prototype to avoid an error.
19139 Use char because int might match the return type of a GCC
19140 builtin and then its argument prototype would still apply. */
19153 for ac_lib in '' crypt crypt_d ufc; do
19154 if test -z "$ac_lib"; then
19155 ac_res="none required"
19158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19160 if ac_fn_c_try_link "$LINENO"; then :
19161 ac_cv_search_crypt=$ac_res
19163 rm -f core conftest.err conftest.$ac_objext \
19165 if ${ac_cv_search_crypt+:} false; then :
19169 if ${ac_cv_search_crypt+:} false; then :
19172 ac_cv_search_crypt=no
19174 rm conftest.$ac_ext
19175 LIBS=$ac_func_search_save_LIBS
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19178 $as_echo "$ac_cv_search_crypt" >&6; }
19179 ac_res=$ac_cv_search_crypt
19180 if test "$ac_res" != no; then :
19181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19182 test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19188 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
19190 LIBS="$LIBS $shadow_libs"
19192 for ac_func in $shadow_funcs
19194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19195 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19196 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19197 cat >>confdefs.h <<_ACEOF
19198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19204 if test "$found" = "yes"; then
19205 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
19206 elif test -n "$shadow_libs_optional"; then
19207 LIBS="$LIBS $shadow_libs_optional"
19208 for ac_func in $shadow_funcs
19210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19212 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19213 cat >>confdefs.h <<_ACEOF
19214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19220 if test "$found" = "yes"; then
19221 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
19224 if test "$found" = "yes"; then
19225 case "$shadow_funcs" in
19226 *getprpwnam*) SECUREWARE=1;;
19228 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
19234 if test "$CHECKSHADOW" = "true"; then
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
19236 $as_echo_n "checking for library containing getspnam... " >&6; }
19237 if ${ac_cv_search_getspnam+:} false; then :
19238 $as_echo_n "(cached) " >&6
19240 ac_func_search_save_LIBS=$LIBS
19241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19242 /* end confdefs.h. */
19244 /* Override any GCC internal prototype to avoid an error.
19245 Use char because int might match the return type of a GCC
19246 builtin and then its argument prototype would still apply. */
19254 return getspnam ();
19259 for ac_lib in '' gen; do
19260 if test -z "$ac_lib"; then
19261 ac_res="none required"
19264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19266 if ac_fn_c_try_link "$LINENO"; then :
19267 ac_cv_search_getspnam=$ac_res
19269 rm -f core conftest.err conftest.$ac_objext \
19271 if ${ac_cv_search_getspnam+:} false; then :
19275 if ${ac_cv_search_getspnam+:} false; then :
19278 ac_cv_search_getspnam=no
19280 rm conftest.$ac_ext
19281 LIBS=$ac_func_search_save_LIBS
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
19284 $as_echo "$ac_cv_search_getspnam" >&6; }
19285 ac_res=$ac_cv_search_getspnam
19286 if test "$ac_res" != no; then :
19287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19288 $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
19289 CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19293 if test "$CHECKSHADOW" = "true"; then
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
19295 $as_echo_n "checking for library containing getprpwnam... " >&6; }
19296 if ${ac_cv_search_getprpwnam+:} false; then :
19297 $as_echo_n "(cached) " >&6
19299 ac_func_search_save_LIBS=$LIBS
19300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19301 /* end confdefs.h. */
19303 /* Override any GCC internal prototype to avoid an error.
19304 Use char because int might match the return type of a GCC
19305 builtin and then its argument prototype would still apply. */
19309 char getprpwnam ();
19313 return getprpwnam ();
19318 for ac_lib in '' sec security prot; do
19319 if test -z "$ac_lib"; then
19320 ac_res="none required"
19323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19325 if ac_fn_c_try_link "$LINENO"; then :
19326 ac_cv_search_getprpwnam=$ac_res
19328 rm -f core conftest.err conftest.$ac_objext \
19330 if ${ac_cv_search_getprpwnam+:} false; then :
19334 if ${ac_cv_search_getprpwnam+:} false; then :
19337 ac_cv_search_getprpwnam=no
19339 rm conftest.$ac_ext
19340 LIBS=$ac_func_search_save_LIBS
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
19343 $as_echo "$ac_cv_search_getprpwnam" >&6; }
19344 ac_res=$ac_cv_search_getprpwnam
19345 if test "$ac_res" != no; then :
19346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19347 $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
19348 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19352 if test -n "$SECUREWARE"; then
19353 for ac_func in bigcrypt set_auth_parameters initprivs
19355 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19356 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19357 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19358 cat >>confdefs.h <<_ACEOF
19359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19365 AUTH_OBJS="$AUTH_OBJS secureware.lo"
19369 if test ${with_ldap-'no'} != "no"; then
19370 _LDFLAGS="$LDFLAGS"
19371 if test "$with_ldap" != "yes"; then
19373 if test X"$with_rpath" = X"yes"; then
19375 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19377 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19381 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
19383 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19384 blibpath_add="${blibpath_add}:${with_ldap}/lib"
19388 if test X"$with_rpath" = X"yes"; then
19390 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19392 *) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19396 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
19398 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19399 blibpath_add="${blibpath_add}:${with_ldap}/lib"
19402 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19405 SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
19409 $as_echo_n "checking for LDAP libraries... " >&6; }
19413 for l in -lldap -llber '-lssl -lcrypto'; do
19415 LDAP_LIBS="${LDAP_LIBS} $l"
19416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h. */
19418 #include <sys/types.h>
19424 (void)ldap_init(0, 0)
19429 if ac_fn_c_try_link "$LINENO"; then :
19432 rm -f core conftest.err conftest.$ac_objext \
19433 conftest$ac_exeext conftest.$ac_ext
19435 if test "$found" = "no"; then
19436 LIBS="${_LIBS} -lldap"
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
19439 $as_echo "not found, using -lldap" >&6; }
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
19442 $as_echo "$LDAP_LIBS" >&6; }
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
19446 $as_echo_n "checking for library containing ber_set_option... " >&6; }
19447 if ${ac_cv_search_ber_set_option+:} false; then :
19448 $as_echo_n "(cached) " >&6
19450 ac_func_search_save_LIBS=$LIBS
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19454 /* Override any GCC internal prototype to avoid an error.
19455 Use char because int might match the return type of a GCC
19456 builtin and then its argument prototype would still apply. */
19460 char ber_set_option ();
19464 return ber_set_option ();
19469 for ac_lib in '' lber; do
19470 if test -z "$ac_lib"; then
19471 ac_res="none required"
19474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19476 if ac_fn_c_try_link "$LINENO"; then :
19477 ac_cv_search_ber_set_option=$ac_res
19479 rm -f core conftest.err conftest.$ac_objext \
19481 if ${ac_cv_search_ber_set_option+:} false; then :
19485 if ${ac_cv_search_ber_set_option+:} false; then :
19488 ac_cv_search_ber_set_option=no
19490 rm conftest.$ac_ext
19491 LIBS=$ac_func_search_save_LIBS
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
19494 $as_echo "$ac_cv_search_ber_set_option" >&6; }
19495 ac_res=$ac_cv_search_ber_set_option
19496 if test "$ac_res" != no; then :
19497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19503 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
19504 LDAP_LIBS="$LDAP_LIBS -llber"
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
19507 $as_echo_n "checking whether lber.h is needed... " >&6; }
19508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h. */
19510 #include <sys/types.h>
19515 (void)ldap_init(0, 0)
19520 if ac_fn_c_try_link "$LINENO"; then :
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19522 $as_echo "no" >&6; }
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19526 $as_echo "yes" >&6; }
19527 $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
19530 rm -f core conftest.err conftest.$ac_objext \
19531 conftest$ac_exeext conftest.$ac_ext
19533 for ac_header in sasl/sasl.h sasl.h
19535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19536 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19537 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19538 cat >>confdefs.h <<_ACEOF
19539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19541 for ac_func in ldap_sasl_interactive_bind_s
19543 ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
19544 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
19545 cat >>confdefs.h <<_ACEOF
19546 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
19558 for ac_header in ldap_ssl.h mps/ldap_ssl.h
19560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19561 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
19563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19564 cat >>confdefs.h <<_ACEOF
19565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19572 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
19574 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19575 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19576 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19577 cat >>confdefs.h <<_ACEOF
19578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19584 for ac_func in ldap_search_ext_s ldap_search_st
19586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19588 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19589 cat >>confdefs.h <<_ACEOF
19590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19597 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
19599 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
19600 if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
19601 $as_echo_n "(cached) " >&6
19603 ac_check_lib_save_LIBS=$LIBS
19604 LIBS="-lgssapi $LIBS"
19605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19606 /* end confdefs.h. */
19608 /* Override any GCC internal prototype to avoid an error.
19609 Use char because int might match the return type of a GCC
19610 builtin and then its argument prototype would still apply. */
19614 char gss_krb5_ccache_name ();
19618 return gss_krb5_ccache_name ();
19623 if ac_fn_c_try_link "$LINENO"; then :
19624 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
19626 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
19628 rm -f core conftest.err conftest.$ac_objext \
19629 conftest$ac_exeext conftest.$ac_ext
19630 LIBS=$ac_check_lib_save_LIBS
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
19633 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
19634 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
19635 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19637 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
19640 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
19641 if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
19642 $as_echo_n "(cached) " >&6
19644 ac_check_lib_save_LIBS=$LIBS
19645 LIBS="-lgssapi_krb5 $LIBS"
19646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19647 /* end confdefs.h. */
19649 /* Override any GCC internal prototype to avoid an error.
19650 Use char because int might match the return type of a GCC
19651 builtin and then its argument prototype would still apply. */
19655 char gss_krb5_ccache_name ();
19659 return gss_krb5_ccache_name ();
19664 if ac_fn_c_try_link "$LINENO"; then :
19665 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
19667 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
19669 rm -f core conftest.err conftest.$ac_objext \
19670 conftest$ac_exeext conftest.$ac_ext
19671 LIBS=$ac_check_lib_save_LIBS
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
19674 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
19675 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
19676 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19678 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
19685 # gssapi headers may be separate or part of Kerberos V
19687 O_CPPFLAGS="$CPPFLAGS"
19688 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
19689 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691 /* end confdefs.h. */
19692 #include <gssapi/gssapi.h>
19701 if ac_fn_c_try_cpp "$LINENO"; then :
19702 found="gssapi/gssapi.h"; break
19704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h. */
19706 #include <gssapi.h>
19715 if ac_fn_c_try_cpp "$LINENO"; then :
19716 found="gssapi.h"; break
19718 rm -f conftest.err conftest.i conftest.$ac_ext
19720 rm -f conftest.err conftest.i conftest.$ac_ext
19722 if test X"$found" != X"no"; then
19723 for ac_header in $found
19725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19726 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19727 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19728 cat >>confdefs.h <<_ACEOF
19729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19736 if test X"$found" = X"gssapi/gssapi.h"; then
19737 for ac_header in gssapi/gssapi_krb5.h
19739 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
19740 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
19741 cat >>confdefs.h <<_ACEOF
19742 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
19751 CPPFLAGS="$O_CPPFLAGS"
19752 { $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
19753 $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;}
19757 SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
19759 LDFLAGS="$_LDFLAGS"
19763 # How to do dynamic object loading.
19764 # We support dlopen() and sh_load(), else fall back to static loading.
19766 case "$lt_cv_dlopen" in
19768 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
19770 SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19771 LT_STATIC="--tag=disable-static"
19774 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19776 SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19777 LT_STATIC="--tag=disable-static"
19778 case " $LIBOBJS " in
19779 *" dlopen.$ac_objext "* ) ;;
19780 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19786 if test X"${ac_cv_func_dlopen}" = X"yes"; then
19787 as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
19789 # Preload sudoers module symbols
19790 SUDO_OBJS="${SUDO_OBJS} preload.o"
19791 SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
19793 case " $LIBOBJS " in
19794 *" dlopen.$ac_objext "* ) ;;
19795 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19803 # Add library needed for dynamic loading, if any.
19805 LIBDL="$lt_cv_dlopen_libs"
19806 if test X"$LIBDL" != X""; then
19807 SUDO_LIBS="${SUDO_LIBS} $LIBDL"
19808 SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
19811 # On HP-UX, you cannot dlopen() a shared object that uses pthreads
19812 # unless the main program is linked against -lpthread. Since we
19813 # have no knowledge what libraries a plugin may depend on, we always
19814 # link against -lpthread on HP-UX if it is available.
19815 # This check should go after all other libraries tests.
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
19819 $as_echo_n "checking for main in -lpthread... " >&6; }
19820 if ${ac_cv_lib_pthread_main+:} false; then :
19821 $as_echo_n "(cached) " >&6
19823 ac_check_lib_save_LIBS=$LIBS
19824 LIBS="-lpthread $LIBS"
19825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19826 /* end confdefs.h. */
19837 if ac_fn_c_try_link "$LINENO"; then :
19838 ac_cv_lib_pthread_main=yes
19840 ac_cv_lib_pthread_main=no
19842 rm -f core conftest.err conftest.$ac_objext \
19843 conftest$ac_exeext conftest.$ac_ext
19844 LIBS=$ac_check_lib_save_LIBS
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
19847 $as_echo "$ac_cv_lib_pthread_main" >&6; }
19848 if test "x$ac_cv_lib_pthread_main" = xyes; then :
19849 SUDO_LIBS="${SUDO_LIBS} -lpthread"
19855 if test -n "$blibpath"; then
19856 if test -n "$blibpath_add"; then
19857 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
19858 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
19859 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}"
19863 if test "$utmp_style" = "LEGACY"; then
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
19865 $as_echo_n "checking for utmp file path... " >&6; }
19867 for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
19868 if test -r "$p"; then
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
19871 $as_echo "$p" >&6; }
19872 cat >>confdefs.h <<EOF
19873 #define _PATH_UTMP "$p"
19879 if test X"$found" != X"yes"; then
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19881 $as_echo "not found" >&6; }
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
19886 $as_echo_n "checking for log file location... " >&6; }
19887 if test -n "$with_logpath"; then
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
19889 $as_echo "$with_logpath" >&6; }
19890 cat >>confdefs.h <<EOF
19891 #define _PATH_SUDO_LOGFILE "$with_logpath"
19894 elif test -d "/var/log"; then
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
19896 $as_echo "/var/log/sudo.log" >&6; }
19897 cat >>confdefs.h <<\EOF
19898 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
19901 elif test -d "/var/adm"; then
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
19903 $as_echo "/var/adm/sudo.log" >&6; }
19904 cat >>confdefs.h <<\EOF
19905 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
19908 elif test -d "/usr/adm"; then
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
19910 $as_echo "/usr/adm/sudo.log" >&6; }
19911 cat >>confdefs.h <<\EOF
19912 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
19917 $as_echo "unknown" >&6; }
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
19921 $as_echo_n "checking for timestamp file location... " >&6; }
19922 timedir="$with_timedir"
19923 if test -z "$timedir"; then
19924 for d in /var/db /var/lib /var/adm /usr/adm; do
19925 if test -d "$d"; then
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
19932 $as_echo "$timedir" >&6; }
19933 cat >>confdefs.h <<EOF
19934 #define _PATH_SUDO_TIMEDIR "$timedir"
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
19940 $as_echo_n "checking for I/O log dir location... " >&6; }
19941 if test "${with_iologdir-yes}" != "yes"; then
19942 iolog_dir="$with_iologdir"
19943 elif test -d "/var/log"; then
19944 iolog_dir="/var/log/sudo-io"
19945 elif test -d "/var/adm"; then
19946 iolog_dir="/var/adm/sudo-io"
19948 iolog_dir="/usr/adm/sudo-io"
19950 if test "${with_iologdir}" != "no"; then
19951 cat >>confdefs.h <<EOF
19952 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
19957 $as_echo "$iolog_dir" >&6; }
19960 case "$with_passwd" in
19962 AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
19965 $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
19967 if test -z "$AUTH_OBJS"; then
19968 as_fn_error $? "no authentication methods defined." "$LINENO" 5
19972 AUTH_OBJS=${AUTH_OBJS# }
19973 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
19975 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
19977 if test -n "$LIBS"; then
19982 for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
19983 test $l = $sl && dupe=1
19985 test $dupe = 0 && LIBS="${LIBS} $l"
19989 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
19991 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
19992 oexec_prefix="$exec_prefix"
19993 if test "$exec_prefix" = '$(prefix)'; then
19994 if test "$prefix" = "NONE"; then
19995 exec_prefix="$ac_default_prefix"
19997 exec_prefix="$prefix"
20000 if test X"$with_noexec" != X"no"; then
20001 PROGS="${PROGS} libsudo_noexec.la"
20002 INSTALL_NOEXEC="install-noexec"
20004 eval noexec_file="$with_noexec"
20005 cat >>confdefs.h <<EOF
20006 #define _PATH_SUDO_NOEXEC "$noexec_file"
20010 if test X"$with_selinux" != X"no"; then
20011 eval sesh_file="$libexecdir/sesh"
20012 cat >>confdefs.h <<EOF
20013 #define _PATH_SUDO_SESH "$sesh_file"
20017 eval PLUGINDIR="$with_plugindir"
20018 cat >>confdefs.h <<EOF
20019 #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
20022 cat >>confdefs.h <<EOF
20023 #define SUDOERS_PLUGIN "sudoers${SOEXT}"
20026 exec_prefix="$oexec_prefix"
20029 if test X"$prefix" = X"NONE"; then
20030 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
20032 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
20034 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
20035 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
20036 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
20037 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
20038 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
20039 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
20040 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
20042 ac_config_files="$ac_config_files Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/sample_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
20044 cat >confcache <<\_ACEOF
20045 # This file is a shell script that caches the results of configure
20046 # tests run on this system so they can be shared between configure
20047 # scripts and configure runs, see configure's option --config-cache.
20048 # It is not useful on other systems. If it contains results you don't
20049 # want to keep, you may remove or edit it.
20051 # config.status only pays attention to the cache file if you give it
20052 # the --recheck option to rerun configure.
20054 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20055 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20056 # following values.
20060 # The following way of writing the cache mishandles newlines in values,
20061 # but we know of no workaround that is simple, portable, and efficient.
20062 # So, we kill variables containing newlines.
20063 # Ultrix sh set writes to stderr and can't be redirected directly,
20064 # and sets the high bit in the cache file unless we assign to the vars.
20066 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20067 eval ac_val=\$$ac_var
20071 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20072 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20075 _ | IFS | as_nl) ;; #(
20076 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20077 *) { eval $ac_var=; unset $ac_var;} ;;
20083 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20084 *${as_nl}ac_space=\ *)
20085 # `set' does not quote correctly, so add quotes: double-quote
20086 # substitution turns \\\\ into \\, and sed turns \\ into \.
20089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20092 # `set' quotes correctly as required by POSIX, so do not add quotes.
20093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20102 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20104 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20106 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20107 if test -w "$cache_file"; then
20108 if test "x$cache_file" != "x/dev/null"; then
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20110 $as_echo "$as_me: updating cache $cache_file" >&6;}
20111 if test ! -f "$cache_file" || test -h "$cache_file"; then
20112 cat confcache >"$cache_file"
20114 case $cache_file in #(
20116 mv -f confcache "$cache_file"$$ &&
20117 mv -f "$cache_file"$$ "$cache_file" ;; #(
20119 mv -f confcache "$cache_file" ;;
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20125 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20130 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20131 # Let make expand exec_prefix.
20132 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20134 DEFS=-DHAVE_CONFIG_H
20139 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20140 # 1. Remove the extension, and $U if already installed.
20141 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20142 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20143 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20144 # will be set to the directory where LIBOBJS objects are built.
20145 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20146 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20148 LIBOBJS=$ac_libobjs
20150 LTLIBOBJS=$ac_ltlibobjs
20154 : "${CONFIG_STATUS=./config.status}"
20156 ac_clean_files_save=$ac_clean_files
20157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20159 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20161 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20163 # Generated by $as_me.
20164 # Run this file to recreate the current configuration.
20165 # Compiler output produced by configure, useful for debugging
20166 # configure, is in config.log if it exists.
20169 ac_cs_recheck=false
20172 SHELL=\${CONFIG_SHELL-$SHELL}
20175 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20176 ## -------------------- ##
20177 ## M4sh Initialization. ##
20178 ## -------------------- ##
20180 # Be more Bourne compatible
20181 DUALCASE=1; export DUALCASE # for MKS sh
20182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20185 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20186 # is contrary to our usage. Disable this feature.
20187 alias -g '${1+"$@"}'='"$@"'
20188 setopt NO_GLOB_SUBST
20190 case `(set -o) 2>/dev/null` in #(
20202 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20203 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20204 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20205 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20206 # Prefer a ksh shell builtin over an external printf program on Solaris,
20207 # but without wasting forks for bash or zsh.
20208 if test -z "$BASH_VERSION$ZSH_VERSION" \
20209 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20210 as_echo='print -r --'
20211 as_echo_n='print -rn --'
20212 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20213 as_echo='printf %s\n'
20214 as_echo_n='printf %s'
20216 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20217 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20218 as_echo_n='/usr/ucb/echo -n'
20220 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20221 as_echo_n_body='eval
20225 expr "X$arg" : "X\\(.*\\)$as_nl";
20226 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20228 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20230 export as_echo_n_body
20231 as_echo_n='sh -c $as_echo_n_body as_echo'
20233 export as_echo_body
20234 as_echo='sh -c $as_echo_body as_echo'
20237 # The user is always right.
20238 if test "${PATH_SEPARATOR+set}" != set; then
20240 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20241 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20248 # We need space, tab and new line, in precisely that order. Quoting is
20249 # there to prevent editors from complaining about space-tab.
20250 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20251 # splitting by setting IFS to empty value.)
20254 # Find who we are. Look in the path if we contain no directory separator.
20257 *[\\/]* ) as_myself=$0 ;;
20258 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20259 for as_dir in $PATH
20262 test -z "$as_dir" && as_dir=.
20263 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20269 # We did not find ourselves, most probably we were run as `sh COMMAND'
20270 # in which case we are not to be found in the path.
20271 if test "x$as_myself" = x; then
20274 if test ! -f "$as_myself"; then
20275 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20279 # Unset variables that we do not need and which cause bugs (e.g. in
20280 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20281 # suppresses any "Segmentation fault" message there. '((' could
20282 # trigger a bug in pdksh 5.2.14.
20283 for as_var in BASH_ENV ENV MAIL MAILPATH
20284 do eval test x\${$as_var+set} = xset \
20285 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20298 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20301 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20302 # ----------------------------------------
20303 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20304 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20305 # script with STATUS, using 1 if that was 0.
20308 as_status=$1; test $as_status -eq 0 && as_status=1
20310 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20311 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20313 $as_echo "$as_me: error: $2" >&2
20314 as_fn_exit $as_status
20318 # as_fn_set_status STATUS
20319 # -----------------------
20320 # Set $? to STATUS, without forking.
20321 as_fn_set_status ()
20324 } # as_fn_set_status
20326 # as_fn_exit STATUS
20327 # -----------------
20328 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20332 as_fn_set_status $1
20338 # Portably unset VAR.
20341 { eval $1=; unset $1;}
20343 as_unset=as_fn_unset
20344 # as_fn_append VAR VALUE
20345 # ----------------------
20346 # Append the text in VALUE to the end of the definition contained in VAR. Take
20347 # advantage of any shell optimizations that allow amortized linear growth over
20348 # repeated appends, instead of the typical quadratic growth present in naive
20350 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20351 eval 'as_fn_append ()
20362 # as_fn_arith ARG...
20363 # ------------------
20364 # Perform arithmetic evaluation on the ARGs, and store the result in the
20365 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20366 # must be portable across $(()) and expr.
20367 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20368 eval 'as_fn_arith ()
20375 as_val=`expr "$@" || test $? -eq 1`
20380 if expr a : '\(a\)' >/dev/null 2>&1 &&
20381 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20387 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20388 as_basename=basename
20393 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20399 as_me=`$as_basename -- "$0" ||
20400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20401 X"$0" : 'X\(//\)$' \| \
20402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20404 sed '/^.*\/\([^/][^/]*\)\/*$/{
20418 # Avoid depending upon Character Ranges.
20419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20422 as_cr_digits='0123456789'
20423 as_cr_alnum=$as_cr_Letters$as_cr_digits
20425 ECHO_C= ECHO_N= ECHO_T=
20426 case `echo -n x` in #(((((
20428 case `echo 'xy\c'` in
20429 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20431 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20438 rm -f conf$$ conf$$.exe conf$$.file
20439 if test -d conf$$.dir; then
20440 rm -f conf$$.dir/conf$$.file
20443 mkdir conf$$.dir 2>/dev/null
20445 if (echo >conf$$.file) 2>/dev/null; then
20446 if ln -s conf$$.file conf$$ 2>/dev/null; then
20448 # ... but there are two gotchas:
20449 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20450 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20451 # In both cases, we have to default to `cp -p'.
20452 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20454 elif ln conf$$.file conf$$ 2>/dev/null; then
20462 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20463 rmdir conf$$.dir 2>/dev/null
20468 # Create "$as_dir" as a directory, including parents if necessary.
20473 -*) as_dir=./$as_dir;;
20475 test -d "$as_dir" || eval $as_mkdir_p || {
20479 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20480 *) as_qdir=$as_dir;;
20482 as_dirs="'$as_qdir' $as_dirs"
20483 as_dir=`$as_dirname -- "$as_dir" ||
20484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20485 X"$as_dir" : 'X\(//\)[^/]' \| \
20486 X"$as_dir" : 'X\(//\)$' \| \
20487 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20488 $as_echo X"$as_dir" |
20489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20493 /^X\(\/\/\)[^/].*/{
20506 test -d "$as_dir" && break
20508 test -z "$as_dirs" || eval "mkdir $as_dirs"
20509 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20513 if mkdir -p . 2>/dev/null; then
20514 as_mkdir_p='mkdir -p "$as_dir"'
20516 test -d ./-p && rmdir ./-p
20520 if test -x / >/dev/null 2>&1; then
20521 as_test_x='test -x'
20523 if ls -dL / >/dev/null 2>&1; then
20530 if test -d "$1"; then
20536 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20537 ???[sx]*):;;*)false;;esac;fi
20541 as_executable_p=$as_test_x
20543 # Sed expression to map a string onto a valid CPP name.
20544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20546 # Sed expression to map a string onto a valid variable name.
20547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20551 ## ----------------------------------- ##
20552 ## Main body of $CONFIG_STATUS script. ##
20553 ## ----------------------------------- ##
20555 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20558 # Save the log message, to keep $0 and so on meaningful, and to
20559 # report actual input values of CONFIG_FILES etc. instead of their
20560 # values after options handling.
20562 This file was extended by sudo $as_me 1.8.2, which was
20563 generated by GNU Autoconf 2.68. Invocation command line was
20565 CONFIG_FILES = $CONFIG_FILES
20566 CONFIG_HEADERS = $CONFIG_HEADERS
20567 CONFIG_LINKS = $CONFIG_LINKS
20568 CONFIG_COMMANDS = $CONFIG_COMMANDS
20571 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20576 case $ac_config_files in *"
20577 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20580 case $ac_config_headers in *"
20581 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20586 # Files that config.status was made for.
20587 config_files="$ac_config_files"
20588 config_headers="$ac_config_headers"
20589 config_commands="$ac_config_commands"
20593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20595 \`$as_me' instantiates files and other configuration actions
20596 from templates according to the current configuration. Unless the files
20597 and actions are specified as TAGs, all are instantiated by default.
20599 Usage: $0 [OPTION]... [TAG]...
20601 -h, --help print this help, then exit
20602 -V, --version print version number and configuration settings, then exit
20603 --config print configuration, then exit
20604 -q, --quiet, --silent
20605 do not print progress messages
20606 -d, --debug don't remove temporary files
20607 --recheck update $as_me by reconfiguring in the same conditions
20608 --file=FILE[:TEMPLATE]
20609 instantiate the configuration file FILE
20610 --header=FILE[:TEMPLATE]
20611 instantiate the configuration header FILE
20613 Configuration files:
20616 Configuration headers:
20619 Configuration commands:
20622 Report bugs to <http://www.sudo.ws/bugs/>."
20625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20626 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20628 sudo config.status 1.8.2
20629 configured by $0, generated by GNU Autoconf 2.68,
20630 with options \\"\$ac_cs_config\\"
20632 Copyright (C) 2010 Free Software Foundation, Inc.
20633 This config.status script is free software; the Free Software Foundation
20634 gives unlimited permission to copy, distribute and modify it."
20639 test -n "\$AWK" || AWK=awk
20642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20643 # The default lists apply if the user does not specify any file.
20649 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20650 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20654 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20666 # Handling of the options.
20667 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20669 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20670 $as_echo "$ac_cs_version"; exit ;;
20671 --config | --confi | --conf | --con | --co | --c )
20672 $as_echo "$ac_cs_config"; exit ;;
20673 --debug | --debu | --deb | --de | --d | -d )
20675 --file | --fil | --fi | --f )
20678 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20679 '') as_fn_error $? "missing file argument" ;;
20681 as_fn_append CONFIG_FILES " '$ac_optarg'"
20682 ac_need_defaults=false;;
20683 --header | --heade | --head | --hea )
20686 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20688 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20689 ac_need_defaults=false;;
20691 # Conflict between --help and --header
20692 as_fn_error $? "ambiguous option: \`$1'
20693 Try \`$0 --help' for more information.";;
20694 --help | --hel | -h )
20695 $as_echo "$ac_cs_usage"; exit ;;
20696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20700 # This is an error.
20701 -*) as_fn_error $? "unrecognized option: \`$1'
20702 Try \`$0 --help' for more information." ;;
20704 *) as_fn_append ac_config_targets " $1"
20705 ac_need_defaults=false ;;
20711 ac_configure_extra_args=
20713 if $ac_cs_silent; then
20715 ac_configure_extra_args="$ac_configure_extra_args --silent"
20719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20720 if \$ac_cs_recheck; then
20721 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20723 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20724 CONFIG_SHELL='$SHELL'
20725 export CONFIG_SHELL
20730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20734 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20735 ## Running $as_me. ##
20741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20747 # The HP-UX ksh and POSIX shell print the target directory to stdout
20748 # if CDPATH is set.
20749 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20751 sed_quote_subst='$sed_quote_subst'
20752 double_quote_subst='$double_quote_subst'
20753 delay_variable_subst='$delay_variable_subst'
20754 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20755 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20756 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20757 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20758 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20759 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20760 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20761 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20762 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20763 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20764 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20765 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20766 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20767 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20768 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20769 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20770 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20771 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20772 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20773 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20774 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20775 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20776 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20777 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20778 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20779 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20780 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20781 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20782 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20783 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20784 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20785 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20786 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20787 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20788 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20789 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20790 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20791 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20792 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20793 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20794 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20795 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20796 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20797 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20798 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20799 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20800 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20801 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20802 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20803 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20804 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20805 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20806 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20807 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20808 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20809 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20810 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20811 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20812 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20813 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20814 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20815 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20816 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20817 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20818 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20819 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20820 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20821 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20822 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20823 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20824 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20825 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20826 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20827 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20828 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20829 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20830 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20831 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20832 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20833 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20834 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20835 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20836 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20837 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20838 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20839 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20840 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20841 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20842 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20843 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20844 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20845 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20846 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20847 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20848 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20849 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20850 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20851 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20852 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20853 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20854 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20855 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20856 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20857 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20858 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20859 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20860 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20861 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20862 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20863 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20864 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20865 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20866 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20867 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20868 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20869 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20870 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20871 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20872 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20873 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20874 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20875 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20876 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20877 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20878 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20879 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20880 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20881 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20882 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20883 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20886 LTCFLAGS='$LTCFLAGS'
20887 compiler='$compiler_DEFAULT'
20889 # A function that is used when there is no print builtin or printf.
20890 func_fallback_echo ()
20892 eval 'cat <<_LTECHO_EOF
20897 # Quote evaled strings.
20911 deplibs_check_method \
20916 sharedlib_from_linklib_cmd \
20919 archiver_list_spec \
20925 lt_cv_sys_global_symbol_pipe \
20926 lt_cv_sys_global_symbol_to_cdecl \
20927 lt_cv_sys_global_symbol_to_c_name_address \
20928 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20929 nm_file_list_spec \
20930 lt_prog_compiler_no_builtin_flag \
20931 lt_prog_compiler_pic \
20932 lt_prog_compiler_wl \
20933 lt_prog_compiler_static \
20934 lt_cv_prog_compiler_c_o \
20943 export_dynamic_flag_spec \
20944 whole_archive_flag_spec \
20945 compiler_needs_object \
20947 allow_undefined_flag \
20948 no_undefined_flag \
20949 hardcode_libdir_flag_spec \
20950 hardcode_libdir_flag_spec_ld \
20951 hardcode_libdir_separator \
20955 variables_saved_for_relink \
20957 library_names_spec \
20959 install_override_mode \
20963 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20964 *[\\\\\\\`\\"\\\$]*)
20965 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20968 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20973 # Double-quote double-evaled strings.
20974 for var in reload_cmds \
20975 old_postinstall_cmds \
20976 old_postuninstall_cmds \
20978 extract_expsyms_cmds \
20979 old_archive_from_new_cmds \
20980 old_archive_from_expsyms_cmds \
20982 archive_expsym_cmds \
20984 module_expsym_cmds \
20985 export_symbols_cmds \
20989 postuninstall_cmds \
20991 sys_lib_search_path_spec \
20992 sys_lib_dlsearch_path_spec; do
20993 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20994 *[\\\\\\\`\\"\\\$]*)
20995 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20998 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21003 ac_aux_dir='$ac_aux_dir'
21004 xsi_shell='$xsi_shell'
21005 lt_shell_append='$lt_shell_append'
21007 # See if we are running on zsh, and set the options which allow our
21008 # commands through without removal of \ escapes INIT.
21009 if test -n "\${ZSH_VERSION+set}" ; then
21010 setopt NO_GLOB_SUBST
21016 TIMESTAMP='$TIMESTAMP'
21025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21027 # Handling of arguments.
21028 for ac_config_target in $ac_config_targets
21030 case $ac_config_target in
21031 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21032 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
21033 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21034 "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
21035 "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
21036 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21037 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
21038 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
21039 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21040 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21041 "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
21042 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21043 "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
21044 "plugins/sample_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_group/Makefile" ;;
21045 "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
21046 "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
21048 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21053 # If the user did not use the arguments to specify the items to instantiate,
21054 # then the envvar interface is used. Set only those that are not.
21055 # We use the long form for the default assignment because of an extremely
21056 # bizarre bug on SunOS 4.1.3.
21057 if $ac_need_defaults; then
21058 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21059 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21060 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21063 # Have a temporary directory for convenience. Make it in the build tree
21064 # simply because there is no reason against having it here, and in addition,
21065 # creating and moving files from /tmp can sometimes cause problems.
21066 # Hook for its removal unless debugging.
21067 # Note that there is a small window in which the directory will not be cleaned:
21068 # after its creation but before its name has been assigned to `$tmp'.
21072 trap 'exit_status=$?
21073 : "${ac_tmp:=$tmp}"
21074 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21076 trap 'as_fn_exit 1' 1 2 13 15
21078 # Create a (secure) tmp directory for tmp files.
21081 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21085 tmp=./conf$$-$RANDOM
21086 (umask 077 && mkdir "$tmp")
21087 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21090 # Set up the scripts for CONFIG_FILES section.
21091 # No need to generate them if there are no CONFIG_FILES.
21092 # This happens for instance with `./config.status config.h'.
21093 if test -n "$CONFIG_FILES"; then
21096 ac_cr=`echo X | tr X '\015'`
21097 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21098 # But we know of no other shell where ac_cr would be empty at this
21099 # point, so we can use a bashism as a fallback.
21100 if test "x$ac_cr" = x; then
21101 eval ac_cr=\$\'\\r\'
21103 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21104 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21107 ac_cs_awk_cr=$ac_cr
21110 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21115 echo "cat >conf$$subs.awk <<_ACEOF" &&
21116 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21118 } >conf$$subs.sh ||
21119 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21120 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21122 for ac_last_try in false false false false false :; do
21123 . ./conf$$subs.sh ||
21124 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21126 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21127 if test $ac_delim_n = $ac_delim_num; then
21129 elif $ac_last_try; then
21130 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21132 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21135 rm -f conf$$subs.sh
21137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21138 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21142 s/^/S["/; s/!.*/"]=/
21152 s/\(.\{148\}\)..*/\1/
21154 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21166 s/\(.\{148\}\)..*/\1/
21168 s/["\\]/\\&/g; s/^/"/; s/$/"/
21172 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21177 ' <conf$$subs.awk | sed '
21182 ' >>$CONFIG_STATUS || ac_write_fail=1
21183 rm -f conf$$subs.awk
21184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21186 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21187 for (key in S) S_is_set[key] = 1
21193 nfields = split(line, field, "@")
21195 len = length(field[1])
21196 for (i = 2; i < nfields; i++) {
21198 keylen = length(key)
21199 if (S_is_set[key]) {
21201 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21202 len += length(value) + length(field[++i])
21213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21214 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21215 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21218 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21219 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21222 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21223 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21224 # trailing colons and then remove the whole line if VPATH becomes empty
21225 # (actually we leave an empty line to preserve line numbers).
21226 if test "x$srcdir" = x.; then
21227 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21246 fi # test -n "$CONFIG_FILES"
21248 # Set up the scripts for CONFIG_HEADERS section.
21249 # No need to generate them if there are no CONFIG_HEADERS.
21250 # This happens for instance with `./config.status Makefile'.
21251 if test -n "$CONFIG_HEADERS"; then
21252 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21256 # Transform confdefs.h into an awk script `defines.awk', embedded as
21257 # here-document in config.status, that substitutes the proper values into
21258 # config.h.in to produce config.h.
21260 # Create a delimiter string that does not exist in confdefs.h, to ease
21261 # handling of long lines.
21263 for ac_last_try in false false :; do
21264 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21265 if test -z "$ac_tt"; then
21267 elif $ac_last_try; then
21268 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21270 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21274 # For the awk script, D is an array of macro values keyed by name,
21275 # likewise P contains macro parameters if any. Preserve backslash
21276 # newline sequences.
21278 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21280 s/.\{148\}/&'"$ac_delim"'/g
21283 s/^[ ]*#[ ]*define[ ][ ]*/ /
21290 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21292 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21296 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21297 D["\1"]=" \3\\\\\\n"\\/p
21299 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21304 s/.\{148\}/&'"$ac_delim"'/g
21309 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21312 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21314 ' <confdefs.h | sed '
21315 s/'"$ac_delim"'/"\\\
21316 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21319 for (key in D) D_is_set[key] = 1
21322 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21324 split(line, arg, " ")
21325 if (arg[1] == "#") {
21329 defundef = substr(arg[1], 2)
21332 split(mac1, mac2, "(") #)
21334 prefix = substr(line, 1, index(line, defundef) - 1)
21335 if (D_is_set[macro]) {
21336 # Preserve the white space surrounding the "#".
21337 print prefix "define", macro P[macro] D[macro]
21340 # Replace #undef with comments. This is necessary, for example,
21341 # in the case of _POSIX_SOURCE, which is predefined and required
21342 # on some systems where configure will not decide to define it.
21343 if (defundef == "undef") {
21344 print "/*", prefix defundef, macro, "*/"
21352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21353 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21354 fi # test -n "$CONFIG_HEADERS"
21357 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21362 :[FHLC]) ac_mode=$ac_tag; continue;;
21364 case $ac_mode$ac_tag in
21366 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21367 :[FH]-) ac_tag=-:-;;
21368 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21385 -) ac_f="$ac_tmp/stdin";;
21386 *) # Look for the file first in the build tree, then in the source tree
21387 # (if the path is not absolute). The absolute path cannot be DOS-style,
21388 # because $ac_f cannot contain `:'.
21392 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21394 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21396 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21397 as_fn_append ac_file_inputs " '$ac_f'"
21400 # Let's still pretend it is `configure' which instantiates (i.e., don't
21401 # use $as_me), people would be surprised to read:
21402 # /* config.h. Generated by config.status. */
21403 configure_input='Generated from '`
21404 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21406 if test x"$ac_file" != x-; then
21407 configure_input="$ac_file. $configure_input"
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21409 $as_echo "$as_me: creating $ac_file" >&6;}
21411 # Neutralize special characters interpreted by sed in replacement strings.
21412 case $configure_input in #(
21413 *\&* | *\|* | *\\* )
21414 ac_sed_conf_input=`$as_echo "$configure_input" |
21415 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21416 *) ac_sed_conf_input=$configure_input;;
21420 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21421 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21426 ac_dir=`$as_dirname -- "$ac_file" ||
21427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21428 X"$ac_file" : 'X\(//\)[^/]' \| \
21429 X"$ac_file" : 'X\(//\)$' \| \
21430 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21431 $as_echo X"$ac_file" |
21432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21436 /^X\(\/\/\)[^/].*/{
21449 as_dir="$ac_dir"; as_fn_mkdir_p
21453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21456 # A ".." for each directory in $ac_dir_suffix.
21457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21458 case $ac_top_builddir_sub in
21459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21463 ac_abs_top_builddir=$ac_pwd
21464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21465 # for backward compatibility:
21466 ac_top_builddir=$ac_top_build_prefix
21469 .) # We are building in place.
21471 ac_top_srcdir=$ac_top_builddir_sub
21472 ac_abs_top_srcdir=$ac_pwd ;;
21473 [\\/]* | ?:[\\/]* ) # Absolute name.
21474 ac_srcdir=$srcdir$ac_dir_suffix;
21475 ac_top_srcdir=$srcdir
21476 ac_abs_top_srcdir=$srcdir ;;
21477 *) # Relative name.
21478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21479 ac_top_srcdir=$ac_top_build_prefix$srcdir
21480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21494 # If the template does not know about datarootdir, expand it.
21495 # FIXME: This hack should be removed a few years after 2.60.
21496 ac_datarootdir_hack=; ac_datarootdir_seen=
21507 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21508 *datarootdir*) ac_datarootdir_seen=yes;;
21509 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21511 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21514 ac_datarootdir_hack='
21515 s&@datadir@&$datadir&g
21516 s&@docdir@&$docdir&g
21517 s&@infodir@&$infodir&g
21518 s&@localedir@&$localedir&g
21519 s&@mandir@&$mandir&g
21520 s&\\\${datarootdir}&$datarootdir&g' ;;
21524 # Neutralize VPATH when `$srcdir' = `.'.
21525 # Shell code in configure.ac might set extrasub.
21526 # FIXME: do we really want to maintain this feature?
21527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21528 ac_sed_extra="$ac_vpsub
21531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21534 s|@configure_input@|$ac_sed_conf_input|;t t
21535 s&@top_builddir@&$ac_top_builddir_sub&;t t
21536 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21537 s&@srcdir@&$ac_srcdir&;t t
21538 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21539 s&@top_srcdir@&$ac_top_srcdir&;t t
21540 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21541 s&@builddir@&$ac_builddir&;t t
21542 s&@abs_builddir@&$ac_abs_builddir&;t t
21543 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21544 $ac_datarootdir_hack
21546 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21547 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21549 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21550 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21551 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21552 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21554 which seems to be undefined. Please make sure it is defined" >&5
21555 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21556 which seems to be undefined. Please make sure it is defined" >&2;}
21558 rm -f "$ac_tmp/stdin"
21560 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21561 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21569 if test x"$ac_file" != x-; then
21571 $as_echo "/* $configure_input */" \
21572 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21573 } >"$ac_tmp/config.h" \
21574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21575 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21577 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21580 mv "$ac_tmp/config.h" "$ac_file" \
21581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21584 $as_echo "/* $configure_input */" \
21585 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21586 || as_fn_error $? "could not create -" "$LINENO" 5
21590 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21591 $as_echo "$as_me: executing $ac_file commands" >&6;}
21596 case $ac_file$ac_mode in
21599 # See if we are running on zsh, and set the options which allow our
21600 # commands through without removal of \ escapes.
21601 if test -n "${ZSH_VERSION+set}" ; then
21602 setopt NO_GLOB_SUBST
21605 cfgfile="${ofile}T"
21606 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21609 cat <<_LT_EOF >> "$cfgfile"
21612 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21613 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21614 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21615 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21617 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21618 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21620 # Written by Gordon Matzigkeit, 1996
21622 # This file is part of GNU Libtool.
21624 # GNU Libtool is free software; you can redistribute it and/or
21625 # modify it under the terms of the GNU General Public License as
21626 # published by the Free Software Foundation; either version 2 of
21627 # the License, or (at your option) any later version.
21629 # As a special exception to the GNU General Public License,
21630 # if you distribute this file as part of a program or library that
21631 # is built using GNU Libtool, you may include this file under the
21632 # same distribution terms that you use for the rest of that program.
21634 # GNU Libtool is distributed in the hope that it will be useful,
21635 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21636 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21637 # GNU General Public License for more details.
21639 # You should have received a copy of the GNU General Public License
21640 # along with GNU Libtool; see the file COPYING. If not, a copy
21641 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21642 # obtained by writing to the Free Software Foundation, Inc.,
21643 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21646 # The names of the tagged configurations supported by this script.
21649 # ### BEGIN LIBTOOL CONFIG
21651 # Which release of libtool.m4 was used?
21652 macro_version=$macro_version
21653 macro_revision=$macro_revision
21655 # Whether or not to build shared libraries.
21656 build_libtool_libs=$enable_shared
21658 # Whether or not to build static libraries.
21659 build_old_libs=$enable_static
21661 # What type of objects to build.
21664 # Whether or not to optimize for fast installation.
21665 fast_install=$enable_fast_install
21667 # Shell to use when invoking shell scripts.
21670 # An echo program that protects backslashes.
21674 host_alias=$host_alias
21678 # The build system.
21679 build_alias=$build_alias
21683 # A sed program that does not truncate output.
21686 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21687 Xsed="\$SED -e 1s/^X//"
21689 # A grep program that handles long lines.
21695 # A literal string matcher.
21698 # A BSD- or MS-compatible name lister.
21701 # Whether we need soft or hard links.
21704 # What is the maximum length of a command?
21705 max_cmd_len=$max_cmd_len
21707 # Object file suffix (normally "o").
21710 # Executable file suffix (normally "").
21713 # whether the shell understands "unset".
21716 # turn spaces into newlines.
21719 # turn newlines into spaces.
21722 # convert \$build file names to \$host format.
21723 to_host_file_cmd=$lt_cv_to_host_file_cmd
21725 # convert \$build files to toolchain format.
21726 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21728 # An object symbol dumper.
21729 OBJDUMP=$lt_OBJDUMP
21731 # Method to check whether dependent libraries are shared objects.
21732 deplibs_check_method=$lt_deplibs_check_method
21734 # Command to use when deplibs_check_method = "file_magic".
21735 file_magic_cmd=$lt_file_magic_cmd
21737 # How to find potential files when deplibs_check_method = "file_magic".
21738 file_magic_glob=$lt_file_magic_glob
21740 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21741 want_nocaseglob=$lt_want_nocaseglob
21743 # DLL creation program.
21744 DLLTOOL=$lt_DLLTOOL
21746 # Command to associate shared and link libraries.
21747 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21752 # Flags to create an archive.
21753 AR_FLAGS=$lt_AR_FLAGS
21755 # How to feed a file listing to the archiver.
21756 archiver_list_spec=$lt_archiver_list_spec
21758 # A symbol stripping program.
21761 # Commands used to install an old-style archive.
21763 old_postinstall_cmds=$lt_old_postinstall_cmds
21764 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21766 # Whether to use a lock for old archive extraction.
21767 lock_old_archive_extraction=$lock_old_archive_extraction
21772 # LTCC compiler flags.
21773 LTCFLAGS=$lt_CFLAGS
21775 # Take the output of nm and produce a listing of raw symbols and C names.
21776 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21778 # Transform the output of nm in a proper C declaration.
21779 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21781 # Transform the output of nm in a C name address pair.
21782 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21784 # Transform the output of nm in a C name address pair when lib prefix is needed.
21785 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21787 # Specify filename containing input files for \$NM.
21788 nm_file_list_spec=$lt_nm_file_list_spec
21790 # The root where to search for dependent libraries,and in which our libraries should be installed.
21791 lt_sysroot=$lt_sysroot
21793 # The name of the directory that contains temporary libtool files.
21796 # Used to examine libraries when file_magic_cmd begins with "file".
21797 MAGIC_CMD=$MAGIC_CMD
21799 # Must we lock files when doing compilation?
21800 need_locks=$lt_need_locks
21803 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21805 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21806 DSYMUTIL=$lt_DSYMUTIL
21808 # Tool to change global to local symbols on Mac OS X.
21811 # Tool to manipulate fat objects and archives on Mac OS X.
21814 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21817 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21818 OTOOL64=$lt_OTOOL64
21820 # Old archive suffix (normally "a").
21823 # Shared library suffix (normally ".so").
21824 shrext_cmds=$lt_shrext_cmds
21826 # The commands to extract the exported symbol list from a shared archive.
21827 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21829 # Variables whose values should be saved in libtool wrapper scripts and
21830 # restored at link time.
21831 variables_saved_for_relink=$lt_variables_saved_for_relink
21833 # Do we need the "lib" prefix for modules?
21834 need_lib_prefix=$need_lib_prefix
21836 # Do we need a version for libraries?
21837 need_version=$need_version
21839 # Library versioning type.
21840 version_type=$version_type
21842 # Shared library runtime path variable.
21843 runpath_var=$runpath_var
21845 # Shared library path variable.
21846 shlibpath_var=$shlibpath_var
21848 # Is shlibpath searched before the hard-coded library search path?
21849 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21851 # Format of library name prefix.
21852 libname_spec=$lt_libname_spec
21854 # List of archive names. First name is the real one, the rest are links.
21855 # The last name is the one that the linker finds with -lNAME
21856 library_names_spec=$lt_library_names_spec
21858 # The coded name of the library, if different from the real name.
21859 soname_spec=$lt_soname_spec
21861 # Permission mode override for installation of shared libraries.
21862 install_override_mode=$lt_install_override_mode
21864 # Command to use after installation of a shared archive.
21865 postinstall_cmds=$lt_postinstall_cmds
21867 # Command to use after uninstallation of a shared archive.
21868 postuninstall_cmds=$lt_postuninstall_cmds
21870 # Commands used to finish a libtool library installation in a directory.
21871 finish_cmds=$lt_finish_cmds
21873 # As "finish_cmds", except a single script fragment to be evaled but
21875 finish_eval=$lt_finish_eval
21877 # Whether we should hardcode library paths into libraries.
21878 hardcode_into_libs=$hardcode_into_libs
21880 # Compile-time system search path for libraries.
21881 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21883 # Run-time system search path for libraries.
21884 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21886 # Whether dlopen is supported.
21887 dlopen_support=$enable_dlopen
21889 # Whether dlopen of programs is supported.
21890 dlopen_self=$enable_dlopen_self
21892 # Whether dlopen of statically linked programs is supported.
21893 dlopen_self_static=$enable_dlopen_self_static
21895 # Commands to strip libraries.
21896 old_striplib=$lt_old_striplib
21897 striplib=$lt_striplib
21900 # The linker used to build libraries.
21903 # How to create reloadable object files.
21904 reload_flag=$lt_reload_flag
21905 reload_cmds=$lt_reload_cmds
21907 # Commands used to build an old-style archive.
21908 old_archive_cmds=$lt_old_archive_cmds
21910 # A language specific compiler.
21913 # Is the compiler the GNU compiler?
21916 # Compiler flag to turn off builtin functions.
21917 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21919 # Additional compiler flags for building library objects.
21920 pic_flag=$lt_lt_prog_compiler_pic
21922 # How to pass a linker flag through the compiler.
21923 wl=$lt_lt_prog_compiler_wl
21925 # Compiler flag to prevent dynamic linking.
21926 link_static_flag=$lt_lt_prog_compiler_static
21928 # Does compiler simultaneously support -c and -o options?
21929 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21931 # Whether or not to add -lc for building shared libraries.
21932 build_libtool_need_lc=$archive_cmds_need_lc
21934 # Whether or not to disallow shared libs when runtime libs are static.
21935 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21937 # Compiler flag to allow reflexive dlopens.
21938 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21940 # Compiler flag to generate shared objects directly from archives.
21941 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21943 # Whether the compiler copes with passing no objects directly.
21944 compiler_needs_object=$lt_compiler_needs_object
21946 # Create an old-style archive from a shared archive.
21947 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21949 # Create a temporary old-style archive to link instead of a shared archive.
21950 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21952 # Commands used to build a shared archive.
21953 archive_cmds=$lt_archive_cmds
21954 archive_expsym_cmds=$lt_archive_expsym_cmds
21956 # Commands used to build a loadable module if different from building
21957 # a shared archive.
21958 module_cmds=$lt_module_cmds
21959 module_expsym_cmds=$lt_module_expsym_cmds
21961 # Whether we are building with GNU ld or not.
21962 with_gnu_ld=$lt_with_gnu_ld
21964 # Flag that allows shared libraries with undefined symbols to be built.
21965 allow_undefined_flag=$lt_allow_undefined_flag
21967 # Flag that enforces no undefined symbols.
21968 no_undefined_flag=$lt_no_undefined_flag
21970 # Flag to hardcode \$libdir into a binary during linking.
21971 # This must work even if \$libdir does not exist
21972 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21974 # If ld is used when linking, flag to hardcode \$libdir into a binary
21975 # during linking. This must work even if \$libdir does not exist.
21976 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21978 # Whether we need a single "-rpath" flag with a separated argument.
21979 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21981 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21982 # DIR into the resulting binary.
21983 hardcode_direct=$hardcode_direct
21985 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21986 # DIR into the resulting binary and the resulting library dependency is
21987 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21988 # library is relocated.
21989 hardcode_direct_absolute=$hardcode_direct_absolute
21991 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21992 # into the resulting binary.
21993 hardcode_minus_L=$hardcode_minus_L
21995 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21996 # into the resulting binary.
21997 hardcode_shlibpath_var=$hardcode_shlibpath_var
21999 # Set to "yes" if building a shared library automatically hardcodes DIR
22000 # into the library and all subsequent libraries and executables linked
22002 hardcode_automatic=$hardcode_automatic
22004 # Set to yes if linker adds runtime paths of dependent libraries
22005 # to runtime path list.
22006 inherit_rpath=$inherit_rpath
22008 # Whether libtool must link a program against all its dependency libraries.
22009 link_all_deplibs=$link_all_deplibs
22011 # Set to "yes" if exported symbols are required.
22012 always_export_symbols=$always_export_symbols
22014 # The commands to list exported symbols.
22015 export_symbols_cmds=$lt_export_symbols_cmds
22017 # Symbols that should not be listed in the preloaded symbols.
22018 exclude_expsyms=$lt_exclude_expsyms
22020 # Symbols that must always be exported.
22021 include_expsyms=$lt_include_expsyms
22023 # Commands necessary for linking programs (against libraries) with templates.
22024 prelink_cmds=$lt_prelink_cmds
22026 # Commands necessary for finishing linking programs.
22027 postlink_cmds=$lt_postlink_cmds
22029 # Specify filename containing input files.
22030 file_list_spec=$lt_file_list_spec
22032 # How to hardcode a shared library path into an executable.
22033 hardcode_action=$hardcode_action
22035 # ### END LIBTOOL CONFIG
22041 cat <<\_LT_EOF >> "$cfgfile"
22042 # AIX sometimes has problems with the GCC collect2 program. For some
22043 # reason, if we set the COLLECT_NAMES environment variable, the problems
22044 # vanish in a puff of smoke.
22045 if test "X${COLLECT_NAMES+set}" != Xset; then
22047 export COLLECT_NAMES
22054 ltmain="$ac_aux_dir/ltmain.sh"
22057 # We use sed instead of cat because bash on DJGPP gets confused if
22058 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22059 # text mode, it properly converts lines to CR/LF. This bash problem
22060 # is reportedly fixed, but why not run on old versions too?
22061 sed '$q' "$ltmain" >> "$cfgfile" \
22062 || (rm -f "$cfgfile"; exit 1)
22064 if test x"$xsi_shell" = xyes; then
22065 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22069 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22070 \ * ) func_dirname_result="${3}" ;;\
22072 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22073 && mv -f "$cfgfile.tmp" "$cfgfile" \
22074 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22075 test 0 -eq $? || _lt_function_replace_fail=:
22078 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22081 \ func_basename_result="${1##*/}"\
22082 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22083 && mv -f "$cfgfile.tmp" "$cfgfile" \
22084 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22085 test 0 -eq $? || _lt_function_replace_fail=:
22088 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22089 func_dirname_and_basename ()\
22092 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22093 \ * ) func_dirname_result="${3}" ;;\
22095 \ func_basename_result="${1##*/}"\
22096 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22097 && mv -f "$cfgfile.tmp" "$cfgfile" \
22098 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22099 test 0 -eq $? || _lt_function_replace_fail=:
22102 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22105 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22106 \ # positional parameters, so assign one to ordinary parameter first.\
22107 \ func_stripname_result=${3}\
22108 \ func_stripname_result=${func_stripname_result#"${1}"}\
22109 \ func_stripname_result=${func_stripname_result%"${2}"}\
22110 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22111 && mv -f "$cfgfile.tmp" "$cfgfile" \
22112 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22113 test 0 -eq $? || _lt_function_replace_fail=:
22116 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22117 func_split_long_opt ()\
22119 \ func_split_long_opt_name=${1%%=*}\
22120 \ func_split_long_opt_arg=${1#*=}\
22121 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22122 && mv -f "$cfgfile.tmp" "$cfgfile" \
22123 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22124 test 0 -eq $? || _lt_function_replace_fail=:
22127 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22128 func_split_short_opt ()\
22130 \ func_split_short_opt_arg=${1#??}\
22131 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22132 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22133 && mv -f "$cfgfile.tmp" "$cfgfile" \
22134 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22135 test 0 -eq $? || _lt_function_replace_fail=:
22138 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22142 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22143 \ *) func_lo2o_result=${1} ;;\
22145 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22146 && mv -f "$cfgfile.tmp" "$cfgfile" \
22147 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22148 test 0 -eq $? || _lt_function_replace_fail=:
22151 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22154 func_xform_result=${1%.*}.lo\
22155 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22156 && mv -f "$cfgfile.tmp" "$cfgfile" \
22157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22158 test 0 -eq $? || _lt_function_replace_fail=:
22161 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22164 func_arith_result=$(( $* ))\
22165 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22166 && mv -f "$cfgfile.tmp" "$cfgfile" \
22167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22168 test 0 -eq $? || _lt_function_replace_fail=:
22171 sed -e '/^func_len ()$/,/^} # func_len /c\
22174 func_len_result=${#1}\
22175 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22176 && mv -f "$cfgfile.tmp" "$cfgfile" \
22177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22178 test 0 -eq $? || _lt_function_replace_fail=:
22182 if test x"$lt_shell_append" = xyes; then
22183 sed -e '/^func_append ()$/,/^} # func_append /c\
22186 eval "${1}+=\\${2}"\
22187 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22188 && mv -f "$cfgfile.tmp" "$cfgfile" \
22189 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22190 test 0 -eq $? || _lt_function_replace_fail=:
22193 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22194 func_append_quoted ()\
22196 \ func_quote_for_eval "${2}"\
22197 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22198 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22199 && mv -f "$cfgfile.tmp" "$cfgfile" \
22200 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22201 test 0 -eq $? || _lt_function_replace_fail=:
22204 # Save a `func_append' function call where possible by direct use of '+='
22205 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22206 && mv -f "$cfgfile.tmp" "$cfgfile" \
22207 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22208 test 0 -eq $? || _lt_function_replace_fail=:
22210 # Save a `func_append' function call even when '+=' is not available
22211 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22212 && mv -f "$cfgfile.tmp" "$cfgfile" \
22213 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22214 test 0 -eq $? || _lt_function_replace_fail=:
22217 if test x"$_lt_function_replace_fail" = x":"; then
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22219 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22223 mv -f "$cfgfile" "$ofile" ||
22224 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22235 ac_clean_files=$ac_clean_files_save
22237 test $ac_write_fail = 0 ||
22238 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22241 # configure is writing to config.log, and then calls config.status.
22242 # config.status does its own redirection, appending to config.log.
22243 # Unfortunately, on DOS this fails, as config.log is still kept open
22244 # by configure, so config.status won't be able to write to it; its
22245 # output is simply discarded. So we exec the FD to /dev/null,
22246 # effectively closing config.log, so it can be properly (re)opened and
22247 # appended to by config.status. When coming back to configure, we
22248 # need to make the FD available again.
22249 if test "$no_create" != yes; then
22251 ac_config_status_args=
22252 test "$silent" = yes &&
22253 ac_config_status_args="$ac_config_status_args --quiet"
22255 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22257 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22258 # would make configure fail if this is the last instruction.
22259 $ac_cs_success || as_fn_exit 1
22261 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22263 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22267 if test "$with_pam" = "yes"; then
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
22271 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}