2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sudo 1.8.6p8.
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.6p8'
574 PACKAGE_STRING='sudo 1.8.6p8'
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>
616 ac_subst_vars='LTLIBOBJS
791 program_transform_name
804 enable_option_checking
864 with_password_timeout
875 with_ldap_secret_file
884 enable_authentication
892 enable_shell_sets_home
904 enable_gss_krb5_ccache_name
918 enable_kerb5_instance
920 ac_precious_vars='build_alias
933 # Initialize some variables set by options.
935 ac_init_version=false
936 ac_unrecognized_opts=
938 # The variables have the same names as the options, with
939 # dashes changed to underlines.
947 program_transform_name=s,x,x,
955 # Installation directory options.
956 # These are left unexpanded so users can "make install exec_prefix=/foo"
957 # and all the variables that are supposed to be based on exec_prefix
958 # by default will actually change.
959 # Use braces instead of parens because sh, perl, etc. also accept them.
960 # (The list follows the same order as the GNU Coding Standards.)
961 bindir='${exec_prefix}/bin'
962 sbindir='${exec_prefix}/sbin'
963 libexecdir='${exec_prefix}/libexec'
964 datarootdir='${prefix}/share'
965 datadir='${datarootdir}'
966 sysconfdir='${prefix}/etc'
967 sharedstatedir='${prefix}/com'
968 localstatedir='${prefix}/var'
969 includedir='${prefix}/include'
970 oldincludedir='/usr/include'
971 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972 infodir='${datarootdir}/info'
977 libdir='${exec_prefix}/lib'
978 localedir='${datarootdir}/locale'
979 mandir='${datarootdir}/man'
985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
987 eval $ac_prev=\$ac_option
993 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 # Accept the important Cygnus configure options, so we can diagnose typos.
1000 case $ac_dashdash$ac_option in
1004 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007 bindir=$ac_optarg ;;
1009 -build | --build | --buil | --bui | --bu)
1010 ac_prev=build_alias ;;
1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012 build_alias=$ac_optarg ;;
1014 -cache-file | --cache-file | --cache-fil | --cache-fi \
1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016 ac_prev=cache_file ;;
1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019 cache_file=$ac_optarg ;;
1021 --config-cache | -C)
1022 cache_file=config.cache ;;
1024 -datadir | --datadir | --datadi | --datad)
1026 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027 datadir=$ac_optarg ;;
1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030 | --dataroo | --dataro | --datar)
1031 ac_prev=datarootdir ;;
1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034 datarootdir=$ac_optarg ;;
1036 -disable-* | --disable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid feature name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "enable_$ac_useropt"
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1050 eval enable_$ac_useropt=no ;;
1052 -docdir | --docdir | --docdi | --doc | --do)
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
1062 -enable-* | --enable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1076 eval enable_$ac_useropt=\$ac_optarg ;;
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 htmldir=$ac_optarg ;;
1109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1121 -libdir | --libdir | --libdi | --libd)
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
1139 | --localstate | --localstat | --localsta | --localst | --locals)
1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143 localstatedir=$ac_optarg ;;
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1212 -psdir | --psdir | --psdi | --psd | --ps)
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 sbindir=$ac_optarg ;;
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 sharedstatedir=$ac_optarg ;;
1238 -site | --site | --sit)
1240 -site=* | --site=* | --sit=*)
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246 srcdir=$ac_optarg ;;
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253 sysconfdir=$ac_optarg ;;
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
1256 ac_prev=target_alias ;;
1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258 target_alias=$ac_optarg ;;
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
1267 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error $? "invalid package name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1280 eval with_$ac_useropt=\$ac_optarg ;;
1282 -without-* | --without-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error $? "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1296 eval with_$ac_useropt=no ;;
1299 # Obsolete; use --with-x.
1302 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303 | --x-incl | --x-inc | --x-in | --x-i)
1304 ac_prev=x_includes ;;
1305 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307 x_includes=$ac_optarg ;;
1309 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311 ac_prev=x_libraries ;;
1312 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314 x_libraries=$ac_optarg ;;
1316 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1317 Try \`$0 --help' for more information"
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 case $ac_envvar in #(
1324 '' | [0-9]* | *[!_$as_cr_alnum]* )
1325 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1327 eval $ac_envvar=\$ac_optarg
1328 export $ac_envvar ;;
1331 # FIXME: should be removed in autoconf 3.0.
1332 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1341 if test -n "$ac_prev"; then
1342 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343 as_fn_error $? "missing argument to $ac_option"
1346 if test -n "$ac_unrecognized_opts"; then
1347 case $enable_option_checking in
1349 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1350 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354 # Check all directory arguments for consistency.
1355 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356 datadir sysconfdir sharedstatedir localstatedir includedir \
1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358 libdir localedir mandir
1360 eval ac_val=\$$ac_var
1361 # Remove trailing slashes.
1364 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365 eval $ac_var=\$ac_val;;
1367 # Be sure to have absolute directory names.
1369 [\\/$]* | ?:[\\/]* ) continue;;
1370 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1372 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1380 target=$target_alias
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
1386 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1387 If a cross compiler is detected then cross compile mode will be used" >&2
1388 elif test "x$build_alias" != "x$host_alias"; then
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396 test "$silent" = yes && exec 6>/dev/null
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402 as_fn_error $? "working directory cannot be determined"
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 as_fn_error $? "pwd does not report name of working directory"
1407 # Find the source files, if location was not specified.
1408 if test -z "$srcdir"; then
1409 ac_srcdir_defaulted=yes
1410 # Try the directory containing this script, then the parent directory.
1411 ac_confdir=`$as_dirname -- "$as_myself" ||
1412 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413 X"$as_myself" : 'X\(//\)[^/]' \| \
1414 X"$as_myself" : 'X\(//\)$' \| \
1415 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1416 $as_echo X"$as_myself" |
1417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1439 ac_srcdir_defaulted=no
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1473 \`configure' configures sudo 1.8.6p8 to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking ...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1531 --build=BUILD configure for building on BUILD [guessed]
1532 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 if test -n "$ac_init_help"; then
1537 case $ac_init_help in
1538 short | recursive ) echo "Configuration of sudo 1.8.6p8:";;
1543 --disable-option-checking ignore unrecognized --enable/--with options
1544 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1545 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1546 --disable-authentication
1547 Do not require authentication by default
1548 --disable-root-mailer Don't run the mailer as root, run as the user
1549 --disable-setreuid Don't try to use the setreuid() function
1550 --disable-setresuid Don't try to use the setresuid() function
1551 --disable-shadow Never use shadow passwords
1552 --disable-root-sudo Don't allow root to run sudo
1553 --enable-log-host Log the hostname in the log file
1554 --enable-noargs-shell If sudo is given no arguments run a shell
1555 --enable-shell-sets-home
1556 Set $HOME to target user in shell mode
1557 --disable-path-info Print 'command not allowed' not 'command not found'
1558 --enable-env-debug Whether to enable environment debugging.
1559 --enable-zlib[=PATH] Whether to enable or disable zlib
1560 --enable-env-reset Whether to enable environment resetting by default.
1561 --enable-warnings Whether to enable compiler warnings
1562 --enable-werror Whether to enable the -Werror compiler option
1563 --disable-hardening Do not use compiler/linker exploit mitigation
1565 --disable-pie Do not build position independent executables, even
1566 if the compiler/linker supports them
1567 --enable-admin-flag Whether to create a Ubuntu-style admin flag file
1568 --disable-nls Disable natural language support using gettext
1569 --enable-gss-krb5-ccache-name
1570 Use GSS-API to set the Kerberos V cred cache name
1571 --enable-shared[=PKGS] build shared libraries [default=yes]
1572 --enable-static[=PKGS] build static libraries [default=yes]
1573 --enable-fast-install[=PKGS]
1574 optimize for fast installation [default=yes]
1575 --disable-libtool-lock avoid locking (might break parallel builds)
1576 --disable-sia Disable SIA on Digital UNIX
1577 --disable-largefile omit support for large files
1578 --disable-pam-session Disable PAM session support
1579 --enable-kerb5-instance instance string to append to the username (separated
1583 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1584 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1585 --with-otp-only deprecated
1586 --with-alertmail deprecated
1587 --with-devel add development options
1588 --with-CC C compiler to use
1589 --with-rpath pass -R flag in addition to -L for lib paths
1590 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1591 --with-bsm-audit enable BSM audit support
1592 --with-linux-audit enable Linux audit support
1593 --with-sssd enable SSSD support
1594 --with-sssd-lib path to the SSSD library
1595 --with-incpath additional places to look for include files
1596 --with-libpath additional places to look for libraries
1597 --with-libraries additional libraries to link with
1598 --with-efence link with -lefence for malloc() debugging
1599 --with-csops add CSOps standard options
1600 --without-passwd don't use passwd/shadow file for authentication
1601 --with-skey=DIR enable S/Key support
1602 --with-opie=DIR enable OPIE support
1603 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1604 --with-SecurID[=DIR] enable SecurID support
1605 --with-fwtk[=DIR] enable FWTK AuthSRV support
1606 --with-kerb5[=DIR] enable Kerberos V support
1607 --with-aixauth enable AIX general authentication support
1608 --with-pam enable PAM support
1609 --with-AFS enable AFS support
1610 --with-DCE enable DCE support
1611 --with-logincap enable BSD login class support
1612 --with-bsdauth enable BSD authentication support
1613 --with-project enable Solaris project support
1614 --without-lecture don't print lecture for first-time sudoer
1615 --with-logging log via syslog, file, or both
1616 --with-logfac syslog facility to log with (default is "auth")
1617 --with-goodpri syslog priority for commands (def is "notice")
1618 --with-badpri syslog priority for failures (def is "alert")
1619 --with-logpath path to the sudo log file
1620 --with-loglen maximum length of a log file line (default is 80)
1621 --with-ignore-dot ignore '.' in the PATH
1622 --without-mail-if-no-user
1623 do not send mail if user not in sudoers
1624 --with-mail-if-no-host send mail if user in sudoers but not for this host
1625 --with-mail-if-noperms send mail if user not allowed to run command
1626 --with-mailto who should get sudo mail (default is "root")
1627 --with-mailsubject subject of sudo mail
1628 --with-passprompt default password prompt
1629 --with-badpass-message message the user sees when the password is wrong
1630 --with-fqdn expect fully qualified hosts in sudoers
1631 --with-timedir path to the sudo timestamp dir
1632 --with-iologdir=DIR directory to store sudo I/O log files in
1633 --with-sendmail set path to sendmail
1634 --without-sendmail do not send mail at all
1635 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1636 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1637 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1638 --with-umask umask with which the prog should run (default is
1640 --without-umask Preserves the umask of the user invoking sudo.
1641 --with-umask-override Use the umask specified in sudoers even if it is
1642 less restrictive than the user's.
1643 --with-runas-default User to run commands as (default is "root")
1644 --with-exempt=group no passwd needed for users in this group
1645 --with-editor=path Default editor for visudo (defaults to vi)
1646 --with-env-editor Use the environment variable EDITOR for visudo
1647 --with-passwd-tries number of tries to enter password (default is 3)
1648 --with-timeout minutes before sudo asks for passwd again (def is 5
1650 --with-password-timeout passwd prompt timeout in minutes (default is 5
1652 --with-tty-tickets use a different ticket file for each tty
1653 --with-insults insult the user for entering an incorrect password
1654 --with-all-insults include all the sudo insult sets
1655 --with-classic-insults include the insults from the "classic" sudo
1656 --with-csops-insults include CSOps insults
1657 --with-hal-insults include 2001-like insults
1658 --with-goons-insults include the insults from the "Goon Show"
1659 --with-nsswitch[=PATH] path to nsswitch.conf
1660 --with-ldap[=DIR] enable LDAP support
1661 --with-ldap-conf-file path to LDAP configuration file
1662 --with-ldap-secret-file path to LDAP secret password file
1663 --with-pc-insults replace politically incorrect insults with less
1665 --with-secure-path override the user's path with a built-in one
1666 --without-interfaces don't try to read the ip addr of ether interfaces
1667 --with-stow deprecated
1668 --with-askpass=PATH Fully qualified pathname of askpass helper
1669 --with-plugindir set directory to load plugins from
1670 --with-man manual pages use man macros
1671 --with-mdoc manual pages use mdoc macros
1672 --with-selinux enable SELinux support
1673 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1675 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1676 --with-sysroot=DIR Search for dependent libraries within DIR
1677 (or the compiler's sysroot if not specified).
1678 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1679 --with-netsvc[=PATH] path to netsvc.conf
1680 --with-pam-login enable specific PAM session for sudo -i
1682 Some influential environment variables:
1683 CC C compiler command
1684 CFLAGS C compiler flags
1685 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1686 nonstandard directory <lib dir>
1687 LIBS libraries to pass to the linker, e.g. -l<library>
1688 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1689 you have headers in a nonstandard directory <include dir>
1691 YACC The `Yet Another Compiler Compiler' implementation to use.
1692 Defaults to the first program found out of: `bison -y', `byacc',
1694 YFLAGS The list of arguments that will be passed by default to $YACC.
1695 This script will default YFLAGS to the empty string to avoid a
1696 default value of `-d' given by some make applications.
1698 Use these variables to override the choices made by `configure' or to help
1699 it to find libraries and programs with nonstandard names/locations.
1701 Report bugs to <http://www.sudo.ws/bugs/>.
1706 if test "$ac_init_help" = "recursive"; then
1707 # If there are subdirs, report their specific --help.
1708 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1709 test -d "$ac_dir" ||
1710 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1718 # A ".." for each directory in $ac_dir_suffix.
1719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1720 case $ac_top_builddir_sub in
1721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1725 ac_abs_top_builddir=$ac_pwd
1726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1727 # for backward compatibility:
1728 ac_top_builddir=$ac_top_build_prefix
1731 .) # We are building in place.
1733 ac_top_srcdir=$ac_top_builddir_sub
1734 ac_abs_top_srcdir=$ac_pwd ;;
1735 [\\/]* | ?:[\\/]* ) # Absolute name.
1736 ac_srcdir=$srcdir$ac_dir_suffix;
1737 ac_top_srcdir=$srcdir
1738 ac_abs_top_srcdir=$srcdir ;;
1740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1741 ac_top_srcdir=$ac_top_build_prefix$srcdir
1742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746 cd "$ac_dir" || { ac_status=$?; continue; }
1747 # Check for guested configure.
1748 if test -f "$ac_srcdir/configure.gnu"; then
1750 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1751 elif test -f "$ac_srcdir/configure"; then
1753 $SHELL "$ac_srcdir/configure" --help=recursive
1755 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757 cd "$ac_pwd" || { ac_status=$?; break; }
1761 test -n "$ac_init_help" && exit $ac_status
1762 if $ac_init_version; then
1764 sudo configure 1.8.6p8
1765 generated by GNU Autoconf 2.68
1767 Copyright (C) 2010 Free Software Foundation, Inc.
1768 This configure script is free software; the Free Software Foundation
1769 gives unlimited permission to copy, distribute and modify it.
1774 ## ------------------------ ##
1775 ## Autoconf initialization. ##
1776 ## ------------------------ ##
1778 # ac_fn_c_try_compile LINENO
1779 # --------------------------
1780 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_compile ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext
1785 if { { ac_try="$ac_compile"
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_compile") 2>conftest.err
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest.$ac_objext; then :
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1814 } # ac_fn_c_try_compile
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 $as_test_x conftest$ac_exeext
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1860 } # ac_fn_c_try_link
1862 # ac_fn_c_try_cpp LINENO
1863 # ----------------------
1864 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if { { ac_try="$ac_cpp conftest.$ac_ext"
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } > conftest.i && {
1884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1885 test ! -s conftest.err
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1899 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1900 # -------------------------------------------------------
1901 # Tests whether HEADER exists and can be compiled using the include files in
1902 # INCLUDES, setting the cache variable VAR accordingly.
1903 ac_fn_c_check_header_compile ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1916 if ac_fn_c_try_compile "$LINENO"; then :
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 } # ac_fn_c_check_header_compile
1930 # ac_fn_c_try_run LINENO
1931 # ----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1933 # that executables *can* be run.
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_link"
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>&5
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948 { { case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_try") 2>&5
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; }; }; then :
1960 $as_echo "$as_me: program exited with status $ac_status" >&5
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=$ac_status
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1972 # ac_fn_c_check_func LINENO FUNC VAR
1973 # ----------------------------------
1974 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1975 ac_fn_c_check_func ()
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1985 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1987 #define $2 innocuous_$2
1989 /* System header to define __stub macros and hopefully few prototypes,
1990 which can conflict with char $2 (); below.
1991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1992 <limits.h> exists even on freestanding compilers. */
1995 # include <limits.h>
1997 # include <assert.h>
2002 /* Override any GCC internal prototype to avoid an error.
2003 Use char because int might match the return type of a GCC
2004 builtin and then its argument prototype would still apply. */
2009 /* The GNU C library defines this for functions which it implements
2010 to always fail with ENOSYS. Some functions are actually named
2011 something starting with __ and the normal name is an alias. */
2012 #if defined __stub_$2 || defined __stub___$2
2024 if ac_fn_c_try_link "$LINENO"; then :
2029 rm -f core conftest.err conftest.$ac_objext \
2030 conftest$ac_exeext conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 } # ac_fn_c_check_func
2039 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2040 # -------------------------------------------
2041 # Tests whether TYPE exists after having included INCLUDES, setting cache
2042 # variable VAR accordingly.
2043 ac_fn_c_check_type ()
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047 $as_echo_n "checking for $2... " >&6; }
2048 if eval \${$3+:} false; then :
2049 $as_echo_n "(cached) " >&6
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2077 if ac_fn_c_try_compile "$LINENO"; then :
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 } # ac_fn_c_check_type
2093 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2094 # -------------------------------------------------------
2095 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2096 # the include files in INCLUDES and setting the cache variable VAR
2098 ac_fn_c_check_header_mongrel ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if eval \${$3+:} false; then :
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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2111 # Is the header compilable?
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2113 $as_echo_n "checking $2 usability... " >&6; }
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_header_compiler=yes
2122 ac_header_compiler=no
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2126 $as_echo "$ac_header_compiler" >&6; }
2128 # Is the header present?
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2130 $as_echo_n "checking $2 presence... " >&6; }
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2135 if ac_fn_c_try_cpp "$LINENO"; then :
2136 ac_header_preproc=yes
2138 ac_header_preproc=no
2140 rm -f conftest.err conftest.i conftest.$ac_ext
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2142 $as_echo "$ac_header_preproc" >&6; }
2144 # So? What about this header?
2145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2148 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2154 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2156 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2158 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2160 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2162 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2163 ( $as_echo "## --------------------------------------- ##
2164 ## Report this to http://www.sudo.ws/bugs/ ##
2165 ## --------------------------------------- ##"
2166 ) | sed "s/^/$as_me: WARNING: /" >&2
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170 $as_echo_n "checking for $2... " >&6; }
2171 if eval \${$3+:} false; then :
2172 $as_echo_n "(cached) " >&6
2174 eval "$3=\$ac_header_compiler"
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_c_check_header_mongrel
2184 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2185 # ----------------------------------------------------
2186 # Tries to find if the field MEMBER exists in type AGGR, after including
2187 # INCLUDES, setting cache variable VAR accordingly.
2188 ac_fn_c_check_member ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2192 $as_echo_n "checking for $2.$3... " >&6; }
2193 if eval \${$4+:} false; then :
2194 $as_echo_n "(cached) " >&6
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2209 if ac_fn_c_try_compile "$LINENO"; then :
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2219 if (sizeof ac_aggr.$3)
2225 if ac_fn_c_try_compile "$LINENO"; then :
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 } # ac_fn_c_check_member
2241 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2242 # --------------------------------------------
2243 # Tries to find the compile-time value of EXPR in a program that includes
2244 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2246 ac_fn_c_compute_int ()
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 if test "$cross_compiling" = yes; then
2250 # Depending upon the size, compute the lo and hi bounds.
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2257 static int test_array [1 - 2 * !(($2) >= 0)];
2264 if ac_fn_c_try_compile "$LINENO"; then :
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2273 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 ac_hi=$ac_mid; break
2283 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2284 if test $ac_lo -le $ac_mid; then
2288 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2299 static int test_array [1 - 2 * !(($2) < 0)];
2306 if ac_fn_c_try_compile "$LINENO"; then :
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2315 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323 ac_lo=$ac_mid; break
2325 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2326 if test $ac_mid -le $ac_hi; then
2330 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 # Binary search between lo and hi bounds.
2341 while test "x$ac_lo" != "x$ac_hi"; do
2342 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2349 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2356 if ac_fn_c_try_compile "$LINENO"; then :
2359 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2371 static long int longval () { return $2; }
2372 static unsigned long int ulongval () { return $2; }
2379 FILE *f = fopen ("conftest.val", "w");
2384 long int i = longval ();
2387 fprintf (f, "%ld", i);
2391 unsigned long int i = ulongval ();
2394 fprintf (f, "%lu", i);
2396 /* Do not output a trailing newline, as this causes \r\n confusion
2397 on some platforms. */
2398 return ferror (f) || fclose (f) != 0;
2404 if ac_fn_c_try_run "$LINENO"; then :
2405 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2410 conftest.$ac_objext conftest.beam conftest.$ac_ext
2414 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415 as_fn_set_status $ac_retval
2417 } # ac_fn_c_compute_int
2419 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2420 # ---------------------------------------------
2421 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2423 ac_fn_c_check_decl ()
2425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2426 as_decl_name=`echo $2|sed 's/ *(.*//'`
2427 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2429 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2430 if eval \${$3+:} false; then :
2431 $as_echo_n "(cached) " >&6
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2439 #ifndef $as_decl_name
2441 (void) $as_decl_use;
2443 (void) $as_decl_name;
2451 if ac_fn_c_try_compile "$LINENO"; then :
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 } # ac_fn_c_check_decl
2464 cat >config.log <<_ACEOF
2465 This file contains any messages produced by compilers while
2466 running configure, to aid debugging if configure makes a mistake.
2468 It was created by sudo $as_me 1.8.6p8, which was
2469 generated by GNU Autoconf 2.68. Invocation command line was
2481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2488 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2490 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2491 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2493 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2494 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2495 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2496 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir=.
2505 $as_echo "PATH: $as_dir"
2521 # Keep a trace of the command line.
2522 # Strip out --no-create and --no-recursion so they do not pile up.
2523 # Strip out --silent because we don't want to record it for future runs.
2524 # Also quote any args containing shell meta-characters.
2525 # Make two passes to allow for proper duplicate-argument suppression.
2529 ac_must_keep_next=false
2535 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2537 | -silent | --silent | --silen | --sile | --sil)
2540 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2543 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2545 as_fn_append ac_configure_args1 " '$ac_arg'"
2546 if test $ac_must_keep_next = true; then
2547 ac_must_keep_next=false # Got value, back to normal.
2550 *=* | --config-cache | -C | -disable-* | --disable-* \
2551 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2552 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2553 | -with-* | --with-* | -without-* | --without-* | --x)
2554 case "$ac_configure_args0 " in
2555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2558 -* ) ac_must_keep_next=true ;;
2561 as_fn_append ac_configure_args " '$ac_arg'"
2566 { ac_configure_args0=; unset ac_configure_args0;}
2567 { ac_configure_args1=; unset ac_configure_args1;}
2569 # When interrupted or exit'd, cleanup temporary files, and complete
2570 # config.log. We remove comments because anyway the quotes in there
2571 # would cause problems or look ugly.
2572 # WARNING: Use '\'' to represent an apostrophe within the trap.
2573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2574 trap 'exit_status=$?
2575 # Save into config.log some information that might help in debugging.
2579 $as_echo "## ---------------- ##
2580 ## Cache variables. ##
2581 ## ---------------- ##"
2583 # The following way of writing the cache mishandles newlines in values,
2585 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2586 eval ac_val=\$$ac_var
2590 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2591 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2594 _ | IFS | as_nl) ;; #(
2595 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2596 *) { eval $ac_var=; unset $ac_var;} ;;
2601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2602 *${as_nl}ac_space=\ *)
2604 "s/'\''/'\''\\\\'\'''\''/g;
2605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2615 $as_echo "## ----------------- ##
2616 ## Output variables. ##
2617 ## ----------------- ##"
2619 for ac_var in $ac_subst_vars
2621 eval ac_val=\$$ac_var
2623 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2625 $as_echo "$ac_var='\''$ac_val'\''"
2629 if test -n "$ac_subst_files"; then
2630 $as_echo "## ------------------- ##
2631 ## File substitutions. ##
2632 ## ------------------- ##"
2634 for ac_var in $ac_subst_files
2636 eval ac_val=\$$ac_var
2638 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2640 $as_echo "$ac_var='\''$ac_val'\''"
2645 if test -s confdefs.h; then
2646 $as_echo "## ----------- ##
2653 test "$ac_signal" != 0 &&
2654 $as_echo "$as_me: caught signal $ac_signal"
2655 $as_echo "$as_me: exit $exit_status"
2657 rm -f core *.core core.conftest.* &&
2658 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2661 for ac_signal in 1 2 13 15; do
2662 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2666 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2667 rm -f -r conftest* confdefs.h
2669 $as_echo "/* confdefs.h */" > confdefs.h
2671 # Predefined preprocessor variables.
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_NAME "$PACKAGE_NAME"
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2681 cat >>confdefs.h <<_ACEOF
2682 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE_STRING "$PACKAGE_STRING"
2689 cat >>confdefs.h <<_ACEOF
2690 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2693 cat >>confdefs.h <<_ACEOF
2694 #define PACKAGE_URL "$PACKAGE_URL"
2698 # Let the site file select an alternate cache file if it wants to.
2699 # Prefer an explicitly selected file to automatically selected ones.
2702 if test -n "$CONFIG_SITE"; then
2703 # We do not want a PATH search for config.site.
2704 case $CONFIG_SITE in #((
2705 -*) ac_site_file1=./$CONFIG_SITE;;
2706 */*) ac_site_file1=$CONFIG_SITE;;
2707 *) ac_site_file1=./$CONFIG_SITE;;
2709 elif test "x$prefix" != xNONE; then
2710 ac_site_file1=$prefix/share/config.site
2711 ac_site_file2=$prefix/etc/config.site
2713 ac_site_file1=$ac_default_prefix/share/config.site
2714 ac_site_file2=$ac_default_prefix/etc/config.site
2716 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2718 test "x$ac_site_file" = xNONE && continue
2719 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2721 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2722 sed 's/^/| /' "$ac_site_file" >&5
2724 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726 as_fn_error $? "failed to load site script $ac_site_file
2727 See \`config.log' for more details" "$LINENO" 5; }
2731 if test -r "$cache_file"; then
2732 # Some versions of bash will fail to source /dev/null (special files
2733 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2734 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2736 $as_echo "$as_me: loading cache $cache_file" >&6;}
2738 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2739 *) . "./$cache_file";;
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2744 $as_echo "$as_me: creating cache $cache_file" >&6;}
2748 # Check that the precious variables saved in the cache have kept the same
2750 ac_cache_corrupted=false
2751 for ac_var in $ac_precious_vars; do
2752 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2753 eval ac_new_set=\$ac_env_${ac_var}_set
2754 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2755 eval ac_new_val=\$ac_env_${ac_var}_value
2756 case $ac_old_set,$ac_new_set in
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2759 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2760 ac_cache_corrupted=: ;;
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2763 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2764 ac_cache_corrupted=: ;;
2767 if test "x$ac_old_val" != "x$ac_new_val"; then
2768 # differences in whitespace do not lead to failure.
2769 ac_old_val_w=`echo x $ac_old_val`
2770 ac_new_val_w=`echo x $ac_new_val`
2771 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2773 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2774 ac_cache_corrupted=:
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2777 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2778 eval $ac_var=\$ac_old_val
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2781 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2783 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2786 # Pass precious variables to config.status.
2787 if test "$ac_new_set" = set; then
2789 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2790 *) ac_arg=$ac_var=$ac_new_val ;;
2792 case " $ac_configure_args " in
2793 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2794 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2798 if $ac_cache_corrupted; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2802 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2803 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2805 ## -------------------- ##
2806 ## Main body of script. ##
2807 ## -------------------- ##
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816 ac_config_headers="$ac_config_headers config.h pathnames.h"
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2819 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2924 # Begin initial values for man page substitution
2926 iolog_dir=/var/log/sudo-io
2927 timedir=/var/adm/sudo
2932 passprompt="Password:"
2944 mailsub="*** SECURITY information for %h ***"
2945 badpass_message="Sorry, try again."
2956 ldap_conf=/etc/ldap.conf
2957 ldap_secret=/etc/ldap.secret
2958 netsvc_conf=/etc/netsvc.conf
2959 noexec_file=/usr/local/libexec/sudo_noexec.so
2960 nsswitch_conf=/etc/nsswitch.conf
2961 secure_path="not set"
2963 # End initial values for man page substitution
2968 : ${MANDIRTYPE='man'}
2970 : ${SHLIB_MODE='0644'}
2971 : ${SUDOERS_MODE='0440'}
2972 : ${SUDOERS_UID='0'}
2973 : ${SUDOERS_GID='0'}
2989 LT_LDEXPORTS="-export-symbols \$(shlib_exp)"
2990 LT_LDDEP="\$(shlib_exp)"
2997 shadow_libs_optional=
3000 RTLD_PRELOAD_VAR="LD_PRELOAD"
3001 RTLD_PRELOAD_ENABLE_VAR=
3002 RTLD_PRELOAD_DELIM=":"
3003 RTLD_PRELOAD_DEFAULT=
3009 # Check whether --with-otp-only was given.
3010 if test "${with_otp_only+set}" = set; then :
3011 withval=$with_otp_only; case $with_otp_only in
3012 yes) with_passwd="no"
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
3014 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
3021 # Check whether --with-alertmail was given.
3022 if test "${with_alertmail+set}" = set; then :
3023 withval=$with_alertmail; case $with_alertmail in
3024 *) with_mailto="$with_alertmail"
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
3026 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
3034 # Check whether --with-devel was given.
3035 if test "${with_devel+set}" = set; then :
3036 withval=$with_devel; case $with_devel in
3037 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
3038 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
3039 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
3044 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
3045 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
3052 # Check whether --with-CC was given.
3053 if test "${with_CC+set}" = set; then :
3054 withval=$with_CC; case $with_CC in
3055 *) as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5
3062 # Check whether --with-rpath was given.
3063 if test "${with_rpath+set}" = set; then :
3064 withval=$with_rpath; case $with_rpath in
3066 *) as_fn_error $? "\"--with-rpath does not take an argument.\"" "$LINENO" 5
3073 # Check whether --with-blibpath was given.
3074 if test "${with_blibpath+set}" = set; then :
3075 withval=$with_blibpath; case $with_blibpath in
3077 *) { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
3078 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
3085 # Check whether --with-bsm-audit was given.
3086 if test "${with_bsm_audit+set}" = set; then :
3087 withval=$with_bsm_audit; case $with_bsm_audit in
3088 yes) $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3090 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
3091 SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
3094 *) as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3101 ac_cpp='$CPP $CPPFLAGS'
3102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105 if test -n "$ac_tool_prefix"; then
3106 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3107 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_CC+:} false; then :
3111 $as_echo_n "(cached) " >&6
3113 if test -n "$CC"; then
3114 ac_cv_prog_CC="$CC" # Let the user override the test.
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 if test -n "$CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3144 if test -z "$ac_cv_prog_CC"; then
3146 # Extract the first word of "gcc", so it can be a program name with args.
3147 set dummy gcc; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3151 $as_echo_n "(cached) " >&6
3153 if test -n "$ac_ct_CC"; then
3154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163 ac_cv_prog_ac_ct_CC="gcc"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3174 if test -n "$ac_ct_CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3176 $as_echo "$ac_ct_CC" >&6; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3182 if test "x$ac_ct_CC" = x; then
3185 case $cross_compiling:$ac_tool_warned in
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3189 ac_tool_warned=yes ;;
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3200 set dummy ${ac_tool_prefix}cc; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_CC+:} false; then :
3204 $as_echo_n "(cached) " >&6
3206 if test -n "$CC"; then
3207 ac_cv_prog_CC="$CC" # Let the user override the test.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 ac_cv_prog_CC="${ac_tool_prefix}cc"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
3238 if test -z "$CC"; then
3239 # Extract the first word of "cc", so it can be a program name with args.
3240 set dummy cc; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if ${ac_cv_prog_CC+:} false; then :
3244 $as_echo_n "(cached) " >&6
3246 if test -n "$CC"; then
3247 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3257 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3258 ac_prog_rejected=yes
3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 if test $ac_prog_rejected = yes; then
3270 # We found a bogon in the path, so make sure we never use it.
3271 set dummy $ac_cv_prog_CC
3273 if test $# != 0; then
3274 # We chose a different compiler from the bogus one.
3275 # However, it has the same basename, so the bogon will be chosen
3276 # first if we set CC to just the basename; use the full file name.
3278 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3284 if test -n "$CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3294 if test -z "$CC"; then
3295 if test -n "$ac_tool_prefix"; then
3296 for ac_prog in cl.exe
3298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_CC+:} false; then :
3303 $as_echo_n "(cached) " >&6
3305 if test -n "$CC"; then
3306 ac_cv_prog_CC="$CC" # Let the user override the test.
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 if test -n "$CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3335 test -n "$CC" && break
3338 if test -z "$CC"; then
3340 for ac_prog in cl.exe
3342 # Extract the first word of "$ac_prog", so it can be a program name with args.
3343 set dummy $ac_prog; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3347 $as_echo_n "(cached) " >&6
3349 if test -n "$ac_ct_CC"; then
3350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 ac_cv_prog_ac_ct_CC="$ac_prog"
3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3370 if test -n "$ac_ct_CC"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3372 $as_echo "$ac_ct_CC" >&6; }
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3379 test -n "$ac_ct_CC" && break
3382 if test "x$ac_ct_CC" = x; then
3385 case $cross_compiling:$ac_tool_warned in
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3389 ac_tool_warned=yes ;;
3398 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "no acceptable C compiler found in \$PATH
3401 See \`config.log' for more details" "$LINENO" 5; }
3403 # Provide some information about the compiler.
3404 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3407 for ac_option in --version -v -V -qversion; do
3408 { { ac_try="$ac_compiler $ac_option >&5"
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3417 if test -s conftest.err; then
3419 ... rest of stderr output deleted ...
3420 10q' conftest.err >conftest.er1
3421 cat conftest.er1 >&5
3423 rm -f conftest.er1 conftest.err
3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425 test $ac_status = 0; }
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3439 ac_clean_files_save=$ac_clean_files
3440 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3441 # Try to create an executable without -o first, disregard a.out.
3442 # It will help us diagnose broken compilers, and finding out an intuition
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3445 $as_echo_n "checking whether the C compiler works... " >&6; }
3446 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3448 # The possible output files:
3449 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3452 for ac_file in $ac_files
3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3456 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3461 if { { ac_try="$ac_link_default"
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_link_default") 2>&5
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }; then :
3472 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3473 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3474 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3475 # so that the user can short-circuit this test for compilers unknown to
3477 for ac_file in $ac_files ''
3479 test -f "$ac_file" || continue
3481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3484 # We found the default executable, but exeext='' is most
3488 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3490 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3492 # We set ac_cv_exeext here because the later test for it is not
3493 # safe: cross compilers may not add the suffix if given an `-o'
3494 # argument, so we may need to know it at that point already.
3495 # Even if this section looks crufty: it has the advantage of
3502 test "$ac_cv_exeext" = no && ac_cv_exeext=
3507 if test -z "$ac_file"; then :
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3510 $as_echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error 77 "C compiler cannot create executables
3516 See \`config.log' for more details" "$LINENO" 5; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519 $as_echo "yes" >&6; }
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3522 $as_echo_n "checking for C compiler default output file name... " >&6; }
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3524 $as_echo "$ac_file" >&6; }
3525 ac_exeext=$ac_cv_exeext
3527 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3528 ac_clean_files=$ac_clean_files_save
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3530 $as_echo_n "checking for suffix of executables... " >&6; }
3531 if { { ac_try="$ac_link"
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_link") 2>&5
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }; then :
3542 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3543 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3544 # work properly (i.e., refer to `conftest.exe'), while it won't with
3546 for ac_file in conftest.exe conftest conftest.*; do
3547 test -f "$ac_file" || continue
3549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3550 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3559 See \`config.log' for more details" "$LINENO" 5; }
3561 rm -f conftest conftest$ac_cv_exeext
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3563 $as_echo "$ac_cv_exeext" >&6; }
3565 rm -f conftest.$ac_ext
3566 EXEEXT=$ac_cv_exeext
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3574 FILE *f = fopen ("conftest.out", "w");
3575 return ferror (f) || fclose (f) != 0;
3581 ac_clean_files="$ac_clean_files conftest.out"
3582 # Check that the compiler produces executables we can run. If not, either
3583 # the compiler is broken, or we cross compile.
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3585 $as_echo_n "checking whether we are cross compiling... " >&6; }
3586 if test "$cross_compiling" != yes; then
3587 { { ac_try="$ac_link"
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_link") 2>&5
3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597 test $ac_status = 0; }
3598 if { ac_try='./conftest$ac_cv_exeext'
3599 { { case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_try") 2>&5
3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608 test $ac_status = 0; }; }; then
3611 if test "$cross_compiling" = maybe; then
3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616 as_fn_error $? "cannot run C compiled programs.
3617 If you meant to cross compile, use \`--host'.
3618 See \`config.log' for more details" "$LINENO" 5; }
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3623 $as_echo "$cross_compiling" >&6; }
3625 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3626 ac_clean_files=$ac_clean_files_save
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3628 $as_echo_n "checking for suffix of object files... " >&6; }
3629 if ${ac_cv_objext+:} false; then :
3630 $as_echo_n "(cached) " >&6
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3643 rm -f conftest.o conftest.obj
3644 if { { ac_try="$ac_compile"
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_compile") 2>&5
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; then :
3655 for ac_file in conftest.o conftest.obj conftest.*; do
3656 test -f "$ac_file" || continue;
3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3659 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3664 $as_echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error $? "cannot compute suffix of object files: cannot compile
3670 See \`config.log' for more details" "$LINENO" 5; }
3672 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3675 $as_echo "$ac_cv_objext" >&6; }
3676 OBJEXT=$ac_cv_objext
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3679 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3680 if ${ac_cv_c_compiler_gnu+:} false; then :
3681 $as_echo_n "(cached) " >&6
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3697 if ac_fn_c_try_compile "$LINENO"; then :
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3707 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3708 if test $ac_compiler_gnu = yes; then
3713 ac_test_CFLAGS=${CFLAGS+set}
3714 ac_save_CFLAGS=$CFLAGS
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3716 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3717 if ${ac_cv_prog_cc_g+:} false; then :
3718 $as_echo_n "(cached) " >&6
3720 ac_save_c_werror_flag=$ac_c_werror_flag
3721 ac_c_werror_flag=yes
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3735 if ac_fn_c_try_compile "$LINENO"; then :
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3750 if ac_fn_c_try_compile "$LINENO"; then :
3753 ac_c_werror_flag=$ac_save_c_werror_flag
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3766 if ac_fn_c_try_compile "$LINENO"; then :
3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 ac_c_werror_flag=$ac_save_c_werror_flag
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3777 $as_echo "$ac_cv_prog_cc_g" >&6; }
3778 if test "$ac_test_CFLAGS" = set; then
3779 CFLAGS=$ac_save_CFLAGS
3780 elif test $ac_cv_prog_cc_g = yes; then
3781 if test "$GCC" = yes; then
3787 if test "$GCC" = yes; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3794 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3795 if ${ac_cv_prog_cc_c89+:} false; then :
3796 $as_echo_n "(cached) " >&6
3798 ac_cv_prog_cc_c89=no
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3804 #include <sys/types.h>
3805 #include <sys/stat.h>
3806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3807 struct buf { int x; };
3808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3809 static char *e (p, i)
3815 static char *f (char * (*g) (char **, int), char **p, ...)
3820 s = g (p, va_arg (v,int));
3825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3826 function prototypes and stuff, but not '\xHH' hex character constants.
3827 These don't provoke an error unfortunately, instead are silently treated
3828 as 'x'. The following induces an error, until -std is added to get
3829 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3830 array size at least. It's necessary to write '\x00'==0 to get something
3831 that's true only with -std. */
3832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3835 inside strings and character constants. */
3837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3839 int test (int i, double x);
3840 struct s1 {int (*f) (int a);};
3841 struct s2 {int (*f) (double a);};
3842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3848 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3854 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3856 CC="$ac_save_CC $ac_arg"
3857 if ac_fn_c_try_compile "$LINENO"; then :
3858 ac_cv_prog_cc_c89=$ac_arg
3860 rm -f core conftest.err conftest.$ac_objext
3861 test "x$ac_cv_prog_cc_c89" != "xno" && break
3863 rm -f conftest.$ac_ext
3868 case "x$ac_cv_prog_cc_c89" in
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3871 $as_echo "none needed" >&6; } ;;
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3874 $as_echo "unsupported" >&6; } ;;
3876 CC="$CC $ac_cv_prog_cc_c89"
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3878 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3880 if test "x$ac_cv_prog_cc_c89" != xno; then :
3885 ac_cpp='$CPP $CPPFLAGS'
3886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 # Check whether --with-linux-audit was given.
3893 if test "${with_linux_audit+set}" = set; then :
3894 withval=$with_linux_audit; case $with_linux_audit in
3895 yes) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897 #include <libaudit.h>
3901 int i = AUDIT_USER_CMD; (void)i;
3906 if ac_fn_c_try_compile "$LINENO"; then :
3908 $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3910 SUDO_LIBS="${SUDO_LIBS} -laudit"
3911 SUDOERS_LIBS="${SUDO_LIBS} -laudit"
3912 SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
3916 as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 *) as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3929 # Check whether --with-sssd was given.
3930 if test "${with_sssd+set}" = set; then :
3931 withval=$with_sssd; case $with_sssd in
3932 yes) SUDOERS_OBJS="${SUDOERS_OBJS} sssd.lo"
3933 $as_echo "#define HAVE_SSSD 1" >>confdefs.h
3937 *) as_fn_error $? "\"--with-sssd does not take an argument.\"" "$LINENO" 5
3944 # Check whether --with-sssd-lib was given.
3945 if test "${with_sssd_lib+set}" = set; then :
3946 withval=$with_sssd_lib;
3949 sssd_lib="\"LIBDIR\""
3950 test -n "$with_sssd_lib" && sssd_lib="$with_sssd_lib"
3951 cat >>confdefs.h <<EOF
3952 #define _PATH_SSSD_LIB "$sssd_lib"
3957 # Check whether --with-incpath was given.
3958 if test "${with_incpath+set}" = set; then :
3959 withval=$with_incpath; case $with_incpath in
3960 yes) as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
3962 no) as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
3964 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3965 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3966 for i in ${with_incpath}; do
3967 CPPFLAGS="${CPPFLAGS} -I${i}"
3975 # Check whether --with-libpath was given.
3976 if test "${with_libpath+set}" = set; then :
3977 withval=$with_libpath; case $with_libpath in
3978 yes) as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
3980 no) as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
3982 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3983 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3990 # Check whether --with-libraries was given.
3991 if test "${with_libraries+set}" = set; then :
3992 withval=$with_libraries; case $with_libraries in
3993 yes) as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
3995 no) as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
3997 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3998 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
4005 # Check whether --with-efence was given.
4006 if test "${with_efence+set}" = set; then :
4007 withval=$with_efence; case $with_efence in
4008 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
4009 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
4010 LIBS="${LIBS} -lefence"
4011 if test -f /usr/local/lib/libefence.a; then
4012 with_libpath="${with_libpath} /usr/local/lib"
4016 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
4017 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
4024 # Check whether --with-csops was given.
4025 if test "${with_csops+set}" = set; then :
4026 withval=$with_csops; case $with_csops in
4027 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
4028 $as_echo "$as_me: Adding CSOps standard options" >&6;}
4032 with_classic_insults=yes
4033 with_csops_insults=yes
4036 : ${mansectform='5'}
4039 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
4040 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
4047 # Check whether --with-passwd was given.
4048 if test "${with_passwd+set}" = set; then :
4049 withval=$with_passwd; case $with_passwd in
4050 yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
4051 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
4053 $as_echo "$with_passwd" >&6; }
4055 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
4057 *) as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
4064 # Check whether --with-skey was given.
4065 if test "${with_skey+set}" = set; then :
4066 withval=$with_skey; case $with_skey in
4068 *) $as_echo "#define HAVE_SKEY 1" >>confdefs.h
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
4071 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4073 $as_echo "yes" >&6; }
4074 AUTH_REG="$AUTH_REG S/Key"
4081 # Check whether --with-opie was given.
4082 if test "${with_opie+set}" = set; then :
4083 withval=$with_opie; case $with_opie in
4085 *) $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4088 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4090 $as_echo "yes" >&6; }
4091 AUTH_REG="$AUTH_REG NRL_OPIE"
4098 # Check whether --with-long-otp-prompt was given.
4099 if test "${with_long_otp_prompt+set}" = set; then :
4100 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4101 yes) $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4104 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4106 $as_echo "yes" >&6; }
4109 no) long_otp_prompt=off
4111 *) as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4118 # Check whether --with-SecurID was given.
4119 if test "${with_SecurID+set}" = set; then :
4120 withval=$with_SecurID; case $with_SecurID in
4122 *) $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4125 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4127 $as_echo "yes" >&6; }
4128 AUTH_EXCL="$AUTH_EXCL SecurID"
4135 # Check whether --with-fwtk was given.
4136 if test "${with_fwtk+set}" = set; then :
4137 withval=$with_fwtk; case $with_fwtk in
4139 *) $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4142 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4144 $as_echo "yes" >&6; }
4145 AUTH_EXCL="$AUTH_EXCL FWTK"
4152 # Check whether --with-kerb5 was given.
4153 if test "${with_kerb5+set}" = set; then :
4154 withval=$with_kerb5; case $with_kerb5 in
4156 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4157 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4159 $as_echo "yes" >&6; }
4160 AUTH_REG="$AUTH_REG kerb5"
4167 # Check whether --with-aixauth was given.
4168 if test "${with_aixauth+set}" = set; then :
4169 withval=$with_aixauth; case $with_aixauth in
4170 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4172 *) as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4179 # Check whether --with-pam was given.
4180 if test "${with_pam+set}" = set; then :
4181 withval=$with_pam; case $with_pam in
4182 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
4184 *) as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
4191 # Check whether --with-AFS was given.
4192 if test "${with_AFS+set}" = set; then :
4193 withval=$with_AFS; case $with_AFS in
4194 yes) $as_echo "#define HAVE_AFS 1" >>confdefs.h
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4197 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4199 $as_echo "yes" >&6; }
4200 AUTH_REG="$AUTH_REG AFS"
4203 *) as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4210 # Check whether --with-DCE was given.
4211 if test "${with_DCE+set}" = set; then :
4212 withval=$with_DCE; case $with_DCE in
4213 yes) $as_echo "#define HAVE_DCE 1" >>confdefs.h
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4216 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4218 $as_echo "yes" >&6; }
4219 AUTH_REG="$AUTH_REG DCE"
4222 *) as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4229 # Check whether --with-logincap was given.
4230 if test "${with_logincap+set}" = set; then :
4231 withval=$with_logincap; case $with_logincap in
4233 *) as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4240 # Check whether --with-bsdauth was given.
4241 if test "${with_bsdauth+set}" = set; then :
4242 withval=$with_bsdauth; case $with_bsdauth in
4243 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4245 *) as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4252 # Check whether --with-project was given.
4253 if test "${with_project+set}" = set; then :
4254 withval=$with_project; case $with_project in
4257 *) as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4264 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4266 # Check whether --with-lecture was given.
4267 if test "${with_lecture+set}" = set; then :
4268 withval=$with_lecture; case $with_lecture in
4269 yes|short|always) lecture=once
4271 no|none|never) lecture=never
4273 *) as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4278 if test "$lecture" = "once"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4280 $as_echo "yes" >&6; }
4282 $as_echo "#define NO_LECTURE 1" >>confdefs.h
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4289 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4291 # Check whether --with-logging was given.
4292 if test "${with_logging+set}" = set; then :
4293 withval=$with_logging; case $with_logging in
4294 yes) as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
4296 no) as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
4298 syslog) $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4301 $as_echo "syslog" >&6; }
4303 file) $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4306 $as_echo "file" >&6; }
4308 both) $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4311 $as_echo "both" >&6; }
4313 *) as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4317 $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4319 $as_echo "syslog" >&6; }
4324 # Check whether --with-logfac was given.
4325 if test "${with_logfac+set}" = set; then :
4326 withval=$with_logfac; case $with_logfac in
4327 yes) as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
4329 no) as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
4331 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
4333 *) as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4340 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4342 # Check whether --with-goodpri was given.
4343 if test "${with_goodpri+set}" = set; then :
4344 withval=$with_goodpri; case $with_goodpri in
4345 yes) as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4347 no) as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
4349 alert|crit|debug|emerg|err|info|notice|warning)
4350 goodpri=$with_goodpri
4352 *) as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4358 cat >>confdefs.h <<_ACEOF
4359 #define PRI_SUCCESS "$goodpri"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4363 $as_echo "$goodpri" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4366 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4368 # Check whether --with-badpri was given.
4369 if test "${with_badpri+set}" = set; then :
4370 withval=$with_badpri; case $with_badpri in
4371 yes) as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
4373 no) as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
4375 alert|crit|debug|emerg|err|info|notice|warning)
4378 *) as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
4384 cat >>confdefs.h <<_ACEOF
4385 #define PRI_FAILURE "$badpri"
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4389 $as_echo "$badpri" >&6; }
4392 # Check whether --with-logpath was given.
4393 if test "${with_logpath+set}" = set; then :
4394 withval=$with_logpath; case $with_logpath in
4395 yes) as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
4397 no) as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4404 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4406 # Check whether --with-loglen was given.
4407 if test "${with_loglen+set}" = set; then :
4408 withval=$with_loglen; case $with_loglen in
4409 yes) as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
4411 no) as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
4413 [0-9]*) loglen=$with_loglen
4415 *) as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4421 cat >>confdefs.h <<_ACEOF
4422 #define MAXLOGFILELEN $loglen
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4426 $as_echo "$loglen" >&6; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4429 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4431 # Check whether --with-ignore-dot was given.
4432 if test "${with_ignore_dot+set}" = set; then :
4433 withval=$with_ignore_dot; case $with_ignore_dot in
4438 *) as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4443 if test "$ignore_dot" = "on"; then
4444 $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4447 $as_echo "yes" >&6; }
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4454 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4456 # Check whether --with-mail-if-no-user was given.
4457 if test "${with_mail_if_no_user+set}" = set; then :
4458 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4459 yes) mail_no_user=on
4461 no) mail_no_user=off
4463 *) as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4468 if test "$mail_no_user" = "on"; then
4469 $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472 $as_echo "yes" >&6; }
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4479 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4481 # Check whether --with-mail-if-no-host was given.
4482 if test "${with_mail_if_no_host+set}" = set; then :
4483 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4484 yes) mail_no_host=on
4486 no) mail_no_host=off
4488 *) as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4493 if test "$mail_no_host" = "on"; then
4494 $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497 $as_echo "yes" >&6; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4504 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4506 # Check whether --with-mail-if-noperms was given.
4507 if test "${with_mail_if_noperms+set}" = set; then :
4508 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4509 yes) mail_noperms=on
4511 no) mail_noperms=off
4513 *) as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4518 if test "$mail_noperms" = "on"; then
4519 $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4522 $as_echo "yes" >&6; }
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4529 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4531 # Check whether --with-mailto was given.
4532 if test "${with_mailto+set}" = set; then :
4533 withval=$with_mailto; case $with_mailto in
4534 yes) as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
4536 no) as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
4538 *) mailto=$with_mailto
4544 cat >>confdefs.h <<_ACEOF
4545 #define MAILTO "$mailto"
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4549 $as_echo "$mailto" >&6; }
4552 # Check whether --with-mailsubject was given.
4553 if test "${with_mailsubject+set}" = set; then :
4554 withval=$with_mailsubject; case $with_mailsubject in
4555 yes) as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4557 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4558 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4560 *) mailsub="$with_mailsubject"
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4562 $as_echo_n "checking sudo mail subject... " >&6; }
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4564 $as_echo "Using alert mail subject: $mailsub" >&6; }
4570 cat >>confdefs.h <<_ACEOF
4571 #define MAILSUBJECT "$mailsub"
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4576 $as_echo_n "checking for bad password prompt... " >&6; }
4578 # Check whether --with-passprompt was given.
4579 if test "${with_passprompt+set}" = set; then :
4580 withval=$with_passprompt; case $with_passprompt in
4581 yes) as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4583 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4584 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4586 *) passprompt="$with_passprompt"
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4591 $as_echo "$passprompt" >&6; }
4593 cat >>confdefs.h <<_ACEOF
4594 #define PASSPROMPT "$passprompt"
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4599 $as_echo_n "checking for bad password message... " >&6; }
4601 # Check whether --with-badpass-message was given.
4602 if test "${with_badpass_message+set}" = set; then :
4603 withval=$with_badpass_message; case $with_badpass_message in
4604 yes) as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4606 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4607 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4609 *) badpass_message="$with_badpass_message"
4615 cat >>confdefs.h <<_ACEOF
4616 #define INCORRECT_PASSWORD "$badpass_message"
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4620 $as_echo "$badpass_message" >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4623 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4625 # Check whether --with-fqdn was given.
4626 if test "${with_fqdn+set}" = set; then :
4627 withval=$with_fqdn; case $with_fqdn in
4632 *) as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4637 if test "$fqdn" = "on"; then
4638 $as_echo "#define FQDN 1" >>confdefs.h
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4641 $as_echo "yes" >&6; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4648 # Check whether --with-timedir was given.
4649 if test "${with_timedir+set}" = set; then :
4650 withval=$with_timedir; case $with_timedir in
4651 yes) as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5
4653 no) as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5
4660 # Check whether --with-iologdir was given.
4661 if test "${with_iologdir+set}" = set; then :
4662 withval=$with_iologdir; case $with_iologdir in
4664 no) as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
4671 # Check whether --with-sendmail was given.
4672 if test "${with_sendmail+set}" = set; then :
4673 withval=$with_sendmail; case $with_sendmail in
4674 yes) with_sendmail=""
4677 *) cat >>confdefs.h <<EOF
4678 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4687 # Check whether --with-sudoers-mode was given.
4688 if test "${with_sudoers_mode+set}" = set; then :
4689 withval=$with_sudoers_mode; case $with_sudoers_mode in
4690 yes) as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4692 no) as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4694 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
4696 0*) SUDOERS_MODE=$with_sudoers_mode
4698 *) as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4705 # Check whether --with-sudoers-uid was given.
4706 if test "${with_sudoers_uid+set}" = set; then :
4707 withval=$with_sudoers_uid; case $with_sudoers_uid in
4708 yes) as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4710 no) as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4712 [0-9]*) SUDOERS_UID=$with_sudoers_uid
4714 *) as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4721 # Check whether --with-sudoers-gid was given.
4722 if test "${with_sudoers_gid+set}" = set; then :
4723 withval=$with_sudoers_gid; case $with_sudoers_gid in
4724 yes) as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4726 no) as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4728 [0-9]*) SUDOERS_GID=$with_sudoers_gid
4730 *) as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4737 $as_echo_n "checking for umask programs should be run with... " >&6; }
4739 # Check whether --with-umask was given.
4740 if test "${with_umask+set}" = set; then :
4741 withval=$with_umask; case $with_umask in
4742 yes) as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
4746 [0-9]*) sudo_umask=$with_umask
4748 *) as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
4754 cat >>confdefs.h <<_ACEOF
4755 #define SUDO_UMASK $sudo_umask
4758 if test "$sudo_umask" = "0777"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4760 $as_echo "user" >&6; }
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4763 $as_echo "$sudo_umask" >&6; }
4767 # Check whether --with-umask-override was given.
4768 if test "${with_umask_override+set}" = set; then :
4769 withval=$with_umask_override; case $with_umask_override in
4770 yes) $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4774 no) umask_override=off
4776 *) as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4783 $as_echo_n "checking for default user to run commands as... " >&6; }
4785 # Check whether --with-runas-default was given.
4786 if test "${with_runas_default+set}" = set; then :
4787 withval=$with_runas_default; case $with_runas_default in
4788 yes) as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4790 no) as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
4792 *) runas_default="$with_runas_default"
4798 cat >>confdefs.h <<_ACEOF
4799 #define RUNAS_DEFAULT "$runas_default"
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4803 $as_echo "$runas_default" >&6; }
4806 # Check whether --with-exempt was given.
4807 if test "${with_exempt+set}" = set; then :
4808 withval=$with_exempt; case $with_exempt in
4809 yes) as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
4811 no) as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
4814 cat >>confdefs.h <<_ACEOF
4815 #define EXEMPTGROUP "$with_exempt"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4819 $as_echo_n "checking for group to be exempt from password... " >&6; }
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4821 $as_echo "$with_exempt" >&6; }
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4828 $as_echo_n "checking for editor that visudo should use... " >&6; }
4830 # Check whether --with-editor was given.
4831 if test "${with_editor+set}" = set; then :
4832 withval=$with_editor; case $with_editor in
4833 yes) as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
4835 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4838 cat >>confdefs.h <<_ACEOF
4839 #define EDITOR "$with_editor"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4843 $as_echo "$with_editor" >&6; }
4844 editor="$with_editor"
4848 $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4850 $as_echo "vi" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4855 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4857 # Check whether --with-env-editor was given.
4858 if test "${with_env_editor+set}" = set; then :
4859 withval=$with_env_editor; case $with_env_editor in
4864 *) as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4869 if test "$env_editor" = "on"; then
4870 $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4873 $as_echo "yes" >&6; }
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4880 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4882 # Check whether --with-passwd-tries was given.
4883 if test "${with_passwd_tries+set}" = set; then :
4884 withval=$with_passwd_tries; case $with_passwd_tries in
4886 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4888 [1-9]*) passwd_tries=$with_passwd_tries
4890 *) as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4896 cat >>confdefs.h <<_ACEOF
4897 #define TRIES_FOR_PASSWORD $passwd_tries
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4901 $as_echo "$passwd_tries" >&6; }
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4904 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4906 # Check whether --with-timeout was given.
4907 if test "${with_timeout+set}" = set; then :
4908 withval=$with_timeout; case $with_timeout in
4912 [0-9]*) timeout=$with_timeout
4914 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4920 cat >>confdefs.h <<_ACEOF
4921 #define TIMEOUT $timeout
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4925 $as_echo "$timeout" >&6; }
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4928 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4930 # Check whether --with-password-timeout was given.
4931 if test "${with_password_timeout+set}" = set; then :
4932 withval=$with_password_timeout; case $with_password_timeout in
4934 no) password_timeout=0
4936 [0-9]*) password_timeout=$with_password_timeout
4938 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4944 cat >>confdefs.h <<_ACEOF
4945 #define PASSWORD_TIMEOUT $password_timeout
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4949 $as_echo "$password_timeout" >&6; }
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4952 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4954 # Check whether --with-tty-tickets was given.
4955 if test "${with_tty_tickets+set}" = set; then :
4956 withval=$with_tty_tickets; case $with_tty_tickets in
4961 *) as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4966 if test "$tty_tickets" = "off"; then
4967 $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4973 $as_echo "yes" >&6; }
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4977 $as_echo_n "checking whether to include insults... " >&6; }
4979 # Check whether --with-insults was given.
4980 if test "${with_insults+set}" = set; then :
4981 withval=$with_insults; case $with_insults in
4983 with_classic_insults=yes
4984 with_csops_insults=yes
4986 disabled) insults=off
4987 with_classic_insults=yes
4988 with_csops_insults=yes
4992 *) as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
4997 if test "$insults" = "on"; then
4998 $as_echo "#define USE_INSULTS 1" >>confdefs.h
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5001 $as_echo "yes" >&6; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5008 # Check whether --with-all-insults was given.
5009 if test "${with_all_insults+set}" = set; then :
5010 withval=$with_all_insults; case $with_all_insults in
5011 yes) with_classic_insults=yes
5012 with_csops_insults=yes
5013 with_hal_insults=yes
5014 with_goons_insults=yes
5017 *) as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
5024 # Check whether --with-classic-insults was given.
5025 if test "${with_classic_insults+set}" = set; then :
5026 withval=$with_classic_insults; case $with_classic_insults in
5027 yes) $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
5031 *) as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
5038 # Check whether --with-csops-insults was given.
5039 if test "${with_csops_insults+set}" = set; then :
5040 withval=$with_csops_insults; case $with_csops_insults in
5041 yes) $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
5045 *) as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
5052 # Check whether --with-hal-insults was given.
5053 if test "${with_hal_insults+set}" = set; then :
5054 withval=$with_hal_insults; case $with_hal_insults in
5055 yes) $as_echo "#define HAL_INSULTS 1" >>confdefs.h
5059 *) as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
5066 # Check whether --with-goons-insults was given.
5067 if test "${with_goons_insults+set}" = set; then :
5068 withval=$with_goons_insults; case $with_goons_insults in
5069 yes) $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
5073 *) as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
5080 # Check whether --with-nsswitch was given.
5081 if test "${with_nsswitch+set}" = set; then :
5082 withval=$with_nsswitch; case $with_nsswitch in
5084 yes) with_nsswitch="/etc/nsswitch.conf"
5092 # Check whether --with-ldap was given.
5093 if test "${with_ldap+set}" = set; then :
5094 withval=$with_ldap; case $with_ldap in
5096 *) $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5099 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5101 $as_echo "yes" >&6; }
5108 # Check whether --with-ldap-conf-file was given.
5109 if test "${with_ldap_conf_file+set}" = set; then :
5110 withval=$with_ldap_conf_file;
5113 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5114 cat >>confdefs.h <<EOF
5115 #define _PATH_LDAP_CONF "$ldap_conf"
5120 # Check whether --with-ldap-secret-file was given.
5121 if test "${with_ldap_secret_file+set}" = set; then :
5122 withval=$with_ldap_secret_file;
5125 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5126 cat >>confdefs.h <<EOF
5127 #define _PATH_LDAP_SECRET "$ldap_secret"
5132 # Check whether --with-pc-insults was given.
5133 if test "${with_pc_insults+set}" = set; then :
5134 withval=$with_pc_insults; case $with_pc_insults in
5135 yes) $as_echo "#define PC_INSULTS 1" >>confdefs.h
5139 *) as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5145 if test "$insults" = "on"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5147 $as_echo_n "checking which insult sets to include... " >&6; }
5149 test "$with_goons_insults" = "yes" && i="goons ${i}"
5150 test "$with_hal_insults" = "yes" && i="hal ${i}"
5151 test "$with_csops_insults" = "yes" && i="csops ${i}"
5152 test "$with_classic_insults" = "yes" && i="classic ${i}"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5154 $as_echo "$i" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5158 $as_echo_n "checking whether to override the user's path... " >&6; }
5160 # Check whether --with-secure-path was given.
5161 if test "${with_secure_path+set}" = set; then :
5162 withval=$with_secure_path; case $with_secure_path in
5163 yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5164 cat >>confdefs.h <<_ACEOF
5165 #define SECURE_PATH "$with_secure_path"
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5169 $as_echo "$with_secure_path" >&6; }
5170 secure_path="set to $with_secure_path"
5172 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5175 *) cat >>confdefs.h <<_ACEOF
5176 #define SECURE_PATH "$with_secure_path"
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5180 $as_echo "$with_secure_path" >&6; }
5181 secure_path="set to F<$with_secure_path>"
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5191 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5193 # Check whether --with-interfaces was given.
5194 if test "${with_interfaces+set}" = set; then :
5195 withval=$with_interfaces; case $with_interfaces in
5196 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5197 $as_echo "yes" >&6; }
5199 no) $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5204 *) as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5209 $as_echo "yes" >&6; }
5214 # Check whether --with-stow was given.
5215 if test "${with_stow+set}" = set; then :
5216 withval=$with_stow; case $with_stow in
5217 *) { $as_echo "$as_me:${as_lineno-$LINENO}: --with-stow option deprecated, now is defalt behavior" >&5
5218 $as_echo "$as_me: --with-stow option deprecated, now is defalt behavior" >&6;}
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5225 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5227 # Check whether --with-askpass was given.
5228 if test "${with_askpass+set}" = set; then :
5229 withval=$with_askpass; case $with_askpass in
5230 yes) as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5233 *) cat >>confdefs.h <<EOF
5234 #define _PATH_SUDO_ASKPASS "$with_askpass"
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5246 # Check whether --with-plugindir was given.
5247 if test "${with_plugindir+set}" = set; then :
5248 withval=$with_plugindir; case $with_plugindir in
5249 no) as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
5254 with_plugindir="$libexecdir"
5259 # Check whether --with-man was given.
5260 if test "${with_man+set}" = set; then :
5261 withval=$with_man; case $with_man in
5264 no) as_fn_error $? "\"--without-man not supported.\"" "$LINENO" 5
5266 *) as_fn_error $? "\"ignoring unknown argument to --with-man: $with_man.\"" "$LINENO" 5
5273 # Check whether --with-mdoc was given.
5274 if test "${with_mdoc+set}" = set; then :
5275 withval=$with_mdoc; case $with_mdoc in
5278 no) as_fn_error $? "\"--without-mdoc not supported.\"" "$LINENO" 5
5280 *) as_fn_error $? "\"ignoring unknown argument to --with-mdoc: $with_mdoc.\"" "$LINENO" 5
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5288 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5289 # Check whether --enable-authentication was given.
5290 if test "${enable_authentication+set}" = set; then :
5291 enableval=$enable_authentication; case "$enableval" in
5292 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5293 $as_echo "yes" >&6; }
5295 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5300 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5303 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5309 $as_echo "yes" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5314 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5315 # Check whether --enable-root-mailer was given.
5316 if test "${enable_root_mailer+set}" = set; then :
5317 enableval=$enable_root_mailer; case "$enableval" in
5318 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5321 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5322 $as_echo "yes" >&6; }
5323 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5326 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5329 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5339 # Check whether --enable-setreuid was given.
5340 if test "${enable_setreuid+set}" = set; then :
5341 enableval=$enable_setreuid; case "$enableval" in
5342 no) SKIP_SETREUID=yes
5350 # Check whether --enable-setresuid was given.
5351 if test "${enable_setresuid+set}" = set; then :
5352 enableval=$enable_setresuid; case "$enableval" in
5353 no) SKIP_SETRESUID=yes
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5362 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5363 # Check whether --enable-shadow was given.
5364 if test "${enable_shadow+set}" = set; then :
5365 enableval=$enable_shadow; case "$enableval" in
5366 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5369 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5370 $as_echo "yes" >&6; }
5373 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 $as_echo "no" >&6; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5376 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5387 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5388 # Check whether --enable-root-sudo was given.
5389 if test "${enable_root_sudo+set}" = set; then :
5390 enableval=$enable_root_sudo; case "$enableval" in
5391 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392 $as_echo "yes" >&6; }
5394 no) $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5400 *) as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5406 $as_echo "yes" >&6; }
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5411 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5412 # Check whether --enable-log-host was given.
5413 if test "${enable_log_host+set}" = set; then :
5414 enableval=$enable_log_host; case "$enableval" in
5415 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5416 $as_echo "yes" >&6; }
5417 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5420 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5423 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5426 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5437 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5438 # Check whether --enable-noargs-shell was given.
5439 if test "${enable_noargs_shell+set}" = set; then :
5440 enableval=$enable_noargs_shell; case "$enableval" in
5441 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5442 $as_echo "yes" >&6; }
5443 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5446 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5449 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5452 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5463 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5464 # Check whether --enable-shell-sets-home was given.
5465 if test "${enable_shell_sets_home+set}" = set; then :
5466 enableval=$enable_shell_sets_home; case "$enableval" in
5467 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5468 $as_echo "yes" >&6; }
5469 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5472 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5475 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5478 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5489 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5490 # Check whether --enable-path_info was given.
5491 if test "${enable_path_info+set}" = set; then :
5492 enableval=$enable_path_info; case "$enableval" in
5493 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5496 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5497 $as_echo "yes" >&6; }
5498 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5502 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5505 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5516 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5517 # Check whether --enable-env_debug was given.
5518 if test "${enable_env_debug+set}" = set; then :
5519 enableval=$enable_env_debug; case "$enableval" in
5520 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5522 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5525 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5528 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5531 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5541 # Check whether --enable-zlib was given.
5542 if test "${enable_zlib+set}" = set; then :
5543 enableval=$enable_zlib;
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5550 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5551 # Check whether --enable-env_reset was given.
5552 if test "${enable_env_reset+set}" = set; then :
5553 enableval=$enable_env_reset; case "$enableval" in
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5560 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5566 if test "$env_reset" = "on"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5568 $as_echo "yes" >&6; }
5569 $as_echo "#define ENV_RESET 1" >>confdefs.h
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574 $as_echo "#define ENV_RESET 0" >>confdefs.h
5578 # Check whether --enable-warnings was given.
5579 if test "${enable_warnings+set}" = set; then :
5580 enableval=$enable_warnings; case "$enableval" in
5583 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5584 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5591 # Check whether --enable-werror was given.
5592 if test "${enable_werror+set}" = set; then :
5593 enableval=$enable_werror; case "$enableval" in
5596 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&5
5597 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&2;}
5604 # Check whether --enable-hardening was given.
5605 if test "${enable_hardening+set}" = set; then :
5606 enableval=$enable_hardening;
5608 enable_hardening=yes
5612 # Check whether --enable-pie was given.
5613 if test "${enable_pie+set}" = set; then :
5614 enableval=$enable_pie;
5620 # Check whether --enable-admin-flag was given.
5621 if test "${enable_admin_flag+set}" = set; then :
5622 enableval=$enable_admin_flag; case "$enableval" in
5623 yes) $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5627 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5628 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5635 # Check whether --enable-nls was given.
5636 if test "${enable_nls+set}" = set; then :
5637 enableval=$enable_nls;
5644 # Check whether --with-selinux was given.
5645 if test "${with_selinux+set}" = set; then :
5646 withval=$with_selinux; case $with_selinux in
5647 yes) SELINUX_USAGE="[-r role] [-t type] "
5648 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5650 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5651 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5652 PROGS="${PROGS} sesh"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5655 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5656 if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
5657 $as_echo_n "(cached) " >&6
5659 ac_check_lib_save_LIBS=$LIBS
5660 LIBS="-lselinux $LIBS"
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5664 /* Override any GCC internal prototype to avoid an error.
5665 Use char because int might match the return type of a GCC
5666 builtin and then its argument prototype would still apply. */
5670 char setkeycreatecon ();
5674 return setkeycreatecon ();
5679 if ac_fn_c_try_link "$LINENO"; then :
5680 ac_cv_lib_selinux_setkeycreatecon=yes
5682 ac_cv_lib_selinux_setkeycreatecon=no
5684 rm -f core conftest.err conftest.$ac_objext \
5685 conftest$ac_exeext conftest.$ac_ext
5686 LIBS=$ac_check_lib_save_LIBS
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5689 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5690 if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
5691 $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5697 *) as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5703 # Check whether --enable-gss_krb5_ccache_name was given.
5704 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5705 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5707 check_gss_krb5_ccache_name=no
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5712 $as_echo_n "checking for library containing strerror... " >&6; }
5713 if ${ac_cv_search_strerror+:} false; then :
5714 $as_echo_n "(cached) " >&6
5716 ac_func_search_save_LIBS=$LIBS
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5720 /* Override any GCC internal prototype to avoid an error.
5721 Use char because int might match the return type of a GCC
5722 builtin and then its argument prototype would still apply. */
5735 for ac_lib in '' cposix; do
5736 if test -z "$ac_lib"; then
5737 ac_res="none required"
5740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5742 if ac_fn_c_try_link "$LINENO"; then :
5743 ac_cv_search_strerror=$ac_res
5745 rm -f core conftest.err conftest.$ac_objext \
5747 if ${ac_cv_search_strerror+:} false; then :
5751 if ${ac_cv_search_strerror+:} false; then :
5754 ac_cv_search_strerror=no
5757 LIBS=$ac_func_search_save_LIBS
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5760 $as_echo "$ac_cv_search_strerror" >&6; }
5761 ac_res=$ac_cv_search_strerror
5762 if test "$ac_res" != no; then :
5763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5768 ac_cpp='$CPP $CPPFLAGS'
5769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5773 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5774 # On Suns, sometimes $CPP names a directory.
5775 if test -n "$CPP" && test -d "$CPP"; then
5778 if test -z "$CPP"; then
5779 if ${ac_cv_prog_CPP+:} false; then :
5780 $as_echo_n "(cached) " >&6
5782 # Double quotes because CPP needs to be expanded
5783 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5786 for ac_c_preproc_warn_flag in '' yes
5788 # Use a header file that comes with gcc, so configuring glibc
5789 # with a fresh cross-compiler works.
5790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5791 # <limits.h> exists even on freestanding compilers.
5792 # On the NeXT, cc -E runs the code through the compiler's parser,
5793 # not just through cpp. "Syntax error" is here to catch this case.
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5797 # include <limits.h>
5799 # include <assert.h>
5803 if ac_fn_c_try_cpp "$LINENO"; then :
5806 # Broken: fails on valid input.
5809 rm -f conftest.err conftest.i conftest.$ac_ext
5811 # OK, works on sane cases. Now check whether nonexistent headers
5812 # can be detected and how.
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #include <ac_nonexistent.h>
5817 if ac_fn_c_try_cpp "$LINENO"; then :
5818 # Broken: success on invalid input.
5821 # Passes both tests.
5825 rm -f conftest.err conftest.i conftest.$ac_ext
5828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5829 rm -f conftest.i conftest.err conftest.$ac_ext
5830 if $ac_preproc_ok; then :
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5843 $as_echo "$CPP" >&6; }
5845 for ac_c_preproc_warn_flag in '' yes
5847 # Use a header file that comes with gcc, so configuring glibc
5848 # with a fresh cross-compiler works.
5849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5850 # <limits.h> exists even on freestanding compilers.
5851 # On the NeXT, cc -E runs the code through the compiler's parser,
5852 # not just through cpp. "Syntax error" is here to catch this case.
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5856 # include <limits.h>
5858 # include <assert.h>
5862 if ac_fn_c_try_cpp "$LINENO"; then :
5865 # Broken: fails on valid input.
5868 rm -f conftest.err conftest.i conftest.$ac_ext
5870 # OK, works on sane cases. Now check whether nonexistent headers
5871 # can be detected and how.
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5874 #include <ac_nonexistent.h>
5876 if ac_fn_c_try_cpp "$LINENO"; then :
5877 # Broken: success on invalid input.
5880 # Passes both tests.
5884 rm -f conftest.err conftest.i conftest.$ac_ext
5887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5888 rm -f conftest.i conftest.err conftest.$ac_ext
5889 if $ac_preproc_ok; then :
5892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5894 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5895 See \`config.log' for more details" "$LINENO" 5; }
5899 ac_cpp='$CPP $CPPFLAGS'
5900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5904 if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5906 set dummy ${ac_tool_prefix}ar; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_prog_AR+:} false; then :
5910 $as_echo_n "(cached) " >&6
5912 if test -n "$AR"; then
5913 ac_cv_prog_AR="$AR" # Let the user override the test.
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922 ac_cv_prog_AR="${ac_tool_prefix}ar"
5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 if test -n "$AR"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5935 $as_echo "$AR" >&6; }
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5943 if test -z "$ac_cv_prog_AR"; then
5945 # Extract the first word of "ar", so it can be a program name with args.
5946 set dummy ar; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5950 $as_echo_n "(cached) " >&6
5952 if test -n "$ac_ct_AR"; then
5953 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_ac_ct_AR="ar"
5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5973 if test -n "$ac_ct_AR"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5975 $as_echo "$ac_ct_AR" >&6; }
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5981 if test "x$ac_ct_AR" = x; then
5984 case $cross_compiling:$ac_tool_warned in
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988 ac_tool_warned=yes ;;
5996 if test -n "$ac_tool_prefix"; then
5997 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5998 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if ${ac_cv_prog_RANLIB+:} false; then :
6002 $as_echo_n "(cached) " >&6
6004 if test -n "$RANLIB"; then
6005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 RANLIB=$ac_cv_prog_RANLIB
6025 if test -n "$RANLIB"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6027 $as_echo "$RANLIB" >&6; }
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 $as_echo "no" >&6; }
6035 if test -z "$ac_cv_prog_RANLIB"; then
6036 ac_ct_RANLIB=$RANLIB
6037 # Extract the first word of "ranlib", so it can be a program name with args.
6038 set dummy ranlib; ac_word=$2
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6042 $as_echo_n "(cached) " >&6
6044 if test -n "$ac_ct_RANLIB"; then
6045 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_prog_ac_ct_RANLIB="ranlib"
6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6065 if test -n "$ac_ct_RANLIB"; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6067 $as_echo "$ac_ct_RANLIB" >&6; }
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6073 if test "x$ac_ct_RANLIB" = x; then
6076 case $cross_compiling:$ac_tool_warned in
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6080 ac_tool_warned=yes ;;
6082 RANLIB=$ac_ct_RANLIB
6085 RANLIB="$ac_cv_prog_RANLIB"
6088 if test X"$AR" = X"false"; then
6089 as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
6092 if test "x$ac_cv_prog_cc_c89" = "xno"; then
6093 as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
6096 if test "$enable_static" = "no"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
6098 $as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
6103 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6104 if test -f "$ac_dir/install-sh"; then
6106 ac_install_sh="$ac_aux_dir/install-sh -c"
6108 elif test -f "$ac_dir/install.sh"; then
6110 ac_install_sh="$ac_aux_dir/install.sh -c"
6112 elif test -f "$ac_dir/shtool"; then
6114 ac_install_sh="$ac_aux_dir/shtool install -c"
6118 if test -z "$ac_aux_dir"; then
6119 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6122 # These three variables are undocumented and unsupported,
6123 # and are intended to be withdrawn in a future Autoconf release.
6124 # They can cause serious problems if a builder's source tree is in a directory
6125 # whose full name contains unusual characters.
6126 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6127 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6128 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6131 # Make sure we can run config.sub.
6132 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6133 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6136 $as_echo_n "checking build system type... " >&6; }
6137 if ${ac_cv_build+:} false; then :
6138 $as_echo_n "(cached) " >&6
6140 ac_build_alias=$build_alias
6141 test "x$ac_build_alias" = x &&
6142 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6143 test "x$ac_build_alias" = x &&
6144 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6145 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6146 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6150 $as_echo "$ac_cv_build" >&6; }
6151 case $ac_cv_build in
6153 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6156 ac_save_IFS=$IFS; IFS='-'
6162 # Remember, the first character of IFS is used to create $*,
6163 # except with old shells:
6166 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6170 $as_echo_n "checking host system type... " >&6; }
6171 if ${ac_cv_host+:} false; then :
6172 $as_echo_n "(cached) " >&6
6174 if test "x$host_alias" = x; then
6175 ac_cv_host=$ac_cv_build
6177 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6178 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6183 $as_echo "$ac_cv_host" >&6; }
6186 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6189 ac_save_IFS=$IFS; IFS='-'
6195 # Remember, the first character of IFS is used to create $*,
6196 # except with old shells:
6199 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6207 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6212 macro_version='2.4.2'
6213 macro_revision='1.3337'
6227 ltmain="$ac_aux_dir/ltmain.sh"
6229 # Backslashify metacharacters that are still active within
6230 # double-quoted strings.
6231 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6233 # Same as above, but do not quote variable references.
6234 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6236 # Sed substitution to delay expansion of an escaped shell variable in a
6237 # double_quote_subst'ed string.
6238 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6240 # Sed substitution to delay expansion of an escaped single quote.
6241 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6243 # Sed substitution to avoid accidental globbing in evaled expressions
6244 no_glob_subst='s/\*/\\\*/g'
6246 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6247 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6248 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6251 $as_echo_n "checking how to print strings... " >&6; }
6252 # Test print first, because it will be a builtin if present.
6253 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6254 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6256 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6259 # Use this function as a fallback that always works.
6260 func_fallback_echo ()
6262 eval 'cat <<_LTECHO_EOF
6266 ECHO='func_fallback_echo'
6269 # func_echo_all arg...
6270 # Invoke $ECHO with all args, space-separated.
6277 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6278 $as_echo "printf" >&6; } ;;
6279 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6280 $as_echo "print -r" >&6; } ;;
6281 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6282 $as_echo "cat" >&6; } ;;
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6299 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6300 if ${ac_cv_path_SED+:} false; then :
6301 $as_echo_n "(cached) " >&6
6303 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6304 for ac_i in 1 2 3 4 5 6 7; do
6305 ac_script="$ac_script$as_nl$ac_script"
6307 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6308 { ac_script=; unset ac_script;}
6309 if test -z "$SED"; then
6310 ac_path_SED_found=false
6311 # Loop through the user's path and test for each of PROGNAME-LIST
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 test -z "$as_dir" && as_dir=.
6317 for ac_prog in sed gsed; do
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6320 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6321 # Check for GNU ac_path_SED and select it if it is found.
6322 # Check for GNU $ac_path_SED
6323 case `"$ac_path_SED" --version 2>&1` in
6325 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6328 $as_echo_n 0123456789 >"conftest.in"
6331 cat "conftest.in" "conftest.in" >"conftest.tmp"
6332 mv "conftest.tmp" "conftest.in"
6333 cp "conftest.in" "conftest.nl"
6334 $as_echo '' >> "conftest.nl"
6335 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6337 as_fn_arith $ac_count + 1 && ac_count=$as_val
6338 if test $ac_count -gt ${ac_path_SED_max-0}; then
6339 # Best one so far, save it but keep looking for a better one
6340 ac_cv_path_SED="$ac_path_SED"
6341 ac_path_SED_max=$ac_count
6343 # 10*(2^10) chars as input seems more than enough
6344 test $ac_count -gt 10 && break
6346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6349 $ac_path_SED_found && break 3
6354 if test -z "$ac_cv_path_SED"; then
6355 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6363 $as_echo "$ac_cv_path_SED" >&6; }
6364 SED="$ac_cv_path_SED"
6367 test -z "$SED" && SED=sed
6368 Xsed="$SED -e 1s/^X//"
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6381 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6382 if ${ac_cv_path_GREP+:} false; then :
6383 $as_echo_n "(cached) " >&6
6385 if test -z "$GREP"; then
6386 ac_path_GREP_found=false
6387 # Loop through the user's path and test for each of PROGNAME-LIST
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6392 test -z "$as_dir" && as_dir=.
6393 for ac_prog in grep ggrep; do
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6396 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6397 # Check for GNU ac_path_GREP and select it if it is found.
6398 # Check for GNU $ac_path_GREP
6399 case `"$ac_path_GREP" --version 2>&1` in
6401 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6404 $as_echo_n 0123456789 >"conftest.in"
6407 cat "conftest.in" "conftest.in" >"conftest.tmp"
6408 mv "conftest.tmp" "conftest.in"
6409 cp "conftest.in" "conftest.nl"
6410 $as_echo 'GREP' >> "conftest.nl"
6411 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6413 as_fn_arith $ac_count + 1 && ac_count=$as_val
6414 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6415 # Best one so far, save it but keep looking for a better one
6416 ac_cv_path_GREP="$ac_path_GREP"
6417 ac_path_GREP_max=$ac_count
6419 # 10*(2^10) chars as input seems more than enough
6420 test $ac_count -gt 10 && break
6422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6425 $ac_path_GREP_found && break 3
6430 if test -z "$ac_cv_path_GREP"; then
6431 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6434 ac_cv_path_GREP=$GREP
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6439 $as_echo "$ac_cv_path_GREP" >&6; }
6440 GREP="$ac_cv_path_GREP"
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6444 $as_echo_n "checking for egrep... " >&6; }
6445 if ${ac_cv_path_EGREP+:} false; then :
6446 $as_echo_n "(cached) " >&6
6448 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6449 then ac_cv_path_EGREP="$GREP -E"
6451 if test -z "$EGREP"; then
6452 ac_path_EGREP_found=false
6453 # Loop through the user's path and test for each of PROGNAME-LIST
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6458 test -z "$as_dir" && as_dir=.
6459 for ac_prog in egrep; do
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6462 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6463 # Check for GNU ac_path_EGREP and select it if it is found.
6464 # Check for GNU $ac_path_EGREP
6465 case `"$ac_path_EGREP" --version 2>&1` in
6467 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6470 $as_echo_n 0123456789 >"conftest.in"
6473 cat "conftest.in" "conftest.in" >"conftest.tmp"
6474 mv "conftest.tmp" "conftest.in"
6475 cp "conftest.in" "conftest.nl"
6476 $as_echo 'EGREP' >> "conftest.nl"
6477 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6479 as_fn_arith $ac_count + 1 && ac_count=$as_val
6480 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6481 # Best one so far, save it but keep looking for a better one
6482 ac_cv_path_EGREP="$ac_path_EGREP"
6483 ac_path_EGREP_max=$ac_count
6485 # 10*(2^10) chars as input seems more than enough
6486 test $ac_count -gt 10 && break
6488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6491 $ac_path_EGREP_found && break 3
6496 if test -z "$ac_cv_path_EGREP"; then
6497 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6500 ac_cv_path_EGREP=$EGREP
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6506 $as_echo "$ac_cv_path_EGREP" >&6; }
6507 EGREP="$ac_cv_path_EGREP"
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6511 $as_echo_n "checking for fgrep... " >&6; }
6512 if ${ac_cv_path_FGREP+:} false; then :
6513 $as_echo_n "(cached) " >&6
6515 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6516 then ac_cv_path_FGREP="$GREP -F"
6518 if test -z "$FGREP"; then
6519 ac_path_FGREP_found=false
6520 # Loop through the user's path and test for each of PROGNAME-LIST
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6525 test -z "$as_dir" && as_dir=.
6526 for ac_prog in fgrep; do
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6529 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6530 # Check for GNU ac_path_FGREP and select it if it is found.
6531 # Check for GNU $ac_path_FGREP
6532 case `"$ac_path_FGREP" --version 2>&1` in
6534 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6537 $as_echo_n 0123456789 >"conftest.in"
6540 cat "conftest.in" "conftest.in" >"conftest.tmp"
6541 mv "conftest.tmp" "conftest.in"
6542 cp "conftest.in" "conftest.nl"
6543 $as_echo 'FGREP' >> "conftest.nl"
6544 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6546 as_fn_arith $ac_count + 1 && ac_count=$as_val
6547 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6548 # Best one so far, save it but keep looking for a better one
6549 ac_cv_path_FGREP="$ac_path_FGREP"
6550 ac_path_FGREP_max=$ac_count
6552 # 10*(2^10) chars as input seems more than enough
6553 test $ac_count -gt 10 && break
6555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6558 $ac_path_FGREP_found && break 3
6563 if test -z "$ac_cv_path_FGREP"; then
6564 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6567 ac_cv_path_FGREP=$FGREP
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6573 $as_echo "$ac_cv_path_FGREP" >&6; }
6574 FGREP="$ac_cv_path_FGREP"
6577 test -z "$GREP" && GREP=grep
6597 # Check whether --with-gnu-ld was given.
6598 if test "${with_gnu_ld+set}" = set; then :
6599 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6605 if test "$GCC" = yes; then
6606 # Check if gcc -print-prog-name=ld gives a path.
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6608 $as_echo_n "checking for ld used by $CC... " >&6; }
6611 # gcc leaves a trailing carriage return which upsets mingw
6612 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6614 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6617 # Accept absolute paths.
6619 re_direlt='/[^/][^/]*/\.\./'
6620 # Canonicalize the pathname of ld
6621 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6622 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6623 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6625 test -z "$LD" && LD="$ac_prog"
6628 # If it fails, then pretend we aren't using GCC.
6632 # If it is relative, then search for the first ld in PATH.
6636 elif test "$with_gnu_ld" = yes; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6638 $as_echo_n "checking for GNU ld... " >&6; }
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6641 $as_echo_n "checking for non-GNU ld... " >&6; }
6643 if ${lt_cv_path_LD+:} false; then :
6644 $as_echo_n "(cached) " >&6
6646 if test -z "$LD"; then
6647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6648 for ac_dir in $PATH; do
6650 test -z "$ac_dir" && ac_dir=.
6651 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6652 lt_cv_path_LD="$ac_dir/$ac_prog"
6653 # Check to see if the program is GNU ld. I'd rather use --version,
6654 # but apparently some variants of GNU ld only accept -v.
6655 # Break only if it was the GNU/non-GNU ld that we prefer.
6656 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6657 *GNU* | *'with BFD'*)
6658 test "$with_gnu_ld" != no && break
6661 test "$with_gnu_ld" != yes && break
6668 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6673 if test -n "$LD"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6675 $as_echo "$LD" >&6; }
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 $as_echo "no" >&6; }
6680 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6682 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6683 if ${lt_cv_prog_gnu_ld+:} false; then :
6684 $as_echo_n "(cached) " >&6
6686 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6687 case `$LD -v 2>&1 </dev/null` in
6688 *GNU* | *'with BFD'*)
6689 lt_cv_prog_gnu_ld=yes
6692 lt_cv_prog_gnu_ld=no
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6697 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6698 with_gnu_ld=$lt_cv_prog_gnu_ld
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6709 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6710 if ${lt_cv_path_NM+:} false; then :
6711 $as_echo_n "(cached) " >&6
6713 if test -n "$NM"; then
6714 # Let the user override the test.
6717 lt_nm_to_check="${ac_tool_prefix}nm"
6718 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6719 lt_nm_to_check="$lt_nm_to_check nm"
6721 for lt_tmp_nm in $lt_nm_to_check; do
6722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6723 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6725 test -z "$ac_dir" && ac_dir=.
6726 tmp_nm="$ac_dir/$lt_tmp_nm"
6727 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6728 # Check to see if the nm accepts a BSD-compat flag.
6729 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6730 # nm: unknown option "B" ignored
6731 # Tru64's nm complains that /dev/null is an invalid object file
6732 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6733 */dev/null* | *'Invalid file or object type'*)
6734 lt_cv_path_NM="$tmp_nm -B"
6738 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6740 lt_cv_path_NM="$tmp_nm -p"
6744 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6745 continue # so that we can try to find one that supports BSD flags
6754 : ${lt_cv_path_NM=no}
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6758 $as_echo "$lt_cv_path_NM" >&6; }
6759 if test "$lt_cv_path_NM" != "no"; then
6762 # Didn't find any BSD compatible name lister, look for dumpbin.
6763 if test -n "$DUMPBIN"; then :
6764 # Let the user override the test.
6766 if test -n "$ac_tool_prefix"; then
6767 for ac_prog in dumpbin "link -dump"
6769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_DUMPBIN+:} false; then :
6774 $as_echo_n "(cached) " >&6
6776 if test -n "$DUMPBIN"; then
6777 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 DUMPBIN=$ac_cv_prog_DUMPBIN
6797 if test -n "$DUMPBIN"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6799 $as_echo "$DUMPBIN" >&6; }
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6806 test -n "$DUMPBIN" && break
6809 if test -z "$DUMPBIN"; then
6810 ac_ct_DUMPBIN=$DUMPBIN
6811 for ac_prog in dumpbin "link -dump"
6813 # Extract the first word of "$ac_prog", so it can be a program name with args.
6814 set dummy $ac_prog; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6818 $as_echo_n "(cached) " >&6
6820 if test -n "$ac_ct_DUMPBIN"; then
6821 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6841 if test -n "$ac_ct_DUMPBIN"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6843 $as_echo "$ac_ct_DUMPBIN" >&6; }
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6850 test -n "$ac_ct_DUMPBIN" && break
6853 if test "x$ac_ct_DUMPBIN" = x; then
6856 case $cross_compiling:$ac_tool_warned in
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860 ac_tool_warned=yes ;;
6862 DUMPBIN=$ac_ct_DUMPBIN
6866 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6868 DUMPBIN="$DUMPBIN -symbols"
6876 if test "$DUMPBIN" != ":"; then
6880 test -z "$NM" && NM=nm
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6888 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6889 if ${lt_cv_nm_interface+:} false; then :
6890 $as_echo_n "(cached) " >&6
6892 lt_cv_nm_interface="BSD nm"
6893 echo "int some_variable = 0;" > conftest.$ac_ext
6894 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6895 (eval "$ac_compile" 2>conftest.err)
6896 cat conftest.err >&5
6897 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6898 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6899 cat conftest.err >&5
6900 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6901 cat conftest.out >&5
6902 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6903 lt_cv_nm_interface="MS dumpbin"
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6908 $as_echo "$lt_cv_nm_interface" >&6; }
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6911 $as_echo_n "checking whether ln -s works... " >&6; }
6913 if test "$LN_S" = "ln -s"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6915 $as_echo "yes" >&6; }
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6918 $as_echo "no, using $LN_S" >&6; }
6921 # find the maximum length of command line arguments
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6923 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6924 if ${lt_cv_sys_max_cmd_len+:} false; then :
6925 $as_echo_n "(cached) " >&6
6932 # On DJGPP, this test can blow up pretty badly due to problems in libc
6933 # (any single argument exceeding 2000 bytes causes a buffer overrun
6934 # during glob expansion). Even if it were fixed, the result of this
6935 # check would be larger than it should be.
6936 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6940 # Under GNU Hurd, this test is not required because there is
6941 # no limit to the length of command line arguments.
6942 # Libtool will interpret -1 as no limit whatsoever
6943 lt_cv_sys_max_cmd_len=-1;
6946 cygwin* | mingw* | cegcc*)
6947 # On Win9x/ME, this test blows up -- it succeeds, but takes
6948 # about 5 minutes as the teststring grows exponentially.
6949 # Worse, since 9x/ME are not pre-emptively multitasking,
6950 # you end up with a "frozen" computer, even though with patience
6951 # the test eventually succeeds (with a max line length of 256k).
6952 # Instead, let's just punt: use the minimum linelength reported by
6953 # all of the supported platforms: 8192 (on NT/2K/XP).
6954 lt_cv_sys_max_cmd_len=8192;
6958 # On MiNT this can take a long time and run out of memory.
6959 lt_cv_sys_max_cmd_len=8192;
6963 # On AmigaOS with pdksh, this test takes hours, literally.
6964 # So we just punt and use a minimum line length of 8192.
6965 lt_cv_sys_max_cmd_len=8192;
6968 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6969 # This has been around since 386BSD, at least. Likely further.
6970 if test -x /sbin/sysctl; then
6971 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6972 elif test -x /usr/sbin/sysctl; then
6973 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6975 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6977 # And add a safety zone
6978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6983 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6984 lt_cv_sys_max_cmd_len=196608
6988 # The test takes a long time on OS/2.
6989 lt_cv_sys_max_cmd_len=8192
6993 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6994 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6995 # nice to cause kernel panics so lets avoid the loop below.
6996 # First set a reasonable default.
6997 lt_cv_sys_max_cmd_len=16384
6999 if test -x /sbin/sysconfig; then
7000 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7001 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7006 lt_cv_sys_max_cmd_len=102400
7008 sysv5* | sco5v6* | sysv4.2uw2*)
7009 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7010 if test -n "$kargmax"; then
7011 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7013 lt_cv_sys_max_cmd_len=32768
7017 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7018 if test -n "$lt_cv_sys_max_cmd_len"; then
7019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7022 # Make teststring a little bigger before we do anything with it.
7023 # a 1K string should be a reasonable start.
7024 for i in 1 2 3 4 5 6 7 8 ; do
7025 teststring=$teststring$teststring
7027 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7028 # If test is not a shell built-in, we'll probably end up computing a
7029 # maximum length that is only half of the actual maximum length, but
7031 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7032 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7033 test $i != 17 # 1/2 MB should be enough
7036 teststring=$teststring$teststring
7038 # Only check the string length outside the loop.
7039 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7041 # Add a significant safety factor because C++ compilers can tack on
7042 # massive amounts of additional arguments before passing them to the
7043 # linker. It appears as though 1/2 is a usable value.
7044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7051 if test -n $lt_cv_sys_max_cmd_len ; then
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7053 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7056 $as_echo "none" >&6; }
7058 max_cmd_len=$lt_cv_sys_max_cmd_len
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7070 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7071 # Try some XSI features
7074 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7076 && eval 'test $(( 1 + 1 )) -eq 2 \
7077 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7080 $as_echo "$xsi_shell" >&6; }
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7084 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7086 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7088 && lt_shell_append=yes
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7090 $as_echo "$lt_shell_append" >&6; }
7093 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7103 # test EBCDIC or ASCII
7104 case `echo X|tr X '\101'` in
7105 A) # ASCII based system
7106 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7107 lt_SP2NL='tr \040 \012'
7108 lt_NL2SP='tr \015\012 \040\040'
7110 *) # EBCDIC based system
7111 lt_SP2NL='tr \100 \n'
7112 lt_NL2SP='tr \r\n \100\100'
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7125 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7126 if ${lt_cv_to_host_file_cmd+:} false; then :
7127 $as_echo_n "(cached) " >&6
7132 *-*-mingw* ) # actually msys
7133 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7136 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7138 * ) # otherwise, assume *nix
7139 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7145 *-*-mingw* ) # actually msys
7146 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7149 lt_cv_to_host_file_cmd=func_convert_file_noop
7151 * ) # otherwise, assume *nix
7152 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7156 * ) # unhandled hosts (and "normal" native builds)
7157 lt_cv_to_host_file_cmd=func_convert_file_noop
7163 to_host_file_cmd=$lt_cv_to_host_file_cmd
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7165 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7172 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7173 if ${lt_cv_to_tool_file_cmd+:} false; then :
7174 $as_echo_n "(cached) " >&6
7176 #assume ordinary cross tools, or native build.
7177 lt_cv_to_tool_file_cmd=func_convert_file_noop
7181 *-*-mingw* ) # actually msys
7182 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7190 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7192 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7199 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7200 if ${lt_cv_ld_reload_flag+:} false; then :
7201 $as_echo_n "(cached) " >&6
7203 lt_cv_ld_reload_flag='-r'
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7206 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7207 reload_flag=$lt_cv_ld_reload_flag
7208 case $reload_flag in
7210 *) reload_flag=" $reload_flag" ;;
7212 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7214 cygwin* | mingw* | pw32* | cegcc*)
7215 if test "$GCC" != yes; then
7220 if test "$GCC" = yes; then
7221 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7223 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7236 if test -n "$ac_tool_prefix"; then
7237 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7238 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if ${ac_cv_prog_OBJDUMP+:} false; then :
7242 $as_echo_n "(cached) " >&6
7244 if test -n "$OBJDUMP"; then
7245 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 OBJDUMP=$ac_cv_prog_OBJDUMP
7265 if test -n "$OBJDUMP"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7267 $as_echo "$OBJDUMP" >&6; }
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7275 if test -z "$ac_cv_prog_OBJDUMP"; then
7276 ac_ct_OBJDUMP=$OBJDUMP
7277 # Extract the first word of "objdump", so it can be a program name with args.
7278 set dummy objdump; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7282 $as_echo_n "(cached) " >&6
7284 if test -n "$ac_ct_OBJDUMP"; then
7285 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7294 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7305 if test -n "$ac_ct_OBJDUMP"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7307 $as_echo "$ac_ct_OBJDUMP" >&6; }
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7313 if test "x$ac_ct_OBJDUMP" = x; then
7316 case $cross_compiling:$ac_tool_warned in
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7320 ac_tool_warned=yes ;;
7322 OBJDUMP=$ac_ct_OBJDUMP
7325 OBJDUMP="$ac_cv_prog_OBJDUMP"
7328 test -z "$OBJDUMP" && OBJDUMP=objdump
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7339 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7340 if ${lt_cv_deplibs_check_method+:} false; then :
7341 $as_echo_n "(cached) " >&6
7343 lt_cv_file_magic_cmd='$MAGIC_CMD'
7344 lt_cv_file_magic_test_file=
7345 lt_cv_deplibs_check_method='unknown'
7346 # Need to set the preceding variable on all platforms that support
7347 # interlibrary dependencies.
7348 # 'none' -- dependencies not supported.
7349 # `unknown' -- same as none, but documents that we really don't know.
7350 # 'pass_all' -- all dependencies passed with no checks.
7351 # 'test_compile' -- check by making test program.
7352 # 'file_magic [[regex]]' -- check by looking for files in library path
7353 # which responds to the $file_magic_cmd with a given extended regex.
7354 # If you have `file' or equivalent on your system and you're not sure
7355 # whether `pass_all' will *always* work, you probably want this one.
7359 lt_cv_deplibs_check_method=pass_all
7363 lt_cv_deplibs_check_method=pass_all
7367 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7368 lt_cv_file_magic_cmd='/usr/bin/file -L'
7369 lt_cv_file_magic_test_file=/shlib/libc.so
7373 # func_win32_libid is a shell function defined in ltmain.sh
7374 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7375 lt_cv_file_magic_cmd='func_win32_libid'
7379 # Base MSYS/MinGW do not provide the 'file' command needed by
7380 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7381 # unless we find 'file', for example because we are cross-compiling.
7382 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7383 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7384 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7385 lt_cv_file_magic_cmd='func_win32_libid'
7387 # Keep this pattern in sync with the one in func_win32_libid.
7388 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7389 lt_cv_file_magic_cmd='$OBJDUMP -f'
7394 # use the weaker test based on 'objdump'. See mingw*.
7395 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7396 lt_cv_file_magic_cmd='$OBJDUMP -f'
7399 darwin* | rhapsody*)
7400 lt_cv_deplibs_check_method=pass_all
7403 freebsd* | dragonfly*)
7404 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7407 # Not sure whether the presence of OpenBSD here was a mistake.
7408 # Let's accept both of them until this is cleared up.
7409 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7410 lt_cv_file_magic_cmd=/usr/bin/file
7411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7415 lt_cv_deplibs_check_method=pass_all
7420 lt_cv_deplibs_check_method=pass_all
7424 lt_cv_deplibs_check_method=pass_all
7427 hpux10.20* | hpux11*)
7428 lt_cv_file_magic_cmd=/usr/bin/file
7431 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7432 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7435 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]'
7436 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7439 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7440 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7446 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7450 irix5* | irix6* | nonstopux*)
7452 *-32|*"-32 ") libmagic=32-bit;;
7453 *-n32|*"-n32 ") libmagic=N32;;
7454 *-64|*"-64 ") libmagic=64-bit;;
7455 *) libmagic=never-match;;
7457 lt_cv_deplibs_check_method=pass_all
7460 # This must be glibc/ELF.
7461 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7462 lt_cv_deplibs_check_method=pass_all
7466 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7475 lt_cv_file_magic_cmd=/usr/bin/file
7476 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7480 lt_cv_deplibs_check_method=pass_all
7484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7491 osf3* | osf4* | osf5*)
7492 lt_cv_deplibs_check_method=pass_all
7496 lt_cv_deplibs_check_method=pass_all
7500 lt_cv_deplibs_check_method=pass_all
7503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7504 lt_cv_deplibs_check_method=pass_all
7508 case $host_vendor in
7510 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]'
7511 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7514 lt_cv_deplibs_check_method=pass_all
7517 lt_cv_file_magic_cmd='/bin/file'
7518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7521 lt_cv_file_magic_cmd='/bin/file'
7522 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7523 lt_cv_file_magic_test_file=/lib/libc.so
7526 lt_cv_deplibs_check_method=pass_all
7529 lt_cv_deplibs_check_method=pass_all
7535 lt_cv_deplibs_check_method=pass_all
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7541 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7545 if test "$build" = "$host"; then
7548 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7551 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7557 file_magic_cmd=$lt_cv_file_magic_cmd
7558 deplibs_check_method=$lt_cv_deplibs_check_method
7559 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7582 if test -n "$ac_tool_prefix"; then
7583 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7584 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if ${ac_cv_prog_DLLTOOL+:} false; then :
7588 $as_echo_n "(cached) " >&6
7590 if test -n "$DLLTOOL"; then
7591 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 DLLTOOL=$ac_cv_prog_DLLTOOL
7611 if test -n "$DLLTOOL"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7613 $as_echo "$DLLTOOL" >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7621 if test -z "$ac_cv_prog_DLLTOOL"; then
7622 ac_ct_DLLTOOL=$DLLTOOL
7623 # Extract the first word of "dlltool", so it can be a program name with args.
7624 set dummy dlltool; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7628 $as_echo_n "(cached) " >&6
7630 if test -n "$ac_ct_DLLTOOL"; then
7631 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7651 if test -n "$ac_ct_DLLTOOL"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7653 $as_echo "$ac_ct_DLLTOOL" >&6; }
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7659 if test "x$ac_ct_DLLTOOL" = x; then
7662 case $cross_compiling:$ac_tool_warned in
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7666 ac_tool_warned=yes ;;
7668 DLLTOOL=$ac_ct_DLLTOOL
7671 DLLTOOL="$ac_cv_prog_DLLTOOL"
7674 test -z "$DLLTOOL" && DLLTOOL=dlltool
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7686 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7687 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7688 $as_echo_n "(cached) " >&6
7690 lt_cv_sharedlib_from_linklib_cmd='unknown'
7693 cygwin* | mingw* | pw32* | cegcc*)
7694 # two different shell functions defined in ltmain.sh
7695 # decide which to use based on capabilities of $DLLTOOL
7696 case `$DLLTOOL --help 2>&1` in
7697 *--identify-strict*)
7698 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7701 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7706 # fallback: assume linklib IS sharedlib
7707 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7713 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7714 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7715 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7723 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_AR+:} false; then :
7731 $as_echo_n "(cached) " >&6
7733 if test -n "$AR"; then
7734 ac_cv_prog_AR="$AR" # Let the user override the test.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7743 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 if test -n "$AR"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7756 $as_echo "$AR" >&6; }
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7763 test -n "$AR" && break
7766 if test -z "$AR"; then
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7775 $as_echo_n "(cached) " >&6
7777 if test -n "$ac_ct_AR"; then
7778 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_prog_ac_ct_AR="$ac_prog"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7798 if test -n "$ac_ct_AR"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7800 $as_echo "$ac_ct_AR" >&6; }
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7807 test -n "$ac_ct_AR" && break
7810 if test "x$ac_ct_AR" = x; then
7813 case $cross_compiling:$ac_tool_warned in
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7817 ac_tool_warned=yes ;;
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7837 $as_echo_n "checking for archiver @FILE support... " >&6; }
7838 if ${lt_cv_ar_at_file+:} false; then :
7839 $as_echo_n "(cached) " >&6
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7853 if ac_fn_c_try_compile "$LINENO"; then :
7854 echo conftest.$ac_objext > conftest.lst
7855 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7857 (eval $lt_ar_try) 2>&5
7859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; }
7861 if test "$ac_status" -eq 0; then
7862 # Ensure the archiver fails upon bogus file names.
7863 rm -f conftest.$ac_objext libconftest.a
7864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7865 (eval $lt_ar_try) 2>&5
7867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868 test $ac_status = 0; }
7869 if test "$ac_status" -ne 0; then
7873 rm -f conftest.* libconftest.a
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7880 $as_echo "$lt_cv_ar_at_file" >&6; }
7882 if test "x$lt_cv_ar_at_file" = xno; then
7885 archiver_list_spec=$lt_cv_ar_at_file
7894 if test -n "$ac_tool_prefix"; then
7895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7896 set dummy ${ac_tool_prefix}strip; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_prog_STRIP+:} false; then :
7900 $as_echo_n "(cached) " >&6
7902 if test -n "$STRIP"; then
7903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 STRIP=$ac_cv_prog_STRIP
7923 if test -n "$STRIP"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7925 $as_echo "$STRIP" >&6; }
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7933 if test -z "$ac_cv_prog_STRIP"; then
7935 # Extract the first word of "strip", so it can be a program name with args.
7936 set dummy strip; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7940 $as_echo_n "(cached) " >&6
7942 if test -n "$ac_ct_STRIP"; then
7943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7952 ac_cv_prog_ac_ct_STRIP="strip"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7963 if test -n "$ac_ct_STRIP"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7965 $as_echo "$ac_ct_STRIP" >&6; }
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7971 if test "x$ac_ct_STRIP" = x; then
7974 case $cross_compiling:$ac_tool_warned in
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7978 ac_tool_warned=yes ;;
7983 STRIP="$ac_cv_prog_STRIP"
7986 test -z "$STRIP" && STRIP=:
7993 if test -n "$ac_tool_prefix"; then
7994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7995 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if ${ac_cv_prog_RANLIB+:} false; then :
7999 $as_echo_n "(cached) " >&6
8001 if test -n "$RANLIB"; then
8002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 RANLIB=$ac_cv_prog_RANLIB
8022 if test -n "$RANLIB"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8024 $as_echo "$RANLIB" >&6; }
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8032 if test -z "$ac_cv_prog_RANLIB"; then
8033 ac_ct_RANLIB=$RANLIB
8034 # Extract the first word of "ranlib", so it can be a program name with args.
8035 set dummy ranlib; ac_word=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8039 $as_echo_n "(cached) " >&6
8041 if test -n "$ac_ct_RANLIB"; then
8042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8051 ac_cv_prog_ac_ct_RANLIB="ranlib"
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8062 if test -n "$ac_ct_RANLIB"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8064 $as_echo "$ac_ct_RANLIB" >&6; }
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8070 if test "x$ac_ct_RANLIB" = x; then
8073 case $cross_compiling:$ac_tool_warned in
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8077 ac_tool_warned=yes ;;
8079 RANLIB=$ac_ct_RANLIB
8082 RANLIB="$ac_cv_prog_RANLIB"
8085 test -z "$RANLIB" && RANLIB=:
8092 # Determine commands to create old-style static archives.
8093 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8094 old_postinstall_cmds='chmod 644 $oldlib'
8095 old_postuninstall_cmds=
8097 if test -n "$RANLIB"; then
8100 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8103 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8106 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8111 lock_old_archive_extraction=yes ;;
8113 lock_old_archive_extraction=no ;;
8136 for ac_prog in gawk mawk nawk awk
8138 # Extract the first word of "$ac_prog", so it can be a program name with args.
8139 set dummy $ac_prog; ac_word=$2
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if ${ac_cv_prog_AWK+:} false; then :
8143 $as_echo_n "(cached) " >&6
8145 if test -n "$AWK"; then
8146 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8155 ac_cv_prog_AWK="$ac_prog"
8156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 if test -n "$AWK"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8168 $as_echo "$AWK" >&6; }
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8175 test -n "$AWK" && break
8196 # If no C compiler was specified, use CC.
8199 # If no C compiler flags were specified, use CFLAGS.
8200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8202 # Allow CC to be a program name with arguments.
8206 # Check for command to grab the raw symbol name followed by C symbol from nm.
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8208 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8209 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8210 $as_echo_n "(cached) " >&6
8213 # These are sane defaults that work on at least a few old systems.
8214 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8216 # Character class describing NM global symbol codes.
8217 symcode='[BCDEGRST]'
8219 # Regexp to match symbols that can be accessed directly from C.
8220 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8222 # Define system-specific variables.
8227 cygwin* | mingw* | pw32* | cegcc*)
8228 symcode='[ABCDGISTW]'
8231 if test "$host_cpu" = ia64; then
8232 symcode='[ABCDEGRST]'
8236 symcode='[BCDEGRST]'
8239 symcode='[BCDEGQRST]'
8250 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8258 # If we're using GNU nm, then use its standard symbol codes.
8259 case `$NM -V 2>&1` in
8260 *GNU* | *'with BFD'*)
8261 symcode='[ABCDGIRSTW]' ;;
8264 # Transform an extracted symbol line into a proper C declaration.
8265 # Some systems (esp. on ia64) link data and code symbols differently,
8266 # so use this general approach.
8267 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8269 # Transform an extracted symbol line into symbol name and symbol address
8270 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8271 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'"
8273 # Handle CRLF in mingw tool chain
8277 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8281 # Try without a prefix underscore, then with it.
8282 for ac_symprfx in "" "_"; do
8284 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8285 symxfrm="\\1 $ac_symprfx\\2 \\2"
8287 # Write the raw and C identifiers.
8288 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8289 # Fake it for dumpbin and say T for any non-static function
8290 # and D for any global variable.
8291 # Also find C++ and __fastcall symbols from MSVC++,
8292 # which start with @ or ?.
8293 lt_cv_sys_global_symbol_pipe="$AWK '"\
8294 " {last_section=section; section=\$ 3};"\
8295 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8296 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8297 " \$ 0!~/External *\|/{next};"\
8298 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8299 " {if(hide[section]) next};"\
8300 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8301 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8302 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8303 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8304 " ' prfx=^$ac_symprfx"
8306 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8308 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8310 # Check to see that the pipe works correctly.
8314 cat > conftest.$ac_ext <<_LT_EOF
8319 void nm_test_func(void);
8320 void nm_test_func(void){}
8324 int main(){nm_test_var='a';nm_test_func();return(0);}
8327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8328 (eval $ac_compile) 2>&5
8330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8331 test $ac_status = 0; }; then
8332 # Now try to grab the symbols.
8334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8335 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8338 test $ac_status = 0; } && test -s "$nlist"; then
8339 # Try sorting and uniquifying the output.
8340 if sort "$nlist" | uniq > "$nlist"T; then
8341 mv -f "$nlist"T "$nlist"
8346 # Make sure that we snagged all the symbols we need.
8347 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8348 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8349 cat <<_LT_EOF > conftest.$ac_ext
8350 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8351 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8352 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8353 relocations are performed -- see ld's documentation on pseudo-relocs. */
8354 # define LT_DLSYM_CONST
8355 #elif defined(__osf__)
8356 /* This system does not cope well with relocations in const data. */
8357 # define LT_DLSYM_CONST
8359 # define LT_DLSYM_CONST const
8367 # Now generate the symbol file.
8368 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8370 cat <<_LT_EOF >> conftest.$ac_ext
8372 /* The mapping between symbol names and symbols. */
8373 LT_DLSYM_CONST struct {
8377 lt__PROGRAM__LTX_preloaded_symbols[] =
8379 { "@PROGRAM@", (void *) 0 },
8381 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8382 cat <<\_LT_EOF >> conftest.$ac_ext
8386 /* This works around a problem in FreeBSD linker */
8387 #ifdef FREEBSD_WORKAROUND
8388 static const void *lt_preloaded_setup() {
8389 return lt__PROGRAM__LTX_preloaded_symbols;
8397 # Now try linking the two files.
8398 mv conftest.$ac_objext conftstm.$ac_objext
8399 lt_globsym_save_LIBS=$LIBS
8400 lt_globsym_save_CFLAGS=$CFLAGS
8401 LIBS="conftstm.$ac_objext"
8402 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8404 (eval $ac_link) 2>&5
8406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8407 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8410 LIBS=$lt_globsym_save_LIBS
8411 CFLAGS=$lt_globsym_save_CFLAGS
8413 echo "cannot find nm_test_func in $nlist" >&5
8416 echo "cannot find nm_test_var in $nlist" >&5
8419 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8422 echo "$progname: failed program was:" >&5
8423 cat conftest.$ac_ext >&5
8425 rm -rf conftest* conftst*
8427 # Do not use the global_symbol_pipe unless it works.
8428 if test "$pipe_works" = yes; then
8431 lt_cv_sys_global_symbol_pipe=
8437 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8438 lt_cv_sys_global_symbol_to_cdecl=
8440 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8442 $as_echo "failed" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8445 $as_echo "ok" >&6; }
8448 # Response file support.
8449 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8450 nm_file_list_spec='@'
8451 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8452 nm_file_list_spec='@'
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8482 $as_echo_n "checking for sysroot... " >&6; }
8484 # Check whether --with-sysroot was given.
8485 if test "${with_sysroot+set}" = set; then :
8486 withval=$with_sysroot;
8493 case ${with_sysroot} in #(
8495 if test "$GCC" = yes; then
8496 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8500 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8506 $as_echo "${with_sysroot}" >&6; }
8507 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8512 $as_echo "${lt_sysroot:-no}" >&6; }
8518 # Check whether --enable-libtool-lock was given.
8519 if test "${enable_libtool_lock+set}" = set; then :
8520 enableval=$enable_libtool_lock;
8523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8525 # Some flags need to be propagated to the compiler or linker for good
8529 # Find out which ABI we are using.
8530 echo 'int i;' > conftest.$ac_ext
8531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8532 (eval $ac_compile) 2>&5
8534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8535 test $ac_status = 0; }; then
8536 case `/usr/bin/file conftest.$ac_objext` in
8548 # Find out which ABI we are using.
8549 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8551 (eval $ac_compile) 2>&5
8553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8554 test $ac_status = 0; }; then
8555 if test "$lt_cv_prog_gnu_ld" = yes; then
8556 case `/usr/bin/file conftest.$ac_objext` in
8558 LD="${LD-ld} -melf32bsmip"
8561 LD="${LD-ld} -melf32bmipn32"
8564 LD="${LD-ld} -melf64bmip"
8568 case `/usr/bin/file conftest.$ac_objext` in
8584 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8585 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8586 # Find out which ABI we are using.
8587 echo 'int i;' > conftest.$ac_ext
8588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8589 (eval $ac_compile) 2>&5
8591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8592 test $ac_status = 0; }; then
8593 case `/usr/bin/file conftest.o` in
8596 x86_64-*kfreebsd*-gnu)
8597 LD="${LD-ld} -m elf_i386_fbsd"
8600 LD="${LD-ld} -m elf_i386"
8602 ppc64-*linux*|powerpc64-*linux*)
8603 LD="${LD-ld} -m elf32ppclinux"
8606 LD="${LD-ld} -m elf_s390"
8609 LD="${LD-ld} -m elf32_sparc"
8615 x86_64-*kfreebsd*-gnu)
8616 LD="${LD-ld} -m elf_x86_64_fbsd"
8619 LD="${LD-ld} -m elf_x86_64"
8621 ppc*-*linux*|powerpc*-*linux*)
8622 LD="${LD-ld} -m elf64ppc"
8624 s390*-*linux*|s390*-*tpf*)
8625 LD="${LD-ld} -m elf64_s390"
8628 LD="${LD-ld} -m elf64_sparc"
8638 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8639 SAVE_CFLAGS="$CFLAGS"
8640 CFLAGS="$CFLAGS -belf"
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8642 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8643 if ${lt_cv_cc_needs_belf+:} false; then :
8644 $as_echo_n "(cached) " >&6
8647 ac_cpp='$CPP $CPPFLAGS'
8648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8663 if ac_fn_c_try_link "$LINENO"; then :
8664 lt_cv_cc_needs_belf=yes
8666 lt_cv_cc_needs_belf=no
8668 rm -f core conftest.err conftest.$ac_objext \
8669 conftest$ac_exeext conftest.$ac_ext
8671 ac_cpp='$CPP $CPPFLAGS'
8672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8678 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8679 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8680 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8681 CFLAGS="$SAVE_CFLAGS"
8685 # Find out which ABI we are using.
8686 echo 'int i;' > conftest.$ac_ext
8687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8688 (eval $ac_compile) 2>&5
8690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8691 test $ac_status = 0; }; then
8692 case `/usr/bin/file conftest.o` in
8694 case $lt_cv_prog_gnu_ld in
8698 LD="${LD-ld} -m elf_x86_64"
8701 LD="${LD-ld} -m elf64_sparc"
8704 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8705 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8710 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8722 need_locks="$enable_libtool_lock"
8724 if test -n "$ac_tool_prefix"; then
8725 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8726 set dummy ${ac_tool_prefix}mt; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8730 $as_echo_n "(cached) " >&6
8732 if test -n "$MANIFEST_TOOL"; then
8733 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8742 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8753 if test -n "$MANIFEST_TOOL"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8755 $as_echo "$MANIFEST_TOOL" >&6; }
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8763 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8764 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8765 # Extract the first word of "mt", so it can be a program name with args.
8766 set dummy mt; ac_word=$2
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 $as_echo_n "checking for $ac_word... " >&6; }
8769 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8770 $as_echo_n "(cached) " >&6
8772 if test -n "$ac_ct_MANIFEST_TOOL"; then
8773 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 test -z "$as_dir" && as_dir=.
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8782 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8793 if test -n "$ac_ct_MANIFEST_TOOL"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8795 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8801 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8804 case $cross_compiling:$ac_tool_warned in
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8808 ac_tool_warned=yes ;;
8810 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8813 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8816 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8818 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8819 if ${lt_cv_path_mainfest_tool+:} false; then :
8820 $as_echo_n "(cached) " >&6
8822 lt_cv_path_mainfest_tool=no
8823 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8824 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8825 cat conftest.err >&5
8826 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8827 lt_cv_path_mainfest_tool=yes
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8832 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8833 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8843 rhapsody* | darwin*)
8844 if test -n "$ac_tool_prefix"; then
8845 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8846 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848 $as_echo_n "checking for $ac_word... " >&6; }
8849 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8850 $as_echo_n "(cached) " >&6
8852 if test -n "$DSYMUTIL"; then
8853 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 test -z "$as_dir" && as_dir=.
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8862 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8872 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8873 if test -n "$DSYMUTIL"; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8875 $as_echo "$DSYMUTIL" >&6; }
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 $as_echo "no" >&6; }
8883 if test -z "$ac_cv_prog_DSYMUTIL"; then
8884 ac_ct_DSYMUTIL=$DSYMUTIL
8885 # Extract the first word of "dsymutil", so it can be a program name with args.
8886 set dummy dsymutil; ac_word=$2
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888 $as_echo_n "checking for $ac_word... " >&6; }
8889 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8890 $as_echo_n "(cached) " >&6
8892 if test -n "$ac_ct_DSYMUTIL"; then
8893 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8902 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8913 if test -n "$ac_ct_DSYMUTIL"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8915 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8921 if test "x$ac_ct_DSYMUTIL" = x; then
8924 case $cross_compiling:$ac_tool_warned in
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8928 ac_tool_warned=yes ;;
8930 DSYMUTIL=$ac_ct_DSYMUTIL
8933 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8936 if test -n "$ac_tool_prefix"; then
8937 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8938 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if ${ac_cv_prog_NMEDIT+:} false; then :
8942 $as_echo_n "(cached) " >&6
8944 if test -n "$NMEDIT"; then
8945 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951 test -z "$as_dir" && as_dir=.
8952 for ac_exec_ext in '' $ac_executable_extensions; do
8953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8954 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8964 NMEDIT=$ac_cv_prog_NMEDIT
8965 if test -n "$NMEDIT"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8967 $as_echo "$NMEDIT" >&6; }
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8975 if test -z "$ac_cv_prog_NMEDIT"; then
8976 ac_ct_NMEDIT=$NMEDIT
8977 # Extract the first word of "nmedit", so it can be a program name with args.
8978 set dummy nmedit; ac_word=$2
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980 $as_echo_n "checking for $ac_word... " >&6; }
8981 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8982 $as_echo_n "(cached) " >&6
8984 if test -n "$ac_ct_NMEDIT"; then
8985 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991 test -z "$as_dir" && as_dir=.
8992 for ac_exec_ext in '' $ac_executable_extensions; do
8993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8994 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9004 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9005 if test -n "$ac_ct_NMEDIT"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9007 $as_echo "$ac_ct_NMEDIT" >&6; }
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9013 if test "x$ac_ct_NMEDIT" = x; then
9016 case $cross_compiling:$ac_tool_warned in
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9020 ac_tool_warned=yes ;;
9022 NMEDIT=$ac_ct_NMEDIT
9025 NMEDIT="$ac_cv_prog_NMEDIT"
9028 if test -n "$ac_tool_prefix"; then
9029 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9030 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032 $as_echo_n "checking for $ac_word... " >&6; }
9033 if ${ac_cv_prog_LIPO+:} false; then :
9034 $as_echo_n "(cached) " >&6
9036 if test -n "$LIPO"; then
9037 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043 test -z "$as_dir" && as_dir=.
9044 for ac_exec_ext in '' $ac_executable_extensions; do
9045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9046 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9056 LIPO=$ac_cv_prog_LIPO
9057 if test -n "$LIPO"; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9059 $as_echo "$LIPO" >&6; }
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 $as_echo "no" >&6; }
9067 if test -z "$ac_cv_prog_LIPO"; then
9069 # Extract the first word of "lipo", so it can be a program name with args.
9070 set dummy lipo; ac_word=$2
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9072 $as_echo_n "checking for $ac_word... " >&6; }
9073 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9074 $as_echo_n "(cached) " >&6
9076 if test -n "$ac_ct_LIPO"; then
9077 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083 test -z "$as_dir" && as_dir=.
9084 for ac_exec_ext in '' $ac_executable_extensions; do
9085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9086 ac_cv_prog_ac_ct_LIPO="lipo"
9087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9097 if test -n "$ac_ct_LIPO"; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9099 $as_echo "$ac_ct_LIPO" >&6; }
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9105 if test "x$ac_ct_LIPO" = x; then
9108 case $cross_compiling:$ac_tool_warned in
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9112 ac_tool_warned=yes ;;
9117 LIPO="$ac_cv_prog_LIPO"
9120 if test -n "$ac_tool_prefix"; then
9121 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9122 set dummy ${ac_tool_prefix}otool; ac_word=$2
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 $as_echo_n "checking for $ac_word... " >&6; }
9125 if ${ac_cv_prog_OTOOL+:} false; then :
9126 $as_echo_n "(cached) " >&6
9128 if test -n "$OTOOL"; then
9129 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135 test -z "$as_dir" && as_dir=.
9136 for ac_exec_ext in '' $ac_executable_extensions; do
9137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9138 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9148 OTOOL=$ac_cv_prog_OTOOL
9149 if test -n "$OTOOL"; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9151 $as_echo "$OTOOL" >&6; }
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9159 if test -z "$ac_cv_prog_OTOOL"; then
9161 # Extract the first word of "otool", so it can be a program name with args.
9162 set dummy otool; ac_word=$2
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9164 $as_echo_n "checking for $ac_word... " >&6; }
9165 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9166 $as_echo_n "(cached) " >&6
9168 if test -n "$ac_ct_OTOOL"; then
9169 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175 test -z "$as_dir" && as_dir=.
9176 for ac_exec_ext in '' $ac_executable_extensions; do
9177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9178 ac_cv_prog_ac_ct_OTOOL="otool"
9179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9189 if test -n "$ac_ct_OTOOL"; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9191 $as_echo "$ac_ct_OTOOL" >&6; }
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194 $as_echo "no" >&6; }
9197 if test "x$ac_ct_OTOOL" = x; then
9200 case $cross_compiling:$ac_tool_warned in
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9204 ac_tool_warned=yes ;;
9209 OTOOL="$ac_cv_prog_OTOOL"
9212 if test -n "$ac_tool_prefix"; then
9213 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9214 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216 $as_echo_n "checking for $ac_word... " >&6; }
9217 if ${ac_cv_prog_OTOOL64+:} false; then :
9218 $as_echo_n "(cached) " >&6
9220 if test -n "$OTOOL64"; then
9221 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227 test -z "$as_dir" && as_dir=.
9228 for ac_exec_ext in '' $ac_executable_extensions; do
9229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9230 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9240 OTOOL64=$ac_cv_prog_OTOOL64
9241 if test -n "$OTOOL64"; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9243 $as_echo "$OTOOL64" >&6; }
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 $as_echo "no" >&6; }
9251 if test -z "$ac_cv_prog_OTOOL64"; then
9252 ac_ct_OTOOL64=$OTOOL64
9253 # Extract the first word of "otool64", so it can be a program name with args.
9254 set dummy otool64; ac_word=$2
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9256 $as_echo_n "checking for $ac_word... " >&6; }
9257 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9258 $as_echo_n "(cached) " >&6
9260 if test -n "$ac_ct_OTOOL64"; then
9261 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267 test -z "$as_dir" && as_dir=.
9268 for ac_exec_ext in '' $ac_executable_extensions; do
9269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9270 ac_cv_prog_ac_ct_OTOOL64="otool64"
9271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9280 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9281 if test -n "$ac_ct_OTOOL64"; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9283 $as_echo "$ac_ct_OTOOL64" >&6; }
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 $as_echo "no" >&6; }
9289 if test "x$ac_ct_OTOOL64" = x; then
9292 case $cross_compiling:$ac_tool_warned in
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9296 ac_tool_warned=yes ;;
9298 OTOOL64=$ac_ct_OTOOL64
9301 OTOOL64="$ac_cv_prog_OTOOL64"
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9331 $as_echo_n "checking for -single_module linker flag... " >&6; }
9332 if ${lt_cv_apple_cc_single_mod+:} false; then :
9333 $as_echo_n "(cached) " >&6
9335 lt_cv_apple_cc_single_mod=no
9336 if test -z "${LT_MULTI_MODULE}"; then
9337 # By default we will add the -single_module flag. You can override
9338 # by either setting the environment variable LT_MULTI_MODULE
9339 # non-empty at configure time, or by adding -multi_module to the
9341 rm -rf libconftest.dylib*
9342 echo "int foo(void){return 1;}" > conftest.c
9343 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9344 -dynamiclib -Wl,-single_module conftest.c" >&5
9345 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9346 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9348 # If there is a non-empty error log, and "single_module"
9349 # appears in it, assume the flag caused a linker warning
9350 if test -s conftest.err && $GREP single_module conftest.err; then
9351 cat conftest.err >&5
9352 # Otherwise, if the output was created with a 0 exit code from
9353 # the compiler, it worked.
9354 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9355 lt_cv_apple_cc_single_mod=yes
9357 cat conftest.err >&5
9359 rm -rf libconftest.dylib*
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9364 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9367 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9368 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9369 $as_echo_n "(cached) " >&6
9371 lt_cv_ld_exported_symbols_list=no
9372 save_LDFLAGS=$LDFLAGS
9373 echo "_main" > conftest.sym
9374 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9386 if ac_fn_c_try_link "$LINENO"; then :
9387 lt_cv_ld_exported_symbols_list=yes
9389 lt_cv_ld_exported_symbols_list=no
9391 rm -f core conftest.err conftest.$ac_objext \
9392 conftest$ac_exeext conftest.$ac_ext
9393 LDFLAGS="$save_LDFLAGS"
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9397 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9400 $as_echo_n "checking for -force_load linker flag... " >&6; }
9401 if ${lt_cv_ld_force_load+:} false; then :
9402 $as_echo_n "(cached) " >&6
9404 lt_cv_ld_force_load=no
9405 cat > conftest.c << _LT_EOF
9406 int forced_loaded() { return 2;}
9408 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9409 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9410 echo "$AR cru libconftest.a conftest.o" >&5
9411 $AR cru libconftest.a conftest.o 2>&5
9412 echo "$RANLIB libconftest.a" >&5
9413 $RANLIB libconftest.a 2>&5
9414 cat > conftest.c << _LT_EOF
9415 int main() { return 0;}
9417 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9418 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9420 if test -s conftest.err && $GREP force_load conftest.err; then
9421 cat conftest.err >&5
9422 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9423 lt_cv_ld_force_load=yes
9425 cat conftest.err >&5
9427 rm -f conftest.err libconftest.a conftest conftest.c
9428 rm -rf conftest.dSYM
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9432 $as_echo "$lt_cv_ld_force_load" >&6; }
9434 rhapsody* | darwin1.[012])
9435 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9437 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9438 darwin*) # darwin 5.x on
9439 # if running on 10.5 or later, the deployment target defaults
9440 # to the OS version, if on x86, and 10.4, the deployment
9441 # target defaults to 10.4. Don't you love it?
9442 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9443 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9444 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9446 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9448 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9452 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9453 _lt_dar_single_mod='$single_module'
9455 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9456 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9458 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9460 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9461 _lt_dsymutil='~$DSYMUTIL $lib || :'
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9470 $as_echo_n "checking for ANSI C header files... " >&6; }
9471 if ${ac_cv_header_stdc+:} false; then :
9472 $as_echo_n "(cached) " >&6
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9489 if ac_fn_c_try_compile "$LINENO"; then :
9490 ac_cv_header_stdc=yes
9492 ac_cv_header_stdc=no
9494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9496 if test $ac_cv_header_stdc = yes; then
9497 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9504 $EGREP "memchr" >/dev/null 2>&1; then :
9507 ac_cv_header_stdc=no
9513 if test $ac_cv_header_stdc = yes; then
9514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9521 $EGREP "free" >/dev/null 2>&1; then :
9524 ac_cv_header_stdc=no
9530 if test $ac_cv_header_stdc = yes; then
9531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9532 if test "$cross_compiling" = yes; then :
9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9539 #if ((' ' & 0x0FF) == 0x020)
9540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9543 # define ISLOWER(c) \
9544 (('a' <= (c) && (c) <= 'i') \
9545 || ('j' <= (c) && (c) <= 'r') \
9546 || ('s' <= (c) && (c) <= 'z'))
9547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9555 for (i = 0; i < 256; i++)
9556 if (XOR (islower (i), ISLOWER (i))
9557 || toupper (i) != TOUPPER (i))
9562 if ac_fn_c_try_run "$LINENO"; then :
9565 ac_cv_header_stdc=no
9567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9568 conftest.$ac_objext conftest.beam conftest.$ac_ext
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9574 $as_echo "$ac_cv_header_stdc" >&6; }
9575 if test $ac_cv_header_stdc = yes; then
9577 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9581 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9582 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9583 inttypes.h stdint.h unistd.h
9585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9586 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9588 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9589 cat >>confdefs.h <<_ACEOF
9590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9598 for ac_header in dlfcn.h
9600 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9602 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9603 cat >>confdefs.h <<_ACEOF
9604 #define HAVE_DLFCN_H 1
9624 # Check whether --enable-shared was given.
9625 if test "${enable_shared+set}" = set; then :
9626 enableval=$enable_shared; p=${PACKAGE-default}
9628 yes) enable_shared=yes ;;
9629 no) enable_shared=no ;;
9632 # Look at the argument we got. We use all the common list separators.
9633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9634 for pkg in $enableval; do
9636 if test "X$pkg" = "X$p"; then
9655 # Check whether --enable-static was given.
9656 if test "${enable_static+set}" = set; then :
9657 enableval=$enable_static; p=${PACKAGE-default}
9659 yes) enable_static=yes ;;
9660 no) enable_static=no ;;
9663 # Look at the argument we got. We use all the common list separators.
9664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9665 for pkg in $enableval; do
9667 if test "X$pkg" = "X$p"; then
9687 # Check whether --with-pic was given.
9688 if test "${with_pic+set}" = set; then :
9689 withval=$with_pic; lt_p=${PACKAGE-default}
9691 yes|no) pic_mode=$withval ;;
9694 # Look at the argument we got. We use all the common list separators.
9695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9696 for lt_pkg in $withval; do
9698 if test "X$lt_pkg" = "X$lt_p"; then
9710 test -z "$pic_mode" && pic_mode=default
9718 # Check whether --enable-fast-install was given.
9719 if test "${enable_fast_install+set}" = set; then :
9720 enableval=$enable_fast_install; p=${PACKAGE-default}
9722 yes) enable_fast_install=yes ;;
9723 no) enable_fast_install=no ;;
9725 enable_fast_install=no
9726 # Look at the argument we got. We use all the common list separators.
9727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9728 for pkg in $enableval; do
9730 if test "X$pkg" = "X$p"; then
9731 enable_fast_install=yes
9738 enable_fast_install=yes
9751 # This can be used to rebuild libtool when needed
9752 LIBTOOL_DEPS="$ltmain"
9754 # Always use our own libtool.
9755 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9786 test -z "$LN_S" && LN_S="ln -s"
9801 if test -n "${ZSH_VERSION+set}" ; then
9802 setopt NO_GLOB_SUBST
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9806 $as_echo_n "checking for objdir... " >&6; }
9807 if ${lt_cv_objdir+:} false; then :
9808 $as_echo_n "(cached) " >&6
9810 rm -f .libs 2>/dev/null
9811 mkdir .libs 2>/dev/null
9812 if test -d .libs; then
9815 # MS-DOS does not allow filenames that begin with a dot.
9818 rmdir .libs 2>/dev/null
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9821 $as_echo "$lt_cv_objdir" >&6; }
9822 objdir=$lt_cv_objdir
9828 cat >>confdefs.h <<_ACEOF
9829 #define LT_OBJDIR "$lt_cv_objdir/"
9837 # AIX sometimes has problems with the GCC collect2 program. For some
9838 # reason, if we set the COLLECT_NAMES environment variable, the problems
9839 # vanish in a puff of smoke.
9840 if test "X${COLLECT_NAMES+set}" != Xset; then
9842 export COLLECT_NAMES
9849 can_build_shared=yes
9851 # All known linkers require a `.a' archive for static linking (except MSVC,
9852 # which needs '.lib').
9855 with_gnu_ld="$lt_cv_prog_gnu_ld"
9858 old_CFLAGS="$CFLAGS"
9860 # Set sane defaults for various variables
9861 test -z "$CC" && CC=cc
9862 test -z "$LTCC" && LTCC=$CC
9863 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9864 test -z "$LD" && LD=ld
9865 test -z "$ac_objext" && ac_objext=o
9867 for cc_temp in $compiler""; do
9869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9875 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9878 # Only perform the check for file, if the check method requires it
9879 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9880 case $deplibs_check_method in
9882 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9884 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9885 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9886 $as_echo_n "(cached) " >&6
9890 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9893 lt_save_MAGIC_CMD="$MAGIC_CMD"
9894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9895 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9896 for ac_dir in $ac_dummy; do
9898 test -z "$ac_dir" && ac_dir=.
9899 if test -f $ac_dir/${ac_tool_prefix}file; then
9900 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9901 if test -n "$file_magic_test_file"; then
9902 case $deplibs_check_method in
9904 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9907 $EGREP "$file_magic_regex" > /dev/null; then
9912 *** Warning: the command libtool uses to detect shared libraries,
9913 *** $file_magic_cmd, produces output that libtool cannot recognize.
9914 *** The result is that libtool may fail to recognize shared libraries
9915 *** as such. This will affect the creation of libtool libraries that
9916 *** depend on shared libraries, but programs linked with such libtool
9917 *** libraries will work regardless of this problem. Nevertheless, you
9918 *** may want to report the problem to your system manager and/or to
9919 *** bug-libtool@gnu.org
9929 MAGIC_CMD="$lt_save_MAGIC_CMD"
9934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9935 if test -n "$MAGIC_CMD"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9937 $as_echo "$MAGIC_CMD" >&6; }
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940 $as_echo "no" >&6; }
9947 if test -z "$lt_cv_path_MAGIC_CMD"; then
9948 if test -n "$ac_tool_prefix"; then
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9950 $as_echo_n "checking for file... " >&6; }
9951 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9952 $as_echo_n "(cached) " >&6
9956 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9959 lt_save_MAGIC_CMD="$MAGIC_CMD"
9960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9961 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9962 for ac_dir in $ac_dummy; do
9964 test -z "$ac_dir" && ac_dir=.
9965 if test -f $ac_dir/file; then
9966 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9967 if test -n "$file_magic_test_file"; then
9968 case $deplibs_check_method in
9970 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9972 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9973 $EGREP "$file_magic_regex" > /dev/null; then
9978 *** Warning: the command libtool uses to detect shared libraries,
9979 *** $file_magic_cmd, produces output that libtool cannot recognize.
9980 *** The result is that libtool may fail to recognize shared libraries
9981 *** as such. This will affect the creation of libtool libraries that
9982 *** depend on shared libraries, but programs linked with such libtool
9983 *** libraries will work regardless of this problem. Nevertheless, you
9984 *** may want to report the problem to your system manager and/or to
9985 *** bug-libtool@gnu.org
9995 MAGIC_CMD="$lt_save_MAGIC_CMD"
10000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10001 if test -n "$MAGIC_CMD"; then
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10003 $as_echo "$MAGIC_CMD" >&6; }
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10006 $as_echo "no" >&6; }
10019 # Use C for the default configuration in the libtool script
10023 ac_cpp='$CPP $CPPFLAGS'
10024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10029 # Source file extension for C test sources.
10032 # Object file extension for compiled C test sources.
10036 # Code to be used in simple compile tests
10037 lt_simple_compile_test_code="int some_variable = 0;"
10039 # Code to be used in simple link tests
10040 lt_simple_link_test_code='int main(){return(0);}'
10048 # If no C compiler was specified, use CC.
10051 # If no C compiler flags were specified, use CFLAGS.
10052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10054 # Allow CC to be a program name with arguments.
10057 # Save the default compiler, since it gets overwritten when the other
10058 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10059 compiler_DEFAULT=$CC
10061 # save warnings/boilerplate of simple test code
10062 ac_outfile=conftest.$ac_objext
10063 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10065 _lt_compiler_boilerplate=`cat conftest.err`
10068 ac_outfile=conftest.$ac_objext
10069 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10071 _lt_linker_boilerplate=`cat conftest.err`
10076 ## There is no encapsulation within the following macros, do not change
10077 ## the running order or otherwise move them around unless you know exactly
10078 ## what you are doing...
10079 if test -n "$compiler"; then
10081 lt_prog_compiler_no_builtin_flag=
10083 if test "$GCC" = yes; then
10084 case $cc_basename in
10086 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10088 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10092 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10093 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10094 $as_echo_n "(cached) " >&6
10096 lt_cv_prog_compiler_rtti_exceptions=no
10097 ac_outfile=conftest.$ac_objext
10098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10099 lt_compiler_flag="-fno-rtti -fno-exceptions"
10100 # Insert the option either (1) after the last *FLAGS variable, or
10101 # (2) before a word containing "conftest.", or (3) at the end.
10102 # Note that $ac_compile itself does not contain backslashes and begins
10103 # with a dollar sign (not a hyphen), so the echo should work correctly.
10104 # The option is referenced via a variable to avoid confusing sed.
10105 lt_compile=`echo "$ac_compile" | $SED \
10106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10108 -e 's:$: $lt_compiler_flag:'`
10109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10110 (eval "$lt_compile" 2>conftest.err)
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 if (exit $ac_status) && test -s "$ac_outfile"; then
10115 # The compiler can only warn and ignore the option if not recognized
10116 # So say no if there are warnings other than the usual output.
10117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10120 lt_cv_prog_compiler_rtti_exceptions=yes
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10127 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10129 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10130 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10142 lt_prog_compiler_wl=
10143 lt_prog_compiler_pic=
10144 lt_prog_compiler_static=
10147 if test "$GCC" = yes; then
10148 lt_prog_compiler_wl='-Wl,'
10149 lt_prog_compiler_static='-static'
10153 # All AIX code is PIC.
10154 if test "$host_cpu" = ia64; then
10155 # AIX 5 now supports IA64 processor
10156 lt_prog_compiler_static='-Bstatic'
10163 # see comment about AmigaOS4 .so support
10164 lt_prog_compiler_pic='-fPIC'
10167 # FIXME: we need at least 68020 code to build shared libraries, but
10168 # adding the `-m68020' flag to GCC prevents building anything better,
10170 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10176 # PIC is the default for these OSes.
10179 mingw* | cygwin* | pw32* | os2* | cegcc*)
10180 # This hack is so that the source file can tell whether it is being
10181 # built for inclusion in a dll (and should export symbols for example).
10182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10183 # (--disable-auto-import) libraries
10184 lt_prog_compiler_pic='-DDLL_EXPORT'
10187 darwin* | rhapsody*)
10188 # PIC is the default on this platform
10189 # Common symbols not allowed in MH_DYLIB files
10190 lt_prog_compiler_pic='-fno-common'
10194 # PIC is the default for Haiku.
10195 # The "-static" flag exists, but is broken.
10196 lt_prog_compiler_static=
10200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10202 # sets the default TLS model and affects inlining.
10208 lt_prog_compiler_pic='-fPIC'
10214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10215 # Instead, we relocate shared libraries at runtime.
10219 # Just because we use GCC doesn't mean we suddenly get shared libraries
10220 # on systems that don't support them.
10221 lt_prog_compiler_can_build_shared=no
10226 # QNX uses GNU C++, but need to define -shared option too, otherwise
10227 # it will coredump.
10228 lt_prog_compiler_pic='-fPIC -shared'
10232 if test -d /usr/nec; then
10233 lt_prog_compiler_pic=-Kconform_pic
10238 lt_prog_compiler_pic='-fPIC'
10242 case $cc_basename in
10243 nvcc*) # Cuda Compiler Driver 2.2
10244 lt_prog_compiler_wl='-Xlinker '
10245 if test -n "$lt_prog_compiler_pic"; then
10246 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10251 # PORTME Check for flag to pass linker flags through the system compiler.
10254 lt_prog_compiler_wl='-Wl,'
10255 if test "$host_cpu" = ia64; then
10256 # AIX 5 now supports IA64 processor
10257 lt_prog_compiler_static='-Bstatic'
10259 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10263 mingw* | cygwin* | pw32* | os2* | cegcc*)
10264 # This hack is so that the source file can tell whether it is being
10265 # built for inclusion in a dll (and should export symbols for example).
10266 lt_prog_compiler_pic='-DDLL_EXPORT'
10269 hpux9* | hpux10* | hpux11*)
10270 lt_prog_compiler_wl='-Wl,'
10271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10272 # not for PA HP-UX.
10278 lt_prog_compiler_pic='+Z'
10281 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10282 lt_prog_compiler_static='${wl}-a ${wl}archive'
10285 irix5* | irix6* | nonstopux*)
10286 lt_prog_compiler_wl='-Wl,'
10287 # PIC (with -KPIC) is the default.
10288 lt_prog_compiler_static='-non_shared'
10291 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10292 case $cc_basename in
10293 # old Intel for x86_64 which still supported -KPIC.
10295 lt_prog_compiler_wl='-Wl,'
10296 lt_prog_compiler_pic='-KPIC'
10297 lt_prog_compiler_static='-static'
10299 # icc used to be incompatible with GCC.
10300 # ICC 10 doesn't accept -KPIC any more.
10302 lt_prog_compiler_wl='-Wl,'
10303 lt_prog_compiler_pic='-fPIC'
10304 lt_prog_compiler_static='-static'
10306 # Lahey Fortran 8.1.
10308 lt_prog_compiler_wl='-Wl,'
10309 lt_prog_compiler_pic='--shared'
10310 lt_prog_compiler_static='--static'
10313 # NAG Fortran compiler
10314 lt_prog_compiler_wl='-Wl,-Wl,,'
10315 lt_prog_compiler_pic='-PIC'
10316 lt_prog_compiler_static='-Bstatic'
10318 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10319 # Portland Group compilers (*not* the Pentium gcc compiler,
10320 # which looks to be a dead project)
10321 lt_prog_compiler_wl='-Wl,'
10322 lt_prog_compiler_pic='-fpic'
10323 lt_prog_compiler_static='-Bstatic'
10326 lt_prog_compiler_wl='-Wl,'
10327 # All Alpha code is PIC.
10328 lt_prog_compiler_static='-non_shared'
10330 xl* | bgxl* | bgf* | mpixl*)
10331 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10332 lt_prog_compiler_wl='-Wl,'
10333 lt_prog_compiler_pic='-qpic'
10334 lt_prog_compiler_static='-qstaticlink'
10337 case `$CC -V 2>&1 | sed 5q` in
10338 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10339 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10340 lt_prog_compiler_pic='-KPIC'
10341 lt_prog_compiler_static='-Bstatic'
10342 lt_prog_compiler_wl=''
10344 *Sun\ F* | *Sun*Fortran*)
10345 lt_prog_compiler_pic='-KPIC'
10346 lt_prog_compiler_static='-Bstatic'
10347 lt_prog_compiler_wl='-Qoption ld '
10351 lt_prog_compiler_pic='-KPIC'
10352 lt_prog_compiler_static='-Bstatic'
10353 lt_prog_compiler_wl='-Wl,'
10355 *Intel*\ [CF]*Compiler*)
10356 lt_prog_compiler_wl='-Wl,'
10357 lt_prog_compiler_pic='-fPIC'
10358 lt_prog_compiler_static='-static'
10361 lt_prog_compiler_wl='-Wl,'
10362 lt_prog_compiler_pic='-fpic'
10363 lt_prog_compiler_static='-Bstatic'
10371 lt_prog_compiler_pic='-KPIC'
10372 lt_prog_compiler_static='-Bstatic'
10376 # QNX uses GNU C++, but need to define -shared option too, otherwise
10377 # it will coredump.
10378 lt_prog_compiler_pic='-fPIC -shared'
10381 osf3* | osf4* | osf5*)
10382 lt_prog_compiler_wl='-Wl,'
10383 # All OSF/1 code is PIC.
10384 lt_prog_compiler_static='-non_shared'
10388 lt_prog_compiler_static='-non_shared'
10392 lt_prog_compiler_pic='-KPIC'
10393 lt_prog_compiler_static='-Bstatic'
10394 case $cc_basename in
10395 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10396 lt_prog_compiler_wl='-Qoption ld ';;
10398 lt_prog_compiler_wl='-Wl,';;
10403 lt_prog_compiler_wl='-Qoption ld '
10404 lt_prog_compiler_pic='-PIC'
10405 lt_prog_compiler_static='-Bstatic'
10408 sysv4 | sysv4.2uw2* | sysv4.3*)
10409 lt_prog_compiler_wl='-Wl,'
10410 lt_prog_compiler_pic='-KPIC'
10411 lt_prog_compiler_static='-Bstatic'
10415 if test -d /usr/nec ;then
10416 lt_prog_compiler_pic='-Kconform_pic'
10417 lt_prog_compiler_static='-Bstatic'
10421 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10422 lt_prog_compiler_wl='-Wl,'
10423 lt_prog_compiler_pic='-KPIC'
10424 lt_prog_compiler_static='-Bstatic'
10428 lt_prog_compiler_wl='-Wl,'
10429 lt_prog_compiler_can_build_shared=no
10433 lt_prog_compiler_pic='-pic'
10434 lt_prog_compiler_static='-Bstatic'
10438 lt_prog_compiler_can_build_shared=no
10444 # For platforms which do not support PIC, -DPIC is meaningless:
10446 lt_prog_compiler_pic=
10449 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10454 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10455 if ${lt_cv_prog_compiler_pic+:} false; then :
10456 $as_echo_n "(cached) " >&6
10458 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10461 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10462 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10465 # Check to make sure the PIC flag actually works.
10467 if test -n "$lt_prog_compiler_pic"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10469 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10470 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10471 $as_echo_n "(cached) " >&6
10473 lt_cv_prog_compiler_pic_works=no
10474 ac_outfile=conftest.$ac_objext
10475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10476 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10477 # Insert the option either (1) after the last *FLAGS variable, or
10478 # (2) before a word containing "conftest.", or (3) at the end.
10479 # Note that $ac_compile itself does not contain backslashes and begins
10480 # with a dollar sign (not a hyphen), so the echo should work correctly.
10481 # The option is referenced via a variable to avoid confusing sed.
10482 lt_compile=`echo "$ac_compile" | $SED \
10483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10485 -e 's:$: $lt_compiler_flag:'`
10486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10487 (eval "$lt_compile" 2>conftest.err)
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 if (exit $ac_status) && test -s "$ac_outfile"; then
10492 # The compiler can only warn and ignore the option if not recognized
10493 # So say no if there are warnings other than the usual output.
10494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10497 lt_cv_prog_compiler_pic_works=yes
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10504 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10506 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10507 case $lt_prog_compiler_pic in
10509 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10512 lt_prog_compiler_pic=
10513 lt_prog_compiler_can_build_shared=no
10529 # Check to make sure the static flag actually works.
10531 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10533 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10534 if ${lt_cv_prog_compiler_static_works+:} false; then :
10535 $as_echo_n "(cached) " >&6
10537 lt_cv_prog_compiler_static_works=no
10538 save_LDFLAGS="$LDFLAGS"
10539 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10540 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10541 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10542 # The linker can only warn and ignore the option if not recognized
10543 # So say no if there are warnings
10544 if test -s conftest.err; then
10545 # Append any errors to the config.log.
10546 cat conftest.err 1>&5
10547 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10549 if diff conftest.exp conftest.er2 >/dev/null; then
10550 lt_cv_prog_compiler_static_works=yes
10553 lt_cv_prog_compiler_static_works=yes
10557 LDFLAGS="$save_LDFLAGS"
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10561 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10563 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10566 lt_prog_compiler_static=
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10576 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10577 if ${lt_cv_prog_compiler_c_o+:} false; then :
10578 $as_echo_n "(cached) " >&6
10580 lt_cv_prog_compiler_c_o=no
10581 $RM -r conftest 2>/dev/null
10585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10587 lt_compiler_flag="-o out/conftest2.$ac_objext"
10588 # Insert the option either (1) after the last *FLAGS variable, or
10589 # (2) before a word containing "conftest.", or (3) at the end.
10590 # Note that $ac_compile itself does not contain backslashes and begins
10591 # with a dollar sign (not a hyphen), so the echo should work correctly.
10592 lt_compile=`echo "$ac_compile" | $SED \
10593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10595 -e 's:$: $lt_compiler_flag:'`
10596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10597 (eval "$lt_compile" 2>out/conftest.err)
10599 cat out/conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10603 # The compiler can only warn and ignore the option if not recognized
10604 # So say no if there are warnings
10605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10606 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10607 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10608 lt_cv_prog_compiler_c_o=yes
10613 # SGI C++ compiler will create directory out/ii_files/ for
10614 # template instantiation
10615 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10616 $RM out/* && rmdir out
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10623 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10631 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10632 if ${lt_cv_prog_compiler_c_o+:} false; then :
10633 $as_echo_n "(cached) " >&6
10635 lt_cv_prog_compiler_c_o=no
10636 $RM -r conftest 2>/dev/null
10640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10642 lt_compiler_flag="-o out/conftest2.$ac_objext"
10643 # Insert the option either (1) after the last *FLAGS variable, or
10644 # (2) before a word containing "conftest.", or (3) at the end.
10645 # Note that $ac_compile itself does not contain backslashes and begins
10646 # with a dollar sign (not a hyphen), so the echo should work correctly.
10647 lt_compile=`echo "$ac_compile" | $SED \
10648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10650 -e 's:$: $lt_compiler_flag:'`
10651 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10652 (eval "$lt_compile" 2>out/conftest.err)
10654 cat out/conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10658 # The compiler can only warn and ignore the option if not recognized
10659 # So say no if there are warnings
10660 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10661 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10662 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10663 lt_cv_prog_compiler_c_o=yes
10668 # SGI C++ compiler will create directory out/ii_files/ for
10669 # template instantiation
10670 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10671 $RM out/* && rmdir out
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10678 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10683 hard_links="nottested"
10684 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10685 # do not overwrite the value of need_locks provided by the user
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10687 $as_echo_n "checking if we can lock with hard links... " >&6; }
10690 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10692 ln conftest.a conftest.b 2>&5 || hard_links=no
10693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10695 $as_echo "$hard_links" >&6; }
10696 if test "$hard_links" = no; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10698 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10711 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10714 allow_undefined_flag=
10715 always_export_symbols=no
10717 archive_expsym_cmds=
10718 compiler_needs_object=no
10719 enable_shared_with_static_runtimes=no
10720 export_dynamic_flag_spec=
10721 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10722 hardcode_automatic=no
10724 hardcode_direct_absolute=no
10725 hardcode_libdir_flag_spec=
10726 hardcode_libdir_separator=
10727 hardcode_minus_L=no
10728 hardcode_shlibpath_var=unsupported
10730 link_all_deplibs=unknown
10732 module_expsym_cmds=
10733 old_archive_from_new_cmds=
10734 old_archive_from_expsyms_cmds=
10735 thread_safe_flag_spec=
10736 whole_archive_flag_spec=
10737 # include_expsyms should be a list of space-separated symbols to be *always*
10738 # included in the symbol list
10740 # exclude_expsyms can be an extended regexp of symbols to exclude
10741 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10742 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10743 # as well as any symbol that contains `d'.
10744 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10745 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10746 # platforms (ab)use it in PIC code, but their linkers get confused if
10747 # the symbol is explicitly referenced. Since portable code cannot
10748 # rely on this symbol name, it's probably fine to never include it in
10749 # preloaded symbol tables.
10750 # Exclude shared library initialization/finalization symbols.
10751 extract_expsyms_cmds=
10754 cygwin* | mingw* | pw32* | cegcc*)
10755 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10756 # When not using gcc, we currently assume that we are using
10757 # Microsoft Visual C++.
10758 if test "$GCC" != yes; then
10763 # we just hope/assume this is gcc and not c89 (= MSVC++)
10773 # On some targets, GNU ld is compatible enough with the native linker
10774 # that we're better off using the native interface for both.
10775 lt_use_gnu_ld_interface=no
10776 if test "$with_gnu_ld" = yes; then
10779 # The AIX port of GNU ld has always aspired to compatibility
10780 # with the native linker. However, as the warning in the GNU ld
10781 # block says, versions before 2.19.5* couldn't really create working
10782 # shared libraries, regardless of the interface used.
10783 case `$LD -v 2>&1` in
10784 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10785 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10786 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10788 lt_use_gnu_ld_interface=yes
10793 lt_use_gnu_ld_interface=yes
10798 if test "$lt_use_gnu_ld_interface" = yes; then
10799 # If archive_cmds runs LD, not CC, wlarc should be empty
10802 # Set some defaults for GNU ld with shared library support. These
10803 # are reset later if shared libraries are not supported. Putting them
10804 # here allows them to be overridden if necessary.
10805 runpath_var=LD_RUN_PATH
10806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10807 export_dynamic_flag_spec='${wl}--export-dynamic'
10808 # ancient GNU ld didn't support --whole-archive et. al.
10809 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10810 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10812 whole_archive_flag_spec=
10814 supports_anon_versioning=no
10815 case `$LD -v 2>&1` in
10816 *GNU\ gold*) supports_anon_versioning=yes ;;
10817 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10818 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10819 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10820 *\ 2.11.*) ;; # other 2.11 versions
10821 *) supports_anon_versioning=yes ;;
10824 # See if GNU ld supports shared libraries.
10827 # On AIX/PPC, the GNU linker is very broken
10828 if test "$host_cpu" != ia64; then
10832 *** Warning: the GNU linker, at least up to release 2.19, is reported
10833 *** to be unable to reliably create shared libraries on AIX.
10834 *** Therefore, libtool is disabling shared libraries support. If you
10835 *** really care for shared libraries, you may want to install binutils
10836 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10837 *** You will then need to restart the configuration process.
10846 # see comment about AmigaOS4 .so support
10847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10848 archive_expsym_cmds=''
10851 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)'
10852 hardcode_libdir_flag_spec='-L$libdir'
10853 hardcode_minus_L=yes
10859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10860 allow_undefined_flag=unsupported
10861 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10862 # support --undefined. This deserves some investigation. FIXME
10863 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10869 cygwin* | mingw* | pw32* | cegcc*)
10870 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10871 # as there is no search path for DLLs.
10872 hardcode_libdir_flag_spec='-L$libdir'
10873 export_dynamic_flag_spec='${wl}--export-all-symbols'
10874 allow_undefined_flag=unsupported
10875 always_export_symbols=no
10876 enable_shared_with_static_runtimes=yes
10877 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'
10878 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10880 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10882 # If the export-symbols file already is a .def file (1st line
10883 # is EXPORTS), use it as is; otherwise, prepend...
10884 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10885 cp $export_symbols $output_objdir/$soname.def;
10887 echo EXPORTS > $output_objdir/$soname.def;
10888 cat $export_symbols >> $output_objdir/$soname.def;
10890 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10898 link_all_deplibs=yes
10903 hardcode_shlibpath_var=no
10904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10905 export_dynamic_flag_spec='${wl}-E'
10906 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10907 # Instead, shared libraries are loaded at an image base (0x10000000 by
10908 # default) and relocated if they conflict, which is a slow very memory
10909 # consuming and fragmenting process. To avoid this, we pick a random,
10910 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10911 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10912 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10913 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'
10916 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10918 if test "$host_os" = linux-dietlibc; then
10919 case $cc_basename in
10920 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10923 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10924 && test "$tmp_diet" = no
10926 tmp_addflag=' $pic_flag'
10927 tmp_sharedflag='-shared'
10928 case $cc_basename,$host_cpu in
10929 pgcc*) # Portland Group C compiler
10930 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'
10931 tmp_addflag=' $pic_flag'
10933 pgf77* | pgf90* | pgf95* | pgfortran*)
10934 # Portland Group f77 and f90 compilers
10935 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'
10936 tmp_addflag=' $pic_flag -Mnomain' ;;
10937 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10938 tmp_addflag=' -i_dynamic' ;;
10939 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10940 tmp_addflag=' -i_dynamic -nofor_main' ;;
10941 ifc* | ifort*) # Intel Fortran compiler
10942 tmp_addflag=' -nofor_main' ;;
10943 lf95*) # Lahey Fortran 8.1
10944 whole_archive_flag_spec=
10945 tmp_sharedflag='--shared' ;;
10946 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10947 tmp_sharedflag='-qmkshrobj'
10949 nvcc*) # Cuda Compiler Driver 2.2
10950 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'
10951 compiler_needs_object=yes
10954 case `$CC -V 2>&1 | sed 5q` in
10955 *Sun\ C*) # Sun C 5.9
10956 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'
10957 compiler_needs_object=yes
10958 tmp_sharedflag='-G' ;;
10959 *Sun\ F*) # Sun Fortran 8.3
10960 tmp_sharedflag='-G' ;;
10962 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10964 if test "x$supports_anon_versioning" = xyes; then
10965 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10966 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10967 echo "local: *; };" >> $output_objdir/$libname.ver~
10968 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10971 case $cc_basename in
10972 xlf* | bgf* | bgxlf* | mpixlf*)
10973 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10974 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10976 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10977 if test "x$supports_anon_versioning" = xyes; then
10978 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10980 echo "local: *; };" >> $output_objdir/$libname.ver~
10981 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10991 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10992 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10995 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10996 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11001 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11005 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11006 *** create shared libraries on Solaris systems. Therefore, libtool
11007 *** is disabling shared libraries support. We urge you to upgrade GNU
11008 *** binutils to release 2.9.1 or newer. Another option is to modify
11009 *** your PATH or compiler configuration so that the native linker is
11010 *** used, and then restart.
11013 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11014 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11015 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11022 case `$LD -v 2>&1` in
11023 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11027 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11028 *** reliably create shared libraries on SCO systems. Therefore, libtool
11029 *** is disabling shared libraries support. We urge you to upgrade GNU
11030 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11031 *** your PATH or compiler configuration so that the native linker is
11032 *** used, and then restart.
11037 # For security reasons, it is highly recommended that you always
11038 # use absolute paths for naming shared libraries, and exclude the
11039 # DT_RUNPATH tag from executables and libraries. But doing so
11040 # requires that you compile everything twice, which is a pain.
11041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11053 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11055 hardcode_direct=yes
11056 hardcode_shlibpath_var=no
11060 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11061 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11062 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11069 if test "$ld_shlibs" = no; then
11071 hardcode_libdir_flag_spec=
11072 export_dynamic_flag_spec=
11073 whole_archive_flag_spec=
11076 # PORTME fill in a description of your system's linker (not GNU ld)
11079 allow_undefined_flag=unsupported
11080 always_export_symbols=yes
11081 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'
11082 # Note: this linker hardcodes the directories in LIBPATH if there
11083 # are no directories specified by -L.
11084 hardcode_minus_L=yes
11085 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11086 # Neither direct hardcoding nor static linking is supported with a
11088 hardcode_direct=unsupported
11093 if test "$host_cpu" = ia64; then
11094 # On IA64, the linker does run time linking by default, so we don't
11095 # have to do anything special.
11096 aix_use_runtimelinking=no
11097 exp_sym_flag='-Bexport'
11100 # If we're using GNU nm, then we don't want the "-C" option.
11101 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11102 # Also, AIX nm treats weak defined symbols like other global
11103 # defined symbols, whereas GNU nm marks them as "W".
11104 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11105 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'
11107 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'
11109 aix_use_runtimelinking=no
11111 # Test if we are trying to use run time linking or normal
11112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11113 # need to do runtime linking.
11114 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11115 for ld_flag in $LDFLAGS; do
11116 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11117 aix_use_runtimelinking=yes
11124 exp_sym_flag='-bexport'
11125 no_entry_flag='-bnoentry'
11128 # When large executables or shared objects are built, AIX ld can
11129 # have problems creating the table of contents. If linking a library
11130 # or program results in "error TOC overflow" add -mminimal-toc to
11131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11135 hardcode_direct=yes
11136 hardcode_direct_absolute=yes
11137 hardcode_libdir_separator=':'
11138 link_all_deplibs=yes
11139 file_list_spec='${wl}-f,'
11141 if test "$GCC" = yes; then
11142 case $host_os in aix4.[012]|aix4.[012].*)
11143 # We only want to do this on AIX 4.2 and lower, the check
11144 # below for broken collect2 doesn't work under 4.3+
11145 collect2name=`${CC} -print-prog-name=collect2`
11146 if test -f "$collect2name" &&
11147 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11149 # We have reworked collect2
11152 # We have old collect2
11153 hardcode_direct=unsupported
11154 # It fails to find uninstalled libraries when the uninstalled
11155 # path is not listed in the libpath. Setting hardcode_minus_L
11156 # to unsupported forces relinking
11157 hardcode_minus_L=yes
11158 hardcode_libdir_flag_spec='-L$libdir'
11159 hardcode_libdir_separator=
11163 shared_flag='-shared'
11164 if test "$aix_use_runtimelinking" = yes; then
11165 shared_flag="$shared_flag "'${wl}-G'
11169 if test "$host_cpu" = ia64; then
11170 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11171 # chokes on -Wl,-G. The following line is correct:
11174 if test "$aix_use_runtimelinking" = yes; then
11175 shared_flag='${wl}-G'
11177 shared_flag='${wl}-bM:SRE'
11182 export_dynamic_flag_spec='${wl}-bexpall'
11183 # It seems that -bexpall does not export symbols beginning with
11184 # underscore (_), so it is better to generate a list of symbols to export.
11185 always_export_symbols=yes
11186 if test "$aix_use_runtimelinking" = yes; then
11187 # Warning - without using the other runtime loading flags (-brtl),
11188 # -berok will link without error, but may produce a broken library.
11189 allow_undefined_flag='-berok'
11190 # Determine the default libpath from the value encoded in an
11191 # empty executable.
11192 if test "${lt_cv_aix_libpath+set}" = set; then
11193 aix_libpath=$lt_cv_aix_libpath
11195 if ${lt_cv_aix_libpath_+:} false; then :
11196 $as_echo_n "(cached) " >&6
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11209 if ac_fn_c_try_link "$LINENO"; then :
11211 lt_aix_libpath_sed='
11212 /Import File Strings/,/^$/ {
11214 s/^0 *\([^ ]*\) *$/\1/
11218 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11219 # Check for a 64-bit object if we didn't find anything.
11220 if test -z "$lt_cv_aix_libpath_"; then
11221 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11224 rm -f core conftest.err conftest.$ac_objext \
11225 conftest$ac_exeext conftest.$ac_ext
11226 if test -z "$lt_cv_aix_libpath_"; then
11227 lt_cv_aix_libpath_="/usr/lib:/lib"
11232 aix_libpath=$lt_cv_aix_libpath_
11235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11236 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"
11238 if test "$host_cpu" = ia64; then
11239 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11240 allow_undefined_flag="-z nodefs"
11241 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"
11243 # Determine the default libpath from the value encoded in an
11244 # empty executable.
11245 if test "${lt_cv_aix_libpath+set}" = set; then
11246 aix_libpath=$lt_cv_aix_libpath
11248 if ${lt_cv_aix_libpath_+:} false; then :
11249 $as_echo_n "(cached) " >&6
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11262 if ac_fn_c_try_link "$LINENO"; then :
11264 lt_aix_libpath_sed='
11265 /Import File Strings/,/^$/ {
11267 s/^0 *\([^ ]*\) *$/\1/
11271 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11272 # Check for a 64-bit object if we didn't find anything.
11273 if test -z "$lt_cv_aix_libpath_"; then
11274 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11277 rm -f core conftest.err conftest.$ac_objext \
11278 conftest$ac_exeext conftest.$ac_ext
11279 if test -z "$lt_cv_aix_libpath_"; then
11280 lt_cv_aix_libpath_="/usr/lib:/lib"
11285 aix_libpath=$lt_cv_aix_libpath_
11288 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11289 # Warning - without using the other run time loading flags,
11290 # -berok will link without error, but may produce a broken library.
11291 no_undefined_flag=' ${wl}-bernotok'
11292 allow_undefined_flag=' ${wl}-berok'
11293 if test "$with_gnu_ld" = yes; then
11294 # We only use this code for GNU lds that support --whole-archive.
11295 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11297 # Exported symbols can be pulled into shared objects from archives
11298 whole_archive_flag_spec='$convenience'
11300 archive_cmds_need_lc=yes
11301 # This is similar to how AIX traditionally builds its shared libraries.
11302 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'
11310 # see comment about AmigaOS4 .so support
11311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11312 archive_expsym_cmds=''
11315 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)'
11316 hardcode_libdir_flag_spec='-L$libdir'
11317 hardcode_minus_L=yes
11323 export_dynamic_flag_spec=-rdynamic
11326 cygwin* | mingw* | pw32* | cegcc*)
11327 # When not using gcc, we currently assume that we are using
11328 # Microsoft Visual C++.
11329 # hardcode_libdir_flag_spec is actually meaningless, as there is
11330 # no search path for DLLs.
11331 case $cc_basename in
11334 hardcode_libdir_flag_spec=' '
11335 allow_undefined_flag=unsupported
11336 always_export_symbols=yes
11338 # Tell ltmain to make .lib files, not .a files.
11340 # Tell ltmain to make .dll files, not .so files.
11342 # FIXME: Setting linknames here is a bad hack.
11343 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11344 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11345 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11347 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11349 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11351 # The linker will not automatically build a static lib if we build a DLL.
11352 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11353 enable_shared_with_static_runtimes=yes
11354 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11355 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11357 old_postinstall_cmds='chmod 644 $oldlib'
11358 postlink_cmds='lt_outputfile="@OUTPUT@"~
11359 lt_tool_outputfile="@TOOL_OUTPUT@"~
11360 case $lt_outputfile in
11363 lt_outputfile="$lt_outputfile.exe"
11364 lt_tool_outputfile="$lt_tool_outputfile.exe"
11367 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11368 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11369 $RM "$lt_outputfile.manifest";
11373 # Assume MSVC wrapper
11374 hardcode_libdir_flag_spec=' '
11375 allow_undefined_flag=unsupported
11376 # Tell ltmain to make .lib files, not .a files.
11378 # Tell ltmain to make .dll files, not .so files.
11380 # FIXME: Setting linknames here is a bad hack.
11381 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11382 # The linker will automatically build a .lib file if we build a DLL.
11383 old_archive_from_new_cmds='true'
11384 # FIXME: Should let the user specify the lib program.
11385 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11386 enable_shared_with_static_runtimes=yes
11391 darwin* | rhapsody*)
11394 archive_cmds_need_lc=no
11396 hardcode_automatic=yes
11397 hardcode_shlibpath_var=unsupported
11398 if test "$lt_cv_ld_force_load" = "yes"; then
11399 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\"`'
11402 whole_archive_flag_spec=''
11404 link_all_deplibs=yes
11405 allow_undefined_flag="$_lt_dar_allow_undefined"
11406 case $cc_basename in
11407 ifort*) _lt_dar_can_shared=yes ;;
11408 *) _lt_dar_can_shared=$GCC ;;
11410 if test "$_lt_dar_can_shared" = "yes"; then
11411 output_verbose_link_cmd=func_echo_all
11412 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11413 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11414 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}"
11415 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}"
11424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11425 hardcode_libdir_flag_spec='-L$libdir'
11426 hardcode_shlibpath_var=no
11429 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11430 # support. Future versions do this automatically, but an explicit c++rt0.o
11431 # does not break anything, and helps significantly (at the cost of a little
11434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11435 hardcode_libdir_flag_spec='-R$libdir'
11436 hardcode_direct=yes
11437 hardcode_shlibpath_var=no
11440 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11443 hardcode_direct=yes
11444 hardcode_minus_L=yes
11445 hardcode_shlibpath_var=no
11448 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11449 freebsd* | dragonfly*)
11450 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11451 hardcode_libdir_flag_spec='-R$libdir'
11452 hardcode_direct=yes
11453 hardcode_shlibpath_var=no
11457 if test "$GCC" = yes; then
11458 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'
11460 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'
11462 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11463 hardcode_libdir_separator=:
11464 hardcode_direct=yes
11466 # hardcode_minus_L: Not really in the search PATH,
11467 # but as the default location of the library.
11468 hardcode_minus_L=yes
11469 export_dynamic_flag_spec='${wl}-E'
11473 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11474 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11476 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11478 if test "$with_gnu_ld" = no; then
11479 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11480 hardcode_libdir_separator=:
11481 hardcode_direct=yes
11482 hardcode_direct_absolute=yes
11483 export_dynamic_flag_spec='${wl}-E'
11484 # hardcode_minus_L: Not really in the search PATH,
11485 # but as the default location of the library.
11486 hardcode_minus_L=yes
11491 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11494 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11497 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11500 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11506 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11509 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11513 # Older versions of the 11.00 compiler do not understand -b yet
11514 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11516 $as_echo_n "checking if $CC understands -b... " >&6; }
11517 if ${lt_cv_prog_compiler__b+:} false; then :
11518 $as_echo_n "(cached) " >&6
11520 lt_cv_prog_compiler__b=no
11521 save_LDFLAGS="$LDFLAGS"
11522 LDFLAGS="$LDFLAGS -b"
11523 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11524 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11525 # The linker can only warn and ignore the option if not recognized
11526 # So say no if there are warnings
11527 if test -s conftest.err; then
11528 # Append any errors to the config.log.
11529 cat conftest.err 1>&5
11530 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11532 if diff conftest.exp conftest.er2 >/dev/null; then
11533 lt_cv_prog_compiler__b=yes
11536 lt_cv_prog_compiler__b=yes
11540 LDFLAGS="$save_LDFLAGS"
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11544 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11546 if test x"$lt_cv_prog_compiler__b" = xyes; then
11547 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11549 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11555 if test "$with_gnu_ld" = no; then
11556 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11557 hardcode_libdir_separator=:
11562 hardcode_shlibpath_var=no
11565 hardcode_direct=yes
11566 hardcode_direct_absolute=yes
11567 export_dynamic_flag_spec='${wl}-E'
11569 # hardcode_minus_L: Not really in the search PATH,
11570 # but as the default location of the library.
11571 hardcode_minus_L=yes
11577 irix5* | irix6* | nonstopux*)
11578 if test "$GCC" = yes; then
11579 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'
11580 # Try to use the -exported_symbol ld option, if it does not
11581 # work, assume that -exports_file does not work either and
11582 # implicitly export all symbols.
11583 # This should be the same for all languages, so no per-tag cache variable.
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11585 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11586 if ${lt_cv_irix_exported_symbol+:} false; then :
11587 $as_echo_n "(cached) " >&6
11589 save_LDFLAGS="$LDFLAGS"
11590 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11593 int foo (void) { return 0; }
11595 if ac_fn_c_try_link "$LINENO"; then :
11596 lt_cv_irix_exported_symbol=yes
11598 lt_cv_irix_exported_symbol=no
11600 rm -f core conftest.err conftest.$ac_objext \
11601 conftest$ac_exeext conftest.$ac_ext
11602 LDFLAGS="$save_LDFLAGS"
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11605 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11606 if test "$lt_cv_irix_exported_symbol" = yes; then
11607 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'
11610 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'
11611 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'
11613 archive_cmds_need_lc='no'
11614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11615 hardcode_libdir_separator=:
11617 link_all_deplibs=yes
11621 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11624 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11626 hardcode_libdir_flag_spec='-R$libdir'
11627 hardcode_direct=yes
11628 hardcode_shlibpath_var=no
11632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11633 hardcode_direct=yes
11634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11635 hardcode_libdir_separator=:
11636 hardcode_shlibpath_var=no
11643 if test -f /usr/libexec/ld.so; then
11644 hardcode_direct=yes
11645 hardcode_shlibpath_var=no
11646 hardcode_direct_absolute=yes
11647 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11648 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11649 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11650 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11651 export_dynamic_flag_spec='${wl}-E'
11654 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11656 hardcode_libdir_flag_spec='-R$libdir'
11659 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11660 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11670 hardcode_libdir_flag_spec='-L$libdir'
11671 hardcode_minus_L=yes
11672 allow_undefined_flag=unsupported
11673 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'
11674 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11678 if test "$GCC" = yes; then
11679 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11680 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'
11682 allow_undefined_flag=' -expect_unresolved \*'
11683 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'
11685 archive_cmds_need_lc='no'
11686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11687 hardcode_libdir_separator=:
11690 osf4* | osf5*) # as osf3* with the addition of -msym flag
11691 if test "$GCC" = yes; then
11692 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11693 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'
11694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11696 allow_undefined_flag=' -expect_unresolved \*'
11697 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'
11698 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~
11699 $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'
11701 # Both c and cxx compiler support -rpath directly
11702 hardcode_libdir_flag_spec='-rpath $libdir'
11704 archive_cmds_need_lc='no'
11705 hardcode_libdir_separator=:
11709 no_undefined_flag=' -z defs'
11710 if test "$GCC" = yes; then
11712 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11713 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11714 $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'
11716 case `$CC -V 2>&1` in
11719 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11720 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11721 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11725 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11726 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11727 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11731 hardcode_libdir_flag_spec='-R$libdir'
11732 hardcode_shlibpath_var=no
11734 solaris2.[0-5] | solaris2.[0-5].*) ;;
11736 # The compiler driver will combine and reorder linker options,
11737 # but understands `-z linker_flag'. GCC discards it without `$wl',
11738 # but is careful enough not to reorder.
11739 # Supported since Solaris 2.6 (maybe 2.5.1?)
11740 if test "$GCC" = yes; then
11741 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11743 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11747 link_all_deplibs=yes
11751 if test "x$host_vendor" = xsequent; then
11752 # Use $CC to link under sequent, because it throws in some extra .o
11753 # files that make .init and .fini sections work.
11754 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11756 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11758 hardcode_libdir_flag_spec='-L$libdir'
11759 hardcode_direct=yes
11760 hardcode_minus_L=yes
11761 hardcode_shlibpath_var=no
11765 case $host_vendor in
11767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11768 hardcode_direct=yes # is this really true???
11771 ## LD is ld it makes a PLAMLIB
11772 ## CC just makes a GrossModule.
11773 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11774 reload_cmds='$CC -r -o $output$reload_objs'
11778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11779 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11782 runpath_var='LD_RUN_PATH'
11783 hardcode_shlibpath_var=no
11787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11788 hardcode_shlibpath_var=no
11789 export_dynamic_flag_spec='-Bexport'
11793 if test -d /usr/nec; then
11794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11795 hardcode_shlibpath_var=no
11796 runpath_var=LD_RUN_PATH
11797 hardcode_runpath_var=yes
11802 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11803 no_undefined_flag='${wl}-z,text'
11804 archive_cmds_need_lc=no
11805 hardcode_shlibpath_var=no
11806 runpath_var='LD_RUN_PATH'
11808 if test "$GCC" = yes; then
11809 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11810 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11812 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11813 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11817 sysv5* | sco3.2v5* | sco5v6*)
11818 # Note: We can NOT use -z defs as we might desire, because we do not
11819 # link with -lc, and that would cause any symbols used from libc to
11820 # always be unresolved, which means just about no library would
11821 # ever link correctly. If we're not using GNU ld we use -z text
11822 # though, which does catch some bad symbols but isn't as heavy-handed
11824 no_undefined_flag='${wl}-z,text'
11825 allow_undefined_flag='${wl}-z,nodefs'
11826 archive_cmds_need_lc=no
11827 hardcode_shlibpath_var=no
11828 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11829 hardcode_libdir_separator=':'
11830 link_all_deplibs=yes
11831 export_dynamic_flag_spec='${wl}-Bexport'
11832 runpath_var='LD_RUN_PATH'
11834 if test "$GCC" = yes; then
11835 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11836 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11838 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11839 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11845 hardcode_libdir_flag_spec='-L$libdir'
11846 hardcode_shlibpath_var=no
11854 if test x$host_vendor = xsni; then
11856 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11857 export_dynamic_flag_spec='${wl}-Blargedynsym'
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11864 $as_echo "$ld_shlibs" >&6; }
11865 test "$ld_shlibs" = no && can_build_shared=no
11867 with_gnu_ld=$with_gnu_ld
11884 # Do we need to explicitly link libc?
11886 case "x$archive_cmds_need_lc" in
11888 # Assume -lc should be added
11889 archive_cmds_need_lc=yes
11891 if test "$enable_shared" = yes && test "$GCC" = yes; then
11892 case $archive_cmds in
11894 # FIXME: we may have to deal with multi-command sequences.
11897 # Test whether the compiler implicitly links with -lc since on some
11898 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11899 # to ld, don't add -lc before -lgcc.
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11901 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11902 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11903 $as_echo_n "(cached) " >&6
11906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11909 (eval $ac_compile) 2>&5
11911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11912 test $ac_status = 0; } 2>conftest.err; then
11915 libobjs=conftest.$ac_objext
11917 wl=$lt_prog_compiler_wl
11918 pic_flag=$lt_prog_compiler_pic
11924 lt_save_allow_undefined_flag=$allow_undefined_flag
11925 allow_undefined_flag=
11926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11927 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11930 test $ac_status = 0; }
11932 lt_cv_archive_cmds_need_lc=no
11934 lt_cv_archive_cmds_need_lc=yes
11936 allow_undefined_flag=$lt_save_allow_undefined_flag
11938 cat conftest.err 1>&5
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11944 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11945 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12104 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12106 if test "$GCC" = yes; then
12108 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12109 *) lt_awk_arg="/^libraries:/" ;;
12112 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12113 *) lt_sed_strip_eq="s,=/,/,g" ;;
12115 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12116 case $lt_search_path_spec in
12118 # if the path contains ";" then we assume it to be the separator
12119 # otherwise default to the standard path separator (i.e. ":") - it is
12120 # assumed that no part of a normal pathname contains ";" but that should
12121 # okay in the real world where ";" in dirpaths is itself problematic.
12122 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12125 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12128 # Ok, now we have the path, separated by spaces, we can step through it
12129 # and add multilib dir if necessary.
12130 lt_tmp_lt_search_path_spec=
12131 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12132 for lt_sys_path in $lt_search_path_spec; do
12133 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12134 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12136 test -d "$lt_sys_path" && \
12137 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12140 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12141 BEGIN {RS=" "; FS="/|\n";} {
12144 for (lt_i = NF; lt_i > 0; lt_i--) {
12145 if ($lt_i != "" && $lt_i != ".") {
12146 if ($lt_i == "..") {
12149 if (lt_count == 0) {
12150 lt_foo="/" $lt_i lt_foo;
12157 if (lt_foo != "") { lt_freq[lt_foo]++; }
12158 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12160 # AWK program above erroneously prepends '/' to C:/dos/paths
12163 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12164 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12166 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12168 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12170 library_names_spec=
12171 libname_spec='lib$name'
12175 postuninstall_cmds=
12179 shlibpath_overrides_runpath=unknown
12181 dynamic_linker="$host_os ld.so"
12182 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12183 need_lib_prefix=unknown
12184 hardcode_into_libs=no
12186 # when you set need_version to no, make sure it does not cause -set_version
12187 # flags to be left without arguments
12188 need_version=unknown
12192 version_type=linux # correct to gnu/linux during the next big refactor
12193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12194 shlibpath_var=LIBPATH
12196 # AIX 3 has no versioning support, so we append a major version to the name.
12197 soname_spec='${libname}${release}${shared_ext}$major'
12201 version_type=linux # correct to gnu/linux during the next big refactor
12204 hardcode_into_libs=yes
12205 if test "$host_cpu" = ia64; then
12206 # AIX 5 supports IA64
12207 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12208 shlibpath_var=LD_LIBRARY_PATH
12210 # With GCC up to 2.95.x, collect2 would create an import file
12211 # for dependence libraries. The import file would start with
12212 # the line `#! .'. This would cause the generated library to
12213 # depend on `.', always an invalid library. This was fixed in
12214 # development snapshots of GCC prior to 3.0.
12216 aix4 | aix4.[01] | aix4.[01].*)
12217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12219 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12222 can_build_shared=no
12226 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12227 # soname into executable. Probably we can add versioning support to
12228 # collect2, so additional links can be useful in future.
12229 if test "$aix_use_runtimelinking" = yes; then
12230 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12231 # instead of lib<name>.a to let people know that these are not
12232 # typical AIX shared libraries.
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235 # We preserve .a as extension for shared libraries through AIX4.2
12236 # and later when we are not doing run time linking.
12237 library_names_spec='${libname}${release}.a $libname.a'
12238 soname_spec='${libname}${release}${shared_ext}$major'
12240 shlibpath_var=LIBPATH
12247 # Since July 2007 AmigaOS4 officially supports .so libraries.
12248 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12252 library_names_spec='$libname.ixlibrary $libname.a'
12253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12254 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'
12260 library_names_spec='${libname}${shared_ext}'
12261 dynamic_linker="$host_os ld.so"
12262 shlibpath_var=LIBRARY_PATH
12266 version_type=linux # correct to gnu/linux during the next big refactor
12268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12269 soname_spec='${libname}${release}${shared_ext}$major'
12270 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12271 shlibpath_var=LD_LIBRARY_PATH
12272 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12273 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12274 # the default ld.so.conf also contains /usr/contrib/lib and
12275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12276 # libtool to hard-code these into programs
12279 cygwin* | mingw* | pw32* | cegcc*)
12280 version_type=windows
12285 case $GCC,$cc_basename in
12288 library_names_spec='$libname.dll.a'
12289 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12290 postinstall_cmds='base_file=`basename \${file}`~
12291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12292 dldir=$destdir/`dirname \$dlpath`~
12293 test -d \$dldir || mkdir -p \$dldir~
12294 $install_prog $dir/$dlname \$dldir/$dlname~
12295 chmod a+x \$dldir/$dlname~
12296 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12297 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12299 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12300 dlpath=$dir/\$dldll~
12302 shlibpath_overrides_runpath=yes
12306 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12307 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12309 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12312 # MinGW DLLs use traditional 'lib' prefix
12313 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12316 # pw32 DLLs use 'pw' prefix rather than 'lib'
12317 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12320 dynamic_linker='Win32 ld.exe'
12325 libname_spec='$name'
12326 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12327 library_names_spec='${libname}.dll.lib'
12331 sys_lib_search_path_spec=
12334 for lt_path in $LIB
12337 # Let DOS variable expansion print the short 8.3 style file name.
12338 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12339 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12342 # Convert to MSYS style.
12343 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12346 # Convert to unix form, then to dos form, then back to unix form
12347 # but this time dos style (no spaces!) so that the unix form looks
12348 # like /cygdrive/c/PROGRA~1:/cygdr...
12349 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12350 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12351 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12354 sys_lib_search_path_spec="$LIB"
12355 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12356 # It is most probably a Windows format PATH.
12357 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12359 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12361 # FIXME: find the short name or the path components, as spaces are
12362 # common. (e.g. "Program Files" -> "PROGRA~1")
12366 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12367 postinstall_cmds='base_file=`basename \${file}`~
12368 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12369 dldir=$destdir/`dirname \$dlpath`~
12370 test -d \$dldir || mkdir -p \$dldir~
12371 $install_prog $dir/$dlname \$dldir/$dlname'
12372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12373 dlpath=$dir/\$dldll~
12375 shlibpath_overrides_runpath=yes
12376 dynamic_linker='Win32 link.exe'
12380 # Assume MSVC wrapper
12381 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12382 dynamic_linker='Win32 ld.exe'
12385 # FIXME: first we should search . and the directory the executable is in
12389 darwin* | rhapsody*)
12390 dynamic_linker="$host_os dyld"
12391 version_type=darwin
12394 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12395 soname_spec='${libname}${release}${major}$shared_ext'
12396 shlibpath_overrides_runpath=yes
12397 shlibpath_var=DYLD_LIBRARY_PATH
12398 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12400 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12401 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12405 version_type=linux # correct to gnu/linux during the next big refactor
12408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12409 soname_spec='${libname}${release}${shared_ext}$major'
12410 shlibpath_var=LD_LIBRARY_PATH
12413 freebsd* | dragonfly*)
12414 # DragonFly does not have aout. When/if they implement a new
12415 # versioning mechanism, adjust this.
12416 if test -x /usr/bin/objformat; then
12417 objformat=`/usr/bin/objformat`
12420 freebsd[23].*) objformat=aout ;;
12421 *) objformat=elf ;;
12424 version_type=freebsd-$objformat
12425 case $version_type in
12427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12436 shlibpath_var=LD_LIBRARY_PATH
12439 shlibpath_overrides_runpath=yes
12441 freebsd3.[01]* | freebsdelf3.[01]*)
12442 shlibpath_overrides_runpath=yes
12443 hardcode_into_libs=yes
12445 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12446 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12447 shlibpath_overrides_runpath=no
12448 hardcode_into_libs=yes
12450 *) # from 4.6 on, and DragonFly
12451 shlibpath_overrides_runpath=yes
12452 hardcode_into_libs=yes
12458 version_type=linux # correct to gnu/linux during the next big refactor
12461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12462 soname_spec='${libname}${release}${shared_ext}$major'
12463 shlibpath_var=LD_LIBRARY_PATH
12464 shlibpath_overrides_runpath=no
12465 hardcode_into_libs=yes
12469 version_type=linux # correct to gnu/linux during the next big refactor
12472 dynamic_linker="$host_os runtime_loader"
12473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12474 soname_spec='${libname}${release}${shared_ext}$major'
12475 shlibpath_var=LIBRARY_PATH
12476 shlibpath_overrides_runpath=yes
12477 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12478 hardcode_into_libs=yes
12481 hpux9* | hpux10* | hpux11*)
12482 # Give a soname corresponding to the major version so that dld.sl refuses to
12483 # link against other versions.
12490 hardcode_into_libs=yes
12491 dynamic_linker="$host_os dld.so"
12492 shlibpath_var=LD_LIBRARY_PATH
12493 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12495 soname_spec='${libname}${release}${shared_ext}$major'
12496 if test "X$HPUX_IA64_MODE" = X32; then
12497 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12499 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12505 hardcode_into_libs=yes
12506 dynamic_linker="$host_os dld.sl"
12507 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12510 soname_spec='${libname}${release}${shared_ext}$major'
12511 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12516 dynamic_linker="$host_os dld.sl"
12517 shlibpath_var=SHLIB_PATH
12518 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12520 soname_spec='${libname}${release}${shared_ext}$major'
12523 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12524 postinstall_cmds='chmod 555 $lib'
12525 # or fails outright, so override atomically:
12526 install_override_mode=555
12530 version_type=linux # correct to gnu/linux during the next big refactor
12533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12534 soname_spec='${libname}${release}${shared_ext}$major'
12535 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12536 shlibpath_var=LD_LIBRARY_PATH
12537 shlibpath_overrides_runpath=no
12538 hardcode_into_libs=yes
12541 irix5* | irix6* | nonstopux*)
12543 nonstopux*) version_type=nonstopux ;;
12545 if test "$lt_cv_prog_gnu_ld" = yes; then
12546 version_type=linux # correct to gnu/linux during the next big refactor
12553 soname_spec='${libname}${release}${shared_ext}$major'
12554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12556 irix5* | nonstopux*)
12557 libsuff= shlibsuff=
12560 case $LD in # libtool.m4 will add one of these switches to LD
12561 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12562 libsuff= shlibsuff= libmagic=32-bit;;
12563 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12564 libsuff=32 shlibsuff=N32 libmagic=N32;;
12565 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12566 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12567 *) libsuff= shlibsuff= libmagic=never-match;;
12571 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12572 shlibpath_overrides_runpath=no
12573 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12574 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12575 hardcode_into_libs=yes
12578 # No shared lib support for Linux oldld, aout, or coff.
12579 linux*oldld* | linux*aout* | linux*coff*)
12583 # This must be glibc/ELF.
12584 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12585 version_type=linux # correct to gnu/linux during the next big refactor
12588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12589 soname_spec='${libname}${release}${shared_ext}$major'
12590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12591 shlibpath_var=LD_LIBRARY_PATH
12592 shlibpath_overrides_runpath=no
12594 # Some binutils ld are patched to set DT_RUNPATH
12595 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12596 $as_echo_n "(cached) " >&6
12598 lt_cv_shlibpath_overrides_runpath=no
12599 save_LDFLAGS=$LDFLAGS
12600 save_libdir=$libdir
12601 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12602 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12614 if ac_fn_c_try_link "$LINENO"; then :
12615 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12616 lt_cv_shlibpath_overrides_runpath=yes
12619 rm -f core conftest.err conftest.$ac_objext \
12620 conftest$ac_exeext conftest.$ac_ext
12621 LDFLAGS=$save_LDFLAGS
12622 libdir=$save_libdir
12626 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12628 # This implies no fast_install, which is unacceptable.
12629 # Some rework will be needed to allow for fast_install
12630 # before this can be enabled.
12631 hardcode_into_libs=yes
12633 # Append ld.so.conf contents to the search path
12634 if test -f /etc/ld.so.conf; then
12635 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' ' '`
12636 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12639 # We used to test for /lib/ld.so.1 and disable shared libraries on
12640 # powerpc, because MkLinux only supported shared libraries with the
12641 # GNU dynamic linker. Since this was broken with cross compilers,
12642 # most powerpc-linux boxes support dynamic linking these days and
12643 # people can always --disable-shared, the test was removed, and we
12644 # assume the GNU/Linux dynamic linker is in use.
12645 dynamic_linker='GNU/Linux ld.so'
12652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12655 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
12661 shlibpath_var=LD_LIBRARY_PATH
12662 shlibpath_overrides_runpath=yes
12663 hardcode_into_libs=yes
12667 version_type=linux # correct to gnu/linux during the next big refactor
12668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12669 shlibpath_var=LD_LIBRARY_PATH
12670 shlibpath_overrides_runpath=yes
12677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12678 soname_spec='${libname}${release}${shared_ext}$major'
12679 shlibpath_var=LD_LIBRARY_PATH
12680 shlibpath_overrides_runpath=no
12681 hardcode_into_libs=yes
12682 dynamic_linker='ldqnx.so'
12687 sys_lib_dlsearch_path_spec="/usr/lib"
12689 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12691 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12692 *) need_version=no ;;
12694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12696 shlibpath_var=LD_LIBRARY_PATH
12697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12699 openbsd2.[89] | openbsd2.[89].*)
12700 shlibpath_overrides_runpath=no
12703 shlibpath_overrides_runpath=yes
12707 shlibpath_overrides_runpath=yes
12712 libname_spec='$name'
12715 library_names_spec='$libname${shared_ext} $libname.a'
12716 dynamic_linker='OS/2 ld.exe'
12717 shlibpath_var=LIBPATH
12720 osf3* | osf4* | osf5*)
12724 soname_spec='${libname}${release}${shared_ext}$major'
12725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12726 shlibpath_var=LD_LIBRARY_PATH
12727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12728 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12736 version_type=linux # correct to gnu/linux during the next big refactor
12739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12740 soname_spec='${libname}${release}${shared_ext}$major'
12741 shlibpath_var=LD_LIBRARY_PATH
12742 shlibpath_overrides_runpath=yes
12743 hardcode_into_libs=yes
12744 # ldd complains unless libraries are executable
12745 postinstall_cmds='chmod +x $lib'
12750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12752 shlibpath_var=LD_LIBRARY_PATH
12753 shlibpath_overrides_runpath=yes
12754 if test "$with_gnu_ld" = yes; then
12761 version_type=linux # correct to gnu/linux during the next big refactor
12762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12763 soname_spec='${libname}${release}${shared_ext}$major'
12764 shlibpath_var=LD_LIBRARY_PATH
12765 case $host_vendor in
12767 shlibpath_overrides_runpath=no
12769 runpath_var=LD_RUN_PATH
12777 shlibpath_overrides_runpath=no
12778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12784 if test -d /usr/nec ;then
12785 version_type=linux # correct to gnu/linux during the next big refactor
12786 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12787 soname_spec='$libname${shared_ext}.$major'
12788 shlibpath_var=LD_LIBRARY_PATH
12792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12793 version_type=freebsd-elf
12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12797 soname_spec='${libname}${release}${shared_ext}$major'
12798 shlibpath_var=LD_LIBRARY_PATH
12799 shlibpath_overrides_runpath=yes
12800 hardcode_into_libs=yes
12801 if test "$with_gnu_ld" = yes; then
12802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12804 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12807 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12811 sys_lib_dlsearch_path_spec='/usr/lib'
12815 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12816 version_type=linux # correct to gnu/linux during the next big refactor
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820 shlibpath_var=LD_LIBRARY_PATH
12821 shlibpath_overrides_runpath=no
12822 hardcode_into_libs=yes
12826 version_type=linux # correct to gnu/linux during the next big refactor
12827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12828 soname_spec='${libname}${release}${shared_ext}$major'
12829 shlibpath_var=LD_LIBRARY_PATH
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12837 $as_echo "$dynamic_linker" >&6; }
12838 test "$dynamic_linker" = no && can_build_shared=no
12840 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12841 if test "$GCC" = yes; then
12842 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12845 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12846 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12848 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12849 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12944 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12946 if test -n "$hardcode_libdir_flag_spec" ||
12947 test -n "$runpath_var" ||
12948 test "X$hardcode_automatic" = "Xyes" ; then
12950 # We can hardcode non-existent directories.
12951 if test "$hardcode_direct" != no &&
12952 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12953 # have to relink, otherwise we might link with an installed library
12954 # when we should be linking with a yet-to-be-installed one
12955 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12956 test "$hardcode_minus_L" != no; then
12957 # Linking always hardcodes the temporary library directory.
12958 hardcode_action=relink
12960 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12961 hardcode_action=immediate
12964 # We cannot hardcode anything, or else we can only hardcode existing
12966 hardcode_action=unsupported
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12969 $as_echo "$hardcode_action" >&6; }
12971 if test "$hardcode_action" = relink ||
12972 test "$inherit_rpath" = yes; then
12973 # Fast installation is not supported
12974 enable_fast_install=no
12975 elif test "$shlibpath_overrides_runpath" = yes ||
12976 test "$enable_shared" = no; then
12977 # Fast installation is not necessary
12978 enable_fast_install=needless
12986 if test "x$enable_dlopen" != xyes; then
12987 enable_dlopen=unknown
12988 enable_dlopen_self=unknown
12989 enable_dlopen_self_static=unknown
12996 lt_cv_dlopen="load_add_on"
12998 lt_cv_dlopen_self=yes
13001 mingw* | pw32* | cegcc*)
13002 lt_cv_dlopen="LoadLibrary"
13007 lt_cv_dlopen="dlopen"
13012 # if libdl is installed we need to link against it
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13014 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13015 if ${ac_cv_lib_dl_dlopen+:} false; then :
13016 $as_echo_n "(cached) " >&6
13018 ac_check_lib_save_LIBS=$LIBS
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13023 /* Override any GCC internal prototype to avoid an error.
13024 Use char because int might match the return type of a GCC
13025 builtin and then its argument prototype would still apply. */
13038 if ac_fn_c_try_link "$LINENO"; then :
13039 ac_cv_lib_dl_dlopen=yes
13041 ac_cv_lib_dl_dlopen=no
13043 rm -f core conftest.err conftest.$ac_objext \
13044 conftest$ac_exeext conftest.$ac_ext
13045 LIBS=$ac_check_lib_save_LIBS
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13048 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13049 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13053 lt_cv_dlopen="dyld"
13055 lt_cv_dlopen_self=yes
13062 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13063 if test "x$ac_cv_func_shl_load" = xyes; then :
13064 lt_cv_dlopen="shl_load"
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13067 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13068 if ${ac_cv_lib_dld_shl_load+:} false; then :
13069 $as_echo_n "(cached) " >&6
13071 ac_check_lib_save_LIBS=$LIBS
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13076 /* Override any GCC internal prototype to avoid an error.
13077 Use char because int might match the return type of a GCC
13078 builtin and then its argument prototype would still apply. */
13086 return shl_load ();
13091 if ac_fn_c_try_link "$LINENO"; then :
13092 ac_cv_lib_dld_shl_load=yes
13094 ac_cv_lib_dld_shl_load=no
13096 rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13098 LIBS=$ac_check_lib_save_LIBS
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13101 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13102 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13103 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13105 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13106 if test "x$ac_cv_func_dlopen" = xyes; then :
13107 lt_cv_dlopen="dlopen"
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13110 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13111 if ${ac_cv_lib_dl_dlopen+:} false; then :
13112 $as_echo_n "(cached) " >&6
13114 ac_check_lib_save_LIBS=$LIBS
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13119 /* Override any GCC internal prototype to avoid an error.
13120 Use char because int might match the return type of a GCC
13121 builtin and then its argument prototype would still apply. */
13134 if ac_fn_c_try_link "$LINENO"; then :
13135 ac_cv_lib_dl_dlopen=yes
13137 ac_cv_lib_dl_dlopen=no
13139 rm -f core conftest.err conftest.$ac_objext \
13140 conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13144 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13145 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13146 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13149 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13150 if ${ac_cv_lib_svld_dlopen+:} false; then :
13151 $as_echo_n "(cached) " >&6
13153 ac_check_lib_save_LIBS=$LIBS
13154 LIBS="-lsvld $LIBS"
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13173 if ac_fn_c_try_link "$LINENO"; then :
13174 ac_cv_lib_svld_dlopen=yes
13176 ac_cv_lib_svld_dlopen=no
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_lib_save_LIBS
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13183 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13184 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13188 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13189 if ${ac_cv_lib_dld_dld_link+:} false; then :
13190 $as_echo_n "(cached) " >&6
13192 ac_check_lib_save_LIBS=$LIBS
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13197 /* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13207 return dld_link ();
13212 if ac_fn_c_try_link "$LINENO"; then :
13213 ac_cv_lib_dld_dld_link=yes
13215 ac_cv_lib_dld_dld_link=no
13217 rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219 LIBS=$ac_check_lib_save_LIBS
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13222 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13223 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13224 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13245 if test "x$lt_cv_dlopen" != xno; then
13251 case $lt_cv_dlopen in
13253 save_CPPFLAGS="$CPPFLAGS"
13254 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13256 save_LDFLAGS="$LDFLAGS"
13257 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13260 LIBS="$lt_cv_dlopen_libs $LIBS"
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13263 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13264 if ${lt_cv_dlopen_self+:} false; then :
13265 $as_echo_n "(cached) " >&6
13267 if test "$cross_compiling" = yes; then :
13268 lt_cv_dlopen_self=cross
13270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13271 lt_status=$lt_dlunknown
13272 cat > conftest.$ac_ext <<_LT_EOF
13273 #line $LINENO "configure"
13274 #include "confdefs.h"
13283 # define LT_DLGLOBAL RTLD_GLOBAL
13286 # define LT_DLGLOBAL DL_GLOBAL
13288 # define LT_DLGLOBAL 0
13292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13293 find out it does not work in some platform. */
13294 #ifndef LT_DLLAZY_OR_NOW
13296 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13299 # define LT_DLLAZY_OR_NOW DL_LAZY
13302 # define LT_DLLAZY_OR_NOW RTLD_NOW
13305 # define LT_DLLAZY_OR_NOW DL_NOW
13307 # define LT_DLLAZY_OR_NOW 0
13314 /* When -fvisbility=hidden is used, assume the code has been annotated
13315 correspondingly for the symbols needed. */
13316 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13317 int fnord () __attribute__((visibility("default")));
13320 int fnord () { return 42; }
13323 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13324 int status = $lt_dlunknown;
13328 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13331 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13332 else puts (dlerror ());
13334 /* dlclose (self); */
13342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13343 (eval $ac_link) 2>&5
13345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13346 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13347 (./conftest; exit; ) >&5 2>/dev/null
13349 case x$lt_status in
13350 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13351 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13352 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13355 # compilation failed
13356 lt_cv_dlopen_self=no
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13364 $as_echo "$lt_cv_dlopen_self" >&6; }
13366 if test "x$lt_cv_dlopen_self" = xyes; then
13367 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13369 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13370 if ${lt_cv_dlopen_self_static+:} false; then :
13371 $as_echo_n "(cached) " >&6
13373 if test "$cross_compiling" = yes; then :
13374 lt_cv_dlopen_self_static=cross
13376 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13377 lt_status=$lt_dlunknown
13378 cat > conftest.$ac_ext <<_LT_EOF
13379 #line $LINENO "configure"
13380 #include "confdefs.h"
13389 # define LT_DLGLOBAL RTLD_GLOBAL
13392 # define LT_DLGLOBAL DL_GLOBAL
13394 # define LT_DLGLOBAL 0
13398 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13399 find out it does not work in some platform. */
13400 #ifndef LT_DLLAZY_OR_NOW
13402 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13405 # define LT_DLLAZY_OR_NOW DL_LAZY
13408 # define LT_DLLAZY_OR_NOW RTLD_NOW
13411 # define LT_DLLAZY_OR_NOW DL_NOW
13413 # define LT_DLLAZY_OR_NOW 0
13420 /* When -fvisbility=hidden is used, assume the code has been annotated
13421 correspondingly for the symbols needed. */
13422 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13423 int fnord () __attribute__((visibility("default")));
13426 int fnord () { return 42; }
13429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13430 int status = $lt_dlunknown;
13434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13437 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13438 else puts (dlerror ());
13440 /* dlclose (self); */
13448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13449 (eval $ac_link) 2>&5
13451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13452 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13453 (./conftest; exit; ) >&5 2>/dev/null
13455 case x$lt_status in
13456 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13457 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13458 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13461 # compilation failed
13462 lt_cv_dlopen_self_static=no
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13470 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13473 CPPFLAGS="$save_CPPFLAGS"
13474 LDFLAGS="$save_LDFLAGS"
13479 case $lt_cv_dlopen_self in
13480 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13481 *) enable_dlopen_self=unknown ;;
13484 case $lt_cv_dlopen_self_static in
13485 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13486 *) enable_dlopen_self_static=unknown ;;
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13509 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13510 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13511 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13512 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13514 $as_echo "yes" >&6; }
13516 # FIXME - insert some real tests, host_os isn't really good enough
13519 if test -n "$STRIP" ; then
13520 striplib="$STRIP -x"
13521 old_striplib="$STRIP -S"
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13523 $as_echo "yes" >&6; }
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 $as_echo "no" >&6; }
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531 $as_echo "no" >&6; }
13547 # Report which library types will actually be built
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13549 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13551 $as_echo "$can_build_shared" >&6; }
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13554 $as_echo_n "checking whether to build shared libraries... " >&6; }
13555 test "$can_build_shared" = "no" && enable_shared=no
13557 # On AIX, shared libraries and static libraries use the same namespace, and
13558 # are all built from PIC.
13561 test "$enable_shared" = yes && enable_static=no
13562 if test -n "$RANLIB"; then
13563 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13564 postinstall_cmds='$RANLIB $lib'
13569 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13570 test "$enable_shared" = yes && enable_static=no
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13575 $as_echo "$enable_shared" >&6; }
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13578 $as_echo_n "checking whether to build static libraries... " >&6; }
13579 # Make sure either enable_shared or enable_static is yes.
13580 test "$enable_shared" = yes || enable_static=yes
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13582 $as_echo "$enable_static" >&6; }
13589 ac_cpp='$CPP $CPPFLAGS'
13590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13610 ac_config_commands="$ac_config_commands libtool"
13615 # Only expand once:
13619 if test "$enable_shared" = "no"; then
13624 ac_cv_func_dlopen=no
13626 eval _shrext="$shrext_cmds"
13627 # Darwin uses .dylib for libraries but .so for modules
13628 if test X"$_shrext" = X".dylib"; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
13635 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
13637 # Check whether --with-noexec was given.
13638 if test "${with_noexec+set}" = set; then :
13639 withval=$with_noexec; case $with_noexec in
13640 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
13646 with_noexec="$libexecdir/sudo_noexec$_shrext"
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
13650 $as_echo "$with_noexec" >&6; }
13651 NOEXECFILE="sudo_noexec$_shrext"
13652 NOEXECDIR="`echo $with_noexec|sed -e 's:^${\([^}]*\)}:$(\1):' -e 's:^\(.*\)/[^/]*:\1:'`"
13654 # Extract the first word of "uname", so it can be a program name with args.
13655 set dummy uname; ac_word=$2
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13657 $as_echo_n "checking for $ac_word... " >&6; }
13658 if ${ac_cv_path_UNAMEPROG+:} false; then :
13659 $as_echo_n "(cached) " >&6
13663 ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path.
13666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13667 for as_dir in $PATH
13670 test -z "$as_dir" && as_dir=.
13671 for ac_exec_ext in '' $ac_executable_extensions; do
13672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13673 ac_cv_path_UNAMEPROG="$as_dir/$ac_word$ac_exec_ext"
13674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13681 test -z "$ac_cv_path_UNAMEPROG" && ac_cv_path_UNAMEPROG="uname"
13685 UNAMEPROG=$ac_cv_path_UNAMEPROG
13686 if test -n "$UNAMEPROG"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
13688 $as_echo "$UNAMEPROG" >&6; }
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691 $as_echo "no" >&6; }
13695 # Extract the first word of "tr", so it can be a program name with args.
13696 set dummy tr; ac_word=$2
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698 $as_echo_n "checking for $ac_word... " >&6; }
13699 if ${ac_cv_path_TRPROG+:} false; then :
13700 $as_echo_n "(cached) " >&6
13704 ac_cv_path_TRPROG="$TRPROG" # Let the user override the test with a path.
13707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708 for as_dir in $PATH
13711 test -z "$as_dir" && as_dir=.
13712 for ac_exec_ext in '' $ac_executable_extensions; do
13713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13714 ac_cv_path_TRPROG="$as_dir/$ac_word$ac_exec_ext"
13715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13722 test -z "$ac_cv_path_TRPROG" && ac_cv_path_TRPROG="tr"
13726 TRPROG=$ac_cv_path_TRPROG
13727 if test -n "$TRPROG"; then
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
13729 $as_echo "$TRPROG" >&6; }
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13732 $as_echo "no" >&6; }
13736 # Extract the first word of "mandoc", so it can be a program name with args.
13737 set dummy mandoc; ac_word=$2
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13739 $as_echo_n "checking for $ac_word... " >&6; }
13740 if ${ac_cv_path_MANDOCPROG+:} false; then :
13741 $as_echo_n "(cached) " >&6
13743 case $MANDOCPROG in
13745 ac_cv_path_MANDOCPROG="$MANDOCPROG" # Let the user override the test with a path.
13748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749 for as_dir in $PATH
13752 test -z "$as_dir" && as_dir=.
13753 for ac_exec_ext in '' $ac_executable_extensions; do
13754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13755 ac_cv_path_MANDOCPROG="$as_dir/$ac_word$ac_exec_ext"
13756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13763 test -z "$ac_cv_path_MANDOCPROG" && ac_cv_path_MANDOCPROG="mandoc"
13767 MANDOCPROG=$ac_cv_path_MANDOCPROG
13768 if test -n "$MANDOCPROG"; then
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOCPROG" >&5
13770 $as_echo "$MANDOCPROG" >&6; }
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773 $as_echo "no" >&6; }
13777 if test "$MANDOCPROG" != "mandoc"; then
13778 : ${MANTYPE='mdoc'}
13780 # Extract the first word of "nroff", so it can be a program name with args.
13781 set dummy nroff; ac_word=$2
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13783 $as_echo_n "checking for $ac_word... " >&6; }
13784 if ${ac_cv_path_NROFFPROG+:} false; then :
13785 $as_echo_n "(cached) " >&6
13789 ac_cv_path_NROFFPROG="$NROFFPROG" # Let the user override the test with a path.
13792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13793 for as_dir in $PATH
13796 test -z "$as_dir" && as_dir=.
13797 for ac_exec_ext in '' $ac_executable_extensions; do
13798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13799 ac_cv_path_NROFFPROG="$as_dir/$ac_word$ac_exec_ext"
13800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13810 NROFFPROG=$ac_cv_path_NROFFPROG
13811 if test -n "$NROFFPROG"; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
13813 $as_echo "$NROFFPROG" >&6; }
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816 $as_echo "no" >&6; }
13820 if test -n "$NROFFPROG"; then
13821 test -n "$MANTYPE" && sudo_cv_var_mantype="$MANTYPE"
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which macro set to use for manual pages" >&5
13823 $as_echo_n "checking which macro set to use for manual pages... " >&6; }
13824 if ${sudo_cv_var_mantype+:} false; then :
13825 $as_echo_n "(cached) " >&6
13828 sudo_cv_var_mantype="man"
13829 echo ".Sh NAME" > conftest
13830 echo ".Nm sudo" >> conftest
13831 echo ".Nd sudo" >> conftest
13832 echo ".Sh DESCRIPTION" >> conftest
13833 echo "sudo" >> conftest
13834 if $NROFFPROG -mdoc conftest >/dev/null 2>&1; then
13835 sudo_cv_var_mantype="mdoc"
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_mantype" >&5
13842 $as_echo "$sudo_cv_var_mantype" >&6; }
13843 MANTYPE="$sudo_cv_var_mantype"
13847 mansrcdir='$(srcdir)'
13851 if test -n "$sudo_cv_prev_host"; then
13852 if test "$sudo_cv_prev_host" != "$host"; then
13853 as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
13856 $as_echo_n "checking previous host type... " >&6; }
13857 if ${sudo_cv_prev_host+:} false; then :
13858 $as_echo_n "(cached) " >&6
13860 sudo_cv_prev_host="$host"
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
13864 $as_echo "$sudo_cv_prev_host" >&6; }
13867 # this will produce no output since there is no cached value
13868 if ${sudo_cv_prev_host+:} false; then :
13869 $as_echo_n "(cached) " >&6
13871 sudo_cv_prev_host="$host"
13876 if test -n "$host_os"; then
13877 OS=`echo $host_os | sed 's/[0-9].*//'`
13878 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
13879 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
13888 # LD_PRELOAD is space-delimited
13889 RTLD_PRELOAD_DELIM=" "
13891 # getcwd(3) opens a pipe to getpwd(1)!?!
13894 # system headers lack prototypes but gcc helps...
13895 if test -n "$GCC"; then
13896 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
13899 shadow_funcs="getpwanam issecure"
13902 # LD_PRELOAD is space-delimited
13903 RTLD_PRELOAD_DELIM=" "
13905 # For implementing getgrouplist()
13906 for ac_func in _getgroupsbymember
13908 ac_fn_c_check_func "$LINENO" "_getgroupsbymember" "ac_cv_func__getgroupsbymember"
13909 if test "x$ac_cv_func__getgroupsbymember" = xyes; then :
13910 cat >>confdefs.h <<_ACEOF
13911 #define HAVE__GETGROUPSBYMEMBER 1
13918 # To get the crypt(3) prototype (so we pass -Wall)
13919 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13920 # AFS support needs -lucb
13921 if test "$with_AFS" = "yes"; then
13922 AFS_LIBS="-lc -lucb"
13924 : ${mansectsu='1m'}
13925 : ${mansectform='4'}
13926 : ${with_rpath='yes'}
13927 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13928 for ac_func in priv_set
13930 ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
13931 if test "x$ac_cv_func_priv_set" = xyes; then :
13932 cat >>confdefs.h <<_ACEOF
13933 #define HAVE_PRIV_SET 1
13941 # To get all prototypes (so we pass -Wall)
13942 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
13943 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
13944 if test X"$with_blibpath" != X"no"; then
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
13946 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
13947 O_LDFLAGS="$LDFLAGS"
13948 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13960 if ac_fn_c_try_link "$LINENO"; then :
13962 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
13963 blibpath="$with_blibpath"
13964 elif test -n "$GCC"; then
13965 blibpath="/usr/lib:/lib:/usr/local/lib"
13967 blibpath="/usr/lib:/lib"
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13970 $as_echo "yes" >&6; }
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13974 $as_echo "no" >&6; }
13976 rm -f core conftest.err conftest.$ac_objext \
13977 conftest$ac_exeext conftest.$ac_ext
13979 LDFLAGS="$O_LDFLAGS"
13981 # On AIX 6 and higher default to PAM, else default to LAM
13982 if test $OSMAJOR -ge 6; then
13983 if test X"$with_pam" = X""; then
13984 AUTH_EXCL_DEF="PAM"
13987 if test X"$with_aixauth" = X""; then
13988 for ac_func in authenticate
13990 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
13991 if test "x$ac_cv_func_authenticate" = xyes; then :
13992 cat >>confdefs.h <<_ACEOF
13993 #define HAVE_AUTHENTICATE 1
13995 AUTH_EXCL_DEF="AIX_AUTH"
14002 # AIX analog of nsswitch.conf, enabled by default
14004 # Check whether --with-netsvc was given.
14005 if test "${with_netsvc+set}" = set; then :
14006 withval=$with_netsvc; case $with_netsvc in
14008 yes) with_netsvc="/etc/netsvc.conf"
14014 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
14015 with_netsvc="/etc/netsvc.conf"
14018 # For implementing getgrouplist()
14019 for ac_func in getgrset
14021 ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
14022 if test "x$ac_cv_func_getgrset" = xyes; then :
14023 cat >>confdefs.h <<_ACEOF
14024 #define HAVE_GETGRSET 1
14031 # LDR_PRELOAD is only supported in AIX 5.3 and later
14032 if test $OSMAJOR -lt 5; then
14035 RTLD_PRELOAD_VAR="LDR_PRELOAD"
14038 # AIX-specific functions
14039 for ac_func in getuserattr setauthdb
14041 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14042 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14043 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14044 cat >>confdefs.h <<_ACEOF
14045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14051 COMMON_OBJS="$COMMON_OBJS aix.lo"
14054 : ${mansectsu='1m'}
14055 : ${mansectform='4'}
14057 # HP-UX shared libs must be executable
14061 # AFS support needs -lBSD
14062 if test "$with_AFS" = "yes"; then
14063 AFS_LIBS="-lc -lBSD"
14065 : ${mansectsu='1m'}
14066 : ${mansectform='4'}
14068 # HP-UX shared libs must be executable
14071 # The HP bundled compiler cannot generate shared libs
14072 if test -z "$GCC"; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
14074 $as_echo_n "checking for HP bundled C compiler... " >&6; }
14075 if ${sudo_cv_var_hpccbundled+:} false; then :
14076 $as_echo_n "(cached) " >&6
14078 if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
14079 sudo_cv_var_hpccbundled=yes
14081 sudo_cv_var_hpccbundled=no
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
14086 $as_echo "$sudo_cv_var_hpccbundled" >&6; }
14087 if test "$sudo_cv_var_hpccbundled" = "yes"; then
14088 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
14092 # Build PA-RISC1.1 objects for better portability
14093 case "$host_cpu" in
14096 if test -n "$GCC"; then
14097 portable_flag="-march=1.1"
14099 portable_flag="+DAportable"
14101 CFLAGS="$CFLAGS $portable_flag"
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
14103 $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
14104 if ${sudo_cv_var_daportable+:} false; then :
14105 $as_echo_n "(cached) " >&6
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14118 if ac_fn_c_try_link "$LINENO"; then :
14119 sudo_cv_var_daportable=yes
14121 sudo_cv_var_daportable=no
14124 rm -f core conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext conftest.$ac_ext
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
14130 $as_echo "$sudo_cv_var_daportable" >&6; }
14131 if test X"$sudo_cv_var_daportable" != X"yes"; then
14139 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
14143 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
14146 shadow_funcs="getspwuid"
14148 # DCE support (requires ANSI C compiler)
14149 if test "$with_DCE" = "yes"; then
14150 # order of libs in 9.X is important. -lc_r must be last
14151 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
14152 LIBS="${LIBS} -ldce -lM -lc_r"
14153 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
14157 shadow_funcs="getprpwnam iscomsec"
14158 shadow_libs="-lsec"
14159 # HP-UX 10.20 libc has an incompatible getline
14160 ac_cv_func_getline="no"
14163 shadow_funcs="getspnam iscomsec"
14164 shadow_libs="-lsec"
14165 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14170 # ignore envariables wrt dynamic lib path
14171 # XXX - sudo LDFLAGS instead?
14172 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
14174 : ${CHECKSIA='true'}
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
14176 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
14177 # Check whether --enable-sia was given.
14178 if test "${enable_sia+set}" = set; then :
14179 enableval=$enable_sia; case "$enableval" in
14180 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 $as_echo "no" >&6; }
14184 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14185 $as_echo "yes" >&6; }
14188 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189 $as_echo "no" >&6; }
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
14191 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14197 $as_echo "no" >&6; }
14201 shadow_funcs="getprpwnam dispcrypt"
14202 # OSF/1 4.x and higher need -ldb too
14203 if test $OSMAJOR -lt 4; then
14204 shadow_libs="-lsecurity -laud -lm"
14206 shadow_libs="-lsecurity -ldb -laud -lm"
14209 # use SIA by default, if we have it
14210 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
14213 # Some versions of Digital Unix ship with a broken
14214 # copy of prot.h, which we need for shadow passwords.
14215 # XXX - make should remove this as part of distclean
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
14218 $as_echo_n "checking for broken prot.h... " >&6; }
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14222 #include <sys/types.h>
14223 #include <sys/security.h>
14234 if ac_fn_c_try_compile "$LINENO"; then :
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14236 $as_echo "no" >&6; }
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
14239 $as_echo "yes, fixing locally" >&6; }
14240 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 # ":DEFAULT" must be appended to _RLD_LIST
14245 RTLD_PRELOAD_VAR="_RLD_LIST"
14246 RTLD_PRELOAD_DEFAULT="DEFAULT"
14248 : ${mansectform='4'}
14251 OSDEFS="${OSDEFS} -D_BSD_TYPES"
14252 if test -z "$NROFFPROG"; then
14253 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14254 if test -d /usr/share/catman/local; then
14255 mandir="/usr/share/catman/local"
14257 mandir="/usr/catman/local"
14260 # Compress cat pages with pack
14262 MANCOMPRESSEXT='.z'
14264 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14265 if test -d "/usr/share/man/local"; then
14266 mandir="/usr/share/man/local"
14268 mandir="/usr/man/local"
14272 # IRIX <= 4 needs -lsun
14273 if test "$OSMAJOR" -le 4; then
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
14275 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
14276 if ${ac_cv_lib_sun_getpwnam+:} false; then :
14277 $as_echo_n "(cached) " >&6
14279 ac_check_lib_save_LIBS=$LIBS
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14284 /* Override any GCC internal prototype to avoid an error.
14285 Use char because int might match the return type of a GCC
14286 builtin and then its argument prototype would still apply. */
14294 return getpwnam ();
14299 if ac_fn_c_try_link "$LINENO"; then :
14300 ac_cv_lib_sun_getpwnam=yes
14302 ac_cv_lib_sun_getpwnam=no
14304 rm -f core conftest.err conftest.$ac_objext \
14305 conftest$ac_exeext conftest.$ac_ext
14306 LIBS=$ac_check_lib_save_LIBS
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
14309 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
14310 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
14311 LIBS="${LIBS} -lsun"
14315 # ":DEFAULT" must be appended to _RLD_LIST
14316 RTLD_PRELOAD_VAR="_RLD_LIST"
14317 RTLD_PRELOAD_DEFAULT="DEFAULT"
14318 : ${mansectsu='1m'}
14319 : ${mansectform='4'}
14321 *-*-linux*|*-*-k*bsd*-gnu)
14322 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14323 # Some Linux versions need to link with -lshadow
14324 shadow_funcs="getspnam"
14325 shadow_libs_optional="-lshadow"
14326 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14329 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
14330 if test -z "$GCC"; then
14331 CFLAGS="${CFLAGS} -D__STDC__"
14334 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
14335 shadow_funcs="getprpwnam"
14336 shadow_libs="-lprot"
14340 shadow_funcs="getauthuid"
14341 shadow_libs="-lauth"
14344 LIBS="${LIBS} -lsun -lbsd"
14345 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
14346 OSDEFS="${OSDEFS} -D_MIPS"
14347 : ${mansectsu='1m'}
14348 : ${mansectform='4'}
14351 OSDEFS="${OSDEFS} -D_ISC"
14353 SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
14355 shadow_funcs="getspnam"
14356 shadow_libs="-lsec"
14358 : ${mansectsu='1m'}
14359 : ${mansectform='4'}
14362 shadow_funcs="getprpwnam"
14363 shadow_libs="-lprot -lx"
14364 : ${mansectsu='1m'}
14365 : ${mansectform='4'}
14367 m88k-motorola-sysv*)
14368 # motorolla's cc (a variant of gcc) does -O but not -O2
14369 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
14370 : ${mansectsu='1m'}
14371 : ${mansectform='4'}
14374 shadow_funcs="getspnam"
14375 shadow_libs="-lsec"
14376 : ${mansectsu='1m'}
14377 : ${mansectform='4'}
14378 : ${with_rpath='yes'}
14380 *-ncr-sysv4*|*-ncr-sysvr4*)
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
14382 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
14383 if ${ac_cv_lib_c89_strcasecmp+:} false; then :
14384 $as_echo_n "(cached) " >&6
14386 ac_check_lib_save_LIBS=$LIBS
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14391 /* Override any GCC internal prototype to avoid an error.
14392 Use char because int might match the return type of a GCC
14393 builtin and then its argument prototype would still apply. */
14397 char strcasecmp ();
14401 return strcasecmp ();
14406 if ac_fn_c_try_link "$LINENO"; then :
14407 ac_cv_lib_c89_strcasecmp=yes
14409 ac_cv_lib_c89_strcasecmp=no
14411 rm -f core conftest.err conftest.$ac_objext \
14412 conftest$ac_exeext conftest.$ac_ext
14413 LIBS=$ac_check_lib_save_LIBS
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
14416 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
14417 if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
14418 LIBS="${LIBS} -lc89"
14421 : ${mansectsu='1m'}
14422 : ${mansectform='4'}
14423 : ${with_rpath='yes'}
14425 *-ccur-sysv4*|*-ccur-sysvr4*)
14426 LIBS="${LIBS} -lgen"
14427 : ${mansectsu='1m'}
14428 : ${mansectform='4'}
14429 : ${with_rpath='yes'}
14433 # Check for newer BSD auth API
14434 if test -z "$with_bsdauth"; then
14435 for ac_func in auth_challenge
14437 ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
14438 if test "x$ac_cv_func_auth_challenge" = xyes; then :
14439 cat >>confdefs.h <<_ACEOF
14440 #define HAVE_AUTH_CHALLENGE 1
14442 AUTH_EXCL_DEF="BSD_AUTH"
14449 # FreeBSD has a real setreuid(2) starting with 2.1 and
14450 # backported to 2.0.5. We just take 2.1 and above...
14456 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14457 if test "${with_skey-'no'}" = "yes"; then
14458 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14460 CHECKSHADOW="false"
14461 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14462 : ${with_logincap='maybe'}
14463 # PIE is broken on FreeBSD/ia64
14464 case "$host_cpu" in
14470 # OpenBSD has a real setreuid(2) starting with 3.3 but
14471 # we will use setresuid(2) instead.
14473 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14474 CHECKSHADOW="false"
14475 # OpenBSD >= 3.0 supports BSD auth
14476 if test -z "$with_bsdauth"; then
14477 if test "$OSMAJOR" -ge 3; then
14478 AUTH_EXCL_DEF="BSD_AUTH"
14481 : ${with_logincap='maybe'}
14484 # NetBSD has a real setreuid(2) starting with 1.3.2
14486 0.9*|1.[012]*|1.3|1.3.1)
14490 CHECKSHADOW="false"
14491 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14492 : ${with_logincap='maybe'}
14495 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14496 if test "${with_skey-'no'}" = "yes"; then
14497 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14499 CHECKSHADOW="false"
14500 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14501 : ${with_logincap='yes'}
14504 CHECKSHADOW="false"
14507 # Darwin has a real setreuid(2) starting with 9.0
14508 if test $OSMAJOR -lt 9; then
14511 CHECKSHADOW="false"
14512 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14513 : ${with_logincap='yes'}
14514 RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14515 RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14518 # lockf() on is broken on the NeXT -- use flock instead
14519 ac_cv_func_lockf=no
14520 ac_cv_func_flock=yes
14521 RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14522 RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14525 : ${mansectsu='1m'}
14526 : ${mansectform='4'}
14527 : ${with_rpath='yes'}
14530 : ${mansectsu='1m'}
14531 : ${mansectform='4'}
14534 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14538 if test -n "$with_noexec"; then
14539 cat >>confdefs.h <<EOF
14540 #define RTLD_PRELOAD_VAR "$RTLD_PRELOAD_VAR"
14543 cat >>confdefs.h <<EOF
14544 #define RTLD_PRELOAD_DELIM "$RTLD_PRELOAD_DELIM"
14547 if test -n "$RTLD_PRELOAD_DEFAULT"; then
14548 cat >>confdefs.h <<EOF
14549 #define RTLD_PRELOAD_DEFAULT "$RTLD_PRELOAD_DEFAULT"
14553 if test -n "$RTLD_PRELOAD_ENABLE_VAR"; then
14554 cat >>confdefs.h <<EOF
14555 #define RTLD_PRELOAD_ENABLE_VAR "$RTLD_PRELOAD_ENABLE_VAR"
14561 AUTH_REG=${AUTH_REG# }
14562 AUTH_EXCL=${AUTH_EXCL# }
14563 if test -n "$AUTH_EXCL"; then
14565 if test $# != 1; then
14566 as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
14568 if test -n "$AUTH_REG"; then
14569 as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
14572 if test X"${with_skey}${with_opie}" = X"yesyes"; then
14573 as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
14577 : ${mansectform='5'}
14579 if test -n "$with_libpath"; then
14580 for i in ${with_libpath}; do
14582 if test X"$with_rpath" = X"yes"; then
14584 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
14586 *) LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
14590 LDFLAGS="${LDFLAGS} -L$i"
14592 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
14593 blibpath_add="${blibpath_add}:$i"
14598 if test -n "$with_libraries"; then
14599 for i in ${with_libraries}; do
14606 LIBS="${LIBS} ${i}"
14610 if test $ac_cv_c_compiler_gnu = yes; then
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14612 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14613 if ${ac_cv_prog_gcc_traditional+:} false; then :
14614 $as_echo_n "(cached) " >&6
14616 ac_pattern="Autoconf.*'x'"
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14623 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14624 ac_cv_prog_gcc_traditional=yes
14626 ac_cv_prog_gcc_traditional=no
14631 if test $ac_cv_prog_gcc_traditional = no; then
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14634 #include <termio.h>
14637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14638 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14639 ac_cv_prog_gcc_traditional=yes
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14646 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14647 if test $ac_cv_prog_gcc_traditional = yes; then
14648 CC="$CC -traditional"
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14653 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14654 if ${ac_cv_c_const+:} false; then :
14655 $as_echo_n "(cached) " >&6
14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h. */
14663 /* FIXME: Include the comments suggested by Paul. */
14664 #ifndef __cplusplus
14665 /* Ultrix mips cc rejects this. */
14666 typedef int charset[2];
14668 /* SunOS 4.1.1 cc rejects this. */
14669 char const *const *pcpcc;
14671 /* NEC SVR4.0.2 mips cc rejects this. */
14672 struct point {int x, y;};
14673 static struct point const zero = {0,0};
14674 /* AIX XL C 1.02.0.0 rejects this.
14675 It does not let you subtract one const X* pointer from another in
14676 an arm of an if-expression whose if-part is not a constant
14678 const char *g = "string";
14679 pcpcc = &g + (g ? g-g : 0);
14680 /* HPUX 7.0 cc rejects these. */
14682 ppc = (char**) pcpcc;
14683 pcpcc = (char const *const *) ppc;
14684 { /* SCO 3.2v4 cc rejects this. */
14686 char const *s = 0 ? (char *) 0 : (char const *) 0;
14691 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14692 int x[] = {25, 17};
14693 const int *foo = &x[0];
14696 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14697 typedef const int *iptr;
14701 { /* AIX XL C 1.02.0.0 rejects this saying
14702 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14703 struct s { int j; const int *ap[3]; };
14704 struct s *b; b->j = 5;
14706 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14707 const int foo = 10;
14708 if (!foo) return 0;
14710 return !cs[0] && !zero.x;
14717 if ac_fn_c_try_compile "$LINENO"; then :
14722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14725 $as_echo "$ac_cv_c_const" >&6; }
14726 if test $ac_cv_c_const = no; then
14728 $as_echo "#define const /**/" >>confdefs.h
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14733 $as_echo_n "checking for working volatile... " >&6; }
14734 if ${ac_cv_c_volatile+:} false; then :
14735 $as_echo_n "(cached) " >&6
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14745 int * volatile y = (int *) 0;
14751 if ac_fn_c_try_compile "$LINENO"; then :
14752 ac_cv_c_volatile=yes
14754 ac_cv_c_volatile=no
14756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14759 $as_echo "$ac_cv_c_volatile" >&6; }
14760 if test $ac_cv_c_volatile = no; then
14762 $as_echo "#define volatile /**/" >>confdefs.h
14766 # Check for variadic macro support in cpp
14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h. */
14770 $ac_includes_default
14771 #if defined(__GNUC__) && __GNUC__ == 2
14772 # define sudo_fprintf(fp, fmt...) fprintf((fp), (fmt))
14774 # define sudo_fprintf(fp, ...) fprintf((fp), __VA_ARGS__)
14780 sudo_fprintf(stderr, "a %s", "test");
14785 if ac_fn_c_try_compile "$LINENO"; then :
14788 as_fn_error $? "Your C compiler doesn't support variadic macros, try building with gcc instead" "$LINENO" 5
14790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14792 for ac_prog in 'bison -y' byacc
14794 # Extract the first word of "$ac_prog", so it can be a program name with args.
14795 set dummy $ac_prog; ac_word=$2
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14797 $as_echo_n "checking for $ac_word... " >&6; }
14798 if ${ac_cv_prog_YACC+:} false; then :
14799 $as_echo_n "(cached) " >&6
14801 if test -n "$YACC"; then
14802 ac_cv_prog_YACC="$YACC" # Let the user override the test.
14804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805 for as_dir in $PATH
14808 test -z "$as_dir" && as_dir=.
14809 for ac_exec_ext in '' $ac_executable_extensions; do
14810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14811 ac_cv_prog_YACC="$ac_prog"
14812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14821 YACC=$ac_cv_prog_YACC
14822 if test -n "$YACC"; then
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14824 $as_echo "$YACC" >&6; }
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14827 $as_echo "no" >&6; }
14831 test -n "$YACC" && break
14833 test -n "$YACC" || YACC="yacc"
14835 # Extract the first word of "flex", so it can be a program name with args.
14836 set dummy flex; ac_word=$2
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14838 $as_echo_n "checking for $ac_word... " >&6; }
14839 if ${ac_cv_path_FLEX+:} false; then :
14840 $as_echo_n "(cached) " >&6
14844 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848 for as_dir in $PATH
14851 test -z "$as_dir" && as_dir=.
14852 for ac_exec_ext in '' $ac_executable_extensions; do
14853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14854 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14862 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
14866 FLEX=$ac_cv_path_FLEX
14867 if test -n "$FLEX"; then
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14869 $as_echo "$FLEX" >&6; }
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14872 $as_echo "no" >&6; }
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
14877 $as_echo_n "checking for mv... " >&6; }
14879 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
14880 if test -f "$p"; then
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14883 $as_echo "$p" >&6; }
14884 cat >>confdefs.h <<EOF
14885 #define _PATH_MV "$p"
14891 if test X"$found" != X"yes"; then
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14893 $as_echo "not found" >&6; }
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
14897 $as_echo_n "checking for bourne shell... " >&6; }
14899 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
14900 if test -f "$p"; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14903 $as_echo "$p" >&6; }
14904 cat >>confdefs.h <<EOF
14905 #define _PATH_BSHELL "$p"
14911 if test X"$found" != X"yes"; then
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14913 $as_echo "not found" >&6; }
14916 if test -z "$with_sendmail"; then
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
14918 $as_echo_n "checking for sendmail... " >&6; }
14920 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
14921 if test -f "$p"; then
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14924 $as_echo "$p" >&6; }
14925 cat >>confdefs.h <<EOF
14926 #define _PATH_SUDO_SENDMAIL "$p"
14932 if test X"$found" != X"yes"; then
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14934 $as_echo "not found" >&6; }
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
14939 $as_echo_n "checking for vi... " >&6; }
14941 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
14942 if test -f "$editor"; then
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
14945 $as_echo "$editor" >&6; }
14946 cat >>confdefs.h <<EOF
14947 #define _PATH_VI "$editor"
14953 if test X"$found" != X"yes"; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14955 $as_echo "not found" >&6; }
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
14959 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
14960 if test X"$with_logfac" = X""; then
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14963 #include <syslog.h>
14967 int i = LOG_AUTHPRIV; (void)i;
14972 if ac_fn_c_try_compile "$LINENO"; then :
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14978 cat >>confdefs.h <<_ACEOF
14979 #define LOGFAC "$logfac"
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
14983 $as_echo "$logfac" >&6; }
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14985 $as_echo_n "checking for ANSI C header files... " >&6; }
14986 if ${ac_cv_header_stdc+:} false; then :
14987 $as_echo_n "(cached) " >&6
14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h. */
14991 #include <stdlib.h>
14992 #include <stdarg.h>
14993 #include <string.h>
15004 if ac_fn_c_try_compile "$LINENO"; then :
15005 ac_cv_header_stdc=yes
15007 ac_cv_header_stdc=no
15009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011 if test $ac_cv_header_stdc = yes; then
15012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h. */
15015 #include <string.h>
15018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15019 $EGREP "memchr" >/dev/null 2>&1; then :
15022 ac_cv_header_stdc=no
15028 if test $ac_cv_header_stdc = yes; then
15029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15032 #include <stdlib.h>
15035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15036 $EGREP "free" >/dev/null 2>&1; then :
15039 ac_cv_header_stdc=no
15045 if test $ac_cv_header_stdc = yes; then
15046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15047 if test "$cross_compiling" = yes; then :
15050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051 /* end confdefs.h. */
15053 #include <stdlib.h>
15054 #if ((' ' & 0x0FF) == 0x020)
15055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15058 # define ISLOWER(c) \
15059 (('a' <= (c) && (c) <= 'i') \
15060 || ('j' <= (c) && (c) <= 'r') \
15061 || ('s' <= (c) && (c) <= 'z'))
15062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15070 for (i = 0; i < 256; i++)
15071 if (XOR (islower (i), ISLOWER (i))
15072 || toupper (i) != TOUPPER (i))
15077 if ac_fn_c_try_run "$LINENO"; then :
15080 ac_cv_header_stdc=no
15082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15083 conftest.$ac_objext conftest.beam conftest.$ac_ext
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15089 $as_echo "$ac_cv_header_stdc" >&6; }
15090 if test $ac_cv_header_stdc = yes; then
15092 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15096 ac_header_dirent=no
15097 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15098 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15100 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15101 if eval \${$as_ac_Header+:} false; then :
15102 $as_echo_n "(cached) " >&6
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15106 #include <sys/types.h>
15118 if ac_fn_c_try_compile "$LINENO"; then :
15119 eval "$as_ac_Header=yes"
15121 eval "$as_ac_Header=no"
15123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15125 eval ac_res=\$$as_ac_Header
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15127 $as_echo "$ac_res" >&6; }
15128 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15129 cat >>confdefs.h <<_ACEOF
15130 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15133 ac_header_dirent=$ac_hdr; break
15137 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15138 if test $ac_header_dirent = dirent.h; then
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15140 $as_echo_n "checking for library containing opendir... " >&6; }
15141 if ${ac_cv_search_opendir+:} false; then :
15142 $as_echo_n "(cached) " >&6
15144 ac_func_search_save_LIBS=$LIBS
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15148 /* Override any GCC internal prototype to avoid an error.
15149 Use char because int might match the return type of a GCC
15150 builtin and then its argument prototype would still apply. */
15163 for ac_lib in '' dir; do
15164 if test -z "$ac_lib"; then
15165 ac_res="none required"
15168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15170 if ac_fn_c_try_link "$LINENO"; then :
15171 ac_cv_search_opendir=$ac_res
15173 rm -f core conftest.err conftest.$ac_objext \
15175 if ${ac_cv_search_opendir+:} false; then :
15179 if ${ac_cv_search_opendir+:} false; then :
15182 ac_cv_search_opendir=no
15184 rm conftest.$ac_ext
15185 LIBS=$ac_func_search_save_LIBS
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15188 $as_echo "$ac_cv_search_opendir" >&6; }
15189 ac_res=$ac_cv_search_opendir
15190 if test "$ac_res" != no; then :
15191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15197 $as_echo_n "checking for library containing opendir... " >&6; }
15198 if ${ac_cv_search_opendir+:} false; then :
15199 $as_echo_n "(cached) " >&6
15201 ac_func_search_save_LIBS=$LIBS
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15205 /* Override any GCC internal prototype to avoid an error.
15206 Use char because int might match the return type of a GCC
15207 builtin and then its argument prototype would still apply. */
15220 for ac_lib in '' x; do
15221 if test -z "$ac_lib"; then
15222 ac_res="none required"
15225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15227 if ac_fn_c_try_link "$LINENO"; then :
15228 ac_cv_search_opendir=$ac_res
15230 rm -f core conftest.err conftest.$ac_objext \
15232 if ${ac_cv_search_opendir+:} false; then :
15236 if ${ac_cv_search_opendir+:} false; then :
15239 ac_cv_search_opendir=no
15241 rm conftest.$ac_ext
15242 LIBS=$ac_func_search_save_LIBS
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15245 $as_echo "$ac_cv_search_opendir" >&6; }
15246 ac_res=$ac_cv_search_opendir
15247 if test "$ac_res" != no; then :
15248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15255 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15256 if ${ac_cv_header_time+:} false; then :
15257 $as_echo_n "(cached) " >&6
15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15261 #include <sys/types.h>
15262 #include <sys/time.h>
15268 if ((struct tm *) 0)
15274 if ac_fn_c_try_compile "$LINENO"; then :
15275 ac_cv_header_time=yes
15277 ac_cv_header_time=no
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15282 $as_echo "$ac_cv_header_time" >&6; }
15283 if test $ac_cv_header_time = yes; then
15285 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15290 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15291 if ${ac_cv_header_stdbool_h+:} false; then :
15292 $as_echo_n "(cached) " >&6
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h. */
15297 #include <stdbool.h>
15299 "error: bool is not defined"
15302 "error: false is not defined"
15305 "error: false is not 0"
15308 "error: true is not defined"
15311 "error: true is not 1"
15313 #ifndef __bool_true_false_are_defined
15314 "error: __bool_true_false_are_defined is not defined"
15317 struct s { _Bool s: 1; _Bool t; } s;
15319 char a[true == 1 ? 1 : -1];
15320 char b[false == 0 ? 1 : -1];
15321 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15322 char d[(bool) 0.5 == true ? 1 : -1];
15323 /* See body of main program for 'e'. */
15324 char f[(_Bool) 0.0 == false ? 1 : -1];
15326 char h[sizeof (_Bool)];
15327 char i[sizeof s.t];
15328 enum { j = false, k = true, l = false * true, m = true * 256 };
15329 /* The following fails for
15330 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15332 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15333 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15334 /* Catch a bug in an HP-UX C compiler. See
15335 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15336 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15348 /* Refer to every declared value, to avoid compiler optimizations. */
15349 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15350 + !m + !n + !o + !p + !q + !pq);
15356 if ac_fn_c_try_compile "$LINENO"; then :
15357 ac_cv_header_stdbool_h=yes
15359 ac_cv_header_stdbool_h=no
15361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15364 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15365 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15366 if test "x$ac_cv_type__Bool" = xyes; then :
15368 cat >>confdefs.h <<_ACEOF
15369 #define HAVE__BOOL 1
15375 if test $ac_cv_header_stdbool_h = yes; then
15377 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
15382 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
15383 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
15384 $as_echo_n "(cached) " >&6
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15388 #include <sys/types.h>
15392 return makedev(0, 0);
15397 if ac_fn_c_try_link "$LINENO"; then :
15398 ac_cv_header_sys_types_h_makedev=yes
15400 ac_cv_header_sys_types_h_makedev=no
15402 rm -f core conftest.err conftest.$ac_objext \
15403 conftest$ac_exeext conftest.$ac_ext
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
15407 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
15409 if test $ac_cv_header_sys_types_h_makedev = no; then
15410 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
15411 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
15413 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
15419 if test $ac_cv_header_sys_mkdev_h = no; then
15420 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
15421 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
15423 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
15431 for ac_header in malloc.h netgroup.h paths.h spawn.h utime.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
15433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15434 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15435 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15436 cat >>confdefs.h <<_ACEOF
15437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15444 for ac_header in procfs.h sys/procfs.h
15446 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15447 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15448 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15449 cat >>confdefs.h <<_ACEOF
15450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15452 ac_fn_c_check_member "$LINENO" "struct psinfo" "pr_ttydev" "ac_cv_member_struct_psinfo_pr_ttydev" "$ac_includes_default
15453 #ifdef HAVE_PROCFS_H
15454 #include <procfs.h>
15456 #ifdef HAVE_SYS_PROCFS_H
15457 #include <sys/procfs.h>
15461 if test "x$ac_cv_member_struct_psinfo_pr_ttydev" = xyes; then :
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_STRUCT_PSINFO_PR_TTYDEV 1
15467 for ac_func in _ttyname_dev
15469 ac_fn_c_check_func "$LINENO" "_ttyname_dev" "ac_cv_func__ttyname_dev"
15470 if test "x$ac_cv_func__ttyname_dev" = xyes; then :
15471 cat >>confdefs.h <<_ACEOF
15472 #define HAVE__TTYNAME_DEV 1
15485 # Check whether --enable-largefile was given.
15486 if test "${enable_largefile+set}" = set; then :
15487 enableval=$enable_largefile;
15490 if test "$enable_largefile" != no; then
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15493 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15494 if ${ac_cv_sys_largefile_CC+:} false; then :
15495 $as_echo_n "(cached) " >&6
15497 ac_cv_sys_largefile_CC=no
15498 if test "$GCC" != yes; then
15501 # IRIX 6.2 and later do not support large files by default,
15502 # so use the C compiler's -n32 option if that helps.
15503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15504 /* end confdefs.h. */
15505 #include <sys/types.h>
15506 /* Check that off_t can represent 2**63 - 1 correctly.
15507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15508 since some C++ compilers masquerading as C compilers
15509 incorrectly reject 9223372036854775807. */
15510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15512 && LARGE_OFF_T % 2147483647 == 1)
15522 if ac_fn_c_try_compile "$LINENO"; then :
15525 rm -f core conftest.err conftest.$ac_objext
15527 if ac_fn_c_try_compile "$LINENO"; then :
15528 ac_cv_sys_largefile_CC=' -n32'; break
15530 rm -f core conftest.err conftest.$ac_objext
15534 rm -f conftest.$ac_ext
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15538 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15539 if test "$ac_cv_sys_largefile_CC" != no; then
15540 CC=$CC$ac_cv_sys_largefile_CC
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15544 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15545 if ${ac_cv_sys_file_offset_bits+:} false; then :
15546 $as_echo_n "(cached) " >&6
15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15550 /* end confdefs.h. */
15551 #include <sys/types.h>
15552 /* Check that off_t can represent 2**63 - 1 correctly.
15553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15554 since some C++ compilers masquerading as C compilers
15555 incorrectly reject 9223372036854775807. */
15556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15558 && LARGE_OFF_T % 2147483647 == 1)
15568 if ac_fn_c_try_compile "$LINENO"; then :
15569 ac_cv_sys_file_offset_bits=no; break
15571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573 /* end confdefs.h. */
15574 #define _FILE_OFFSET_BITS 64
15575 #include <sys/types.h>
15576 /* Check that off_t can represent 2**63 - 1 correctly.
15577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15578 since some C++ compilers masquerading as C compilers
15579 incorrectly reject 9223372036854775807. */
15580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15582 && LARGE_OFF_T % 2147483647 == 1)
15592 if ac_fn_c_try_compile "$LINENO"; then :
15593 ac_cv_sys_file_offset_bits=64; break
15595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15596 ac_cv_sys_file_offset_bits=unknown
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15601 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15602 case $ac_cv_sys_file_offset_bits in #(
15605 cat >>confdefs.h <<_ACEOF
15606 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15611 if test $ac_cv_sys_file_offset_bits = unknown; then
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15613 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15614 if ${ac_cv_sys_large_files+:} false; then :
15615 $as_echo_n "(cached) " >&6
15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15619 /* end confdefs.h. */
15620 #include <sys/types.h>
15621 /* Check that off_t can represent 2**63 - 1 correctly.
15622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15623 since some C++ compilers masquerading as C compilers
15624 incorrectly reject 9223372036854775807. */
15625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15627 && LARGE_OFF_T % 2147483647 == 1)
15637 if ac_fn_c_try_compile "$LINENO"; then :
15638 ac_cv_sys_large_files=no; break
15640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 #define _LARGE_FILES 1
15644 #include <sys/types.h>
15645 /* Check that off_t can represent 2**63 - 1 correctly.
15646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15647 since some C++ compilers masquerading as C compilers
15648 incorrectly reject 9223372036854775807. */
15649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15651 && LARGE_OFF_T % 2147483647 == 1)
15661 if ac_fn_c_try_compile "$LINENO"; then :
15662 ac_cv_sys_large_files=1; break
15664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15665 ac_cv_sys_large_files=unknown
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15670 $as_echo "$ac_cv_sys_large_files" >&6; }
15671 case $ac_cv_sys_large_files in #(
15674 cat >>confdefs.h <<_ACEOF
15675 #define _LARGE_FILES $ac_cv_sys_large_files
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
15686 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
15687 if ${sudo_cv_xopen_source_extended+:} false; then :
15688 $as_echo_n "(cached) " >&6
15690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h. */
15692 $ac_includes_default
15693 #include <sys/socket.h>
15702 if ac_fn_c_try_compile "$LINENO"; then :
15703 sudo_cv_xopen_source_extended=no
15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15708 #define _XOPEN_SOURCE_EXTENDED
15709 $ac_includes_default
15710 #include <sys/socket.h>
15719 if ac_fn_c_try_compile "$LINENO"; then :
15720 sudo_cv_xopen_source_extended=yes
15722 sudo_cv_xopen_source_extended=error
15724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
15730 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
15731 if test "$sudo_cv_xopen_source_extended" = "yes"; then
15732 OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
15733 cat >>confdefs.h <<\EOF
15734 #define _XOPEN_SOURCE_EXTENDED 1
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15741 $as_echo_n "checking POSIX termios... " >&6; }
15742 if ${ac_cv_sys_posix_termios+:} false; then :
15743 $as_echo_n "(cached) " >&6
15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15747 #include <sys/types.h>
15748 #include <unistd.h>
15749 #include <termios.h>
15754 /* SunOS 4.0.3 has termios.h but not the library calls. */
15760 if ac_fn_c_try_link "$LINENO"; then :
15761 ac_cv_sys_posix_termios=yes
15763 ac_cv_sys_posix_termios=no
15765 rm -f core conftest.err conftest.$ac_objext \
15766 conftest$ac_exeext conftest.$ac_ext
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15769 $as_echo "$ac_cv_sys_posix_termios" >&6; }
15771 if test "$ac_cv_sys_posix_termios" != "yes"; then
15772 as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
15776 if test X"$ac_cv_header_paths_h" = X"yes"; then
15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h. */
15779 $ac_includes_default
15784 char *p = _PATH_MAILDIR;
15789 if ac_fn_c_try_compile "$LINENO"; then :
15792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15794 if test $maildir = no; then
15795 # Solaris has maillock.h which defines MAILDIR
15796 for ac_header in maillock.h
15798 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
15799 if test "x$ac_cv_header_maillock_h" = xyes; then :
15800 cat >>confdefs.h <<_ACEOF
15801 #define HAVE_MAILLOCK_H 1
15804 cat >>confdefs.h <<\EOF
15805 #define _PATH_MAILDIR MAILDIR
15814 if test $maildir = no; then
15815 for d in /var/mail /var/spool/mail /usr/spool/mail; do
15816 if test -d "$d"; then
15818 cat >>confdefs.h <<EOF
15819 #define _PATH_MAILDIR "$d"
15825 if test $maildir = no; then
15826 # unable to find mail dir, hope for the best
15827 cat >>confdefs.h <<EOF
15828 #define _PATH_MAILDIR "/var/mail"
15835 if test ${with_logincap-'no'} != "no"; then
15836 for ac_header in login_cap.h
15838 ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
15839 if test "x$ac_cv_header_login_cap_h" = xyes; then :
15840 cat >>confdefs.h <<_ACEOF
15841 #define HAVE_LOGIN_CAP_H 1
15843 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
15846 SUDO_LIBS="${SUDO_LIBS} -lutil"
15847 SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
15856 if test ${with_project-'no'} != "no"; then
15857 ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
15858 if test "x$ac_cv_header_project_h" = xyes; then :
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
15861 $as_echo_n "checking for setproject in -lproject... " >&6; }
15862 if ${ac_cv_lib_project_setproject+:} false; then :
15863 $as_echo_n "(cached) " >&6
15865 ac_check_lib_save_LIBS=$LIBS
15866 LIBS="-lproject $LIBS"
15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h. */
15870 /* Override any GCC internal prototype to avoid an error.
15871 Use char because int might match the return type of a GCC
15872 builtin and then its argument prototype would still apply. */
15876 char setproject ();
15880 return setproject ();
15885 if ac_fn_c_try_link "$LINENO"; then :
15886 ac_cv_lib_project_setproject=yes
15888 ac_cv_lib_project_setproject=no
15890 rm -f core conftest.err conftest.$ac_objext \
15891 conftest$ac_exeext conftest.$ac_ext
15892 LIBS=$ac_check_lib_save_LIBS
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
15895 $as_echo "$ac_cv_lib_project_setproject" >&6; }
15896 if test "x$ac_cv_lib_project_setproject" = xyes; then :
15898 $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
15900 SUDO_LIBS="${SUDO_LIBS} -lproject"
15909 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15910 if test "x$ac_cv_type_mode_t" = xyes; then :
15914 cat >>confdefs.h <<_ACEOF
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15921 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15922 if ${ac_cv_type_uid_t+:} false; then :
15923 $as_echo_n "(cached) " >&6
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15927 #include <sys/types.h>
15930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15931 $EGREP "uid_t" >/dev/null 2>&1; then :
15932 ac_cv_type_uid_t=yes
15934 ac_cv_type_uid_t=no
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15940 $as_echo "$ac_cv_type_uid_t" >&6; }
15941 if test $ac_cv_type_uid_t = no; then
15943 $as_echo "#define uid_t int" >>confdefs.h
15946 $as_echo "#define gid_t int" >>confdefs.h
15950 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
15951 if test "x$ac_cv_type___signed_char" = xyes; then :
15954 ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
15955 if test "x$ac_cv_type_signed_char" = xyes; then :
15956 $as_echo "#define __signed signed" >>confdefs.h
15959 $as_echo "#define __signed /**/" >>confdefs.h
15965 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
15966 #include <signal.h>
15968 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15971 $as_echo "#define sig_atomic_t int" >>confdefs.h
15975 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
15976 #include <signal.h>
15978 if test "x$ac_cv_type_sigaction_t" = xyes; then :
15980 cat >>confdefs.h <<_ACEOF
15981 #define HAVE_SIGACTION_T 1
15987 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
15988 #if TIME_WITH_SYS_TIME
15989 # include <sys/time.h>
15993 if test "x$ac_cv_type_struct_timespec" = xyes; then :
15995 cat >>confdefs.h <<_ACEOF
15996 #define HAVE_STRUCT_TIMESPEC 1
16002 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
16003 #include <netinet/in.h>
16005 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
16007 cat >>confdefs.h <<_ACEOF
16008 #define HAVE_STRUCT_IN6_ADDR 1
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16016 $as_echo_n "checking for long long int... " >&6; }
16017 if ${ac_cv_type_long_long_int+:} false; then :
16018 $as_echo_n "(cached) " >&6
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16023 /* For now, do not test the preprocessor; as of 2007 there are too many
16024 implementations with broken preprocessors. Perhaps this can
16025 be revisited in 2012. In the meantime, code should not expect
16026 #if to work with literals wider than 32 bits. */
16027 /* Test literals. */
16028 long long int ll = 9223372036854775807ll;
16029 long long int nll = -9223372036854775807LL;
16030 unsigned long long int ull = 18446744073709551615ULL;
16031 /* Test constant expressions. */
16032 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16034 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16040 /* Test availability of runtime routines for shift and division. */
16041 long long int llmax = 9223372036854775807ll;
16042 unsigned long long int ullmax = 18446744073709551615ull;
16043 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16044 | (llmax / ll) | (llmax % ll)
16045 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16046 | (ullmax / ull) | (ullmax % ull));
16052 if ac_fn_c_try_link "$LINENO"; then :
16053 if test "$cross_compiling" = yes; then :
16054 ac_cv_type_long_long_int=yes
16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 #include <limits.h>
16061 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16062 # define LLONG_MAX (HALF - 1 + HALF)
16067 long long int n = 1;
16071 long long int m = n << i;
16074 if (LLONG_MAX / 2 < m)
16082 if ac_fn_c_try_run "$LINENO"; then :
16083 ac_cv_type_long_long_int=yes
16085 ac_cv_type_long_long_int=no
16087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16088 conftest.$ac_objext conftest.beam conftest.$ac_ext
16092 ac_cv_type_long_long_int=no
16094 rm -f core conftest.err conftest.$ac_objext \
16095 conftest$ac_exeext conftest.$ac_ext
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16098 $as_echo "$ac_cv_type_long_long_int" >&6; }
16099 if test $ac_cv_type_long_long_int = yes; then
16101 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16105 # The cast to long int works around a bug in the HP C Compiler
16106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16108 # This bug is HP SR number 8606223364.
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
16110 $as_echo_n "checking size of long int... " >&6; }
16111 if ${ac_cv_sizeof_long_int+:} false; then :
16112 $as_echo_n "(cached) " >&6
16114 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
16117 if test "$ac_cv_type_long_int" = yes; then
16118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16120 as_fn_error 77 "cannot compute sizeof (long int)
16121 See \`config.log' for more details" "$LINENO" 5; }
16123 ac_cv_sizeof_long_int=0
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
16129 $as_echo "$ac_cv_sizeof_long_int" >&6; }
16133 cat >>confdefs.h <<_ACEOF
16134 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16138 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16139 if test "x$ac_cv_type_size_t" = xyes; then :
16143 cat >>confdefs.h <<_ACEOF
16144 #define size_t unsigned int
16149 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16150 if test "x$ac_cv_type_ssize_t" = xyes; then :
16154 cat >>confdefs.h <<_ACEOF
16155 #define ssize_t int
16160 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
16161 if test "x$ac_cv_type_dev_t" = xyes; then :
16165 cat >>confdefs.h <<_ACEOF
16171 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
16172 if test "x$ac_cv_type_ino_t" = xyes; then :
16176 cat >>confdefs.h <<_ACEOF
16177 #define ino_t unsigned int
16182 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16183 $ac_includes_default
16184 #include <sys/socket.h>
16186 if test "x$ac_cv_type_socklen_t" = xyes; then :
16189 $as_echo "#define socklen_t unsigned int" >>confdefs.h
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
16195 $as_echo_n "checking max length of uid_t... " >&6; }
16196 if ${sudo_cv_uid_t_len+:} false; then :
16197 $as_echo_n "(cached) " >&6
16200 if test "$cross_compiling" = yes; then :
16201 sudo_cv_uid_t_len=10
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16207 #include <limits.h>
16208 #include <sys/types.h>
16209 #include <sys/param.h>
16213 uid_t u = (uid_t) -1;
16215 if ((f = fopen("conftestdata", "w")) == NULL)
16218 (void) sprintf(b, "%lu", (unsigned long) u);
16219 (void) fprintf(f, "%d\n", strlen(b));
16224 if ac_fn_c_try_run "$LINENO"; then :
16225 sudo_cv_uid_t_len=`cat conftestdata`
16227 sudo_cv_uid_t_len=10
16229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16230 conftest.$ac_objext conftest.beam conftest.$ac_ext
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
16238 $as_echo "$sudo_cv_uid_t_len" >&6; }
16240 cat >>confdefs.h <<_ACEOF
16241 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
16246 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
16247 #include <sys/socket.h>
16250 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
16252 $as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
16258 CFLAGS="$CFLAGS $OSDEFS"
16259 if test $ac_cv_header_utmpx_h = "yes"; then
16260 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
16261 #include <sys/types.h>
16265 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
16267 cat >>confdefs.h <<_ACEOF
16268 #define HAVE_STRUCT_UTMPX_UT_ID 1
16273 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
16274 #include <sys/types.h>
16278 if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
16280 cat >>confdefs.h <<_ACEOF
16281 #define HAVE_STRUCT_UTMPX_UT_PID 1
16286 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
16287 #include <sys/types.h>
16291 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
16293 cat >>confdefs.h <<_ACEOF
16294 #define HAVE_STRUCT_UTMPX_UT_TV 1
16299 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
16300 #include <sys/types.h>
16304 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
16306 cat >>confdefs.h <<_ACEOF
16307 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
16313 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
16314 #include <sys/types.h>
16318 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
16320 cat >>confdefs.h <<_ACEOF
16321 #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
16324 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16328 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
16329 #include <sys/types.h>
16333 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
16335 cat >>confdefs.h <<_ACEOF
16336 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16339 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16347 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
16348 #include <sys/types.h>
16352 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
16354 cat >>confdefs.h <<_ACEOF
16355 #define HAVE_STRUCT_UTMP_UT_ID 1
16360 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
16361 #include <sys/types.h>
16365 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
16367 cat >>confdefs.h <<_ACEOF
16368 #define HAVE_STRUCT_UTMP_UT_PID 1
16373 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
16374 #include <sys/types.h>
16378 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
16380 cat >>confdefs.h <<_ACEOF
16381 #define HAVE_STRUCT_UTMP_UT_TV 1
16386 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
16387 #include <sys/types.h>
16391 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
16393 cat >>confdefs.h <<_ACEOF
16394 #define HAVE_STRUCT_UTMP_UT_TYPE 1
16399 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
16400 #include <sys/types.h>
16404 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
16406 cat >>confdefs.h <<_ACEOF
16407 #define HAVE_STRUCT_UTMP_UT_USER 1
16413 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
16414 #include <sys/types.h>
16418 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
16420 cat >>confdefs.h <<_ACEOF
16421 #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
16424 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16428 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
16429 #include <sys/types.h>
16433 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
16435 cat >>confdefs.h <<_ACEOF
16436 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16439 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
16450 $as_echo_n "checking type of array argument to getgroups... " >&6; }
16451 if ${ac_cv_type_getgroups+:} false; then :
16452 $as_echo_n "(cached) " >&6
16454 if test "$cross_compiling" = yes; then :
16455 ac_cv_type_getgroups=cross
16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h. */
16459 /* Thanks to Mike Rendell for this test. */
16460 $ac_includes_default
16463 #define MAX(x, y) ((x) > (y) ? (x) : (y))
16468 gid_t gidset[NGID];
16470 union { gid_t gval; long int lval; } val;
16473 for (i = 0; i < NGID; i++)
16474 gidset[i] = val.gval;
16475 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16477 /* Exit non-zero if getgroups seems to require an array of ints. This
16478 happens when gid_t is short int but getgroups modifies an array
16480 return n > 0 && gidset[n] != val.gval;
16483 if ac_fn_c_try_run "$LINENO"; then :
16484 ac_cv_type_getgroups=gid_t
16486 ac_cv_type_getgroups=int
16488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16489 conftest.$ac_objext conftest.beam conftest.$ac_ext
16492 if test $ac_cv_type_getgroups = cross; then
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16495 #include <unistd.h>
16498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16499 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
16500 ac_cv_type_getgroups=gid_t
16502 ac_cv_type_getgroups=int
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
16509 $as_echo "$ac_cv_type_getgroups" >&6; }
16511 cat >>confdefs.h <<_ACEOF
16512 #define GETGROUPS_T $ac_cv_type_getgroups
16516 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16517 if test "x$ac_cv_type_size_t" = xyes; then :
16521 cat >>confdefs.h <<_ACEOF
16522 #define size_t unsigned int
16527 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16528 if test "x$ac_cv_func_getgroups" = xyes; then :
16533 # If we don't yet have getgroups, see if it's in -lbsd.
16534 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16536 if test $ac_cv_func_getgroups = no; then
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16538 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
16539 if ${ac_cv_lib_bsd_getgroups+:} false; then :
16540 $as_echo_n "(cached) " >&6
16542 ac_check_lib_save_LIBS=$LIBS
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16547 /* Override any GCC internal prototype to avoid an error.
16548 Use char because int might match the return type of a GCC
16549 builtin and then its argument prototype would still apply. */
16557 return getgroups ();
16562 if ac_fn_c_try_link "$LINENO"; then :
16563 ac_cv_lib_bsd_getgroups=yes
16565 ac_cv_lib_bsd_getgroups=no
16567 rm -f core conftest.err conftest.$ac_objext \
16568 conftest$ac_exeext conftest.$ac_ext
16569 LIBS=$ac_check_lib_save_LIBS
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16572 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16573 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16574 GETGROUPS_LIB=-lbsd
16579 # Run the program to test the functionality of the system-supplied
16580 # getgroups function only if there is such a function.
16581 if test $ac_cv_func_getgroups = yes; then
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16583 $as_echo_n "checking for working getgroups... " >&6; }
16584 if ${ac_cv_func_getgroups_works+:} false; then :
16585 $as_echo_n "(cached) " >&6
16587 if test "$cross_compiling" = yes; then :
16588 ac_cv_func_getgroups_works=no
16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16592 $ac_includes_default
16596 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
16597 return getgroups (0, 0) == -1;
16602 if ac_fn_c_try_run "$LINENO"; then :
16603 ac_cv_func_getgroups_works=yes
16605 ac_cv_func_getgroups_works=no
16607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16608 conftest.$ac_objext conftest.beam conftest.$ac_ext
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16614 $as_echo "$ac_cv_func_getgroups_works" >&6; }
16616 ac_cv_func_getgroups_works=no
16618 if test $ac_cv_func_getgroups_works = yes; then
16620 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16625 for ac_func in glob strrchr sysconf tzset strftime setenv \
16626 regcomp setlocale nl_langinfo mbr_check_membership \
16629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16630 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16631 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16632 cat >>confdefs.h <<_ACEOF
16633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16639 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
16640 if test "x$ac_cv_func_getgrouplist" = xyes; then :
16641 $as_echo "#define HAVE_GETGROUPLIST 1" >>confdefs.h
16644 case " $LIBOBJS " in
16645 *" getgrouplist.$ac_objext "* ) ;;
16646 *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
16653 for ac_func in getline
16655 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16656 if test "x$ac_cv_func_getline" = xyes; then :
16657 cat >>confdefs.h <<_ACEOF
16658 #define HAVE_GETLINE 1
16663 case " $LIBOBJS " in
16664 *" getline.$ac_objext "* ) ;;
16665 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16669 for ac_func in fgetln
16671 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
16672 if test "x$ac_cv_func_fgetln" = xyes; then :
16673 cat >>confdefs.h <<_ACEOF
16674 #define HAVE_FGETLN 1
16684 if test "$enable_hardening" != "no"; then
16685 O_CPPFLAGS="$CPPFLAGS"
16686 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
16687 ac_fn_c_check_func "$LINENO" "__sprintf_chk" "ac_cv_func___sprintf_chk"
16688 if test "x$ac_cv_func___sprintf_chk" = xyes; then :
16690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691 /* end confdefs.h. */
16696 char buf[4]; (void)sprintf(buf, "%s", "foo");
16701 if ac_fn_c_try_link "$LINENO"; then :
16702 OSDEFS="${OSDEFS} -D_FORTIFY_SOURCE=2"
16704 rm -f core conftest.err conftest.$ac_objext \
16705 conftest$ac_exeext conftest.$ac_ext
16709 CPPFLAGS="$O_CPPFLAGS"
16713 for ac_func in getutxid getutid
16715 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16716 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16717 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16718 cat >>confdefs.h <<_ACEOF
16719 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16721 utmp_style=POSIX; break
16725 if test "$utmp_style" = "LEGACY"; then
16726 for ac_func in getttyent ttyslot
16728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16730 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16731 cat >>confdefs.h <<_ACEOF
16732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16738 for ac_func in fseeko
16740 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
16741 if test "x$ac_cv_func_fseeko" = xyes; then :
16742 cat >>confdefs.h <<_ACEOF
16743 #define HAVE_FSEEKO 1
16751 for ac_func in sysctl
16753 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
16754 if test "x$ac_cv_func_sysctl" = xyes; then :
16755 cat >>confdefs.h <<_ACEOF
16756 #define HAVE_SYSCTL 1
16758 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_tdev" "ac_cv_member_struct_kinfo_proc_ki_tdev" "
16759 #include <sys/param.h>
16760 #include <sys/sysctl.h>
16761 #include <sys/user.h>
16764 if test "x$ac_cv_member_struct_kinfo_proc_ki_tdev" = xyes; then :
16766 cat >>confdefs.h <<_ACEOF
16767 #define HAVE_STRUCT_KINFO_PROC_KI_TDEV 1
16773 ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_tdev" "ac_cv_member_struct_kinfo_proc2_p_tdev" "
16774 #include <sys/param.h>
16775 #include <sys/sysctl.h>
16778 if test "x$ac_cv_member_struct_kinfo_proc2_p_tdev" = xyes; then :
16780 cat >>confdefs.h <<_ACEOF
16781 #define HAVE_STRUCT_KINFO_PROC2_P_TDEV 1
16787 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_tdev" "ac_cv_member_struct_kinfo_proc_p_tdev" "
16788 #include <sys/param.h>
16789 #include <sys/sysctl.h>
16792 if test "x$ac_cv_member_struct_kinfo_proc_p_tdev" = xyes; then :
16794 cat >>confdefs.h <<_ACEOF
16795 #define HAVE_STRUCT_KINFO_PROC_P_TDEV 1
16801 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_eproc.e_tdev" "ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" "
16802 #include <sys/param.h>
16803 #include <sys/sysctl.h>
16806 if test "x$ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" = xyes; then :
16808 cat >>confdefs.h <<_ACEOF
16809 #define HAVE_STRUCT_KINFO_PROC_KP_EPROC_E_TDEV 1
16829 for ac_func in openpty
16831 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
16832 if test "x$ac_cv_func_openpty" = xyes; then :
16833 cat >>confdefs.h <<_ACEOF
16834 #define HAVE_OPENPTY 1
16836 for ac_header in libutil.h util.h pty.h
16838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16841 cat >>confdefs.h <<_ACEOF
16842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
16852 $as_echo_n "checking for openpty in -lutil... " >&6; }
16853 if ${ac_cv_lib_util_openpty+:} false; then :
16854 $as_echo_n "(cached) " >&6
16856 ac_check_lib_save_LIBS=$LIBS
16857 LIBS="-lutil $LIBS"
16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h. */
16861 /* Override any GCC internal prototype to avoid an error.
16862 Use char because int might match the return type of a GCC
16863 builtin and then its argument prototype would still apply. */
16876 if ac_fn_c_try_link "$LINENO"; then :
16877 ac_cv_lib_util_openpty=yes
16879 ac_cv_lib_util_openpty=no
16881 rm -f core conftest.err conftest.$ac_objext \
16882 conftest$ac_exeext conftest.$ac_ext
16883 LIBS=$ac_check_lib_save_LIBS
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
16886 $as_echo "$ac_cv_lib_util_openpty" >&6; }
16887 if test "x$ac_cv_lib_util_openpty" = xyes; then :
16889 for ac_header in libutil.h util.h pty.h
16891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16892 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16893 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16894 cat >>confdefs.h <<_ACEOF
16895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16902 case "$SUDO_LIBS" in
16904 *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
16906 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
16911 for ac_func in _getpty
16913 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
16914 if test "x$ac_cv_func__getpty" = xyes; then :
16915 cat >>confdefs.h <<_ACEOF
16916 #define HAVE__GETPTY 1
16921 for ac_func in grantpt
16923 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
16924 if test "x$ac_cv_func_grantpt" = xyes; then :
16925 cat >>confdefs.h <<_ACEOF
16926 #define HAVE_GRANTPT 1
16929 for ac_func in posix_openpt
16931 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
16932 if test "x$ac_cv_func_posix_openpt" = xyes; then :
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_POSIX_OPENPT 1
16943 for ac_func in revoke
16945 ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
16946 if test "x$ac_cv_func_revoke" = xyes; then :
16947 cat >>confdefs.h <<_ACEOF
16948 #define HAVE_REVOKE 1
16969 for ac_func in unsetenv
16971 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16972 if test "x$ac_cv_func_unsetenv" = xyes; then :
16973 cat >>confdefs.h <<_ACEOF
16974 #define HAVE_UNSETENV 1
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
16977 $as_echo_n "checking whether unsetenv returns void... " >&6; }
16978 if ${sudo_cv_func_unsetenv_void+:} false; then :
16979 $as_echo_n "(cached) " >&6
16981 if test "$cross_compiling" = yes; then :
16982 sudo_cv_func_unsetenv_void=no
16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985 /* end confdefs.h. */
16986 $ac_includes_default
16993 return unsetenv("FOO") != 0;
17000 if ac_fn_c_try_run "$LINENO"; then :
17001 sudo_cv_func_unsetenv_void=no
17003 sudo_cv_func_unsetenv_void=yes
17005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17006 conftest.$ac_objext conftest.beam conftest.$ac_ext
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
17011 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
17012 if test $sudo_cv_func_unsetenv_void = yes; then
17014 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv takes a const argument" >&5
17022 $as_echo_n "checking whether putenv takes a const argument... " >&6; }
17023 if ${sudo_cv_func_putenv_const+:} false; then :
17024 $as_echo_n "(cached) " >&6
17026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17027 /* end confdefs.h. */
17028 $ac_includes_default
17029 int putenv(const char *string) {return 0;}
17038 if ac_fn_c_try_compile "$LINENO"; then :
17039 sudo_cv_func_putenv_const=yes
17041 sudo_cv_func_putenv_const=no
17043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
17047 $as_echo "$sudo_cv_func_putenv_const" >&6; }
17048 if test $sudo_cv_func_putenv_const = yes; then
17050 $as_echo "#define PUTENV_CONST const" >>confdefs.h
17053 $as_echo "#define PUTENV_CONST /**/" >>confdefs.h
17057 if test -z "$SKIP_SETRESUID"; then
17058 for ac_func in setresuid
17060 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17061 if test "x$ac_cv_func_setresuid" = xyes; then :
17062 cat >>confdefs.h <<_ACEOF
17063 #define HAVE_SETRESUID 1
17067 for ac_func in getresuid
17069 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
17070 if test "x$ac_cv_func_getresuid" = xyes; then :
17071 cat >>confdefs.h <<_ACEOF
17072 #define HAVE_GETRESUID 1
17083 if test -z "$SKIP_SETREUID"; then
17084 for ac_func in setreuid
17086 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17087 if test "x$ac_cv_func_setreuid" = xyes; then :
17088 cat >>confdefs.h <<_ACEOF
17089 #define HAVE_SETREUID 1
17096 if test -z "$SKIP_SETEUID"; then
17097 for ac_func in seteuid
17099 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
17100 if test "x$ac_cv_func_seteuid" = xyes; then :
17101 cat >>confdefs.h <<_ACEOF
17102 #define HAVE_SETEUID 1
17109 if test X"$with_interfaces" != X"no"; then
17110 for ac_func in getifaddrs
17112 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
17113 if test "x$ac_cv_func_getifaddrs" = xyes; then :
17114 cat >>confdefs.h <<_ACEOF
17115 #define HAVE_GETIFADDRS 1
17117 for ac_func in freeifaddrs
17119 ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
17120 if test "x$ac_cv_func_freeifaddrs" = xyes; then :
17121 cat >>confdefs.h <<_ACEOF
17122 #define HAVE_FREEIFADDRS 1
17132 if test -z "$BROKEN_GETCWD"; then
17133 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
17134 if test "x$ac_cv_func_getcwd" = xyes; then :
17135 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
17138 case " $LIBOBJS " in
17139 *" getcwd.$ac_objext "* ) ;;
17140 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
17148 for ac_func in lockf flock
17150 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17151 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17152 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17153 cat >>confdefs.h <<_ACEOF
17154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17160 for ac_func in innetgr _innetgr
17162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17163 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17164 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17165 cat >>confdefs.h <<_ACEOF
17166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17168 for ac_func in getdomainname
17170 ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
17171 if test "x$ac_cv_func_getdomainname" = xyes; then :
17172 cat >>confdefs.h <<_ACEOF
17173 #define HAVE_GETDOMAINNAME 1
17182 for ac_func in utimes
17184 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
17185 if test "x$ac_cv_func_utimes" = xyes; then :
17186 cat >>confdefs.h <<_ACEOF
17187 #define HAVE_UTIMES 1
17189 for ac_func in futimes futimesat
17191 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17192 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17193 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17194 cat >>confdefs.h <<_ACEOF
17195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17202 for ac_func in futime
17204 ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
17205 if test "x$ac_cv_func_futime" = xyes; then :
17206 cat >>confdefs.h <<_ACEOF
17207 #define HAVE_FUTIME 1
17212 case " $LIBOBJS " in
17213 *" utimes.$ac_objext "* ) ;;
17214 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17221 for ac_func in killpg
17223 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
17224 if test "x$ac_cv_func_killpg" = xyes; then :
17225 cat >>confdefs.h <<_ACEOF
17226 #define HAVE_KILLPG 1
17230 case " $LIBOBJS " in
17231 *" killpg.$ac_objext "* ) ;;
17232 *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
17240 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
17241 if ${sudo_cv_func_fnmatch+:} false; then :
17242 $as_echo_n "(cached) " >&6
17244 rm -f conftestdata; > conftestdata
17245 if test "$cross_compiling" = yes; then :
17246 sudo_cv_func_fnmatch=no
17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h. */
17250 #include <fnmatch.h>
17251 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17253 if ac_fn_c_try_run "$LINENO"; then :
17254 sudo_cv_func_fnmatch=yes
17256 sudo_cv_func_fnmatch=no
17258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17259 conftest.$ac_objext conftest.beam conftest.$ac_ext
17262 rm -f core core.* *.core
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
17266 $as_echo "$sudo_cv_func_fnmatch" >&6; }
17267 if test $sudo_cv_func_fnmatch = yes; then :
17268 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
17271 case " $LIBOBJS " in
17272 *" fnmatch.$ac_objext "* ) ;;
17273 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17277 COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }fnm_test"
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
17281 $as_echo_n "checking for isblank... " >&6; }
17282 if ${sudo_cv_func_isblank+:} false; then :
17283 $as_echo_n "(cached) " >&6
17285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17286 /* end confdefs.h. */
17291 return (isblank('a'));
17296 if ac_fn_c_try_link "$LINENO"; then :
17297 sudo_cv_func_isblank=yes
17299 sudo_cv_func_isblank=no
17301 rm -f core conftest.err conftest.$ac_objext \
17302 conftest$ac_exeext conftest.$ac_ext
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
17305 $as_echo "$sudo_cv_func_isblank" >&6; }
17307 if test "$sudo_cv_func_isblank" = "yes"; then
17309 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
17312 case " $LIBOBJS " in
17313 *" isblank.$ac_objext "* ) ;;
17314 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17320 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
17321 if test "x$ac_cv_func_memrchr" = xyes; then :
17322 $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
17325 case " $LIBOBJS " in
17326 *" memrchr.$ac_objext "* ) ;;
17327 *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
17333 ac_fn_c_check_func "$LINENO" "pw_dup" "ac_cv_func_pw_dup"
17334 if test "x$ac_cv_func_pw_dup" = xyes; then :
17335 $as_echo "#define HAVE_PW_DUP 1" >>confdefs.h
17338 case " $LIBOBJS " in
17339 *" pw_dup.$ac_objext "* ) ;;
17340 *) LIBOBJS="$LIBOBJS pw_dup.$ac_objext"
17346 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17347 if test "x$ac_cv_func_strlcpy" = xyes; then :
17348 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17351 case " $LIBOBJS " in
17352 *" strlcpy.$ac_objext "* ) ;;
17353 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17359 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17360 if test "x$ac_cv_func_strlcat" = xyes; then :
17361 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
17364 case " $LIBOBJS " in
17365 *" strlcat.$ac_objext "* ) ;;
17366 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
17373 for ac_func in nanosleep
17375 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17376 if test "x$ac_cv_func_nanosleep" = xyes; then :
17377 cat >>confdefs.h <<_ACEOF
17378 #define HAVE_NANOSLEEP 1
17383 # On Solaris, nanosleep is in librt
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
17385 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
17386 if ${ac_cv_lib_rt_nanosleep+:} false; then :
17387 $as_echo_n "(cached) " >&6
17389 ac_check_lib_save_LIBS=$LIBS
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17394 /* Override any GCC internal prototype to avoid an error.
17395 Use char because int might match the return type of a GCC
17396 builtin and then its argument prototype would still apply. */
17404 return nanosleep ();
17409 if ac_fn_c_try_link "$LINENO"; then :
17410 ac_cv_lib_rt_nanosleep=yes
17412 ac_cv_lib_rt_nanosleep=no
17414 rm -f core conftest.err conftest.$ac_objext \
17415 conftest$ac_exeext conftest.$ac_ext
17416 LIBS=$ac_check_lib_save_LIBS
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
17419 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
17420 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
17421 REPLAY_LIBS="${REPLAY_LIBS} -lrt"
17423 case " $LIBOBJS " in
17424 *" nanosleep.$ac_objext "* ) ;;
17425 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
17435 for ac_func in closefrom
17437 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
17438 if test "x$ac_cv_func_closefrom" = xyes; then :
17439 cat >>confdefs.h <<_ACEOF
17440 #define HAVE_CLOSEFROM 1
17444 case " $LIBOBJS " in
17445 *" closefrom.$ac_objext "* ) ;;
17446 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17450 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
17453 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
17454 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
17462 for ac_func in mkstemps mkdtemp
17464 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17465 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17466 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17467 cat >>confdefs.h <<_ACEOF
17468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17473 for ac_func in random lrand48
17475 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17476 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17477 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17478 cat >>confdefs.h <<_ACEOF
17479 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17485 case " $LIBOBJS " in
17486 *" mktemp.$ac_objext "* ) ;;
17487 *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
17495 for ac_func in snprintf vsnprintf asprintf vasprintf
17497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17500 cat >>confdefs.h <<_ACEOF
17501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17509 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17510 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17511 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17512 $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
17514 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
17515 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
17516 $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
17521 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
17522 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
17523 $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
17530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531 /* end confdefs.h. */
17532 #include <sys/types.h>
17533 #include <$ac_header_dirent>
17537 DIR *d; (void)dirfd(d);
17542 if ac_fn_c_try_link "$LINENO"; then :
17543 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547 /* end confdefs.h. */
17548 #include <sys/types.h>
17549 #include <$ac_header_dirent>
17553 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17558 if ac_fn_c_try_link "$LINENO"; then :
17559 $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
17562 rm -f core conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
17565 rm -f core conftest.err conftest.$ac_objext \
17566 conftest$ac_exeext conftest.$ac_ext
17567 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17568 $ac_includes_default
17569 #include <$ac_header_dirent>
17572 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17574 cat >>confdefs.h <<_ACEOF
17575 #define HAVE_STRUCT_DIRENT_D_TYPE 1
17581 if test -n "$NEED_SNPRINTF"; then
17582 case " $LIBOBJS " in
17583 *" snprintf.$ac_objext "* ) ;;
17584 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17589 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17590 if test "x$ac_cv_func_socket" = xyes; then :
17594 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17596 for lib in $libs; do
17597 case "$NET_LIBS" in
17599 *) _libs="$_libs $lib";;
17603 test -z "$libs" && continue
17604 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17605 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17607 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5
17609 $as_echo_n "checking for socket in -l$lib${5+ }$extralibs... " >&6; }
17610 if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17611 $as_echo_n "(cached) " >&6
17614 SUDO_CHECK_LIB_OLIBS="$LIBS"
17615 LIBS="$LIBS -l$lib${5+ }$extralibs"
17616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h. */
17619 /* Override any GCC internal prototype to avoid an error.
17620 Use char because int might match the return type of a GCC
17621 builtin and then its argument prototype would still apply. */
17634 if ac_fn_c_try_link "$LINENO"; then :
17635 eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes
17637 eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no
17640 rm -f core conftest.err conftest.$ac_objext \
17641 conftest$ac_exeext conftest.$ac_ext
17642 LIBS="$SUDO_CHECK_LIB_OLIBS"
17646 if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17648 $as_echo "yes" >&6; }
17649 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17652 $as_echo "no" >&6; }
17660 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
17661 if test "x$ac_cv_func_inet_addr" = xyes; then :
17665 ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
17666 if test "x$ac_cv_func___inet_addr" = xyes; then :
17670 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17672 for lib in $libs; do
17673 case "$NET_LIBS" in
17675 *) _libs="$_libs $lib";;
17679 test -z "$libs" && continue
17680 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17681 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17683 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -l$lib${5+ }$extralibs" >&5
17685 $as_echo_n "checking for inet_addr in -l$lib${5+ }$extralibs... " >&6; }
17686 if { as_var=sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17687 $as_echo_n "(cached) " >&6
17690 SUDO_CHECK_LIB_OLIBS="$LIBS"
17691 LIBS="$LIBS -l$lib${5+ }$extralibs"
17692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17693 /* end confdefs.h. */
17695 /* Override any GCC internal prototype to avoid an error.
17696 Use char because int might match the return type of a GCC
17697 builtin and then its argument prototype would still apply. */
17705 return inet_addr ();
17710 if ac_fn_c_try_link "$LINENO"; then :
17711 eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=yes
17713 eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=no
17716 rm -f core conftest.err conftest.$ac_objext \
17717 conftest$ac_exeext conftest.$ac_ext
17718 LIBS="$SUDO_CHECK_LIB_OLIBS"
17722 if eval test \$sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras = "yes"; then
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17724 $as_echo "yes" >&6; }
17725 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17728 $as_echo "no" >&6; }
17739 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
17740 if test "x$ac_cv_func_syslog" = xyes; then :
17744 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17746 for lib in $libs; do
17747 case "$NET_LIBS" in
17749 *) _libs="$_libs $lib";;
17753 test -z "$libs" && continue
17754 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17755 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17757 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5
17759 $as_echo_n "checking for syslog in -l$lib${5+ }$extralibs... " >&6; }
17760 if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17761 $as_echo_n "(cached) " >&6
17764 SUDO_CHECK_LIB_OLIBS="$LIBS"
17765 LIBS="$LIBS -l$lib${5+ }$extralibs"
17766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767 /* end confdefs.h. */
17769 /* Override any GCC internal prototype to avoid an error.
17770 Use char because int might match the return type of a GCC
17771 builtin and then its argument prototype would still apply. */
17784 if ac_fn_c_try_link "$LINENO"; then :
17785 eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes
17787 eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no
17790 rm -f core conftest.err conftest.$ac_objext \
17791 conftest$ac_exeext conftest.$ac_ext
17792 LIBS="$SUDO_CHECK_LIB_OLIBS"
17796 if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17798 $as_echo "yes" >&6; }
17799 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17802 $as_echo "no" >&6; }
17810 for ac_func in getaddrinfo
17812 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17813 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17814 cat >>confdefs.h <<_ACEOF
17815 #define HAVE_GETADDRINFO 1
17821 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17823 for lib in $libs; do
17824 case "$NET_LIBS" in
17826 *) _libs="$_libs $lib";;
17830 test -z "$libs" && continue
17831 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17832 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17834 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib${5+ }$extralibs" >&5
17836 $as_echo_n "checking for getaddrinfo in -l$lib${5+ }$extralibs... " >&6; }
17837 if { as_var=sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17838 $as_echo_n "(cached) " >&6
17841 SUDO_CHECK_LIB_OLIBS="$LIBS"
17842 LIBS="$LIBS -l$lib${5+ }$extralibs"
17843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h. */
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17852 char getaddrinfo ();
17856 return getaddrinfo ();
17861 if ac_fn_c_try_link "$LINENO"; then :
17862 eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=yes
17864 eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=no
17867 rm -f core conftest.err conftest.$ac_objext \
17868 conftest$ac_exeext conftest.$ac_ext
17869 LIBS="$SUDO_CHECK_LIB_OLIBS"
17873 if eval test \$sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras = "yes"; then
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17875 $as_echo "yes" >&6; }
17876 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; found=yes; break
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17879 $as_echo "no" >&6; }
17884 if test X"$found" != X"no"; then
17885 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17892 for ac_func in getprogname
17894 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17895 if test "x$ac_cv_func_getprogname" = xyes; then :
17896 cat >>confdefs.h <<_ACEOF
17897 #define HAVE_GETPROGNAME 1
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
17903 $as_echo_n "checking for __progname... " >&6; }
17904 if ${sudo_cv___progname+:} false; then :
17905 $as_echo_n "(cached) " >&6
17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h. */
17914 extern char *__progname; (void)puts(__progname);
17919 if ac_fn_c_try_link "$LINENO"; then :
17920 sudo_cv___progname=yes
17922 sudo_cv___progname=no
17924 rm -f core conftest.err conftest.$ac_objext \
17925 conftest$ac_exeext conftest.$ac_ext
17928 if test "$sudo_cv___progname" = "yes"; then
17929 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17932 case " $LIBOBJS " in
17933 *" getprogname.$ac_objext "* ) ;;
17934 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
17940 $as_echo "$sudo_cv___progname" >&6; }
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
17946 $as_echo_n "checking for __func__... " >&6; }
17947 if ${sudo_cv___func__+:} false; then :
17948 $as_echo_n "(cached) " >&6
17951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17952 /* end confdefs.h. */
17957 (void)puts(__func__);
17962 if ac_fn_c_try_link "$LINENO"; then :
17963 sudo_cv___func__=yes
17965 sudo_cv___func__=no
17967 rm -f core conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___func__" >&5
17972 $as_echo "$sudo_cv___func__" >&6; }
17973 if test "$sudo_cv___func__" = "yes"; then
17974 $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
17976 elif test -n "$GCC"; then
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
17978 $as_echo_n "checking for __FUNCTION__... " >&6; }
17979 if ${sudo_cv___FUNCTION__+:} false; then :
17980 $as_echo_n "(cached) " >&6
17983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h. */
17989 (void)puts(__FUNCTION__);
17994 if ac_fn_c_try_link "$LINENO"; then :
17995 sudo_cv___FUNCTION__=yes
17997 sudo_cv___FUNCTION__=no
17999 rm -f core conftest.err conftest.$ac_objext \
18000 conftest$ac_exeext conftest.$ac_ext
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___FUNCTION__" >&5
18004 $as_echo "$sudo_cv___FUNCTION__" >&6; }
18005 if test "$sudo_cv___FUNCTION__" = "yes"; then
18006 $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
18009 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
18014 # gettext() and friends may be located in libc (Linux and Solaris)
18015 # or in libintl. However, it is possible to have libintl installed
18016 # even when gettext() is present in libc. In the case of GNU libintl,
18017 # gettext() will be defined to gettext_libintl in libintl.h.
18018 # Since gcc prefers /usr/local/include to /usr/include, we need to
18019 # make sure we use the gettext() that matches the include file.
18020 if test "$enable_nls" != "no"; then
18021 if test "$enable_nls" != "yes"; then
18022 CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
18024 if test X"$with_rpath" = X"yes"; then
18026 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,+b,$enable_nls/lib"
18028 *) LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,-R$enable_nls/lib"
18032 LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
18034 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18035 blibpath_add="${blibpath_add}:$enable_nls/lib"
18040 for l in "libc" "-lintl" "-lintl -liconv"; do
18041 if test "$l" = "libc"; then
18042 # If user specified a dir for libintl ignore libc
18043 if test "$enable_nls" != "yes"; then
18046 gettext_name=sudo_cv_gettext
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
18048 $as_echo_n "checking for gettext... " >&6; }
18051 gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
18053 $as_echo_n "checking for gettext in $l... " >&6; }
18055 if eval \${$gettext_name+:} false; then :
18056 $as_echo_n "(cached) " >&6
18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h. */
18062 #include <libintl.h>
18066 (void)gettext((char *)0);
18072 if ac_fn_c_try_link "$LINENO"; then :
18073 eval $gettext_name=yes
18075 eval $gettext_name=no
18078 rm -f core conftest.err conftest.$ac_objext \
18079 conftest$ac_exeext conftest.$ac_ext
18083 eval gettext_result="\$$gettext_name"
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
18085 $as_echo "$gettext_result" >&6; }
18086 if test "$gettext_result" = "yes"; then
18087 for ac_func in ngettext
18089 ac_fn_c_check_func "$LINENO" "ngettext" "ac_cv_func_ngettext"
18090 if test "x$ac_cv_func_ngettext" = xyes; then :
18091 cat >>confdefs.h <<_ACEOF
18092 #define HAVE_NGETTEXT 1
18103 if test "$sudo_cv_gettext" = "yes"; then
18104 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18107 elif test "$sudo_cv_gettext_lintl" = "yes"; then
18108 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18112 elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
18113 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18116 LIBINTL="-lintl -liconv"
18120 case "$enable_zlib" in
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
18123 $as_echo_n "checking for gzdopen in -lz... " >&6; }
18124 if ${ac_cv_lib_z_gzdopen+:} false; then :
18125 $as_echo_n "(cached) " >&6
18127 ac_check_lib_save_LIBS=$LIBS
18129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h. */
18132 /* Override any GCC internal prototype to avoid an error.
18133 Use char because int might match the return type of a GCC
18134 builtin and then its argument prototype would still apply. */
18147 if ac_fn_c_try_link "$LINENO"; then :
18148 ac_cv_lib_z_gzdopen=yes
18150 ac_cv_lib_z_gzdopen=no
18152 rm -f core conftest.err conftest.$ac_objext \
18153 conftest$ac_exeext conftest.$ac_ext
18154 LIBS=$ac_check_lib_save_LIBS
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
18157 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
18158 if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
18160 for ac_header in zlib.h
18162 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18163 if test "x$ac_cv_header_zlib_h" = xyes; then :
18164 cat >>confdefs.h <<_ACEOF
18165 #define HAVE_ZLIB_H 1
18169 enable_zlib=builtin
18181 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18189 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18191 CPPFLAGS="-I${enable_zlib}/include ${CPPFLAGS}"
18193 if test X"$with_rpath" = X"yes"; then
18195 *-*-hpux*) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
18197 *) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
18201 ZLIB="${ZLIB} -L$enable_zlib/lib"
18203 if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
18204 blibpath_add="${blibpath_add}:$enable_zlib/lib"
18210 if test X"$enable_zlib" = X"builtin"; then
18211 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18213 CPPFLAGS='-I$(top_builddir)/zlib -I$(top_srcdir)/zlib '"${CPPFLAGS}"
18214 ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
18216 ac_config_headers="$ac_config_headers zlib/zconf.h"
18218 ac_config_files="$ac_config_files zlib/Makefile"
18222 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
18223 $ac_includes_default
18227 if test "x$ac_cv_have_decl_errno" = xyes; then :
18233 cat >>confdefs.h <<_ACEOF
18234 #define HAVE_DECL_ERRNO $ac_have_decl
18238 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
18239 $ac_includes_default
18243 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
18249 cat >>confdefs.h <<_ACEOF
18250 #define HAVE_DECL_H_ERRNO $ac_have_decl
18254 for ac_func in strsignal
18256 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
18257 if test "x$ac_cv_func_strsignal" = xyes; then :
18258 cat >>confdefs.h <<_ACEOF
18259 #define HAVE_STRSIGNAL 1
18264 case " $LIBOBJS " in
18265 *" strsignal.$ac_objext "* ) ;;
18266 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
18270 HAVE_SIGLIST="false"
18271 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
18272 $ac_includes_default
18273 #include <signal.h>
18276 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
18282 cat >>confdefs.h <<_ACEOF
18283 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
18285 if test $ac_have_decl = 1; then :
18287 HAVE_SIGLIST="true"
18291 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
18292 $ac_includes_default
18293 #include <signal.h>
18296 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
18302 cat >>confdefs.h <<_ACEOF
18303 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
18305 if test $ac_have_decl = 1; then :
18307 HAVE_SIGLIST="true"
18311 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
18312 $ac_includes_default
18313 #include <signal.h>
18316 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
18322 cat >>confdefs.h <<_ACEOF
18323 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
18325 if test $ac_have_decl = 1; then :
18327 HAVE_SIGLIST="true"
18332 if test "$HAVE_SIGLIST" != "true"; then
18333 case " $LIBOBJS " in
18334 *" siglist.$ac_objext "* ) ;;
18335 *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
18345 for ac_func in sig2str
18347 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
18348 if test "x$ac_cv_func_sig2str" = xyes; then :
18349 cat >>confdefs.h <<_ACEOF
18350 #define HAVE_SIG2STR 1
18355 case " $LIBOBJS " in
18356 *" sig2str.$ac_objext "* ) ;;
18357 *) LIBOBJS="$LIBOBJS sig2str.$ac_objext"
18361 HAVE_SIGNAME="false"
18362 ac_fn_c_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "
18363 $ac_includes_default
18364 #include <signal.h>
18367 if test "x$ac_cv_have_decl_sys_signame" = xyes; then :
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_DECL_SYS_SIGNAME $ac_have_decl
18376 if test $ac_have_decl = 1; then :
18378 HAVE_SIGNAME="true"
18382 ac_fn_c_check_decl "$LINENO" "_sys_signame" "ac_cv_have_decl__sys_signame" "
18383 $ac_includes_default
18384 #include <signal.h>
18387 if test "x$ac_cv_have_decl__sys_signame" = xyes; then :
18393 cat >>confdefs.h <<_ACEOF
18394 #define HAVE_DECL__SYS_SIGNAME $ac_have_decl
18396 if test $ac_have_decl = 1; then :
18398 HAVE_SIGNAME="true"
18402 ac_fn_c_check_decl "$LINENO" "__sys_signame" "ac_cv_have_decl___sys_signame" "
18403 $ac_includes_default
18404 #include <signal.h>
18407 if test "x$ac_cv_have_decl___sys_signame" = xyes; then :
18413 cat >>confdefs.h <<_ACEOF
18414 #define HAVE_DECL___SYS_SIGNAME $ac_have_decl
18416 if test $ac_have_decl = 1; then :
18418 HAVE_SIGNAME="true"
18422 ac_fn_c_check_decl "$LINENO" "sys_sigabbrev" "ac_cv_have_decl_sys_sigabbrev" "
18423 $ac_includes_default
18424 #include <signal.h>
18427 if test "x$ac_cv_have_decl_sys_sigabbrev" = xyes; then :
18433 cat >>confdefs.h <<_ACEOF
18434 #define HAVE_DECL_SYS_SIGABBREV $ac_have_decl
18436 if test $ac_have_decl = 1; then :
18438 HAVE_SIGNAME="true"
18443 if test "$HAVE_SIGNAME" != "true"; then
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for undeclared sys_sigabbrev" >&5
18445 $as_echo_n "checking for undeclared sys_sigabbrev... " >&6; }
18446 if ${sudo_cv_var_sys_sigabbrev+:} false; then :
18447 $as_echo_n "(cached) " >&6
18449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18450 /* end confdefs.h. */
18451 extern char **sys_sigabbrev;
18455 return sys_sigabbrev[1];
18460 if ac_fn_c_try_link "$LINENO"; then :
18461 sudo_cv_var_sys_sigabbrev=yes
18463 sudo_cv_var_sys_sigabbrev=no
18466 rm -f core conftest.err conftest.$ac_objext \
18467 conftest$ac_exeext conftest.$ac_ext
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_sys_sigabbrev" >&5
18472 $as_echo "$sudo_cv_var_sys_sigabbrev" >&6; }
18473 if test "$sudo_cv_var_sys_sigabbrev" = yes; then
18474 $as_echo "#define HAVE_SYS_SIGABBREV 1" >>confdefs.h
18477 case " $LIBOBJS " in
18478 *" signame.$ac_objext "* ) ;;
18479 *) LIBOBJS="$LIBOBJS signame.$ac_objext"
18490 if test ${with_netsvc-"no"} != "no"; then
18491 cat >>confdefs.h <<EOF
18492 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
18495 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
18496 elif test ${with_nsswitch-"yes"} != "no"; then
18497 cat >>confdefs.h <<EOF
18498 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
18501 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
18505 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
18506 for auth in $AUTH_EXCL_DEF; do
18508 AIX_AUTH) with_aixauth=maybe;;
18509 BSD_AUTH) with_bsdauth=maybe;;
18510 PAM) with_pam=maybe;;
18511 SIA) CHECKSIA=true;;
18516 if test ${with_pam-"no"} != "no"; then
18518 # Check for pam_start() in libpam first, then for pam_appl.h.
18521 as_ac_Lib=`$as_echo "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | $as_tr_sh`
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18523 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18524 if eval \${$as_ac_Lib+:} false; then :
18525 $as_echo_n "(cached) " >&6
18527 ac_check_lib_save_LIBS=$LIBS
18528 LIBS="-lpam $lt_cv_dlopen_libs $LIBS"
18529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18530 /* end confdefs.h. */
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18542 return pam_start ();
18547 if ac_fn_c_try_link "$LINENO"; then :
18548 eval "$as_ac_Lib=yes"
18550 eval "$as_ac_Lib=no"
18552 rm -f core conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
18554 LIBS=$ac_check_lib_save_LIBS
18556 eval ac_res=\$$as_ac_Lib
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18558 $as_echo "$ac_res" >&6; }
18559 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18564 # Some PAM implementations (MacOS X for example) put the PAM headers
18565 # in /usr/include/pam instead of /usr/include/security...
18568 for ac_header in security/pam_appl.h pam/pam_appl.h
18570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18571 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18573 cat >>confdefs.h <<_ACEOF
18574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18576 found_pam_hdrs=yes; break
18581 if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"; then
18582 # Found both PAM libs and headers
18584 elif test "$with_pam" = "yes"; then
18585 if test "$found_pam_lib" = "no"; then
18586 as_fn_error $? "\"--with-pam specified but unable to locate PAM development library.\"" "$LINENO" 5
18588 if test "$found_pam_hdrs" = "no"; then
18589 as_fn_error $? "\"--with-pam specified but unable to locate PAM development headers.\"" "$LINENO" 5
18591 elif test "$found_pam_lib" != "$found_pam_hdrs"; then
18592 if test "$found_pam_lib" = "no"; then
18593 as_fn_error $? "\"found PAM headers but no PAM development library; specify --without-pam to build without PAM\"" "$LINENO" 5
18595 if test "$found_pam_hdrs" = "no"; then
18596 as_fn_error $? "\"found PAM library but no PAM development headers; specify --without-pam to build without PAM\"" "$LINENO" 5
18600 if test "$with_pam" = "yes"; then
18601 # Older PAM implementations lack pam_getenvlist
18603 LIBS="$LIBS -lpam $lt_cv_dlopen_libs"
18604 for ac_func in pam_getenvlist
18606 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
18607 if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
18608 cat >>confdefs.h <<_ACEOF
18609 #define HAVE_PAM_GETENVLIST 1
18617 # We already link with -ldl if needed (see LIBDL below)
18618 SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
18619 $as_echo "#define HAVE_PAM 1" >>confdefs.h
18621 AUTH_OBJS="$AUTH_OBJS pam.lo";
18625 # Check whether --with-pam-login was given.
18626 if test "${with_pam_login+set}" = set; then :
18627 withval=$with_pam_login; case $with_pam_login in
18628 yes) $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
18631 $as_echo_n "checking whether to use PAM login... " >&6; }
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18633 $as_echo "yes" >&6; }
18636 *) as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
18643 $as_echo_n "checking whether to use PAM session support... " >&6; }
18644 # Check whether --enable-pam_session was given.
18645 if test "${enable_pam_session+set}" = set; then :
18646 enableval=$enable_pam_session; case "$enableval" in
18647 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18648 $as_echo "yes" >&6; }
18650 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18651 $as_echo "no" >&6; }
18652 $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
18655 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18656 $as_echo "no" >&6; }
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
18658 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18663 $as_echo "yes" >&6; }
18669 if test ${with_aixauth-'no'} != "no"; then
18670 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
18672 $as_echo "$as_me: using AIX general authentication" >&6;}
18673 $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
18675 AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
18676 SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
18681 if test ${with_bsdauth-'no'} != "no"; then
18682 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
18683 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
18684 $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
18686 AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
18687 BSDAUTH_USAGE='[-a auth_type] '
18688 AUTH_EXCL=BSD_AUTH; BAMAN=1
18690 as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
18696 if test ${CHECKSIA-'false'} = "true"; then
18697 for ac_func in sia_ses_init
18699 ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
18700 if test "x$ac_cv_func_sia_ses_init" = xyes; then :
18701 cat >>confdefs.h <<_ACEOF
18702 #define HAVE_SIA_SES_INIT 1
18710 if test "$found" = "true"; then
18712 AUTH_OBJS="$AUTH_OBJS sia.lo"
18716 if test ${with_fwtk-'no'} != "no"; then
18717 if test "$with_fwtk" != "yes"; then
18719 if test X"$with_rpath" = X"yes"; then
18721 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
18723 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
18727 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
18729 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18730 blibpath_add="${blibpath_add}:${with_fwtk}"
18733 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
18736 SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
18737 AUTH_OBJS="$AUTH_OBJS fwtk.lo"
18740 if test ${with_SecurID-'no'} != "no"; then
18741 if test "$with_SecurID" != "yes"; then
18743 elif test -d /usr/ace/examples; then
18744 with_SecurID=/usr/ace/examples
18746 with_SecurID=/usr/ace
18748 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
18750 if test X"$with_rpath" = X"yes"; then
18752 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18754 *) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18758 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
18760 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18761 blibpath_add="${blibpath_add}:${with_SecurID}"
18764 SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
18765 AUTH_OBJS="$AUTH_OBJS securid5.lo";
18769 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
18770 for auth in $AUTH_DEF; do
18772 passwd) : ${with_passwd='maybe'};;
18777 if test ${with_kerb5-'no'} != "no"; then
18778 # Extract the first word of "krb5-config", so it can be a program name with args.
18779 set dummy krb5-config; ac_word=$2
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18781 $as_echo_n "checking for $ac_word... " >&6; }
18782 if ${ac_cv_prog_KRB5CONFIG+:} false; then :
18783 $as_echo_n "(cached) " >&6
18785 if test -n "$KRB5CONFIG"; then
18786 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
18788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18789 for as_dir in $PATH
18792 test -z "$as_dir" && as_dir=.
18793 for ac_exec_ext in '' $ac_executable_extensions; do
18794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18795 ac_cv_prog_KRB5CONFIG="yes"
18796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18803 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
18806 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
18807 if test -n "$KRB5CONFIG"; then
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
18809 $as_echo "$KRB5CONFIG" >&6; }
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18812 $as_echo "no" >&6; }
18816 if test -n "$KRB5CONFIG"; then
18817 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18819 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18820 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
18821 SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18823 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825 /* end confdefs.h. */
18830 const char *tmp = heimdal_version;
18835 if ac_fn_c_try_compile "$LINENO"; then :
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18838 $as_echo "yes" >&6; }
18839 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18845 $as_echo "no" >&6; }
18849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18851 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18853 if test "$with_kerb5" = "yes"; then
18855 O_CPPFLAGS="$CPPFLAGS"
18856 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
18857 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18859 /* end confdefs.h. */
18869 if ac_fn_c_try_cpp "$LINENO"; then :
18872 rm -f conftest.err conftest.i conftest.$ac_ext
18874 if test X"$found" = X"no"; then
18875 CPPFLAGS="$O_CPPFLAGS"
18876 { $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
18877 $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;}
18881 if test X"$with_rpath" = X"yes"; then
18883 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
18885 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
18889 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
18891 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18892 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
18895 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18899 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h. */
18906 const char *tmp = heimdal_version;
18911 if ac_fn_c_try_compile "$LINENO"; then :
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18914 $as_echo "yes" >&6; }
18915 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18917 # XXX - need to check whether -lcrypo is needed!
18918 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18920 $as_echo_n "checking for main in -lroken... " >&6; }
18921 if ${ac_cv_lib_roken_main+:} false; then :
18922 $as_echo_n "(cached) " >&6
18924 ac_check_lib_save_LIBS=$LIBS
18925 LIBS="-lroken $LIBS"
18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18927 /* end confdefs.h. */
18938 if ac_fn_c_try_link "$LINENO"; then :
18939 ac_cv_lib_roken_main=yes
18941 ac_cv_lib_roken_main=no
18943 rm -f core conftest.err conftest.$ac_objext \
18944 conftest$ac_exeext conftest.$ac_ext
18945 LIBS=$ac_check_lib_save_LIBS
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18948 $as_echo "$ac_cv_lib_roken_main" >&6; }
18949 if test "x$ac_cv_lib_roken_main" = xyes; then :
18950 SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18957 $as_echo "no" >&6; }
18958 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
18960 $as_echo_n "checking for main in -lkrb5support... " >&6; }
18961 if ${ac_cv_lib_krb5support_main+:} false; then :
18962 $as_echo_n "(cached) " >&6
18964 ac_check_lib_save_LIBS=$LIBS
18965 LIBS="-lkrb5support $LIBS"
18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967 /* end confdefs.h. */
18978 if ac_fn_c_try_link "$LINENO"; then :
18979 ac_cv_lib_krb5support_main=yes
18981 ac_cv_lib_krb5support_main=no
18983 rm -f core conftest.err conftest.$ac_objext \
18984 conftest$ac_exeext conftest.$ac_ext
18985 LIBS=$ac_check_lib_save_LIBS
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
18988 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
18989 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
18990 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
18995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18996 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18999 LIBS="${LIBS} ${SUDOERS_LIBS}"
19000 for ac_func in krb5_verify_user krb5_init_secure_context
19002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19003 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19004 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19005 cat >>confdefs.h <<_ACEOF
19006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19012 for ac_func in krb5_get_init_creds_opt_alloc
19014 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
19015 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
19016 cat >>confdefs.h <<_ACEOF
19017 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
19021 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
19022 if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
19023 $as_echo_n "(cached) " >&6
19026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h. */
19032 krb5_get_init_creds_opt_free(NULL, NULL);
19038 if ac_fn_c_try_compile "$LINENO"; then :
19039 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
19041 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
19044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
19049 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
19054 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
19055 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an instance name for Kerberos V" >&5
19060 $as_echo_n "checking whether to use an instance name for Kerberos V... " >&6; }
19061 # Check whether --enable-kerb5-instance was given.
19062 if test "${enable_kerb5_instance+set}" = set; then :
19063 enableval=$enable_kerb5_instance; case "$enableval" in
19064 yes) as_fn_error $? "\"must give --enable-kerb5-instance an argument.\"" "$LINENO" 5
19066 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19067 $as_echo "no" >&6; }
19069 *) cat >>confdefs.h <<EOF
19070 #define SUDO_KRB5_INSTANCE "$enableval"
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
19074 $as_echo "$enableval" >&6; }
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19079 $as_echo "no" >&6; }
19084 if test ${with_AFS-'no'} = "yes"; then
19086 # looks like the "standard" place for AFS libs is /usr/afsws/lib
19087 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
19088 for i in $AFSLIBDIRS; do
19089 if test -d ${i}; then
19091 if test X"$with_rpath" = X"yes"; then
19093 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,+b,$i"
19095 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,-R$i"
19099 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
19101 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19102 blibpath_add="${blibpath_add}:$i"
19105 FOUND_AFSLIBDIR=true
19108 if test -z "$FOUND_AFSLIBDIR"; then
19109 { $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
19110 $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;}
19113 # Order is important here. Note that we build AFS_LIBS from right to left
19114 # since AFS_LIBS may be initialized with BSD compat libs that must go last
19115 AFS_LIBS="-laudit ${AFS_LIBS}"
19116 for i in $AFSLIBDIRS; do
19117 if test -f ${i}/util.a; then
19118 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
19123 if test -z "$FOUND_UTIL_A"; then
19124 AFS_LIBS="-lutil ${AFS_LIBS}"
19126 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
19128 # AFS includes may live in /usr/include on some machines...
19129 for i in /usr/afsws/include; do
19130 if test -d ${i}; then
19131 CPPFLAGS="${CPPFLAGS} -I${i}"
19132 FOUND_AFSINCDIR=true
19136 if test -z "$FOUND_AFSLIBDIR"; then
19137 { $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
19138 $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;}
19141 AUTH_OBJS="$AUTH_OBJS afs.lo"
19144 if test ${with_DCE-'no'} = "yes"; then
19145 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
19146 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
19147 AUTH_OBJS="$AUTH_OBJS dce.lo"
19150 if test "${with_skey-'no'}" = "yes"; then
19151 O_LDFLAGS="$LDFLAGS"
19152 if test "$with_skey" != "yes"; then
19153 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
19155 if test X"$with_rpath" = X"yes"; then
19157 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
19159 *) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
19163 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
19165 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19166 blibpath_add="${blibpath_add}:${with_skey}/lib"
19170 if test X"$with_rpath" = X"yes"; then
19172 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
19174 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
19178 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
19180 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19181 blibpath_add="${blibpath_add}:${with_skey}/lib"
19184 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
19186 if test "x$ac_cv_header_skey_h" = xyes; then :
19195 O_CPPFLAGS="$CPPFLAGS"
19196 for dir in "" "/usr/local" "/usr/contrib"; do
19197 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19198 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
19200 if test "x$ac_cv_header_skey_h" = xyes; then :
19206 if test "$found" = "no" -o -z "$dir"; then
19207 CPPFLAGS="$O_CPPFLAGS"
19210 if test X"$with_rpath" = X"yes"; then
19212 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19214 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19218 LDFLAGS="${LDFLAGS} -L${dir}/lib"
19220 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19221 blibpath_add="${blibpath_add}:${dir}/lib"
19225 if test X"$with_rpath" = X"yes"; then
19227 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19229 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19233 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19235 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19236 blibpath_add="${blibpath_add}:${dir}/lib"
19240 if test "$found" = "no"; then
19241 { $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
19242 $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;}
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
19246 $as_echo_n "checking for main in -lskey... " >&6; }
19247 if ${ac_cv_lib_skey_main+:} false; then :
19248 $as_echo_n "(cached) " >&6
19250 ac_check_lib_save_LIBS=$LIBS
19251 LIBS="-lskey $LIBS"
19252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19253 /* end confdefs.h. */
19264 if ac_fn_c_try_link "$LINENO"; then :
19265 ac_cv_lib_skey_main=yes
19267 ac_cv_lib_skey_main=no
19269 rm -f core conftest.err conftest.$ac_objext \
19270 conftest$ac_exeext conftest.$ac_ext
19271 LIBS=$ac_check_lib_save_LIBS
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
19274 $as_echo "$ac_cv_lib_skey_main" >&6; }
19275 if test "x$ac_cv_lib_skey_main" = xyes; then :
19278 { $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
19279 $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;}
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
19283 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
19284 if ${ac_cv_lib_skey_skeyaccess+:} false; then :
19285 $as_echo_n "(cached) " >&6
19287 ac_check_lib_save_LIBS=$LIBS
19288 LIBS="-lskey $LIBS"
19289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h. */
19292 /* Override any GCC internal prototype to avoid an error.
19293 Use char because int might match the return type of a GCC
19294 builtin and then its argument prototype would still apply. */
19298 char skeyaccess ();
19302 return skeyaccess ();
19307 if ac_fn_c_try_link "$LINENO"; then :
19308 ac_cv_lib_skey_skeyaccess=yes
19310 ac_cv_lib_skey_skeyaccess=no
19312 rm -f core conftest.err conftest.$ac_objext \
19313 conftest$ac_exeext conftest.$ac_ext
19314 LIBS=$ac_check_lib_save_LIBS
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
19317 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
19318 if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
19319 $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
19325 $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
19326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19333 skeychallenge(NULL, NULL, NULL, 0);
19339 if ac_fn_c_try_compile "$LINENO"; then :
19341 $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19344 $as_echo "yes" >&6; }
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19349 $as_echo "no" >&6; }
19353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19355 LDFLAGS="$O_LDFLAGS"
19356 SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
19357 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19360 if test "${with_opie-'no'}" = "yes"; then
19361 O_LDFLAGS="$LDFLAGS"
19362 if test "$with_opie" != "yes"; then
19363 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
19365 if test X"$with_rpath" = X"yes"; then
19367 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
19369 *) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
19373 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
19375 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19376 blibpath_add="${blibpath_add}:${with_opie}/lib"
19380 if test X"$with_rpath" = X"yes"; then
19382 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
19384 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
19388 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
19390 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19391 blibpath_add="${blibpath_add}:${with_opie}/lib"
19394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19395 /* end confdefs.h. */
19405 if ac_fn_c_try_cpp "$LINENO"; then :
19410 rm -f conftest.err conftest.i conftest.$ac_ext
19413 O_CPPFLAGS="$CPPFLAGS"
19414 for dir in "" "/usr/local" "/usr/contrib"; do
19415 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h. */
19427 if ac_fn_c_try_cpp "$LINENO"; then :
19430 rm -f conftest.err conftest.i conftest.$ac_ext
19432 if test "$found" = "no" -o -z "$dir"; then
19433 CPPFLAGS="$O_CPPFLAGS"
19436 if test X"$with_rpath" = X"yes"; then
19438 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19440 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19444 LDFLAGS="${LDFLAGS} -L${dir}/lib"
19446 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19447 blibpath_add="${blibpath_add}:${dir}/lib"
19451 if test X"$with_rpath" = X"yes"; then
19453 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19455 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19459 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19461 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19462 blibpath_add="${blibpath_add}:${dir}/lib"
19466 if test "$found" = "no"; then
19467 { $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
19468 $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;}
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
19472 $as_echo_n "checking for main in -lopie... " >&6; }
19473 if ${ac_cv_lib_opie_main+:} false; then :
19474 $as_echo_n "(cached) " >&6
19476 ac_check_lib_save_LIBS=$LIBS
19477 LIBS="-lopie $LIBS"
19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h. */
19490 if ac_fn_c_try_link "$LINENO"; then :
19491 ac_cv_lib_opie_main=yes
19493 ac_cv_lib_opie_main=no
19495 rm -f core conftest.err conftest.$ac_objext \
19496 conftest$ac_exeext conftest.$ac_ext
19497 LIBS=$ac_check_lib_save_LIBS
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
19500 $as_echo "$ac_cv_lib_opie_main" >&6; }
19501 if test "x$ac_cv_lib_opie_main" = xyes; then :
19504 { $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
19505 $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;}
19508 LDFLAGS="$O_LDFLAGS"
19509 SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
19510 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19513 if test ${with_passwd-'no'} != "no"; then
19514 if test -z "$LIB_CRYPT"; then
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19517 $as_echo_n "checking for library containing crypt... " >&6; }
19518 if ${ac_cv_search_crypt+:} false; then :
19519 $as_echo_n "(cached) " >&6
19521 ac_func_search_save_LIBS=$LIBS
19522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19523 /* end confdefs.h. */
19525 /* Override any GCC internal prototype to avoid an error.
19526 Use char because int might match the return type of a GCC
19527 builtin and then its argument prototype would still apply. */
19540 for ac_lib in '' crypt crypt_d ufc; do
19541 if test -z "$ac_lib"; then
19542 ac_res="none required"
19545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19547 if ac_fn_c_try_link "$LINENO"; then :
19548 ac_cv_search_crypt=$ac_res
19550 rm -f core conftest.err conftest.$ac_objext \
19552 if ${ac_cv_search_crypt+:} false; then :
19556 if ${ac_cv_search_crypt+:} false; then :
19559 ac_cv_search_crypt=no
19561 rm conftest.$ac_ext
19562 LIBS=$ac_func_search_save_LIBS
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19565 $as_echo "$ac_cv_search_crypt" >&6; }
19566 ac_res=$ac_cv_search_crypt
19567 if test "$ac_res" != no; then :
19568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19569 test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19575 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
19577 LIBS="$LIBS $shadow_libs"
19579 for ac_func in $shadow_funcs
19581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19584 cat >>confdefs.h <<_ACEOF
19585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19591 if test "$found" = "yes"; then
19592 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
19593 elif test -n "$shadow_libs_optional"; then
19594 LIBS="$LIBS $shadow_libs_optional"
19595 for ac_func in $shadow_funcs
19597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19600 cat >>confdefs.h <<_ACEOF
19601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19607 if test "$found" = "yes"; then
19608 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
19611 if test "$found" = "yes"; then
19612 case "$shadow_funcs" in
19613 *getprpwnam*) SECUREWARE=1;;
19615 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
19621 if test "$CHECKSHADOW" = "true"; then
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
19623 $as_echo_n "checking for library containing getspnam... " >&6; }
19624 if ${ac_cv_search_getspnam+:} false; then :
19625 $as_echo_n "(cached) " >&6
19627 ac_func_search_save_LIBS=$LIBS
19628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19629 /* end confdefs.h. */
19631 /* Override any GCC internal prototype to avoid an error.
19632 Use char because int might match the return type of a GCC
19633 builtin and then its argument prototype would still apply. */
19641 return getspnam ();
19646 for ac_lib in '' gen; do
19647 if test -z "$ac_lib"; then
19648 ac_res="none required"
19651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19653 if ac_fn_c_try_link "$LINENO"; then :
19654 ac_cv_search_getspnam=$ac_res
19656 rm -f core conftest.err conftest.$ac_objext \
19658 if ${ac_cv_search_getspnam+:} false; then :
19662 if ${ac_cv_search_getspnam+:} false; then :
19665 ac_cv_search_getspnam=no
19667 rm conftest.$ac_ext
19668 LIBS=$ac_func_search_save_LIBS
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
19671 $as_echo "$ac_cv_search_getspnam" >&6; }
19672 ac_res=$ac_cv_search_getspnam
19673 if test "$ac_res" != no; then :
19674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19675 $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
19676 CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19680 if test "$CHECKSHADOW" = "true"; then
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
19682 $as_echo_n "checking for library containing getprpwnam... " >&6; }
19683 if ${ac_cv_search_getprpwnam+:} false; then :
19684 $as_echo_n "(cached) " >&6
19686 ac_func_search_save_LIBS=$LIBS
19687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19688 /* end confdefs.h. */
19690 /* Override any GCC internal prototype to avoid an error.
19691 Use char because int might match the return type of a GCC
19692 builtin and then its argument prototype would still apply. */
19696 char getprpwnam ();
19700 return getprpwnam ();
19705 for ac_lib in '' sec security prot; do
19706 if test -z "$ac_lib"; then
19707 ac_res="none required"
19710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19712 if ac_fn_c_try_link "$LINENO"; then :
19713 ac_cv_search_getprpwnam=$ac_res
19715 rm -f core conftest.err conftest.$ac_objext \
19717 if ${ac_cv_search_getprpwnam+:} false; then :
19721 if ${ac_cv_search_getprpwnam+:} false; then :
19724 ac_cv_search_getprpwnam=no
19726 rm conftest.$ac_ext
19727 LIBS=$ac_func_search_save_LIBS
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
19730 $as_echo "$ac_cv_search_getprpwnam" >&6; }
19731 ac_res=$ac_cv_search_getprpwnam
19732 if test "$ac_res" != no; then :
19733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19734 $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
19735 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19739 if test -n "$SECUREWARE"; then
19740 for ac_func in bigcrypt set_auth_parameters initprivs
19742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19743 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19744 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19745 cat >>confdefs.h <<_ACEOF
19746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19752 AUTH_OBJS="$AUTH_OBJS secureware.lo"
19756 if test ${with_ldap-'no'} != "no"; then
19757 _LDFLAGS="$LDFLAGS"
19758 if test "$with_ldap" != "yes"; then
19760 if test X"$with_rpath" = X"yes"; then
19762 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19764 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19768 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
19770 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19771 blibpath_add="${blibpath_add}:${with_ldap}/lib"
19775 if test X"$with_rpath" = X"yes"; then
19777 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19779 *) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19783 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
19785 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19786 blibpath_add="${blibpath_add}:${with_ldap}/lib"
19789 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19792 SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
19796 $as_echo_n "checking for LDAP libraries... " >&6; }
19800 for l in -lldap -llber '-lssl -lcrypto'; do
19802 LDAP_LIBS="${LDAP_LIBS} $l"
19803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19804 /* end confdefs.h. */
19805 #include <sys/types.h>
19811 (void)ldap_init(0, 0)
19816 if ac_fn_c_try_link "$LINENO"; then :
19819 rm -f core conftest.err conftest.$ac_objext \
19820 conftest$ac_exeext conftest.$ac_ext
19822 if test "$found" = "no"; then
19825 for l in -libmldap -lidsldif; do
19827 LDAP_LIBS="${LDAP_LIBS} $l"
19828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19830 #include <sys/types.h>
19836 (void)ldap_init(0, 0)
19841 if ac_fn_c_try_link "$LINENO"; then :
19844 rm -f core conftest.err conftest.$ac_objext \
19845 conftest$ac_exeext conftest.$ac_ext
19848 if test "$found" = "no"; then
19849 LIBS="${_LIBS} -lldap"
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
19852 $as_echo "not found, using -lldap" >&6; }
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
19855 $as_echo "$LDAP_LIBS" >&6; }
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
19859 $as_echo_n "checking for library containing ber_set_option... " >&6; }
19860 if ${ac_cv_search_ber_set_option+:} false; then :
19861 $as_echo_n "(cached) " >&6
19863 ac_func_search_save_LIBS=$LIBS
19864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865 /* end confdefs.h. */
19867 /* Override any GCC internal prototype to avoid an error.
19868 Use char because int might match the return type of a GCC
19869 builtin and then its argument prototype would still apply. */
19873 char ber_set_option ();
19877 return ber_set_option ();
19882 for ac_lib in '' lber; do
19883 if test -z "$ac_lib"; then
19884 ac_res="none required"
19887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19889 if ac_fn_c_try_link "$LINENO"; then :
19890 ac_cv_search_ber_set_option=$ac_res
19892 rm -f core conftest.err conftest.$ac_objext \
19894 if ${ac_cv_search_ber_set_option+:} false; then :
19898 if ${ac_cv_search_ber_set_option+:} false; then :
19901 ac_cv_search_ber_set_option=no
19903 rm conftest.$ac_ext
19904 LIBS=$ac_func_search_save_LIBS
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
19907 $as_echo "$ac_cv_search_ber_set_option" >&6; }
19908 ac_res=$ac_cv_search_ber_set_option
19909 if test "$ac_res" != no; then :
19910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19916 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
19917 LDAP_LIBS="$LDAP_LIBS -llber"
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
19920 $as_echo_n "checking whether lber.h is needed... " >&6; }
19921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922 /* end confdefs.h. */
19923 #include <sys/types.h>
19928 (void)ldap_init(0, 0)
19933 if ac_fn_c_try_link "$LINENO"; then :
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19935 $as_echo "no" >&6; }
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19939 $as_echo "yes" >&6; }
19940 $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
19943 rm -f core conftest.err conftest.$ac_objext \
19944 conftest$ac_exeext conftest.$ac_ext
19946 for ac_header in sasl/sasl.h sasl.h
19948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19949 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19950 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19951 cat >>confdefs.h <<_ACEOF
19952 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19954 for ac_func in ldap_sasl_interactive_bind_s
19956 ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
19957 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
19958 cat >>confdefs.h <<_ACEOF
19959 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
19971 for ac_header in ldap_ssl.h mps/ldap_ssl.h
19973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19974 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
19976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19977 cat >>confdefs.h <<_ACEOF
19978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19985 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_init ldap_ssl_client_init ldap_start_tls_s_np
19987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19988 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19989 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19990 cat >>confdefs.h <<_ACEOF
19991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19997 for ac_func in ldap_search_ext_s ldap_search_st
19999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20000 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20001 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20002 cat >>confdefs.h <<_ACEOF
20003 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20010 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
20012 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
20013 if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
20014 $as_echo_n "(cached) " >&6
20016 ac_check_lib_save_LIBS=$LIBS
20017 LIBS="-lgssapi $LIBS"
20018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20019 /* end confdefs.h. */
20021 /* Override any GCC internal prototype to avoid an error.
20022 Use char because int might match the return type of a GCC
20023 builtin and then its argument prototype would still apply. */
20027 char gss_krb5_ccache_name ();
20031 return gss_krb5_ccache_name ();
20036 if ac_fn_c_try_link "$LINENO"; then :
20037 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
20039 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
20041 rm -f core conftest.err conftest.$ac_objext \
20042 conftest$ac_exeext conftest.$ac_ext
20043 LIBS=$ac_check_lib_save_LIBS
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
20046 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
20047 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
20048 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
20050 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
20053 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
20054 if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
20055 $as_echo_n "(cached) " >&6
20057 ac_check_lib_save_LIBS=$LIBS
20058 LIBS="-lgssapi_krb5 $LIBS"
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20062 /* Override any GCC internal prototype to avoid an error.
20063 Use char because int might match the return type of a GCC
20064 builtin and then its argument prototype would still apply. */
20068 char gss_krb5_ccache_name ();
20072 return gss_krb5_ccache_name ();
20077 if ac_fn_c_try_link "$LINENO"; then :
20078 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
20080 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
20082 rm -f core conftest.err conftest.$ac_objext \
20083 conftest$ac_exeext conftest.$ac_ext
20084 LIBS=$ac_check_lib_save_LIBS
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
20087 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
20088 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
20089 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
20091 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
20098 # gssapi headers may be separate or part of Kerberos V
20100 O_CPPFLAGS="$CPPFLAGS"
20101 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
20102 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20104 /* end confdefs.h. */
20105 #include <gssapi/gssapi.h>
20114 if ac_fn_c_try_cpp "$LINENO"; then :
20115 found="gssapi/gssapi.h"; break
20117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20118 /* end confdefs.h. */
20119 #include <gssapi.h>
20128 if ac_fn_c_try_cpp "$LINENO"; then :
20129 found="gssapi.h"; break
20131 rm -f conftest.err conftest.i conftest.$ac_ext
20133 rm -f conftest.err conftest.i conftest.$ac_ext
20135 if test X"$found" != X"no"; then
20136 for ac_header in $found
20138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20139 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20140 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20141 cat >>confdefs.h <<_ACEOF
20142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20149 if test X"$found" = X"gssapi/gssapi.h"; then
20150 for ac_header in gssapi/gssapi_krb5.h
20152 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
20153 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
20154 cat >>confdefs.h <<_ACEOF
20155 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
20164 CPPFLAGS="$O_CPPFLAGS"
20165 { $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
20166 $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;}
20170 SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
20172 LDFLAGS="$_LDFLAGS"
20176 # How to do dynamic object loading.
20177 # We support dlopen() and sh_load(), else fall back to static loading.
20179 case "$lt_cv_dlopen" in
20181 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
20183 SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
20184 LT_STATIC="--tag=disable-static"
20187 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20189 SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
20190 LT_STATIC="--tag=disable-static"
20191 case " $LIBOBJS " in
20192 *" dlopen.$ac_objext "* ) ;;
20193 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
20199 if test X"${ac_cv_func_dlopen}" = X"yes"; then
20200 as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
20202 # Preload sudoers module symbols
20203 SUDO_OBJS="${SUDO_OBJS} preload.o"
20204 SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
20206 case " $LIBOBJS " in
20207 *" dlopen.$ac_objext "* ) ;;
20208 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
20216 # Add library needed for dynamic loading, if any.
20218 LIBDL="$lt_cv_dlopen_libs"
20219 if test X"$LIBDL" != X""; then
20220 SUDO_LIBS="${SUDO_LIBS} $LIBDL"
20221 SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
20224 # On HP-UX, you cannot dlopen() a shared object that uses pthreads unless
20225 # the main program is linked against -lpthread. We have no knowledge of
20226 # what libraries a plugin may depend on (e.g. HP-UX LDAP which uses pthreads)
20227 # so always link against -lpthread on HP-UX if it is available.
20228 # This check should go after all other libraries tests.
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
20232 $as_echo_n "checking for main in -lpthread... " >&6; }
20233 if ${ac_cv_lib_pthread_main+:} false; then :
20234 $as_echo_n "(cached) " >&6
20236 ac_check_lib_save_LIBS=$LIBS
20237 LIBS="-lpthread $LIBS"
20238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h. */
20250 if ac_fn_c_try_link "$LINENO"; then :
20251 ac_cv_lib_pthread_main=yes
20253 ac_cv_lib_pthread_main=no
20255 rm -f core conftest.err conftest.$ac_objext \
20256 conftest$ac_exeext conftest.$ac_ext
20257 LIBS=$ac_check_lib_save_LIBS
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
20260 $as_echo "$ac_cv_lib_pthread_main" >&6; }
20261 if test "x$ac_cv_lib_pthread_main" = xyes; then :
20262 SUDO_LIBS="${SUDO_LIBS} -lpthread"
20268 if test -n "$blibpath"; then
20269 if test -n "$blibpath_add"; then
20270 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
20271 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
20272 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}"
20276 if test "$utmp_style" = "LEGACY"; then
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
20278 $as_echo_n "checking for utmp file path... " >&6; }
20280 for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
20281 if test -r "$p"; then
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
20284 $as_echo "$p" >&6; }
20285 cat >>confdefs.h <<EOF
20286 #define _PATH_UTMP "$p"
20292 if test X"$found" != X"yes"; then
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20294 $as_echo "not found" >&6; }
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
20299 $as_echo_n "checking for log file location... " >&6; }
20300 if test -n "$with_logpath"; then
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
20302 $as_echo "$with_logpath" >&6; }
20303 cat >>confdefs.h <<EOF
20304 #define _PATH_SUDO_LOGFILE "$with_logpath"
20307 elif test -d "/var/log"; then
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
20309 $as_echo "/var/log/sudo.log" >&6; }
20310 cat >>confdefs.h <<\EOF
20311 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
20314 elif test -d "/var/adm"; then
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
20316 $as_echo "/var/adm/sudo.log" >&6; }
20317 cat >>confdefs.h <<\EOF
20318 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
20321 elif test -d "/usr/adm"; then
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
20323 $as_echo "/usr/adm/sudo.log" >&6; }
20324 cat >>confdefs.h <<\EOF
20325 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
20330 $as_echo "unknown" >&6; }
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
20334 $as_echo_n "checking for timestamp file location... " >&6; }
20335 timedir="$with_timedir"
20336 if test -z "$timedir"; then
20337 for d in /var/db /var/lib /var/adm /usr/adm; do
20338 if test -d "$d"; then
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
20345 $as_echo "$timedir" >&6; }
20346 cat >>confdefs.h <<EOF
20347 #define _PATH_SUDO_TIMEDIR "$timedir"
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
20353 $as_echo_n "checking for I/O log dir location... " >&6; }
20354 if test "${with_iologdir-yes}" != "yes"; then
20355 iolog_dir="$with_iologdir"
20356 elif test -d "/var/log"; then
20357 iolog_dir="/var/log/sudo-io"
20358 elif test -d "/var/adm"; then
20359 iolog_dir="/var/adm/sudo-io"
20361 iolog_dir="/usr/adm/sudo-io"
20363 if test "${with_iologdir}" != "no"; then
20364 cat >>confdefs.h <<EOF
20365 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
20370 $as_echo "$iolog_dir" >&6; }
20374 ac_c_werror_flag=yes
20376 if test -n "$GCC" -a "$lt_cv_prog_gnu_ld" != "yes" -a -n "$GCC"; then
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -static-libgcc" >&5
20378 $as_echo_n "checking whether C compiler accepts -static-libgcc... " >&6; }
20379 if ${ax_cv_check_cflags___static_libgcc+:} false; then :
20380 $as_echo_n "(cached) " >&6
20383 ax_check_save_flags=$CFLAGS
20384 CFLAGS="$CFLAGS -static-libgcc"
20385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20386 /* end confdefs.h. */
20396 if ac_fn_c_try_compile "$LINENO"; then :
20397 ax_cv_check_cflags___static_libgcc=yes
20399 ax_cv_check_cflags___static_libgcc=no
20401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20402 CFLAGS=$ax_check_save_flags
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___static_libgcc" >&5
20405 $as_echo "$ax_cv_check_cflags___static_libgcc" >&6; }
20406 if test x"$ax_cv_check_cflags___static_libgcc" = xyes; then :
20407 LT_LDFLAGS="$LT_LDFLAGS -Wc,-static-libgcc"
20414 if test -n "$GCC"; then
20415 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__-fvisibility=hidden" | $as_tr_sh`
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
20417 $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
20418 if eval \${$as_CACHEVAR+:} false; then :
20419 $as_echo_n "(cached) " >&6
20422 ax_check_save_flags=$CFLAGS
20423 CFLAGS="$CFLAGS -fvisibility=hidden"
20424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20425 /* end confdefs.h. */
20435 if ac_fn_c_try_compile "$LINENO"; then :
20436 eval "$as_CACHEVAR=yes"
20438 eval "$as_CACHEVAR=no"
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441 CFLAGS=$ax_check_save_flags
20443 eval ac_res=\$$as_CACHEVAR
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20445 $as_echo "$ac_res" >&6; }
20446 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
20448 $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20450 CFLAGS="${CFLAGS} -fvisibility=hidden"
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Bhidden_def" >&5
20463 $as_echo_n "checking whether C compiler accepts -Bhidden_def... " >&6; }
20464 if ${ax_cv_check_cflags___Bhidden_def+:} false; then :
20465 $as_echo_n "(cached) " >&6
20468 ax_check_save_flags=$CFLAGS
20469 CFLAGS="$CFLAGS -Bhidden_def"
20470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20471 /* end confdefs.h. */
20481 if ac_fn_c_try_compile "$LINENO"; then :
20482 ax_cv_check_cflags___Bhidden_def=yes
20484 ax_cv_check_cflags___Bhidden_def=no
20486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487 CFLAGS=$ax_check_save_flags
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Bhidden_def" >&5
20490 $as_echo "$ax_cv_check_cflags___Bhidden_def" >&6; }
20491 if test x"$ax_cv_check_cflags___Bhidden_def" = xyes; then :
20493 $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20495 CFLAGS="${CFLAGS} -Bhidden_def"
20505 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__-xldscope=hidden" | $as_tr_sh`
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -xldscope=hidden" >&5
20507 $as_echo_n "checking whether C compiler accepts -xldscope=hidden... " >&6; }
20508 if eval \${$as_CACHEVAR+:} false; then :
20509 $as_echo_n "(cached) " >&6
20512 ax_check_save_flags=$CFLAGS
20513 CFLAGS="$CFLAGS -xldscope=hidden"
20514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h. */
20525 if ac_fn_c_try_compile "$LINENO"; then :
20526 eval "$as_CACHEVAR=yes"
20528 eval "$as_CACHEVAR=no"
20530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20531 CFLAGS=$ax_check_save_flags
20533 eval ac_res=\$$as_CACHEVAR
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20535 $as_echo "$ac_res" >&6; }
20536 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
20538 $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20540 CFLAGS="${CFLAGS} -xldscope=hidden"
20552 if test -n "$LT_LDEXPORTS"; then
20553 if test "$lt_cv_prog_gnu_ld" = "yes"; then
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
20555 $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
20556 if ${sudo_cv_var_gnu_ld_anon_map+:} false; then :
20557 $as_echo_n "(cached) " >&6
20560 cat > conftest.map <<-EOF
20567 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20568 _LDFLAGS="$LDFLAGS"
20569 LDFLAGS="$LDFLAGS -fpic -shared -Wl,--version-script,./conftest.map"
20570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20571 /* end confdefs.h. */
20581 if ac_fn_c_try_link "$LINENO"; then :
20583 sudo_cv_var_gnu_ld_anon_map=yes
20586 rm -f core conftest.err conftest.$ac_objext \
20587 conftest$ac_exeext conftest.$ac_ext
20589 LDFLAGS="$_LDFLAGS"
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gnu_ld_anon_map" >&5
20594 $as_echo "$sudo_cv_var_gnu_ld_anon_map" >&6; }
20595 if test "$sudo_cv_var_gnu_ld_anon_map" = "yes"; then
20596 LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,--version-script,\$(shlib_map)"
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
20602 $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
20603 if ${sudo_cv_var_solaris_ld_anon_map+:} false; then :
20604 $as_echo_n "(cached) " >&6
20607 cat > conftest.map <<-EOF
20614 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20615 _LDFLAGS="$LDFLAGS"
20616 LDFLAGS="$LDFLAGS -shared -Wl,-M,./conftest.map"
20617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618 /* end confdefs.h. */
20628 if ac_fn_c_try_link "$LINENO"; then :
20630 sudo_cv_var_solaris_ld_anon_map=yes
20633 rm -f core conftest.err conftest.$ac_objext \
20634 conftest$ac_exeext conftest.$ac_ext
20636 LDFLAGS="$_LDFLAGS"
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_solaris_ld_anon_map" >&5
20641 $as_echo "$sudo_cv_var_solaris_ld_anon_map" >&6; }
20642 if test "$sudo_cv_var_solaris_ld_anon_map" = "yes"; then
20643 LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,-M,\$(shlib_map)"
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports controlling exported symbols" >&5
20648 $as_echo_n "checking whether ld supports controlling exported symbols... " >&6; }
20649 if ${sudo_cv_var_hpux_ld_symbol_export+:} false; then :
20650 $as_echo_n "(cached) " >&6
20653 echo "+e foo" > conftest.opt
20655 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20656 _LDFLAGS="$LDFLAGS"
20657 if test -n "$GCC"; then
20658 LDFLAGS="$LDFLAGS -shared -Wl,-c,./conftest.opt"
20660 LDFLAGS="$LDFLAGS -Wl,-b -Wl,-c,./conftest.opt"
20662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20663 /* end confdefs.h. */
20673 if ac_fn_c_try_link "$LINENO"; then :
20675 sudo_cv_var_hpux_ld_symbol_export=yes
20678 rm -f core conftest.err conftest.$ac_objext \
20679 conftest$ac_exeext conftest.$ac_ext
20681 LDFLAGS="$_LDFLAGS"
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpux_ld_symbol_export" >&5
20686 $as_echo "$sudo_cv_var_hpux_ld_symbol_export" >&6; }
20687 if test "$sudo_cv_var_hpux_ld_symbol_export" = "yes"; then
20688 LT_LDEXPORTS=; LT_LDDEP="\$(shlib_opt)"; LT_LDOPT="-Wl,-c,\$(shlib_opt)"
20695 if test "$enable_pie" != "no" -a -n "$GCC"; then
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
20697 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
20698 if ${ax_cv_check_cflags___fPIE+:} false; then :
20699 $as_echo_n "(cached) " >&6
20702 ax_check_save_flags=$CFLAGS
20703 CFLAGS="$CFLAGS -fPIE"
20704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20705 /* end confdefs.h. */
20715 if ac_fn_c_try_compile "$LINENO"; then :
20716 ax_cv_check_cflags___fPIE=yes
20718 ax_cv_check_cflags___fPIE=no
20720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20721 CFLAGS=$ax_check_save_flags
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
20724 $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
20725 if test x"$ax_cv_check_cflags___fPIE" = xyes; then :
20728 CFLAGS="$CFLAGS -fPIE"
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
20730 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
20731 if ${ax_cv_check_ldflags___pie+:} false; then :
20732 $as_echo_n "(cached) " >&6
20735 ax_check_save_flags=$LDFLAGS
20736 LDFLAGS="$LDFLAGS -pie"
20737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20738 /* end confdefs.h. */
20748 if ac_fn_c_try_link "$LINENO"; then :
20749 ax_cv_check_ldflags___pie=yes
20751 ax_cv_check_ldflags___pie=no
20753 rm -f core conftest.err conftest.$ac_objext \
20754 conftest$ac_exeext conftest.$ac_ext
20755 LDFLAGS=$ax_check_save_flags
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
20758 $as_echo "$ax_cv_check_ldflags___pie" >&6; }
20759 if test x"$ax_cv_check_ldflags___pie" = xyes; then :
20776 if test "$enable_hardening" != "no"; then
20777 if test -n "$GCC"; then
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
20779 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
20780 if ${ax_cv_check_cflags___fstack_protector_all+:} false; then :
20781 $as_echo_n "(cached) " >&6
20784 ax_check_save_flags=$CFLAGS
20785 CFLAGS="$CFLAGS -fstack-protector-all"
20786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787 /* end confdefs.h. */
20797 if ac_fn_c_try_compile "$LINENO"; then :
20798 ax_cv_check_cflags___fstack_protector_all=yes
20800 ax_cv_check_cflags___fstack_protector_all=no
20802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20803 CFLAGS=$ax_check_save_flags
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5
20806 $as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; }
20807 if test x"$ax_cv_check_cflags___fstack_protector_all" = xyes; then :
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
20810 $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
20811 if ${ax_cv_check_ldflags___fstack_protector_all+:} false; then :
20812 $as_echo_n "(cached) " >&6
20815 ax_check_save_flags=$LDFLAGS
20816 LDFLAGS="$LDFLAGS -fstack-protector-all"
20817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h. */
20828 if ac_fn_c_try_link "$LINENO"; then :
20829 ax_cv_check_ldflags___fstack_protector_all=yes
20831 ax_cv_check_ldflags___fstack_protector_all=no
20833 rm -f core conftest.err conftest.$ac_objext \
20834 conftest$ac_exeext conftest.$ac_ext
20835 LDFLAGS=$ax_check_save_flags
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_all" >&5
20838 $as_echo "$ax_cv_check_ldflags___fstack_protector_all" >&6; }
20839 if test x"$ax_cv_check_ldflags___fstack_protector_all" = xyes; then :
20841 SSP_CFLAGS="-fstack-protector-all"
20842 SSP_LDFLAGS="-Wc,-fstack-protector-all"
20853 if test -z "$SSP_CFLAGS"; then
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
20855 $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
20856 if ${ax_cv_check_cflags___fstack_protector+:} false; then :
20857 $as_echo_n "(cached) " >&6
20860 ax_check_save_flags=$CFLAGS
20861 CFLAGS="$CFLAGS -fstack-protector"
20862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20863 /* end confdefs.h. */
20873 if ac_fn_c_try_compile "$LINENO"; then :
20874 ax_cv_check_cflags___fstack_protector=yes
20876 ax_cv_check_cflags___fstack_protector=no
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20879 CFLAGS=$ax_check_save_flags
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
20882 $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
20883 if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then :
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
20886 $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
20887 if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
20888 $as_echo_n "(cached) " >&6
20891 ax_check_save_flags=$LDFLAGS
20892 LDFLAGS="$LDFLAGS -fstack-protector"
20893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20894 /* end confdefs.h. */
20904 if ac_fn_c_try_link "$LINENO"; then :
20905 ax_cv_check_ldflags___fstack_protector=yes
20907 ax_cv_check_ldflags___fstack_protector=no
20909 rm -f core conftest.err conftest.$ac_objext \
20910 conftest$ac_exeext conftest.$ac_ext
20911 LDFLAGS=$ax_check_save_flags
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
20914 $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
20915 if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
20917 SSP_CFLAGS="-fstack-protector"
20918 SSP_LDFLAGS="-Wc,-fstack-protector"
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
20932 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
20933 if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
20934 $as_echo_n "(cached) " >&6
20937 ax_check_save_flags=$LDFLAGS
20938 LDFLAGS="$LDFLAGS -Wl,-z,relro"
20939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20940 /* end confdefs.h. */
20950 if ac_fn_c_try_link "$LINENO"; then :
20951 ax_cv_check_ldflags___Wl__z_relro=yes
20953 ax_cv_check_ldflags___Wl__z_relro=no
20955 rm -f core conftest.err conftest.$ac_objext \
20956 conftest$ac_exeext conftest.$ac_ext
20957 LDFLAGS=$ax_check_save_flags
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
20960 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
20961 if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
20962 LDFLAGS="${LDFLAGS} -Wl,-z,relro"
20969 case "$with_passwd" in
20971 AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
20974 $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
20976 if test -z "$AUTH_OBJS"; then
20977 as_fn_error $? "no authentication methods defined." "$LINENO" 5
20981 AUTH_OBJS=${AUTH_OBJS# }
20982 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
20984 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
20986 if test -n "$LIBS"; then
20991 for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
20992 test $l = $sl && dupe=1
20994 test $dupe = 0 && LIBS="${LIBS} $l"
20998 if test -n "$GCC"; then
20999 if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
21000 CFLAGS="${CFLAGS} -Wall"
21002 if test X"$enable_werror" = X"yes"; then
21003 CFLAGS="${CFLAGS} -Werror"
21007 CROSS_COMPILING="$cross_compiling"
21009 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
21011 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
21012 oexec_prefix="$exec_prefix"
21013 if test "$exec_prefix" = '$(prefix)'; then
21014 if test "$prefix" = "NONE"; then
21015 exec_prefix="$ac_default_prefix"
21017 exec_prefix="$prefix"
21020 if test X"$with_noexec" != X"no"; then
21021 PROGS="${PROGS} libsudo_noexec.la"
21022 INSTALL_NOEXEC="install-noexec"
21024 noexec_file="$with_noexec"
21026 while test X"$noexec_file" != X"$_noexec_file"; do
21027 _noexec_file="$noexec_file"
21028 eval noexec_file="$_noexec_file"
21030 cat >>confdefs.h <<EOF
21031 #define _PATH_SUDO_NOEXEC "$noexec_file"
21035 if test X"$with_selinux" != X"no"; then
21036 sesh_file="$libexecdir/sesh"
21038 while test X"$sesh_file" != X"$_sesh_file"; do
21039 _sesh_file="$sesh_file"
21040 eval sesh_file="$_sesh_file"
21042 cat >>confdefs.h <<EOF
21043 #define _PATH_SUDO_SESH "$sesh_file"
21047 PLUGINDIR="$with_plugindir"
21049 while test X"$PLUGINDIR" != X"$_PLUGINDIR"; do
21050 _PLUGINDIR="$PLUGINDIR"
21051 eval PLUGINDIR="$_PLUGINDIR"
21053 cat >>confdefs.h <<EOF
21054 #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
21057 cat >>confdefs.h <<EOF
21058 #define SUDOERS_PLUGIN "sudoers${SOEXT}"
21061 exec_prefix="$oexec_prefix"
21064 if test X"$prefix" = X"NONE"; then
21065 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
21067 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
21069 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
21070 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
21071 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
21072 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
21073 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
21074 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
21075 test "$localedir" = '${datarootdir}/locale' && localedir='$(datarootdir)/locale'
21076 test "$localstatedir" = '${prefix}/var' && localstatedir='$(prefix)/var'
21077 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
21079 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/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
21081 cat >confcache <<\_ACEOF
21082 # This file is a shell script that caches the results of configure
21083 # tests run on this system so they can be shared between configure
21084 # scripts and configure runs, see configure's option --config-cache.
21085 # It is not useful on other systems. If it contains results you don't
21086 # want to keep, you may remove or edit it.
21088 # config.status only pays attention to the cache file if you give it
21089 # the --recheck option to rerun configure.
21091 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21092 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21093 # following values.
21097 # The following way of writing the cache mishandles newlines in values,
21098 # but we know of no workaround that is simple, portable, and efficient.
21099 # So, we kill variables containing newlines.
21100 # Ultrix sh set writes to stderr and can't be redirected directly,
21101 # and sets the high bit in the cache file unless we assign to the vars.
21103 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21104 eval ac_val=\$$ac_var
21108 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21109 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21112 _ | IFS | as_nl) ;; #(
21113 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21114 *) { eval $ac_var=; unset $ac_var;} ;;
21120 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21121 *${as_nl}ac_space=\ *)
21122 # `set' does not quote correctly, so add quotes: double-quote
21123 # substitution turns \\\\ into \\, and sed turns \\ into \.
21126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21129 # `set' quotes correctly as required by POSIX, so do not add quotes.
21130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21139 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21141 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21143 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21144 if test -w "$cache_file"; then
21145 if test "x$cache_file" != "x/dev/null"; then
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21147 $as_echo "$as_me: updating cache $cache_file" >&6;}
21148 if test ! -f "$cache_file" || test -h "$cache_file"; then
21149 cat confcache >"$cache_file"
21151 case $cache_file in #(
21153 mv -f confcache "$cache_file"$$ &&
21154 mv -f "$cache_file"$$ "$cache_file" ;; #(
21156 mv -f confcache "$cache_file" ;;
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21162 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21167 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21168 # Let make expand exec_prefix.
21169 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21171 DEFS=-DHAVE_CONFIG_H
21176 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21177 # 1. Remove the extension, and $U if already installed.
21178 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21179 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21180 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21181 # will be set to the directory where LIBOBJS objects are built.
21182 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21183 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21185 LIBOBJS=$ac_libobjs
21187 LTLIBOBJS=$ac_ltlibobjs
21191 : "${CONFIG_STATUS=./config.status}"
21193 ac_clean_files_save=$ac_clean_files
21194 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21196 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21198 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21200 # Generated by $as_me.
21201 # Run this file to recreate the current configuration.
21202 # Compiler output produced by configure, useful for debugging
21203 # configure, is in config.log if it exists.
21206 ac_cs_recheck=false
21209 SHELL=\${CONFIG_SHELL-$SHELL}
21212 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21213 ## -------------------- ##
21214 ## M4sh Initialization. ##
21215 ## -------------------- ##
21217 # Be more Bourne compatible
21218 DUALCASE=1; export DUALCASE # for MKS sh
21219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21222 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21223 # is contrary to our usage. Disable this feature.
21224 alias -g '${1+"$@"}'='"$@"'
21225 setopt NO_GLOB_SUBST
21227 case `(set -o) 2>/dev/null` in #(
21239 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21240 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21243 # Prefer a ksh shell builtin over an external printf program on Solaris,
21244 # but without wasting forks for bash or zsh.
21245 if test -z "$BASH_VERSION$ZSH_VERSION" \
21246 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21247 as_echo='print -r --'
21248 as_echo_n='print -rn --'
21249 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21250 as_echo='printf %s\n'
21251 as_echo_n='printf %s'
21253 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21254 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21255 as_echo_n='/usr/ucb/echo -n'
21257 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21258 as_echo_n_body='eval
21262 expr "X$arg" : "X\\(.*\\)$as_nl";
21263 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21265 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21267 export as_echo_n_body
21268 as_echo_n='sh -c $as_echo_n_body as_echo'
21270 export as_echo_body
21271 as_echo='sh -c $as_echo_body as_echo'
21274 # The user is always right.
21275 if test "${PATH_SEPARATOR+set}" != set; then
21277 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21278 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21285 # We need space, tab and new line, in precisely that order. Quoting is
21286 # there to prevent editors from complaining about space-tab.
21287 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21288 # splitting by setting IFS to empty value.)
21291 # Find who we are. Look in the path if we contain no directory separator.
21294 *[\\/]* ) as_myself=$0 ;;
21295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21296 for as_dir in $PATH
21299 test -z "$as_dir" && as_dir=.
21300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21306 # We did not find ourselves, most probably we were run as `sh COMMAND'
21307 # in which case we are not to be found in the path.
21308 if test "x$as_myself" = x; then
21311 if test ! -f "$as_myself"; then
21312 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21316 # Unset variables that we do not need and which cause bugs (e.g. in
21317 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21318 # suppresses any "Segmentation fault" message there. '((' could
21319 # trigger a bug in pdksh 5.2.14.
21320 for as_var in BASH_ENV ENV MAIL MAILPATH
21321 do eval test x\${$as_var+set} = xset \
21322 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21335 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21338 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21339 # ----------------------------------------
21340 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21341 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21342 # script with STATUS, using 1 if that was 0.
21345 as_status=$1; test $as_status -eq 0 && as_status=1
21347 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21348 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21350 $as_echo "$as_me: error: $2" >&2
21351 as_fn_exit $as_status
21355 # as_fn_set_status STATUS
21356 # -----------------------
21357 # Set $? to STATUS, without forking.
21358 as_fn_set_status ()
21361 } # as_fn_set_status
21363 # as_fn_exit STATUS
21364 # -----------------
21365 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21369 as_fn_set_status $1
21375 # Portably unset VAR.
21378 { eval $1=; unset $1;}
21380 as_unset=as_fn_unset
21381 # as_fn_append VAR VALUE
21382 # ----------------------
21383 # Append the text in VALUE to the end of the definition contained in VAR. Take
21384 # advantage of any shell optimizations that allow amortized linear growth over
21385 # repeated appends, instead of the typical quadratic growth present in naive
21387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21388 eval 'as_fn_append ()
21399 # as_fn_arith ARG...
21400 # ------------------
21401 # Perform arithmetic evaluation on the ARGs, and store the result in the
21402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21403 # must be portable across $(()) and expr.
21404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21405 eval 'as_fn_arith ()
21412 as_val=`expr "$@" || test $? -eq 1`
21417 if expr a : '\(a\)' >/dev/null 2>&1 &&
21418 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21424 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21425 as_basename=basename
21430 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21436 as_me=`$as_basename -- "$0" ||
21437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21438 X"$0" : 'X\(//\)$' \| \
21439 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21441 sed '/^.*\/\([^/][^/]*\)\/*$/{
21455 # Avoid depending upon Character Ranges.
21456 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21457 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21458 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21459 as_cr_digits='0123456789'
21460 as_cr_alnum=$as_cr_Letters$as_cr_digits
21462 ECHO_C= ECHO_N= ECHO_T=
21463 case `echo -n x` in #(((((
21465 case `echo 'xy\c'` in
21466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21475 rm -f conf$$ conf$$.exe conf$$.file
21476 if test -d conf$$.dir; then
21477 rm -f conf$$.dir/conf$$.file
21480 mkdir conf$$.dir 2>/dev/null
21482 if (echo >conf$$.file) 2>/dev/null; then
21483 if ln -s conf$$.file conf$$ 2>/dev/null; then
21485 # ... but there are two gotchas:
21486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21488 # In both cases, we have to default to `cp -p'.
21489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21491 elif ln conf$$.file conf$$ 2>/dev/null; then
21499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21500 rmdir conf$$.dir 2>/dev/null
21505 # Create "$as_dir" as a directory, including parents if necessary.
21510 -*) as_dir=./$as_dir;;
21512 test -d "$as_dir" || eval $as_mkdir_p || {
21516 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21517 *) as_qdir=$as_dir;;
21519 as_dirs="'$as_qdir' $as_dirs"
21520 as_dir=`$as_dirname -- "$as_dir" ||
21521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21522 X"$as_dir" : 'X\(//\)[^/]' \| \
21523 X"$as_dir" : 'X\(//\)$' \| \
21524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21525 $as_echo X"$as_dir" |
21526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21530 /^X\(\/\/\)[^/].*/{
21543 test -d "$as_dir" && break
21545 test -z "$as_dirs" || eval "mkdir $as_dirs"
21546 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21550 if mkdir -p . 2>/dev/null; then
21551 as_mkdir_p='mkdir -p "$as_dir"'
21553 test -d ./-p && rmdir ./-p
21557 if test -x / >/dev/null 2>&1; then
21558 as_test_x='test -x'
21560 if ls -dL / >/dev/null 2>&1; then
21567 if test -d "$1"; then
21573 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21574 ???[sx]*):;;*)false;;esac;fi
21578 as_executable_p=$as_test_x
21580 # Sed expression to map a string onto a valid CPP name.
21581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21583 # Sed expression to map a string onto a valid variable name.
21584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21588 ## ----------------------------------- ##
21589 ## Main body of $CONFIG_STATUS script. ##
21590 ## ----------------------------------- ##
21592 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21595 # Save the log message, to keep $0 and so on meaningful, and to
21596 # report actual input values of CONFIG_FILES etc. instead of their
21597 # values after options handling.
21599 This file was extended by sudo $as_me 1.8.6p8, which was
21600 generated by GNU Autoconf 2.68. Invocation command line was
21602 CONFIG_FILES = $CONFIG_FILES
21603 CONFIG_HEADERS = $CONFIG_HEADERS
21604 CONFIG_LINKS = $CONFIG_LINKS
21605 CONFIG_COMMANDS = $CONFIG_COMMANDS
21608 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21613 case $ac_config_files in *"
21614 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21617 case $ac_config_headers in *"
21618 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21623 # Files that config.status was made for.
21624 config_files="$ac_config_files"
21625 config_headers="$ac_config_headers"
21626 config_commands="$ac_config_commands"
21630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21632 \`$as_me' instantiates files and other configuration actions
21633 from templates according to the current configuration. Unless the files
21634 and actions are specified as TAGs, all are instantiated by default.
21636 Usage: $0 [OPTION]... [TAG]...
21638 -h, --help print this help, then exit
21639 -V, --version print version number and configuration settings, then exit
21640 --config print configuration, then exit
21641 -q, --quiet, --silent
21642 do not print progress messages
21643 -d, --debug don't remove temporary files
21644 --recheck update $as_me by reconfiguring in the same conditions
21645 --file=FILE[:TEMPLATE]
21646 instantiate the configuration file FILE
21647 --header=FILE[:TEMPLATE]
21648 instantiate the configuration header FILE
21650 Configuration files:
21653 Configuration headers:
21656 Configuration commands:
21659 Report bugs to <http://www.sudo.ws/bugs/>."
21662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21663 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21665 sudo config.status 1.8.6p8
21666 configured by $0, generated by GNU Autoconf 2.68,
21667 with options \\"\$ac_cs_config\\"
21669 Copyright (C) 2010 Free Software Foundation, Inc.
21670 This config.status script is free software; the Free Software Foundation
21671 gives unlimited permission to copy, distribute and modify it."
21676 test -n "\$AWK" || AWK=awk
21679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21680 # The default lists apply if the user does not specify any file.
21686 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21687 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21691 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21703 # Handling of the options.
21704 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21706 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21707 $as_echo "$ac_cs_version"; exit ;;
21708 --config | --confi | --conf | --con | --co | --c )
21709 $as_echo "$ac_cs_config"; exit ;;
21710 --debug | --debu | --deb | --de | --d | -d )
21712 --file | --fil | --fi | --f )
21715 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21716 '') as_fn_error $? "missing file argument" ;;
21718 as_fn_append CONFIG_FILES " '$ac_optarg'"
21719 ac_need_defaults=false;;
21720 --header | --heade | --head | --hea )
21723 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21725 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21726 ac_need_defaults=false;;
21728 # Conflict between --help and --header
21729 as_fn_error $? "ambiguous option: \`$1'
21730 Try \`$0 --help' for more information.";;
21731 --help | --hel | -h )
21732 $as_echo "$ac_cs_usage"; exit ;;
21733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21734 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21737 # This is an error.
21738 -*) as_fn_error $? "unrecognized option: \`$1'
21739 Try \`$0 --help' for more information." ;;
21741 *) as_fn_append ac_config_targets " $1"
21742 ac_need_defaults=false ;;
21748 ac_configure_extra_args=
21750 if $ac_cs_silent; then
21752 ac_configure_extra_args="$ac_configure_extra_args --silent"
21756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21757 if \$ac_cs_recheck; then
21758 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21760 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21761 CONFIG_SHELL='$SHELL'
21762 export CONFIG_SHELL
21767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21771 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21772 ## Running $as_me. ##
21778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21784 # The HP-UX ksh and POSIX shell print the target directory to stdout
21785 # if CDPATH is set.
21786 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21788 sed_quote_subst='$sed_quote_subst'
21789 double_quote_subst='$double_quote_subst'
21790 delay_variable_subst='$delay_variable_subst'
21791 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21792 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21793 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21794 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21795 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21796 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21797 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21798 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21799 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21800 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21801 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21802 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21803 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21804 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21805 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21806 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21807 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21808 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21809 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21810 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21811 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21812 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21813 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21814 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21815 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21816 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21817 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21818 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21819 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21820 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21821 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21822 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21823 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21824 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21825 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21826 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21827 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21828 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21829 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21830 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21831 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21832 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21833 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21834 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21835 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21836 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21837 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21838 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21839 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21840 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21841 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21842 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21843 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21844 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21845 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21846 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21847 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"`'
21848 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21849 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21850 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21851 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21852 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21853 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21854 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21855 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21856 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21857 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21858 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21859 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21860 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21861 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21862 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21863 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21864 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21865 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21866 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21867 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21868 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21869 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21870 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21871 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21872 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21873 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21874 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21875 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21876 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21877 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21878 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21879 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21880 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21881 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21882 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21883 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21884 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21885 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21886 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21887 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21888 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21889 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21890 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21891 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21892 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21893 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21894 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21895 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21896 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21897 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21898 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21899 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21900 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21901 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21902 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21903 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21904 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21905 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21906 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21907 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21908 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21909 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21910 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21911 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21912 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21913 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21914 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21915 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21916 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21917 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21918 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21919 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21920 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21923 LTCFLAGS='$LTCFLAGS'
21924 compiler='$compiler_DEFAULT'
21926 # A function that is used when there is no print builtin or printf.
21927 func_fallback_echo ()
21929 eval 'cat <<_LTECHO_EOF
21934 # Quote evaled strings.
21949 deplibs_check_method \
21954 sharedlib_from_linklib_cmd \
21957 archiver_list_spec \
21963 lt_cv_sys_global_symbol_pipe \
21964 lt_cv_sys_global_symbol_to_cdecl \
21965 lt_cv_sys_global_symbol_to_c_name_address \
21966 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21967 nm_file_list_spec \
21968 lt_prog_compiler_no_builtin_flag \
21969 lt_prog_compiler_pic \
21970 lt_prog_compiler_wl \
21971 lt_prog_compiler_static \
21972 lt_cv_prog_compiler_c_o \
21981 export_dynamic_flag_spec \
21982 whole_archive_flag_spec \
21983 compiler_needs_object \
21985 allow_undefined_flag \
21986 no_undefined_flag \
21987 hardcode_libdir_flag_spec \
21988 hardcode_libdir_separator \
21992 variables_saved_for_relink \
21994 library_names_spec \
21996 install_override_mode \
22000 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22001 *[\\\\\\\`\\"\\\$]*)
22002 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22005 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22010 # Double-quote double-evaled strings.
22011 for var in reload_cmds \
22012 old_postinstall_cmds \
22013 old_postuninstall_cmds \
22015 extract_expsyms_cmds \
22016 old_archive_from_new_cmds \
22017 old_archive_from_expsyms_cmds \
22019 archive_expsym_cmds \
22021 module_expsym_cmds \
22022 export_symbols_cmds \
22026 postuninstall_cmds \
22028 sys_lib_search_path_spec \
22029 sys_lib_dlsearch_path_spec; do
22030 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22031 *[\\\\\\\`\\"\\\$]*)
22032 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22035 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22040 ac_aux_dir='$ac_aux_dir'
22041 xsi_shell='$xsi_shell'
22042 lt_shell_append='$lt_shell_append'
22044 # See if we are running on zsh, and set the options which allow our
22045 # commands through without removal of \ escapes INIT.
22046 if test -n "\${ZSH_VERSION+set}" ; then
22047 setopt NO_GLOB_SUBST
22053 TIMESTAMP='$TIMESTAMP'
22062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22064 # Handling of arguments.
22065 for ac_config_target in $ac_config_targets
22067 case $ac_config_target in
22068 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22069 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
22070 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22071 "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
22072 "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
22073 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22074 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
22075 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
22076 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22077 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22078 "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
22079 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22080 "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
22081 "plugins/sample_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_group/Makefile" ;;
22082 "plugins/system_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/system_group/Makefile" ;;
22083 "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
22084 "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
22086 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22091 # If the user did not use the arguments to specify the items to instantiate,
22092 # then the envvar interface is used. Set only those that are not.
22093 # We use the long form for the default assignment because of an extremely
22094 # bizarre bug on SunOS 4.1.3.
22095 if $ac_need_defaults; then
22096 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22097 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22098 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22101 # Have a temporary directory for convenience. Make it in the build tree
22102 # simply because there is no reason against having it here, and in addition,
22103 # creating and moving files from /tmp can sometimes cause problems.
22104 # Hook for its removal unless debugging.
22105 # Note that there is a small window in which the directory will not be cleaned:
22106 # after its creation but before its name has been assigned to `$tmp'.
22110 trap 'exit_status=$?
22111 : "${ac_tmp:=$tmp}"
22112 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22114 trap 'as_fn_exit 1' 1 2 13 15
22116 # Create a (secure) tmp directory for tmp files.
22119 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22123 tmp=./conf$$-$RANDOM
22124 (umask 077 && mkdir "$tmp")
22125 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22128 # Set up the scripts for CONFIG_FILES section.
22129 # No need to generate them if there are no CONFIG_FILES.
22130 # This happens for instance with `./config.status config.h'.
22131 if test -n "$CONFIG_FILES"; then
22134 ac_cr=`echo X | tr X '\015'`
22135 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22136 # But we know of no other shell where ac_cr would be empty at this
22137 # point, so we can use a bashism as a fallback.
22138 if test "x$ac_cr" = x; then
22139 eval ac_cr=\$\'\\r\'
22141 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22142 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22145 ac_cs_awk_cr=$ac_cr
22148 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22153 echo "cat >conf$$subs.awk <<_ACEOF" &&
22154 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22156 } >conf$$subs.sh ||
22157 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22158 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22160 for ac_last_try in false false false false false :; do
22161 . ./conf$$subs.sh ||
22162 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22164 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22165 if test $ac_delim_n = $ac_delim_num; then
22167 elif $ac_last_try; then
22168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22170 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22173 rm -f conf$$subs.sh
22175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22176 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22180 s/^/S["/; s/!.*/"]=/
22190 s/\(.\{148\}\)..*/\1/
22192 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22197 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22204 s/\(.\{148\}\)..*/\1/
22206 s/["\\]/\\&/g; s/^/"/; s/$/"/
22210 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22215 ' <conf$$subs.awk | sed '
22220 ' >>$CONFIG_STATUS || ac_write_fail=1
22221 rm -f conf$$subs.awk
22222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22224 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22225 for (key in S) S_is_set[key] = 1
22231 nfields = split(line, field, "@")
22233 len = length(field[1])
22234 for (i = 2; i < nfields; i++) {
22236 keylen = length(key)
22237 if (S_is_set[key]) {
22239 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22240 len += length(value) + length(field[++i])
22251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22252 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22253 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22256 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22257 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22260 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22261 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22262 # trailing colons and then remove the whole line if VPATH becomes empty
22263 # (actually we leave an empty line to preserve line numbers).
22264 if test "x$srcdir" = x.; then
22265 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22284 fi # test -n "$CONFIG_FILES"
22286 # Set up the scripts for CONFIG_HEADERS section.
22287 # No need to generate them if there are no CONFIG_HEADERS.
22288 # This happens for instance with `./config.status Makefile'.
22289 if test -n "$CONFIG_HEADERS"; then
22290 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22294 # Transform confdefs.h into an awk script `defines.awk', embedded as
22295 # here-document in config.status, that substitutes the proper values into
22296 # config.h.in to produce config.h.
22298 # Create a delimiter string that does not exist in confdefs.h, to ease
22299 # handling of long lines.
22301 for ac_last_try in false false :; do
22302 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22303 if test -z "$ac_tt"; then
22305 elif $ac_last_try; then
22306 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22308 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22312 # For the awk script, D is an array of macro values keyed by name,
22313 # likewise P contains macro parameters if any. Preserve backslash
22314 # newline sequences.
22316 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22318 s/.\{148\}/&'"$ac_delim"'/g
22321 s/^[ ]*#[ ]*define[ ][ ]*/ /
22328 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22330 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22334 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22335 D["\1"]=" \3\\\\\\n"\\/p
22337 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22342 s/.\{148\}/&'"$ac_delim"'/g
22347 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22350 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22352 ' <confdefs.h | sed '
22353 s/'"$ac_delim"'/"\\\
22354 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22357 for (key in D) D_is_set[key] = 1
22360 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22362 split(line, arg, " ")
22363 if (arg[1] == "#") {
22367 defundef = substr(arg[1], 2)
22370 split(mac1, mac2, "(") #)
22372 prefix = substr(line, 1, index(line, defundef) - 1)
22373 if (D_is_set[macro]) {
22374 # Preserve the white space surrounding the "#".
22375 print prefix "define", macro P[macro] D[macro]
22378 # Replace #undef with comments. This is necessary, for example,
22379 # in the case of _POSIX_SOURCE, which is predefined and required
22380 # on some systems where configure will not decide to define it.
22381 if (defundef == "undef") {
22382 print "/*", prefix defundef, macro, "*/"
22390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22391 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22392 fi # test -n "$CONFIG_HEADERS"
22395 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22400 :[FHLC]) ac_mode=$ac_tag; continue;;
22402 case $ac_mode$ac_tag in
22404 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22405 :[FH]-) ac_tag=-:-;;
22406 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22423 -) ac_f="$ac_tmp/stdin";;
22424 *) # Look for the file first in the build tree, then in the source tree
22425 # (if the path is not absolute). The absolute path cannot be DOS-style,
22426 # because $ac_f cannot contain `:'.
22430 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22432 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22434 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22435 as_fn_append ac_file_inputs " '$ac_f'"
22438 # Let's still pretend it is `configure' which instantiates (i.e., don't
22439 # use $as_me), people would be surprised to read:
22440 # /* config.h. Generated by config.status. */
22441 configure_input='Generated from '`
22442 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22444 if test x"$ac_file" != x-; then
22445 configure_input="$ac_file. $configure_input"
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22447 $as_echo "$as_me: creating $ac_file" >&6;}
22449 # Neutralize special characters interpreted by sed in replacement strings.
22450 case $configure_input in #(
22451 *\&* | *\|* | *\\* )
22452 ac_sed_conf_input=`$as_echo "$configure_input" |
22453 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22454 *) ac_sed_conf_input=$configure_input;;
22458 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22464 ac_dir=`$as_dirname -- "$ac_file" ||
22465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22466 X"$ac_file" : 'X\(//\)[^/]' \| \
22467 X"$ac_file" : 'X\(//\)$' \| \
22468 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22469 $as_echo X"$ac_file" |
22470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22474 /^X\(\/\/\)[^/].*/{
22487 as_dir="$ac_dir"; as_fn_mkdir_p
22491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22494 # A ".." for each directory in $ac_dir_suffix.
22495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22496 case $ac_top_builddir_sub in
22497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22501 ac_abs_top_builddir=$ac_pwd
22502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22503 # for backward compatibility:
22504 ac_top_builddir=$ac_top_build_prefix
22507 .) # We are building in place.
22509 ac_top_srcdir=$ac_top_builddir_sub
22510 ac_abs_top_srcdir=$ac_pwd ;;
22511 [\\/]* | ?:[\\/]* ) # Absolute name.
22512 ac_srcdir=$srcdir$ac_dir_suffix;
22513 ac_top_srcdir=$srcdir
22514 ac_abs_top_srcdir=$srcdir ;;
22515 *) # Relative name.
22516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22517 ac_top_srcdir=$ac_top_build_prefix$srcdir
22518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22532 # If the template does not know about datarootdir, expand it.
22533 # FIXME: This hack should be removed a few years after 2.60.
22534 ac_datarootdir_hack=; ac_datarootdir_seen=
22545 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22546 *datarootdir*) ac_datarootdir_seen=yes;;
22547 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22549 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22552 ac_datarootdir_hack='
22553 s&@datadir@&$datadir&g
22554 s&@docdir@&$docdir&g
22555 s&@infodir@&$infodir&g
22556 s&@localedir@&$localedir&g
22557 s&@mandir@&$mandir&g
22558 s&\\\${datarootdir}&$datarootdir&g' ;;
22562 # Neutralize VPATH when `$srcdir' = `.'.
22563 # Shell code in configure.ac might set extrasub.
22564 # FIXME: do we really want to maintain this feature?
22565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22566 ac_sed_extra="$ac_vpsub
22569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22572 s|@configure_input@|$ac_sed_conf_input|;t t
22573 s&@top_builddir@&$ac_top_builddir_sub&;t t
22574 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22575 s&@srcdir@&$ac_srcdir&;t t
22576 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22577 s&@top_srcdir@&$ac_top_srcdir&;t t
22578 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22579 s&@builddir@&$ac_builddir&;t t
22580 s&@abs_builddir@&$ac_abs_builddir&;t t
22581 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22582 $ac_datarootdir_hack
22584 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22585 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22587 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22588 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22589 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22590 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22592 which seems to be undefined. Please make sure it is defined" >&5
22593 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22594 which seems to be undefined. Please make sure it is defined" >&2;}
22596 rm -f "$ac_tmp/stdin"
22598 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22599 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22601 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22607 if test x"$ac_file" != x-; then
22609 $as_echo "/* $configure_input */" \
22610 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22611 } >"$ac_tmp/config.h" \
22612 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22613 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22615 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22618 mv "$ac_tmp/config.h" "$ac_file" \
22619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22622 $as_echo "/* $configure_input */" \
22623 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22624 || as_fn_error $? "could not create -" "$LINENO" 5
22628 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22629 $as_echo "$as_me: executing $ac_file commands" >&6;}
22634 case $ac_file$ac_mode in
22637 # See if we are running on zsh, and set the options which allow our
22638 # commands through without removal of \ escapes.
22639 if test -n "${ZSH_VERSION+set}" ; then
22640 setopt NO_GLOB_SUBST
22643 cfgfile="${ofile}T"
22644 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22647 cat <<_LT_EOF >> "$cfgfile"
22650 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22651 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22652 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22653 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22655 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22656 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22658 # Written by Gordon Matzigkeit, 1996
22660 # This file is part of GNU Libtool.
22662 # GNU Libtool is free software; you can redistribute it and/or
22663 # modify it under the terms of the GNU General Public License as
22664 # published by the Free Software Foundation; either version 2 of
22665 # the License, or (at your option) any later version.
22667 # As a special exception to the GNU General Public License,
22668 # if you distribute this file as part of a program or library that
22669 # is built using GNU Libtool, you may include this file under the
22670 # same distribution terms that you use for the rest of that program.
22672 # GNU Libtool is distributed in the hope that it will be useful,
22673 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22674 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22675 # GNU General Public License for more details.
22677 # You should have received a copy of the GNU General Public License
22678 # along with GNU Libtool; see the file COPYING. If not, a copy
22679 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22680 # obtained by writing to the Free Software Foundation, Inc.,
22681 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22684 # The names of the tagged configurations supported by this script.
22687 # ### BEGIN LIBTOOL CONFIG
22689 # Which release of libtool.m4 was used?
22690 macro_version=$macro_version
22691 macro_revision=$macro_revision
22693 # Whether or not to build shared libraries.
22694 build_libtool_libs=$enable_shared
22696 # Whether or not to build static libraries.
22697 build_old_libs=$enable_static
22699 # What type of objects to build.
22702 # Whether or not to optimize for fast installation.
22703 fast_install=$enable_fast_install
22705 # Shell to use when invoking shell scripts.
22708 # An echo program that protects backslashes.
22711 # The PATH separator for the build system.
22712 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22715 host_alias=$host_alias
22719 # The build system.
22720 build_alias=$build_alias
22724 # A sed program that does not truncate output.
22727 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22728 Xsed="\$SED -e 1s/^X//"
22730 # A grep program that handles long lines.
22736 # A literal string matcher.
22739 # A BSD- or MS-compatible name lister.
22742 # Whether we need soft or hard links.
22745 # What is the maximum length of a command?
22746 max_cmd_len=$max_cmd_len
22748 # Object file suffix (normally "o").
22751 # Executable file suffix (normally "").
22754 # whether the shell understands "unset".
22757 # turn spaces into newlines.
22760 # turn newlines into spaces.
22763 # convert \$build file names to \$host format.
22764 to_host_file_cmd=$lt_cv_to_host_file_cmd
22766 # convert \$build files to toolchain format.
22767 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22769 # An object symbol dumper.
22770 OBJDUMP=$lt_OBJDUMP
22772 # Method to check whether dependent libraries are shared objects.
22773 deplibs_check_method=$lt_deplibs_check_method
22775 # Command to use when deplibs_check_method = "file_magic".
22776 file_magic_cmd=$lt_file_magic_cmd
22778 # How to find potential files when deplibs_check_method = "file_magic".
22779 file_magic_glob=$lt_file_magic_glob
22781 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22782 want_nocaseglob=$lt_want_nocaseglob
22784 # DLL creation program.
22785 DLLTOOL=$lt_DLLTOOL
22787 # Command to associate shared and link libraries.
22788 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22793 # Flags to create an archive.
22794 AR_FLAGS=$lt_AR_FLAGS
22796 # How to feed a file listing to the archiver.
22797 archiver_list_spec=$lt_archiver_list_spec
22799 # A symbol stripping program.
22802 # Commands used to install an old-style archive.
22804 old_postinstall_cmds=$lt_old_postinstall_cmds
22805 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22807 # Whether to use a lock for old archive extraction.
22808 lock_old_archive_extraction=$lock_old_archive_extraction
22813 # LTCC compiler flags.
22814 LTCFLAGS=$lt_CFLAGS
22816 # Take the output of nm and produce a listing of raw symbols and C names.
22817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22819 # Transform the output of nm in a proper C declaration.
22820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22822 # Transform the output of nm in a C name address pair.
22823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22825 # Transform the output of nm in a C name address pair when lib prefix is needed.
22826 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22828 # Specify filename containing input files for \$NM.
22829 nm_file_list_spec=$lt_nm_file_list_spec
22831 # The root where to search for dependent libraries,and in which our libraries should be installed.
22832 lt_sysroot=$lt_sysroot
22834 # The name of the directory that contains temporary libtool files.
22837 # Used to examine libraries when file_magic_cmd begins with "file".
22838 MAGIC_CMD=$MAGIC_CMD
22840 # Must we lock files when doing compilation?
22841 need_locks=$lt_need_locks
22844 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22846 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22847 DSYMUTIL=$lt_DSYMUTIL
22849 # Tool to change global to local symbols on Mac OS X.
22852 # Tool to manipulate fat objects and archives on Mac OS X.
22855 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22858 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22859 OTOOL64=$lt_OTOOL64
22861 # Old archive suffix (normally "a").
22864 # Shared library suffix (normally ".so").
22865 shrext_cmds=$lt_shrext_cmds
22867 # The commands to extract the exported symbol list from a shared archive.
22868 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22870 # Variables whose values should be saved in libtool wrapper scripts and
22871 # restored at link time.
22872 variables_saved_for_relink=$lt_variables_saved_for_relink
22874 # Do we need the "lib" prefix for modules?
22875 need_lib_prefix=$need_lib_prefix
22877 # Do we need a version for libraries?
22878 need_version=$need_version
22880 # Library versioning type.
22881 version_type=$version_type
22883 # Shared library runtime path variable.
22884 runpath_var=$runpath_var
22886 # Shared library path variable.
22887 shlibpath_var=$shlibpath_var
22889 # Is shlibpath searched before the hard-coded library search path?
22890 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22892 # Format of library name prefix.
22893 libname_spec=$lt_libname_spec
22895 # List of archive names. First name is the real one, the rest are links.
22896 # The last name is the one that the linker finds with -lNAME
22897 library_names_spec=$lt_library_names_spec
22899 # The coded name of the library, if different from the real name.
22900 soname_spec=$lt_soname_spec
22902 # Permission mode override for installation of shared libraries.
22903 install_override_mode=$lt_install_override_mode
22905 # Command to use after installation of a shared archive.
22906 postinstall_cmds=$lt_postinstall_cmds
22908 # Command to use after uninstallation of a shared archive.
22909 postuninstall_cmds=$lt_postuninstall_cmds
22911 # Commands used to finish a libtool library installation in a directory.
22912 finish_cmds=$lt_finish_cmds
22914 # As "finish_cmds", except a single script fragment to be evaled but
22916 finish_eval=$lt_finish_eval
22918 # Whether we should hardcode library paths into libraries.
22919 hardcode_into_libs=$hardcode_into_libs
22921 # Compile-time system search path for libraries.
22922 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22924 # Run-time system search path for libraries.
22925 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22927 # Whether dlopen is supported.
22928 dlopen_support=$enable_dlopen
22930 # Whether dlopen of programs is supported.
22931 dlopen_self=$enable_dlopen_self
22933 # Whether dlopen of statically linked programs is supported.
22934 dlopen_self_static=$enable_dlopen_self_static
22936 # Commands to strip libraries.
22937 old_striplib=$lt_old_striplib
22938 striplib=$lt_striplib
22941 # The linker used to build libraries.
22944 # How to create reloadable object files.
22945 reload_flag=$lt_reload_flag
22946 reload_cmds=$lt_reload_cmds
22948 # Commands used to build an old-style archive.
22949 old_archive_cmds=$lt_old_archive_cmds
22951 # A language specific compiler.
22954 # Is the compiler the GNU compiler?
22957 # Compiler flag to turn off builtin functions.
22958 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22960 # Additional compiler flags for building library objects.
22961 pic_flag=$lt_lt_prog_compiler_pic
22963 # How to pass a linker flag through the compiler.
22964 wl=$lt_lt_prog_compiler_wl
22966 # Compiler flag to prevent dynamic linking.
22967 link_static_flag=$lt_lt_prog_compiler_static
22969 # Does compiler simultaneously support -c and -o options?
22970 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22972 # Whether or not to add -lc for building shared libraries.
22973 build_libtool_need_lc=$archive_cmds_need_lc
22975 # Whether or not to disallow shared libs when runtime libs are static.
22976 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22978 # Compiler flag to allow reflexive dlopens.
22979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22981 # Compiler flag to generate shared objects directly from archives.
22982 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22984 # Whether the compiler copes with passing no objects directly.
22985 compiler_needs_object=$lt_compiler_needs_object
22987 # Create an old-style archive from a shared archive.
22988 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22990 # Create a temporary old-style archive to link instead of a shared archive.
22991 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22993 # Commands used to build a shared archive.
22994 archive_cmds=$lt_archive_cmds
22995 archive_expsym_cmds=$lt_archive_expsym_cmds
22997 # Commands used to build a loadable module if different from building
22998 # a shared archive.
22999 module_cmds=$lt_module_cmds
23000 module_expsym_cmds=$lt_module_expsym_cmds
23002 # Whether we are building with GNU ld or not.
23003 with_gnu_ld=$lt_with_gnu_ld
23005 # Flag that allows shared libraries with undefined symbols to be built.
23006 allow_undefined_flag=$lt_allow_undefined_flag
23008 # Flag that enforces no undefined symbols.
23009 no_undefined_flag=$lt_no_undefined_flag
23011 # Flag to hardcode \$libdir into a binary during linking.
23012 # This must work even if \$libdir does not exist
23013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23015 # Whether we need a single "-rpath" flag with a separated argument.
23016 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23018 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23019 # DIR into the resulting binary.
23020 hardcode_direct=$hardcode_direct
23022 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23023 # DIR into the resulting binary and the resulting library dependency is
23024 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23025 # library is relocated.
23026 hardcode_direct_absolute=$hardcode_direct_absolute
23028 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23029 # into the resulting binary.
23030 hardcode_minus_L=$hardcode_minus_L
23032 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23033 # into the resulting binary.
23034 hardcode_shlibpath_var=$hardcode_shlibpath_var
23036 # Set to "yes" if building a shared library automatically hardcodes DIR
23037 # into the library and all subsequent libraries and executables linked
23039 hardcode_automatic=$hardcode_automatic
23041 # Set to yes if linker adds runtime paths of dependent libraries
23042 # to runtime path list.
23043 inherit_rpath=$inherit_rpath
23045 # Whether libtool must link a program against all its dependency libraries.
23046 link_all_deplibs=$link_all_deplibs
23048 # Set to "yes" if exported symbols are required.
23049 always_export_symbols=$always_export_symbols
23051 # The commands to list exported symbols.
23052 export_symbols_cmds=$lt_export_symbols_cmds
23054 # Symbols that should not be listed in the preloaded symbols.
23055 exclude_expsyms=$lt_exclude_expsyms
23057 # Symbols that must always be exported.
23058 include_expsyms=$lt_include_expsyms
23060 # Commands necessary for linking programs (against libraries) with templates.
23061 prelink_cmds=$lt_prelink_cmds
23063 # Commands necessary for finishing linking programs.
23064 postlink_cmds=$lt_postlink_cmds
23066 # Specify filename containing input files.
23067 file_list_spec=$lt_file_list_spec
23069 # How to hardcode a shared library path into an executable.
23070 hardcode_action=$hardcode_action
23072 # ### END LIBTOOL CONFIG
23078 cat <<\_LT_EOF >> "$cfgfile"
23079 # AIX sometimes has problems with the GCC collect2 program. For some
23080 # reason, if we set the COLLECT_NAMES environment variable, the problems
23081 # vanish in a puff of smoke.
23082 if test "X${COLLECT_NAMES+set}" != Xset; then
23084 export COLLECT_NAMES
23091 ltmain="$ac_aux_dir/ltmain.sh"
23094 # We use sed instead of cat because bash on DJGPP gets confused if
23095 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23096 # text mode, it properly converts lines to CR/LF. This bash problem
23097 # is reportedly fixed, but why not run on old versions too?
23098 sed '$q' "$ltmain" >> "$cfgfile" \
23099 || (rm -f "$cfgfile"; exit 1)
23101 if test x"$xsi_shell" = xyes; then
23102 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23106 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23107 \ * ) func_dirname_result="${3}" ;;\
23109 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23110 && mv -f "$cfgfile.tmp" "$cfgfile" \
23111 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23112 test 0 -eq $? || _lt_function_replace_fail=:
23115 sed -e '/^func_basename ()$/,/^} # func_basename /c\
23118 \ func_basename_result="${1##*/}"\
23119 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23120 && mv -f "$cfgfile.tmp" "$cfgfile" \
23121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23122 test 0 -eq $? || _lt_function_replace_fail=:
23125 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23126 func_dirname_and_basename ()\
23129 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23130 \ * ) func_dirname_result="${3}" ;;\
23132 \ func_basename_result="${1##*/}"\
23133 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23134 && mv -f "$cfgfile.tmp" "$cfgfile" \
23135 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23136 test 0 -eq $? || _lt_function_replace_fail=:
23139 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23142 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23143 \ # positional parameters, so assign one to ordinary parameter first.\
23144 \ func_stripname_result=${3}\
23145 \ func_stripname_result=${func_stripname_result#"${1}"}\
23146 \ func_stripname_result=${func_stripname_result%"${2}"}\
23147 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23148 && mv -f "$cfgfile.tmp" "$cfgfile" \
23149 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23150 test 0 -eq $? || _lt_function_replace_fail=:
23153 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23154 func_split_long_opt ()\
23156 \ func_split_long_opt_name=${1%%=*}\
23157 \ func_split_long_opt_arg=${1#*=}\
23158 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23159 && mv -f "$cfgfile.tmp" "$cfgfile" \
23160 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23161 test 0 -eq $? || _lt_function_replace_fail=:
23164 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23165 func_split_short_opt ()\
23167 \ func_split_short_opt_arg=${1#??}\
23168 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23169 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23170 && mv -f "$cfgfile.tmp" "$cfgfile" \
23171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23172 test 0 -eq $? || _lt_function_replace_fail=:
23175 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23179 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23180 \ *) func_lo2o_result=${1} ;;\
23182 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23183 && mv -f "$cfgfile.tmp" "$cfgfile" \
23184 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23185 test 0 -eq $? || _lt_function_replace_fail=:
23188 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23191 func_xform_result=${1%.*}.lo\
23192 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23193 && mv -f "$cfgfile.tmp" "$cfgfile" \
23194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23195 test 0 -eq $? || _lt_function_replace_fail=:
23198 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23201 func_arith_result=$(( $* ))\
23202 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23203 && mv -f "$cfgfile.tmp" "$cfgfile" \
23204 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23205 test 0 -eq $? || _lt_function_replace_fail=:
23208 sed -e '/^func_len ()$/,/^} # func_len /c\
23211 func_len_result=${#1}\
23212 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23213 && mv -f "$cfgfile.tmp" "$cfgfile" \
23214 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23215 test 0 -eq $? || _lt_function_replace_fail=:
23219 if test x"$lt_shell_append" = xyes; then
23220 sed -e '/^func_append ()$/,/^} # func_append /c\
23223 eval "${1}+=\\${2}"\
23224 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23225 && mv -f "$cfgfile.tmp" "$cfgfile" \
23226 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23227 test 0 -eq $? || _lt_function_replace_fail=:
23230 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23231 func_append_quoted ()\
23233 \ func_quote_for_eval "${2}"\
23234 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23235 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23236 && mv -f "$cfgfile.tmp" "$cfgfile" \
23237 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23238 test 0 -eq $? || _lt_function_replace_fail=:
23241 # Save a `func_append' function call where possible by direct use of '+='
23242 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23243 && mv -f "$cfgfile.tmp" "$cfgfile" \
23244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23245 test 0 -eq $? || _lt_function_replace_fail=:
23247 # Save a `func_append' function call even when '+=' is not available
23248 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23249 && mv -f "$cfgfile.tmp" "$cfgfile" \
23250 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23251 test 0 -eq $? || _lt_function_replace_fail=:
23254 if test x"$_lt_function_replace_fail" = x":"; then
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23256 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23260 mv -f "$cfgfile" "$ofile" ||
23261 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23272 ac_clean_files=$ac_clean_files_save
23274 test $ac_write_fail = 0 ||
23275 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23278 # configure is writing to config.log, and then calls config.status.
23279 # config.status does its own redirection, appending to config.log.
23280 # Unfortunately, on DOS this fails, as config.log is still kept open
23281 # by configure, so config.status won't be able to write to it; its
23282 # output is simply discarded. So we exec the FD to /dev/null,
23283 # effectively closing config.log, so it can be properly (re)opened and
23284 # appended to by config.status. When coming back to configure, we
23285 # need to make the FD available again.
23286 if test "$no_create" != yes; then
23288 ac_config_status_args=
23289 test "$silent" = yes &&
23290 ac_config_status_args="$ac_config_status_args --quiet"
23292 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23294 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23295 # would make configure fail if this is the last instruction.
23296 $ac_cs_success || as_fn_exit 1
23298 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23300 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23304 if test "$with_pam" = "yes"; then
23307 if test -f /usr/lib/security/libpam_hpsec.so.1; then
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: You may wish to add the following line to /etc/pam.conf" >&5
23309 $as_echo "$as_me: You may wish to add the following line to /etc/pam.conf" >&6;}
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5
23311 $as_echo "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;}
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
23316 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}