2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sudo 1.8.5p2.
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.5p2'
574 PACKAGE_STRING='sudo 1.8.5p2'
575 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
578 ac_config_libobj_dir=compat
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='LTLIBOBJS
774 program_transform_name
787 enable_option_checking
845 with_password_timeout
856 with_ldap_secret_file
863 enable_authentication
871 enable_shell_sets_home
881 enable_gss_krb5_ccache_name
895 enable_kerb5_instance
897 ac_precious_vars='build_alias
910 # Initialize some variables set by options.
912 ac_init_version=false
913 ac_unrecognized_opts=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
924 program_transform_name=s,x,x,
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir='${exec_prefix}/bin'
939 sbindir='${exec_prefix}/sbin'
940 libexecdir='${exec_prefix}/libexec'
941 datarootdir='${prefix}/share'
942 datadir='${datarootdir}'
943 sysconfdir='${prefix}/etc'
944 sharedstatedir='${prefix}/com'
945 localstatedir='${prefix}/var'
946 includedir='${prefix}/include'
947 oldincludedir='/usr/include'
948 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
949 infodir='${datarootdir}/info'
954 libdir='${exec_prefix}/lib'
955 localedir='${datarootdir}/locale'
956 mandir='${datarootdir}/man'
962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
964 eval $ac_prev=\$ac_option
970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 # Accept the important Cygnus configure options, so we can diagnose typos.
977 case $ac_dashdash$ac_option in
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
999 cache_file=config.cache ;;
1001 -datadir | --datadir | --datadi | --datad)
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1013 -disable-* | --disable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error $? "invalid feature name: $ac_useropt"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1022 "enable_$ac_useropt"
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1027 eval enable_$ac_useropt=no ;;
1029 -docdir | --docdir | --docdi | --doc | --do)
1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032 docdir=$ac_optarg ;;
1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037 dvidir=$ac_optarg ;;
1039 -enable-* | --enable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error $? "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1053 eval enable_$ac_useropt=\$ac_optarg ;;
1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057 | --exec | --exe | --ex)
1058 ac_prev=exec_prefix ;;
1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061 | --exec=* | --exe=* | --ex=*)
1062 exec_prefix=$ac_optarg ;;
1064 -gas | --gas | --ga | --g)
1065 # Obsolete; use --with-gas.
1068 -help | --help | --hel | --he | -h)
1069 ac_init_help=long ;;
1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071 ac_init_help=recursive ;;
1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073 ac_init_help=short ;;
1075 -host | --host | --hos | --ho)
1076 ac_prev=host_alias ;;
1077 -host=* | --host=* | --hos=* | --ho=*)
1078 host_alias=$ac_optarg ;;
1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084 htmldir=$ac_optarg ;;
1086 -includedir | --includedir | --includedi | --included | --include \
1087 | --includ | --inclu | --incl | --inc)
1088 ac_prev=includedir ;;
1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090 | --includ=* | --inclu=* | --incl=* | --inc=*)
1091 includedir=$ac_optarg ;;
1093 -infodir | --infodir | --infodi | --infod | --info | --inf)
1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096 infodir=$ac_optarg ;;
1098 -libdir | --libdir | --libdi | --libd)
1100 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101 libdir=$ac_optarg ;;
1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104 | --libexe | --libex | --libe)
1105 ac_prev=libexecdir ;;
1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107 | --libexe=* | --libex=* | --libe=*)
1108 libexecdir=$ac_optarg ;;
1110 -localedir | --localedir | --localedi | --localed | --locale)
1111 ac_prev=localedir ;;
1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113 localedir=$ac_optarg ;;
1115 -localstatedir | --localstatedir | --localstatedi | --localstated \
1116 | --localstate | --localstat | --localsta | --localst | --locals)
1117 ac_prev=localstatedir ;;
1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1120 localstatedir=$ac_optarg ;;
1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125 mandir=$ac_optarg ;;
1127 -nfp | --nfp | --nf)
1128 # Obsolete; use --without-fp.
1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132 | --no-cr | --no-c | -n)
1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141 | --oldin | --oldi | --old | --ol | --o)
1142 ac_prev=oldincludedir ;;
1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146 oldincludedir=$ac_optarg ;;
1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151 prefix=$ac_optarg ;;
1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154 | --program-pre | --program-pr | --program-p)
1155 ac_prev=program_prefix ;;
1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158 program_prefix=$ac_optarg ;;
1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161 | --program-suf | --program-su | --program-s)
1162 ac_prev=program_suffix ;;
1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165 program_suffix=$ac_optarg ;;
1167 -program-transform-name | --program-transform-name \
1168 | --program-transform-nam | --program-transform-na \
1169 | --program-transform-n | --program-transform- \
1170 | --program-transform | --program-transfor \
1171 | --program-transfo | --program-transf \
1172 | --program-trans | --program-tran \
1173 | --progr-tra | --program-tr | --program-t)
1174 ac_prev=program_transform_name ;;
1175 -program-transform-name=* | --program-transform-name=* \
1176 | --program-transform-nam=* | --program-transform-na=* \
1177 | --program-transform-n=* | --program-transform-=* \
1178 | --program-transform=* | --program-transfor=* \
1179 | --program-transfo=* | --program-transf=* \
1180 | --program-trans=* | --program-tran=* \
1181 | --progr-tra=* | --program-tr=* | --program-t=*)
1182 program_transform_name=$ac_optarg ;;
1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187 pdfdir=$ac_optarg ;;
1189 -psdir | --psdir | --psdi | --psd | --ps)
1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1202 sbindir=$ac_optarg ;;
1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1206 | --sharedst | --shareds | --shared | --share | --shar \
1208 ac_prev=sharedstatedir ;;
1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1213 sharedstatedir=$ac_optarg ;;
1215 -site | --site | --sit)
1217 -site=* | --site=* | --sit=*)
1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1223 srcdir=$ac_optarg ;;
1225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1226 | --syscon | --sysco | --sysc | --sys | --sy)
1227 ac_prev=sysconfdir ;;
1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1230 sysconfdir=$ac_optarg ;;
1232 -target | --target | --targe | --targ | --tar | --ta | --t)
1233 ac_prev=target_alias ;;
1234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1235 target_alias=$ac_optarg ;;
1237 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 -version | --version | --versio | --versi | --vers | -V)
1241 ac_init_version=: ;;
1244 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1257 eval with_$ac_useropt=\$ac_optarg ;;
1259 -without-* | --without-*)
1260 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263 as_fn_error $? "invalid package name: $ac_useropt"
1264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
1273 eval with_$ac_useropt=no ;;
1276 # Obsolete; use --with-x.
1279 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280 | --x-incl | --x-inc | --x-in | --x-i)
1281 ac_prev=x_includes ;;
1282 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1284 x_includes=$ac_optarg ;;
1286 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288 ac_prev=x_libraries ;;
1289 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1291 x_libraries=$ac_optarg ;;
1293 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1294 Try \`$0 --help' for more information"
1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1299 # Reject names that are not valid shell variable names.
1300 case $ac_envvar in #(
1301 '' | [0-9]* | *[!_$as_cr_alnum]* )
1302 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1304 eval $ac_envvar=\$ac_optarg
1305 export $ac_envvar ;;
1308 # FIXME: should be removed in autoconf 3.0.
1309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1312 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318 if test -n "$ac_prev"; then
1319 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1320 as_fn_error $? "missing argument to $ac_option"
1323 if test -n "$ac_unrecognized_opts"; then
1324 case $enable_option_checking in
1326 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1327 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1331 # Check all directory arguments for consistency.
1332 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1337 eval ac_val=\$$ac_var
1338 # Remove trailing slashes.
1341 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342 eval $ac_var=\$ac_val;;
1344 # Be sure to have absolute directory names.
1346 [\\/$]* | ?:[\\/]* ) continue;;
1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1352 # There might be people who depend on the old broken behavior: `$host'
1353 # used to hold the argument of --host etc.
1354 # FIXME: To remove some day.
1357 target=$target_alias
1359 # FIXME: To remove some day.
1360 if test "x$host_alias" != x; then
1361 if test "x$build_alias" = x; then
1362 cross_compiling=maybe
1363 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1364 If a cross compiler is detected then cross compile mode will be used" >&2
1365 elif test "x$build_alias" != "x$host_alias"; then
1371 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1373 test "$silent" = yes && exec 6>/dev/null
1376 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377 ac_ls_di=`ls -di .` &&
1378 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1379 as_fn_error $? "working directory cannot be determined"
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381 as_fn_error $? "pwd does not report name of working directory"
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
1387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir=`$as_dirname -- "$as_myself" ||
1389 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$as_myself" : 'X\(//\)[^/]' \| \
1391 X"$as_myself" : 'X\(//\)$' \| \
1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393 $as_echo X"$as_myself" |
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1416 ac_srcdir_defaulted=no
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 # Report the --help message.
1446 if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1450 \`configure' configures sudo 1.8.5p2 to adapt to many kinds of systems.
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE. See below for descriptions of some of the useful variables.
1457 Defaults for the options are specified in brackets.
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking ...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1470 Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
1472 [$ac_default_prefix]
1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1481 For better control, use the options below.
1483 Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of sudo 1.8.5p2:";;
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --disable-authentication
1524 Do not require authentication by default
1525 --disable-root-mailer Don't run the mailer as root, run as the user
1526 --disable-setreuid Don't try to use the setreuid() function
1527 --disable-setresuid Don't try to use the setresuid() function
1528 --disable-shadow Never use shadow passwords
1529 --disable-root-sudo Don't allow root to run sudo
1530 --enable-log-host Log the hostname in the log file
1531 --enable-noargs-shell If sudo is given no arguments run a shell
1532 --enable-shell-sets-home
1533 Set $HOME to target user in shell mode
1534 --disable-path-info Print 'command not allowed' not 'command not found'
1535 --enable-env-debug Whether to enable environment debugging.
1536 --enable-zlib[=PATH] Whether to enable or disable zlib
1537 --enable-env-reset Whether to enable environment resetting by default.
1538 --enable-warnings Whether to enable compiler warnings
1539 --enable-werror Whether to enable the -Werror compiler option
1540 --enable-admin-flag Whether to create a Ubuntu-style admin flag file
1541 --disable-nls Disable natural language support using gettext
1542 --enable-gss-krb5-ccache-name
1543 Use GSS-API to set the Kerberos V cred cache name
1544 --enable-shared[=PKGS] build shared libraries [default=yes]
1545 --enable-static[=PKGS] build static libraries [default=yes]
1546 --enable-fast-install[=PKGS]
1547 optimize for fast installation [default=yes]
1548 --disable-libtool-lock avoid locking (might break parallel builds)
1549 --disable-sia Disable SIA on Digital UNIX
1550 --disable-largefile omit support for large files
1551 --disable-pam-session Disable PAM session support
1552 --enable-kerb5-instance instance string to append to the username (separated
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-otp-only deprecated
1559 --with-alertmail deprecated
1560 --with-devel add development options
1561 --with-CC C compiler to use
1562 --with-rpath pass -R flag in addition to -L for lib paths
1563 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1564 --with-bsm-audit enable BSM audit support
1565 --with-linux-audit enable Linux audit support
1566 --with-incpath additional places to look for include files
1567 --with-libpath additional places to look for libraries
1568 --with-libraries additional libraries to link with
1569 --with-efence link with -lefence for malloc() debugging
1570 --with-csops add CSOps standard options
1571 --without-passwd don't use passwd/shadow file for authentication
1572 --with-skey=DIR enable S/Key support
1573 --with-opie=DIR enable OPIE support
1574 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1575 --with-SecurID[=DIR] enable SecurID support
1576 --with-fwtk[=DIR] enable FWTK AuthSRV support
1577 --with-kerb5[=DIR] enable Kerberos V support
1578 --with-aixauth enable AIX general authentication support
1579 --with-pam enable PAM support
1580 --with-AFS enable AFS support
1581 --with-DCE enable DCE support
1582 --with-logincap enable BSD login class support
1583 --with-bsdauth enable BSD authentication support
1584 --with-project enable Solaris project support
1585 --without-lecture don't print lecture for first-time sudoer
1586 --with-logging log via syslog, file, or both
1587 --with-logfac syslog facility to log with (default is "auth")
1588 --with-goodpri syslog priority for commands (def is "notice")
1589 --with-badpri syslog priority for failures (def is "alert")
1590 --with-logpath path to the sudo log file
1591 --with-loglen maximum length of a log file line (default is 80)
1592 --with-ignore-dot ignore '.' in the PATH
1593 --without-mail-if-no-user
1594 do not send mail if user not in sudoers
1595 --with-mail-if-no-host send mail if user in sudoers but not for this host
1596 --with-mail-if-noperms send mail if user not allowed to run command
1597 --with-mailto who should get sudo mail (default is "root")
1598 --with-mailsubject subject of sudo mail
1599 --with-passprompt default password prompt
1600 --with-badpass-message message the user sees when the password is wrong
1601 --with-fqdn expect fully qualified hosts in sudoers
1602 --with-timedir path to the sudo timestamp dir
1603 --with-iologdir=DIR directory to store sudo I/O log files in
1604 --with-sendmail set path to sendmail
1605 --without-sendmail do not send mail at all
1606 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1607 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1608 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1609 --with-umask umask with which the prog should run (default is
1611 --without-umask Preserves the umask of the user invoking sudo.
1612 --with-umask-override Use the umask specified in sudoers even if it is
1613 less restrictive than the user's.
1614 --with-runas-default User to run commands as (default is "root")
1615 --with-exempt=group no passwd needed for users in this group
1616 --with-editor=path Default editor for visudo (defaults to vi)
1617 --with-env-editor Use the environment variable EDITOR for visudo
1618 --with-passwd-tries number of tries to enter password (default is 3)
1619 --with-timeout minutes before sudo asks for passwd again (def is 5
1621 --with-password-timeout passwd prompt timeout in minutes (default is 5
1623 --with-tty-tickets use a different ticket file for each tty
1624 --with-insults insult the user for entering an incorrect password
1625 --with-all-insults include all the sudo insult sets
1626 --with-classic-insults include the insults from the "classic" sudo
1627 --with-csops-insults include CSOps insults
1628 --with-hal-insults include 2001-like insults
1629 --with-goons-insults include the insults from the "Goon Show"
1630 --with-nsswitch[=PATH] path to nsswitch.conf
1631 --with-ldap[=DIR] enable LDAP support
1632 --with-ldap-conf-file path to LDAP configuration file
1633 --with-ldap-secret-file path to LDAP secret password file
1634 --with-pc-insults replace politically incorrect insults with less
1636 --with-secure-path override the user's path with a built-in one
1637 --without-interfaces don't try to read the ip addr of ether interfaces
1638 --with-stow properly handle GNU stow packaging
1639 --with-askpass=PATH Fully qualified pathname of askpass helper
1640 --with-plugindir set directory to load plugins from
1641 --with-selinux enable SELinux support
1642 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1644 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1645 --with-sysroot=DIR Search for dependent libraries within DIR
1646 (or the compiler's sysroot if not specified).
1647 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1648 --with-netsvc[=PATH] path to netsvc.conf
1649 --with-pam-login enable specific PAM session for sudo -i
1651 Some influential environment variables:
1652 CC C compiler command
1653 CFLAGS C compiler flags
1654 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1655 nonstandard directory <lib dir>
1656 LIBS libraries to pass to the linker, e.g. -l<library>
1657 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1658 you have headers in a nonstandard directory <include dir>
1660 YACC The `Yet Another Compiler Compiler' implementation to use.
1661 Defaults to the first program found out of: `bison -y', `byacc',
1663 YFLAGS The list of arguments that will be passed by default to $YACC.
1664 This script will default YFLAGS to the empty string to avoid a
1665 default value of `-d' given by some make applications.
1667 Use these variables to override the choices made by `configure' or to help
1668 it to find libraries and programs with nonstandard names/locations.
1670 Report bugs to <http://www.sudo.ws/bugs/>.
1675 if test "$ac_init_help" = "recursive"; then
1676 # If there are subdirs, report their specific --help.
1677 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1678 test -d "$ac_dir" ||
1679 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1686 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1687 # A ".." for each directory in $ac_dir_suffix.
1688 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1689 case $ac_top_builddir_sub in
1690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1694 ac_abs_top_builddir=$ac_pwd
1695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1696 # for backward compatibility:
1697 ac_top_builddir=$ac_top_build_prefix
1700 .) # We are building in place.
1702 ac_top_srcdir=$ac_top_builddir_sub
1703 ac_abs_top_srcdir=$ac_pwd ;;
1704 [\\/]* | ?:[\\/]* ) # Absolute name.
1705 ac_srcdir=$srcdir$ac_dir_suffix;
1706 ac_top_srcdir=$srcdir
1707 ac_abs_top_srcdir=$srcdir ;;
1709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1710 ac_top_srcdir=$ac_top_build_prefix$srcdir
1711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1715 cd "$ac_dir" || { ac_status=$?; continue; }
1716 # Check for guested configure.
1717 if test -f "$ac_srcdir/configure.gnu"; then
1719 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1720 elif test -f "$ac_srcdir/configure"; then
1722 $SHELL "$ac_srcdir/configure" --help=recursive
1724 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1726 cd "$ac_pwd" || { ac_status=$?; break; }
1730 test -n "$ac_init_help" && exit $ac_status
1731 if $ac_init_version; then
1733 sudo configure 1.8.5p2
1734 generated by GNU Autoconf 2.68
1736 Copyright (C) 2010 Free Software Foundation, Inc.
1737 This configure script is free software; the Free Software Foundation
1738 gives unlimited permission to copy, distribute and modify it.
1743 ## ------------------------ ##
1744 ## Autoconf initialization. ##
1745 ## ------------------------ ##
1747 # ac_fn_c_try_compile LINENO
1748 # --------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_compile ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext
1754 if { { ac_try="$ac_compile"
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_compile") 2>conftest.err
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest.$ac_objext; then :
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1783 } # ac_fn_c_try_compile
1785 # ac_fn_c_try_link LINENO
1786 # -----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest$ac_exeext
1792 if { { ac_try="$ac_link"
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>conftest.err
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest$ac_exeext && {
1811 test "$cross_compiling" = yes ||
1812 $as_test_x conftest$ac_exeext
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823 # interfere with the next link command; also delete a directory that is
1824 # left behind by Apple's compiler. We do this before executing the actions.
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1829 } # ac_fn_c_try_link
1831 # ac_fn_c_try_cpp LINENO
1832 # ----------------------
1833 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 if { { ac_try="$ac_cpp conftest.$ac_ext"
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } > conftest.i && {
1853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1854 test ! -s conftest.err
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1868 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1869 # -------------------------------------------------------
1870 # Tests whether HEADER exists and can be compiled using the include files in
1871 # INCLUDES, setting the cache variable VAR accordingly.
1872 ac_fn_c_check_header_compile ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1885 if ac_fn_c_try_compile "$LINENO"; then :
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 } # ac_fn_c_check_header_compile
1899 # ac_fn_c_try_run LINENO
1900 # ----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1902 # that executables *can* be run.
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if { { ac_try="$ac_link"
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>&5
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1917 { { case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_try") 2>&5
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; }; }; then :
1929 $as_echo "$as_me: program exited with status $ac_status" >&5
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1933 ac_retval=$ac_status
1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 as_fn_set_status $ac_retval
1941 # ac_fn_c_check_func LINENO FUNC VAR
1942 # ----------------------------------
1943 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1944 ac_fn_c_check_func ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1956 #define $2 innocuous_$2
1958 /* System header to define __stub macros and hopefully few prototypes,
1959 which can conflict with char $2 (); below.
1960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1961 <limits.h> exists even on freestanding compilers. */
1964 # include <limits.h>
1966 # include <assert.h>
1971 /* Override any GCC internal prototype to avoid an error.
1972 Use char because int might match the return type of a GCC
1973 builtin and then its argument prototype would still apply. */
1978 /* The GNU C library defines this for functions which it implements
1979 to always fail with ENOSYS. Some functions are actually named
1980 something starting with __ and the normal name is an alias. */
1981 #if defined __stub_$2 || defined __stub___$2
1993 if ac_fn_c_try_link "$LINENO"; then :
1998 rm -f core conftest.err conftest.$ac_objext \
1999 conftest$ac_exeext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 } # ac_fn_c_check_func
2008 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009 # -------------------------------------------
2010 # Tests whether TYPE exists after having included INCLUDES, setting cache
2011 # variable VAR accordingly.
2012 ac_fn_c_check_type ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval \${$3+:} false; then :
2018 $as_echo_n "(cached) " >&6
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2046 if ac_fn_c_try_compile "$LINENO"; then :
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 } # ac_fn_c_check_type
2062 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2063 # -------------------------------------------------------
2064 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065 # the include files in INCLUDES and setting the cache variable VAR
2067 ac_fn_c_check_header_mongrel ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if eval \${$3+:} false; then :
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2080 # Is the header compilable?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082 $as_echo_n "checking $2 usability... " >&6; }
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_header_compiler=yes
2091 ac_header_compiler=no
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095 $as_echo "$ac_header_compiler" >&6; }
2097 # Is the header present?
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099 $as_echo_n "checking $2 presence... " >&6; }
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 if ac_fn_c_try_cpp "$LINENO"; then :
2105 ac_header_preproc=yes
2107 ac_header_preproc=no
2109 rm -f conftest.err conftest.i conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111 $as_echo "$ac_header_preproc" >&6; }
2113 # So? What about this header?
2114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2125 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2129 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2132 ( $as_echo "## --------------------------------------- ##
2133 ## Report this to http://www.sudo.ws/bugs/ ##
2134 ## --------------------------------------- ##"
2135 ) | sed "s/^/$as_me: WARNING: /" >&2
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval \${$3+:} false; then :
2141 $as_echo_n "(cached) " >&6
2143 eval "$3=\$ac_header_compiler"
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151 } # ac_fn_c_check_header_mongrel
2153 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2154 # ----------------------------------------------------
2155 # Tries to find if the field MEMBER exists in type AGGR, after including
2156 # INCLUDES, setting cache variable VAR accordingly.
2157 ac_fn_c_check_member ()
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2161 $as_echo_n "checking for $2.$3... " >&6; }
2162 if eval \${$4+:} false; then :
2163 $as_echo_n "(cached) " >&6
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2178 if ac_fn_c_try_compile "$LINENO"; then :
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2188 if (sizeof ac_aggr.$3)
2194 if ac_fn_c_try_compile "$LINENO"; then :
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205 $as_echo "$ac_res" >&6; }
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 } # ac_fn_c_check_member
2210 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2211 # --------------------------------------------
2212 # Tries to find the compile-time value of EXPR in a program that includes
2213 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2215 ac_fn_c_compute_int ()
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 if test "$cross_compiling" = yes; then
2219 # Depending upon the size, compute the lo and hi bounds.
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2226 static int test_array [1 - 2 * !(($2) >= 0)];
2233 if ac_fn_c_try_compile "$LINENO"; then :
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2242 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 ac_hi=$ac_mid; break
2252 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2253 if test $ac_lo -le $ac_mid; then
2257 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2268 static int test_array [1 - 2 * !(($2) < 0)];
2275 if ac_fn_c_try_compile "$LINENO"; then :
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2284 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 ac_lo=$ac_mid; break
2294 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2295 if test $ac_mid -le $ac_hi; then
2299 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 # Binary search between lo and hi bounds.
2310 while test "x$ac_lo" != "x$ac_hi"; do
2311 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2318 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2325 if ac_fn_c_try_compile "$LINENO"; then :
2328 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2340 static long int longval () { return $2; }
2341 static unsigned long int ulongval () { return $2; }
2348 FILE *f = fopen ("conftest.val", "w");
2353 long int i = longval ();
2356 fprintf (f, "%ld", i);
2360 unsigned long int i = ulongval ();
2363 fprintf (f, "%lu", i);
2365 /* Do not output a trailing newline, as this causes \r\n confusion
2366 on some platforms. */
2367 return ferror (f) || fclose (f) != 0;
2373 if ac_fn_c_try_run "$LINENO"; then :
2374 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2379 conftest.$ac_objext conftest.beam conftest.$ac_ext
2383 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384 as_fn_set_status $ac_retval
2386 } # ac_fn_c_compute_int
2388 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2389 # ---------------------------------------------
2390 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2392 ac_fn_c_check_decl ()
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 as_decl_name=`echo $2|sed 's/ *(.*//'`
2396 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2398 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2399 if eval \${$3+:} false; then :
2400 $as_echo_n "(cached) " >&6
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2408 #ifndef $as_decl_name
2410 (void) $as_decl_use;
2412 (void) $as_decl_name;
2420 if ac_fn_c_try_compile "$LINENO"; then :
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432 } # ac_fn_c_check_decl
2433 cat >config.log <<_ACEOF
2434 This file contains any messages produced by compilers while
2435 running configure, to aid debugging if configure makes a mistake.
2437 It was created by sudo $as_me 1.8.5p2, which was
2438 generated by GNU Autoconf 2.68. Invocation command line was
2450 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2457 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2459 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2460 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2462 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2463 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2464 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2465 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 $as_echo "PATH: $as_dir"
2490 # Keep a trace of the command line.
2491 # Strip out --no-create and --no-recursion so they do not pile up.
2492 # Strip out --silent because we don't want to record it for future runs.
2493 # Also quote any args containing shell meta-characters.
2494 # Make two passes to allow for proper duplicate-argument suppression.
2498 ac_must_keep_next=false
2504 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2506 | -silent | --silent | --silen | --sile | --sil)
2509 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2512 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2514 as_fn_append ac_configure_args1 " '$ac_arg'"
2515 if test $ac_must_keep_next = true; then
2516 ac_must_keep_next=false # Got value, back to normal.
2519 *=* | --config-cache | -C | -disable-* | --disable-* \
2520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2522 | -with-* | --with-* | -without-* | --without-* | --x)
2523 case "$ac_configure_args0 " in
2524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2527 -* ) ac_must_keep_next=true ;;
2530 as_fn_append ac_configure_args " '$ac_arg'"
2535 { ac_configure_args0=; unset ac_configure_args0;}
2536 { ac_configure_args1=; unset ac_configure_args1;}
2538 # When interrupted or exit'd, cleanup temporary files, and complete
2539 # config.log. We remove comments because anyway the quotes in there
2540 # would cause problems or look ugly.
2541 # WARNING: Use '\'' to represent an apostrophe within the trap.
2542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2543 trap 'exit_status=$?
2544 # Save into config.log some information that might help in debugging.
2548 $as_echo "## ---------------- ##
2549 ## Cache variables. ##
2550 ## ---------------- ##"
2552 # The following way of writing the cache mishandles newlines in values,
2554 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2555 eval ac_val=\$$ac_var
2559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2563 _ | IFS | as_nl) ;; #(
2564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2565 *) { eval $ac_var=; unset $ac_var;} ;;
2570 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2571 *${as_nl}ac_space=\ *)
2573 "s/'\''/'\''\\\\'\'''\''/g;
2574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2584 $as_echo "## ----------------- ##
2585 ## Output variables. ##
2586 ## ----------------- ##"
2588 for ac_var in $ac_subst_vars
2590 eval ac_val=\$$ac_var
2592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2594 $as_echo "$ac_var='\''$ac_val'\''"
2598 if test -n "$ac_subst_files"; then
2599 $as_echo "## ------------------- ##
2600 ## File substitutions. ##
2601 ## ------------------- ##"
2603 for ac_var in $ac_subst_files
2605 eval ac_val=\$$ac_var
2607 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2609 $as_echo "$ac_var='\''$ac_val'\''"
2614 if test -s confdefs.h; then
2615 $as_echo "## ----------- ##
2622 test "$ac_signal" != 0 &&
2623 $as_echo "$as_me: caught signal $ac_signal"
2624 $as_echo "$as_me: exit $exit_status"
2626 rm -f core *.core core.conftest.* &&
2627 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2630 for ac_signal in 1 2 13 15; do
2631 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2635 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2636 rm -f -r conftest* confdefs.h
2638 $as_echo "/* confdefs.h */" > confdefs.h
2640 # Predefined preprocessor variables.
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_NAME "$PACKAGE_NAME"
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2650 cat >>confdefs.h <<_ACEOF
2651 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE_STRING "$PACKAGE_STRING"
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE_URL "$PACKAGE_URL"
2667 # Let the site file select an alternate cache file if it wants to.
2668 # Prefer an explicitly selected file to automatically selected ones.
2671 if test -n "$CONFIG_SITE"; then
2672 # We do not want a PATH search for config.site.
2673 case $CONFIG_SITE in #((
2674 -*) ac_site_file1=./$CONFIG_SITE;;
2675 */*) ac_site_file1=$CONFIG_SITE;;
2676 *) ac_site_file1=./$CONFIG_SITE;;
2678 elif test "x$prefix" != xNONE; then
2679 ac_site_file1=$prefix/share/config.site
2680 ac_site_file2=$prefix/etc/config.site
2682 ac_site_file1=$ac_default_prefix/share/config.site
2683 ac_site_file2=$ac_default_prefix/etc/config.site
2685 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2687 test "x$ac_site_file" = xNONE && continue
2688 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2690 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2691 sed 's/^/| /' "$ac_site_file" >&5
2693 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695 as_fn_error $? "failed to load site script $ac_site_file
2696 See \`config.log' for more details" "$LINENO" 5; }
2700 if test -r "$cache_file"; then
2701 # Some versions of bash will fail to source /dev/null (special files
2702 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2703 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2705 $as_echo "$as_me: loading cache $cache_file" >&6;}
2707 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2708 *) . "./$cache_file";;
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2713 $as_echo "$as_me: creating cache $cache_file" >&6;}
2717 # Check that the precious variables saved in the cache have kept the same
2719 ac_cache_corrupted=false
2720 for ac_var in $ac_precious_vars; do
2721 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2722 eval ac_new_set=\$ac_env_${ac_var}_set
2723 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2724 eval ac_new_val=\$ac_env_${ac_var}_value
2725 case $ac_old_set,$ac_new_set in
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2728 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2729 ac_cache_corrupted=: ;;
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2732 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2733 ac_cache_corrupted=: ;;
2736 if test "x$ac_old_val" != "x$ac_new_val"; then
2737 # differences in whitespace do not lead to failure.
2738 ac_old_val_w=`echo x $ac_old_val`
2739 ac_new_val_w=`echo x $ac_new_val`
2740 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2742 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2743 ac_cache_corrupted=:
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2746 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2747 eval $ac_var=\$ac_old_val
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2750 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2752 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2755 # Pass precious variables to config.status.
2756 if test "$ac_new_set" = set; then
2758 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2759 *) ac_arg=$ac_var=$ac_new_val ;;
2761 case " $ac_configure_args " in
2762 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2763 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2767 if $ac_cache_corrupted; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2771 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2772 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2774 ## -------------------- ##
2775 ## Main body of script. ##
2776 ## -------------------- ##
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 ac_config_headers="$ac_config_headers config.h pathnames.h"
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2788 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2878 # Begin initial values for man page substitution
2880 iolog_dir=/var/log/sudo-io
2881 timedir=/var/adm/sudo
2886 passprompt="Password:"
2898 mailsub="*** SECURITY information for %h ***"
2899 badpass_message="Sorry, try again."
2910 ldap_conf=/etc/ldap.conf
2911 ldap_secret=/etc/ldap.secret
2912 netsvc_conf=/etc/netsvc.conf
2913 noexec_file=/usr/local/libexec/sudo_noexec.so
2914 nsswitch_conf=/etc/nsswitch.conf
2915 secure_path="not set"
2917 # End initial values for man page substitution
2924 : ${SUDOERS_MODE='0440'}
2925 : ${SUDOERS_UID='0'}
2926 : ${SUDOERS_GID='0'}
2946 shadow_libs_optional=
2949 RTLD_PRELOAD_VAR="LD_PRELOAD"
2950 RTLD_PRELOAD_ENABLE_VAR=
2951 RTLD_PRELOAD_DELIM=":"
2952 RTLD_PRELOAD_DEFAULT=
2958 # Check whether --with-otp-only was given.
2959 if test "${with_otp_only+set}" = set; then :
2960 withval=$with_otp_only; case $with_otp_only in
2961 yes) with_passwd="no"
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
2963 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2970 # Check whether --with-alertmail was given.
2971 if test "${with_alertmail+set}" = set; then :
2972 withval=$with_alertmail; case $with_alertmail in
2973 *) with_mailto="$with_alertmail"
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
2975 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2983 # Check whether --with-devel was given.
2984 if test "${with_devel+set}" = set; then :
2985 withval=$with_devel; case $with_devel in
2986 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
2987 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2988 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2993 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2994 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
3001 # Check whether --with-CC was given.
3002 if test "${with_CC+set}" = set; then :
3003 withval=$with_CC; case $with_CC in
3004 *) as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5
3011 # Check whether --with-rpath was given.
3012 if test "${with_rpath+set}" = set; then :
3013 withval=$with_rpath; case $with_rpath in
3015 *) as_fn_error $? "\"--with-rpath does not take an argument.\"" "$LINENO" 5
3022 # Check whether --with-blibpath was given.
3023 if test "${with_blibpath+set}" = set; then :
3024 withval=$with_blibpath; case $with_blibpath in
3026 *) { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
3027 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
3034 # Check whether --with-bsm-audit was given.
3035 if test "${with_bsm_audit+set}" = set; then :
3036 withval=$with_bsm_audit; case $with_bsm_audit in
3037 yes) $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3039 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
3040 SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
3043 *) as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054 if test -n "$ac_tool_prefix"; then
3055 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if ${ac_cv_prog_CC+:} false; then :
3060 $as_echo_n "(cached) " >&6
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 if test -n "$CC"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085 $as_echo "$CC" >&6; }
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3093 if test -z "$ac_cv_prog_CC"; then
3095 # Extract the first word of "gcc", so it can be a program name with args.
3096 set dummy gcc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3100 $as_echo_n "(cached) " >&6
3102 if test -n "$ac_ct_CC"; then
3103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_ac_ct_CC="gcc"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3123 if test -n "$ac_ct_CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3125 $as_echo "$ac_ct_CC" >&6; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3131 if test "x$ac_ct_CC" = x; then
3134 case $cross_compiling:$ac_tool_warned in
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3146 if test -z "$CC"; then
3147 if test -n "$ac_tool_prefix"; then
3148 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3149 set dummy ${ac_tool_prefix}cc; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if ${ac_cv_prog_CC+:} false; then :
3153 $as_echo_n "(cached) " >&6
3155 if test -n "$CC"; then
3156 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 ac_cv_prog_CC="${ac_tool_prefix}cc"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 if test -n "$CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3187 if test -z "$CC"; then
3188 # Extract the first word of "cc", so it can be a program name with args.
3189 set dummy cc; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if ${ac_cv_prog_CC+:} false; then :
3193 $as_echo_n "(cached) " >&6
3195 if test -n "$CC"; then
3196 ac_cv_prog_CC="$CC" # Let the user override the test.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3207 ac_prog_rejected=yes
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 if test $ac_prog_rejected = yes; then
3219 # We found a bogon in the path, so make sure we never use it.
3220 set dummy $ac_cv_prog_CC
3222 if test $# != 0; then
3223 # We chose a different compiler from the bogus one.
3224 # However, it has the same basename, so the bogon will be chosen
3225 # first if we set CC to just the basename; use the full file name.
3227 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3233 if test -n "$CC"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235 $as_echo "$CC" >&6; }
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3243 if test -z "$CC"; then
3244 if test -n "$ac_tool_prefix"; then
3245 for ac_prog in cl.exe
3247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if ${ac_cv_prog_CC+:} false; then :
3252 $as_echo_n "(cached) " >&6
3254 if test -n "$CC"; then
3255 ac_cv_prog_CC="$CC" # Let the user override the test.
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 if test -n "$CC"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277 $as_echo "$CC" >&6; }
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3284 test -n "$CC" && break
3287 if test -z "$CC"; then
3289 for ac_prog in cl.exe
3291 # Extract the first word of "$ac_prog", so it can be a program name with args.
3292 set dummy $ac_prog; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3296 $as_echo_n "(cached) " >&6
3298 if test -n "$ac_ct_CC"; then
3299 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 test -z "$as_dir" && as_dir=.
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3308 ac_cv_prog_ac_ct_CC="$ac_prog"
3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319 if test -n "$ac_ct_CC"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3321 $as_echo "$ac_ct_CC" >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3328 test -n "$ac_ct_CC" && break
3331 if test "x$ac_ct_CC" = x; then
3334 case $cross_compiling:$ac_tool_warned in
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3338 ac_tool_warned=yes ;;
3347 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "no acceptable C compiler found in \$PATH
3350 See \`config.log' for more details" "$LINENO" 5; }
3352 # Provide some information about the compiler.
3353 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3356 for ac_option in --version -v -V -qversion; do
3357 { { ac_try="$ac_compiler $ac_option >&5"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 $as_echo "$ac_try_echo"; } >&5
3364 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3366 if test -s conftest.err; then
3368 ... rest of stderr output deleted ...
3369 10q' conftest.err >conftest.er1
3370 cat conftest.er1 >&5
3372 rm -f conftest.er1 conftest.err
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3388 ac_clean_files_save=$ac_clean_files
3389 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3390 # Try to create an executable without -o first, disregard a.out.
3391 # It will help us diagnose broken compilers, and finding out an intuition
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3394 $as_echo_n "checking whether the C compiler works... " >&6; }
3395 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3397 # The possible output files:
3398 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3401 for ac_file in $ac_files
3404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3405 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3410 if { { ac_try="$ac_link_default"
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_link_default") 2>&5
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }; then :
3421 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3422 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3423 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3424 # so that the user can short-circuit this test for compilers unknown to
3426 for ac_file in $ac_files ''
3428 test -f "$ac_file" || continue
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3433 # We found the default executable, but exeext='' is most
3437 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3439 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3441 # We set ac_cv_exeext here because the later test for it is not
3442 # safe: cross compilers may not add the suffix if given an `-o'
3443 # argument, so we may need to know it at that point already.
3444 # Even if this section looks crufty: it has the advantage of
3451 test "$ac_cv_exeext" = no && ac_cv_exeext=
3456 if test -z "$ac_file"; then :
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3459 $as_echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error 77 "C compiler cannot create executables
3465 See \`config.log' for more details" "$LINENO" 5; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3468 $as_echo "yes" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3471 $as_echo_n "checking for C compiler default output file name... " >&6; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3473 $as_echo "$ac_file" >&6; }
3474 ac_exeext=$ac_cv_exeext
3476 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3477 ac_clean_files=$ac_clean_files_save
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3479 $as_echo_n "checking for suffix of executables... " >&6; }
3480 if { { ac_try="$ac_link"
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486 $as_echo "$ac_try_echo"; } >&5
3487 (eval "$ac_link") 2>&5
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }; then :
3491 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3492 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3493 # work properly (i.e., refer to `conftest.exe'), while it won't with
3495 for ac_file in conftest.exe conftest conftest.*; do
3496 test -f "$ac_file" || continue
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3507 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3508 See \`config.log' for more details" "$LINENO" 5; }
3510 rm -f conftest conftest$ac_cv_exeext
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3512 $as_echo "$ac_cv_exeext" >&6; }
3514 rm -f conftest.$ac_ext
3515 EXEEXT=$ac_cv_exeext
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3523 FILE *f = fopen ("conftest.out", "w");
3524 return ferror (f) || fclose (f) != 0;
3530 ac_clean_files="$ac_clean_files conftest.out"
3531 # Check that the compiler produces executables we can run. If not, either
3532 # the compiler is broken, or we cross compile.
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3534 $as_echo_n "checking whether we are cross compiling... " >&6; }
3535 if test "$cross_compiling" != yes; then
3536 { { ac_try="$ac_link"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_link") 2>&5
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }
3547 if { ac_try='./conftest$ac_cv_exeext'
3548 { { case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_try") 2>&5
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }; }; then
3560 if test "$cross_compiling" = maybe; then
3563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error $? "cannot run C compiled programs.
3566 If you meant to cross compile, use \`--host'.
3567 See \`config.log' for more details" "$LINENO" 5; }
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3572 $as_echo "$cross_compiling" >&6; }
3574 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3575 ac_clean_files=$ac_clean_files_save
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3577 $as_echo_n "checking for suffix of object files... " >&6; }
3578 if ${ac_cv_objext+:} false; then :
3579 $as_echo_n "(cached) " >&6
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3592 rm -f conftest.o conftest.obj
3593 if { { ac_try="$ac_compile"
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_compile") 2>&5
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; then :
3604 for ac_file in conftest.o conftest.obj conftest.*; do
3605 test -f "$ac_file" || continue;
3607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3608 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3613 $as_echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618 as_fn_error $? "cannot compute suffix of object files: cannot compile
3619 See \`config.log' for more details" "$LINENO" 5; }
3621 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3624 $as_echo "$ac_cv_objext" >&6; }
3625 OBJEXT=$ac_cv_objext
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3628 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3629 if ${ac_cv_c_compiler_gnu+:} false; then :
3630 $as_echo_n "(cached) " >&6
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3646 if ac_fn_c_try_compile "$LINENO"; then :
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3656 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3657 if test $ac_compiler_gnu = yes; then
3662 ac_test_CFLAGS=${CFLAGS+set}
3663 ac_save_CFLAGS=$CFLAGS
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3665 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3666 if ${ac_cv_prog_cc_g+:} false; then :
3667 $as_echo_n "(cached) " >&6
3669 ac_save_c_werror_flag=$ac_c_werror_flag
3670 ac_c_werror_flag=yes
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3684 if ac_fn_c_try_compile "$LINENO"; then :
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3699 if ac_fn_c_try_compile "$LINENO"; then :
3702 ac_c_werror_flag=$ac_save_c_werror_flag
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3715 if ac_fn_c_try_compile "$LINENO"; then :
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 ac_c_werror_flag=$ac_save_c_werror_flag
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3726 $as_echo "$ac_cv_prog_cc_g" >&6; }
3727 if test "$ac_test_CFLAGS" = set; then
3728 CFLAGS=$ac_save_CFLAGS
3729 elif test $ac_cv_prog_cc_g = yes; then
3730 if test "$GCC" = yes; then
3736 if test "$GCC" = yes; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3743 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3744 if ${ac_cv_prog_cc_c89+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 ac_cv_prog_cc_c89=no
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3753 #include <sys/types.h>
3754 #include <sys/stat.h>
3755 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3756 struct buf { int x; };
3757 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3758 static char *e (p, i)
3764 static char *f (char * (*g) (char **, int), char **p, ...)
3769 s = g (p, va_arg (v,int));
3774 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3775 function prototypes and stuff, but not '\xHH' hex character constants.
3776 These don't provoke an error unfortunately, instead are silently treated
3777 as 'x'. The following induces an error, until -std is added to get
3778 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3779 array size at least. It's necessary to write '\x00'==0 to get something
3780 that's true only with -std. */
3781 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3783 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3784 inside strings and character constants. */
3786 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3788 int test (int i, double x);
3789 struct s1 {int (*f) (int a);};
3790 struct s2 {int (*f) (double a);};
3791 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3797 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3802 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3803 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3805 CC="$ac_save_CC $ac_arg"
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_cv_prog_cc_c89=$ac_arg
3809 rm -f core conftest.err conftest.$ac_objext
3810 test "x$ac_cv_prog_cc_c89" != "xno" && break
3812 rm -f conftest.$ac_ext
3817 case "x$ac_cv_prog_cc_c89" in
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3820 $as_echo "none needed" >&6; } ;;
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3823 $as_echo "unsupported" >&6; } ;;
3825 CC="$CC $ac_cv_prog_cc_c89"
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3827 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3829 if test "x$ac_cv_prog_cc_c89" != xno; then :
3834 ac_cpp='$CPP $CPPFLAGS'
3835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 # Check whether --with-linux-audit was given.
3842 if test "${with_linux_audit+set}" = set; then :
3843 withval=$with_linux_audit; case $with_linux_audit in
3844 yes) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846 #include <libaudit.h>
3850 int i = AUDIT_USER_CMD; (void)i;
3855 if ac_fn_c_try_compile "$LINENO"; then :
3857 $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3859 SUDO_LIBS="${SUDO_LIBS} -laudit"
3860 SUDOERS_LIBS="${SUDO_LIBS} -laudit"
3861 SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
3865 as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 *) as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3878 # Check whether --with-incpath was given.
3879 if test "${with_incpath+set}" = set; then :
3880 withval=$with_incpath; case $with_incpath in
3881 yes) as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
3883 no) as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
3885 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3886 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3887 for i in ${with_incpath}; do
3888 CPPFLAGS="${CPPFLAGS} -I${i}"
3896 # Check whether --with-libpath was given.
3897 if test "${with_libpath+set}" = set; then :
3898 withval=$with_libpath; case $with_libpath in
3899 yes) as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
3901 no) as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
3903 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3904 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3911 # Check whether --with-libraries was given.
3912 if test "${with_libraries+set}" = set; then :
3913 withval=$with_libraries; case $with_libraries in
3914 yes) as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
3916 no) as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
3918 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3919 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
3926 # Check whether --with-efence was given.
3927 if test "${with_efence+set}" = set; then :
3928 withval=$with_efence; case $with_efence in
3929 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
3930 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
3931 LIBS="${LIBS} -lefence"
3932 if test -f /usr/local/lib/libefence.a; then
3933 with_libpath="${with_libpath} /usr/local/lib"
3937 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
3938 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
3945 # Check whether --with-csops was given.
3946 if test "${with_csops+set}" = set; then :
3947 withval=$with_csops; case $with_csops in
3948 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
3949 $as_echo "$as_me: Adding CSOps standard options" >&6;}
3953 with_classic_insults=yes
3954 with_csops_insults=yes
3957 : ${mansectform='5'}
3960 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
3961 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
3968 # Check whether --with-passwd was given.
3969 if test "${with_passwd+set}" = set; then :
3970 withval=$with_passwd; case $with_passwd in
3971 yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
3972 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
3974 $as_echo "$with_passwd" >&6; }
3976 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
3978 *) as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
3985 # Check whether --with-skey was given.
3986 if test "${with_skey+set}" = set; then :
3987 withval=$with_skey; case $with_skey in
3989 *) $as_echo "#define HAVE_SKEY 1" >>confdefs.h
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
3992 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3994 $as_echo "yes" >&6; }
3995 AUTH_REG="$AUTH_REG S/Key"
4002 # Check whether --with-opie was given.
4003 if test "${with_opie+set}" = set; then :
4004 withval=$with_opie; case $with_opie in
4006 *) $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4009 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4011 $as_echo "yes" >&6; }
4012 AUTH_REG="$AUTH_REG NRL_OPIE"
4019 # Check whether --with-long-otp-prompt was given.
4020 if test "${with_long_otp_prompt+set}" = set; then :
4021 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4022 yes) $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4025 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4027 $as_echo "yes" >&6; }
4030 no) long_otp_prompt=off
4032 *) as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4039 # Check whether --with-SecurID was given.
4040 if test "${with_SecurID+set}" = set; then :
4041 withval=$with_SecurID; case $with_SecurID in
4043 *) $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4046 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4048 $as_echo "yes" >&6; }
4049 AUTH_EXCL="$AUTH_EXCL SecurID"
4056 # Check whether --with-fwtk was given.
4057 if test "${with_fwtk+set}" = set; then :
4058 withval=$with_fwtk; case $with_fwtk in
4060 *) $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4063 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4065 $as_echo "yes" >&6; }
4066 AUTH_EXCL="$AUTH_EXCL FWTK"
4073 # Check whether --with-kerb5 was given.
4074 if test "${with_kerb5+set}" = set; then :
4075 withval=$with_kerb5; case $with_kerb5 in
4077 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4078 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4080 $as_echo "yes" >&6; }
4081 AUTH_REG="$AUTH_REG kerb5"
4088 # Check whether --with-aixauth was given.
4089 if test "${with_aixauth+set}" = set; then :
4090 withval=$with_aixauth; case $with_aixauth in
4091 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4093 *) as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4100 # Check whether --with-pam was given.
4101 if test "${with_pam+set}" = set; then :
4102 withval=$with_pam; case $with_pam in
4103 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
4105 *) as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
4112 # Check whether --with-AFS was given.
4113 if test "${with_AFS+set}" = set; then :
4114 withval=$with_AFS; case $with_AFS in
4115 yes) $as_echo "#define HAVE_AFS 1" >>confdefs.h
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4118 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120 $as_echo "yes" >&6; }
4121 AUTH_REG="$AUTH_REG AFS"
4124 *) as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4131 # Check whether --with-DCE was given.
4132 if test "${with_DCE+set}" = set; then :
4133 withval=$with_DCE; case $with_DCE in
4134 yes) $as_echo "#define HAVE_DCE 1" >>confdefs.h
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4137 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4139 $as_echo "yes" >&6; }
4140 AUTH_REG="$AUTH_REG DCE"
4143 *) as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4150 # Check whether --with-logincap was given.
4151 if test "${with_logincap+set}" = set; then :
4152 withval=$with_logincap; case $with_logincap in
4154 *) as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4161 # Check whether --with-bsdauth was given.
4162 if test "${with_bsdauth+set}" = set; then :
4163 withval=$with_bsdauth; case $with_bsdauth in
4164 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4166 *) as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4173 # Check whether --with-project was given.
4174 if test "${with_project+set}" = set; then :
4175 withval=$with_project; case $with_project in
4178 *) as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4185 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4187 # Check whether --with-lecture was given.
4188 if test "${with_lecture+set}" = set; then :
4189 withval=$with_lecture; case $with_lecture in
4190 yes|short|always) lecture=once
4192 no|none|never) lecture=never
4194 *) as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4199 if test "$lecture" = "once"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4201 $as_echo "yes" >&6; }
4203 $as_echo "#define NO_LECTURE 1" >>confdefs.h
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4210 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4212 # Check whether --with-logging was given.
4213 if test "${with_logging+set}" = set; then :
4214 withval=$with_logging; case $with_logging in
4215 yes) as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
4217 no) as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
4219 syslog) $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4222 $as_echo "syslog" >&6; }
4224 file) $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4227 $as_echo "file" >&6; }
4229 both) $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4232 $as_echo "both" >&6; }
4234 *) as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4238 $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4240 $as_echo "syslog" >&6; }
4245 # Check whether --with-logfac was given.
4246 if test "${with_logfac+set}" = set; then :
4247 withval=$with_logfac; case $with_logfac in
4248 yes) as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
4250 no) as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
4252 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
4254 *) as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4261 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4263 # Check whether --with-goodpri was given.
4264 if test "${with_goodpri+set}" = set; then :
4265 withval=$with_goodpri; case $with_goodpri in
4266 yes) as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4268 no) as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
4270 alert|crit|debug|emerg|err|info|notice|warning)
4271 goodpri=$with_goodpri
4273 *) as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4279 cat >>confdefs.h <<_ACEOF
4280 #define PRI_SUCCESS "$goodpri"
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4284 $as_echo "$goodpri" >&6; }
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4287 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4289 # Check whether --with-badpri was given.
4290 if test "${with_badpri+set}" = set; then :
4291 withval=$with_badpri; case $with_badpri in
4292 yes) as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
4294 no) as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
4296 alert|crit|debug|emerg|err|info|notice|warning)
4299 *) as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
4305 cat >>confdefs.h <<_ACEOF
4306 #define PRI_FAILURE "$badpri"
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4310 $as_echo "$badpri" >&6; }
4313 # Check whether --with-logpath was given.
4314 if test "${with_logpath+set}" = set; then :
4315 withval=$with_logpath; case $with_logpath in
4316 yes) as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
4318 no) as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4325 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4327 # Check whether --with-loglen was given.
4328 if test "${with_loglen+set}" = set; then :
4329 withval=$with_loglen; case $with_loglen in
4330 yes) as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
4332 no) as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
4334 [0-9]*) loglen=$with_loglen
4336 *) as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4342 cat >>confdefs.h <<_ACEOF
4343 #define MAXLOGFILELEN $loglen
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4347 $as_echo "$loglen" >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4350 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4352 # Check whether --with-ignore-dot was given.
4353 if test "${with_ignore_dot+set}" = set; then :
4354 withval=$with_ignore_dot; case $with_ignore_dot in
4359 *) as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4364 if test "$ignore_dot" = "on"; then
4365 $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4368 $as_echo "yes" >&6; }
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4375 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4377 # Check whether --with-mail-if-no-user was given.
4378 if test "${with_mail_if_no_user+set}" = set; then :
4379 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4380 yes) mail_no_user=on
4382 no) mail_no_user=off
4384 *) as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4389 if test "$mail_no_user" = "on"; then
4390 $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4393 $as_echo "yes" >&6; }
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4400 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4402 # Check whether --with-mail-if-no-host was given.
4403 if test "${with_mail_if_no_host+set}" = set; then :
4404 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4405 yes) mail_no_host=on
4407 no) mail_no_host=off
4409 *) as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4414 if test "$mail_no_host" = "on"; then
4415 $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4418 $as_echo "yes" >&6; }
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4425 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4427 # Check whether --with-mail-if-noperms was given.
4428 if test "${with_mail_if_noperms+set}" = set; then :
4429 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4430 yes) mail_noperms=on
4432 no) mail_noperms=off
4434 *) as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4439 if test "$mail_noperms" = "on"; then
4440 $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4443 $as_echo "yes" >&6; }
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4450 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4452 # Check whether --with-mailto was given.
4453 if test "${with_mailto+set}" = set; then :
4454 withval=$with_mailto; case $with_mailto in
4455 yes) as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
4457 no) as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
4459 *) mailto=$with_mailto
4465 cat >>confdefs.h <<_ACEOF
4466 #define MAILTO "$mailto"
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4470 $as_echo "$mailto" >&6; }
4473 # Check whether --with-mailsubject was given.
4474 if test "${with_mailsubject+set}" = set; then :
4475 withval=$with_mailsubject; case $with_mailsubject in
4476 yes) as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4478 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4479 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4481 *) mailsub="$with_mailsubject"
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4483 $as_echo_n "checking sudo mail subject... " >&6; }
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4485 $as_echo "Using alert mail subject: $mailsub" >&6; }
4491 cat >>confdefs.h <<_ACEOF
4492 #define MAILSUBJECT "$mailsub"
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4497 $as_echo_n "checking for bad password prompt... " >&6; }
4499 # Check whether --with-passprompt was given.
4500 if test "${with_passprompt+set}" = set; then :
4501 withval=$with_passprompt; case $with_passprompt in
4502 yes) as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4504 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4505 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4507 *) passprompt="$with_passprompt"
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4512 $as_echo "$passprompt" >&6; }
4514 cat >>confdefs.h <<_ACEOF
4515 #define PASSPROMPT "$passprompt"
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4520 $as_echo_n "checking for bad password message... " >&6; }
4522 # Check whether --with-badpass-message was given.
4523 if test "${with_badpass_message+set}" = set; then :
4524 withval=$with_badpass_message; case $with_badpass_message in
4525 yes) as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4527 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4528 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4530 *) badpass_message="$with_badpass_message"
4536 cat >>confdefs.h <<_ACEOF
4537 #define INCORRECT_PASSWORD "$badpass_message"
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4541 $as_echo "$badpass_message" >&6; }
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4544 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4546 # Check whether --with-fqdn was given.
4547 if test "${with_fqdn+set}" = set; then :
4548 withval=$with_fqdn; case $with_fqdn in
4553 *) as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4558 if test "$fqdn" = "on"; then
4559 $as_echo "#define FQDN 1" >>confdefs.h
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562 $as_echo "yes" >&6; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4569 # Check whether --with-timedir was given.
4570 if test "${with_timedir+set}" = set; then :
4571 withval=$with_timedir; case $with_timedir in
4572 yes) as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5
4574 no) as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5
4581 # Check whether --with-iologdir was given.
4582 if test "${with_iologdir+set}" = set; then :
4583 withval=$with_iologdir; case $with_iologdir in
4585 no) as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
4592 # Check whether --with-sendmail was given.
4593 if test "${with_sendmail+set}" = set; then :
4594 withval=$with_sendmail; case $with_sendmail in
4595 yes) with_sendmail=""
4598 *) cat >>confdefs.h <<EOF
4599 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4608 # Check whether --with-sudoers-mode was given.
4609 if test "${with_sudoers_mode+set}" = set; then :
4610 withval=$with_sudoers_mode; case $with_sudoers_mode in
4611 yes) as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4613 no) as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4615 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
4617 0*) SUDOERS_MODE=$with_sudoers_mode
4619 *) as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4626 # Check whether --with-sudoers-uid was given.
4627 if test "${with_sudoers_uid+set}" = set; then :
4628 withval=$with_sudoers_uid; case $with_sudoers_uid in
4629 yes) as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4631 no) as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4633 [0-9]*) SUDOERS_UID=$with_sudoers_uid
4635 *) as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4642 # Check whether --with-sudoers-gid was given.
4643 if test "${with_sudoers_gid+set}" = set; then :
4644 withval=$with_sudoers_gid; case $with_sudoers_gid in
4645 yes) as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4647 no) as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4649 [0-9]*) SUDOERS_GID=$with_sudoers_gid
4651 *) as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4658 $as_echo_n "checking for umask programs should be run with... " >&6; }
4660 # Check whether --with-umask was given.
4661 if test "${with_umask+set}" = set; then :
4662 withval=$with_umask; case $with_umask in
4663 yes) as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
4667 [0-9]*) sudo_umask=$with_umask
4669 *) as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
4675 cat >>confdefs.h <<_ACEOF
4676 #define SUDO_UMASK $sudo_umask
4679 if test "$sudo_umask" = "0777"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4681 $as_echo "user" >&6; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4684 $as_echo "$sudo_umask" >&6; }
4688 # Check whether --with-umask-override was given.
4689 if test "${with_umask_override+set}" = set; then :
4690 withval=$with_umask_override; case $with_umask_override in
4691 yes) $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4695 no) umask_override=off
4697 *) as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4704 $as_echo_n "checking for default user to run commands as... " >&6; }
4706 # Check whether --with-runas-default was given.
4707 if test "${with_runas_default+set}" = set; then :
4708 withval=$with_runas_default; case $with_runas_default in
4709 yes) as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4711 no) as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
4713 *) runas_default="$with_runas_default"
4719 cat >>confdefs.h <<_ACEOF
4720 #define RUNAS_DEFAULT "$runas_default"
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4724 $as_echo "$runas_default" >&6; }
4727 # Check whether --with-exempt was given.
4728 if test "${with_exempt+set}" = set; then :
4729 withval=$with_exempt; case $with_exempt in
4730 yes) as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
4732 no) as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
4735 cat >>confdefs.h <<_ACEOF
4736 #define EXEMPTGROUP "$with_exempt"
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4740 $as_echo_n "checking for group to be exempt from password... " >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4742 $as_echo "$with_exempt" >&6; }
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4749 $as_echo_n "checking for editor that visudo should use... " >&6; }
4751 # Check whether --with-editor was given.
4752 if test "${with_editor+set}" = set; then :
4753 withval=$with_editor; case $with_editor in
4754 yes) as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
4756 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4759 cat >>confdefs.h <<_ACEOF
4760 #define EDITOR "$with_editor"
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4764 $as_echo "$with_editor" >&6; }
4765 editor="$with_editor"
4769 $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4771 $as_echo "vi" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4776 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4778 # Check whether --with-env-editor was given.
4779 if test "${with_env_editor+set}" = set; then :
4780 withval=$with_env_editor; case $with_env_editor in
4785 *) as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4790 if test "$env_editor" = "on"; then
4791 $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4794 $as_echo "yes" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4801 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4803 # Check whether --with-passwd-tries was given.
4804 if test "${with_passwd_tries+set}" = set; then :
4805 withval=$with_passwd_tries; case $with_passwd_tries in
4807 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4809 [1-9]*) passwd_tries=$with_passwd_tries
4811 *) as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4817 cat >>confdefs.h <<_ACEOF
4818 #define TRIES_FOR_PASSWORD $passwd_tries
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4822 $as_echo "$passwd_tries" >&6; }
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4825 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4827 # Check whether --with-timeout was given.
4828 if test "${with_timeout+set}" = set; then :
4829 withval=$with_timeout; case $with_timeout in
4833 [0-9]*) timeout=$with_timeout
4835 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4841 cat >>confdefs.h <<_ACEOF
4842 #define TIMEOUT $timeout
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4846 $as_echo "$timeout" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4849 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4851 # Check whether --with-password-timeout was given.
4852 if test "${with_password_timeout+set}" = set; then :
4853 withval=$with_password_timeout; case $with_password_timeout in
4855 no) password_timeout=0
4857 [0-9]*) password_timeout=$with_password_timeout
4859 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4865 cat >>confdefs.h <<_ACEOF
4866 #define PASSWORD_TIMEOUT $password_timeout
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4870 $as_echo "$password_timeout" >&6; }
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4873 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4875 # Check whether --with-tty-tickets was given.
4876 if test "${with_tty_tickets+set}" = set; then :
4877 withval=$with_tty_tickets; case $with_tty_tickets in
4882 *) as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4887 if test "$tty_tickets" = "off"; then
4888 $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4894 $as_echo "yes" >&6; }
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4898 $as_echo_n "checking whether to include insults... " >&6; }
4900 # Check whether --with-insults was given.
4901 if test "${with_insults+set}" = set; then :
4902 withval=$with_insults; case $with_insults in
4904 with_classic_insults=yes
4905 with_csops_insults=yes
4907 disabled) insults=off
4908 with_classic_insults=yes
4909 with_csops_insults=yes
4913 *) as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
4918 if test "$insults" = "on"; then
4919 $as_echo "#define USE_INSULTS 1" >>confdefs.h
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4922 $as_echo "yes" >&6; }
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4929 # Check whether --with-all-insults was given.
4930 if test "${with_all_insults+set}" = set; then :
4931 withval=$with_all_insults; case $with_all_insults in
4932 yes) with_classic_insults=yes
4933 with_csops_insults=yes
4934 with_hal_insults=yes
4935 with_goons_insults=yes
4938 *) as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
4945 # Check whether --with-classic-insults was given.
4946 if test "${with_classic_insults+set}" = set; then :
4947 withval=$with_classic_insults; case $with_classic_insults in
4948 yes) $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
4952 *) as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
4959 # Check whether --with-csops-insults was given.
4960 if test "${with_csops_insults+set}" = set; then :
4961 withval=$with_csops_insults; case $with_csops_insults in
4962 yes) $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
4966 *) as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
4973 # Check whether --with-hal-insults was given.
4974 if test "${with_hal_insults+set}" = set; then :
4975 withval=$with_hal_insults; case $with_hal_insults in
4976 yes) $as_echo "#define HAL_INSULTS 1" >>confdefs.h
4980 *) as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
4987 # Check whether --with-goons-insults was given.
4988 if test "${with_goons_insults+set}" = set; then :
4989 withval=$with_goons_insults; case $with_goons_insults in
4990 yes) $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
4994 *) as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
5001 # Check whether --with-nsswitch was given.
5002 if test "${with_nsswitch+set}" = set; then :
5003 withval=$with_nsswitch; case $with_nsswitch in
5005 yes) with_nsswitch="/etc/nsswitch.conf"
5013 # Check whether --with-ldap was given.
5014 if test "${with_ldap+set}" = set; then :
5015 withval=$with_ldap; case $with_ldap in
5017 *) $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5020 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5022 $as_echo "yes" >&6; }
5029 # Check whether --with-ldap-conf-file was given.
5030 if test "${with_ldap_conf_file+set}" = set; then :
5031 withval=$with_ldap_conf_file;
5034 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5035 cat >>confdefs.h <<EOF
5036 #define _PATH_LDAP_CONF "$ldap_conf"
5041 # Check whether --with-ldap-secret-file was given.
5042 if test "${with_ldap_secret_file+set}" = set; then :
5043 withval=$with_ldap_secret_file;
5046 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5047 cat >>confdefs.h <<EOF
5048 #define _PATH_LDAP_SECRET "$ldap_secret"
5053 # Check whether --with-pc-insults was given.
5054 if test "${with_pc_insults+set}" = set; then :
5055 withval=$with_pc_insults; case $with_pc_insults in
5056 yes) $as_echo "#define PC_INSULTS 1" >>confdefs.h
5060 *) as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5066 if test "$insults" = "on"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5068 $as_echo_n "checking which insult sets to include... " >&6; }
5070 test "$with_goons_insults" = "yes" && i="goons ${i}"
5071 test "$with_hal_insults" = "yes" && i="hal ${i}"
5072 test "$with_csops_insults" = "yes" && i="csops ${i}"
5073 test "$with_classic_insults" = "yes" && i="classic ${i}"
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5075 $as_echo "$i" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5079 $as_echo_n "checking whether to override the user's path... " >&6; }
5081 # Check whether --with-secure-path was given.
5082 if test "${with_secure_path+set}" = set; then :
5083 withval=$with_secure_path; case $with_secure_path in
5084 yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5085 cat >>confdefs.h <<_ACEOF
5086 #define SECURE_PATH "$with_secure_path"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5090 $as_echo "$with_secure_path" >&6; }
5091 secure_path="set to $with_secure_path"
5093 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5096 *) cat >>confdefs.h <<_ACEOF
5097 #define SECURE_PATH "$with_secure_path"
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5101 $as_echo "$with_secure_path" >&6; }
5102 secure_path="set to F<$with_secure_path>"
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5112 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5114 # Check whether --with-interfaces was given.
5115 if test "${with_interfaces+set}" = set; then :
5116 withval=$with_interfaces; case $with_interfaces in
5117 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5118 $as_echo "yes" >&6; }
5120 no) $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5125 *) as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5130 $as_echo "yes" >&6; }
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5135 $as_echo_n "checking whether stow should be used... " >&6; }
5137 # Check whether --with-stow was given.
5138 if test "${with_stow+set}" = set; then :
5139 withval=$with_stow; case $with_stow in
5140 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5141 $as_echo "yes" >&6; }
5142 $as_echo "#define USE_STOW 1" >>confdefs.h
5145 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5148 *) as_fn_error $? "\"--with-stow does not take an argument.\"" "$LINENO" 5
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5158 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5160 # Check whether --with-askpass was given.
5161 if test "${with_askpass+set}" = set; then :
5162 withval=$with_askpass; case $with_askpass in
5163 yes) as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5166 *) cat >>confdefs.h <<EOF
5167 #define _PATH_SUDO_ASKPASS "$with_askpass"
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5179 # Check whether --with-plugindir was given.
5180 if test "${with_plugindir+set}" = set; then :
5181 withval=$with_plugindir; case $with_plugindir in
5182 no) as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
5187 with_plugindir="$libexecdir"
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5193 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5194 # Check whether --enable-authentication was given.
5195 if test "${enable_authentication+set}" = set; then :
5196 enableval=$enable_authentication; case "$enableval" in
5197 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5198 $as_echo "yes" >&6; }
5200 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5202 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5205 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5208 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5214 $as_echo "yes" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5219 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5220 # Check whether --enable-root-mailer was given.
5221 if test "${enable_root_mailer+set}" = set; then :
5222 enableval=$enable_root_mailer; case "$enableval" in
5223 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5226 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5227 $as_echo "yes" >&6; }
5228 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5231 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5234 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5244 # Check whether --enable-setreuid was given.
5245 if test "${enable_setreuid+set}" = set; then :
5246 enableval=$enable_setreuid; case "$enableval" in
5247 no) SKIP_SETREUID=yes
5255 # Check whether --enable-setresuid was given.
5256 if test "${enable_setresuid+set}" = set; then :
5257 enableval=$enable_setresuid; case "$enableval" in
5258 no) SKIP_SETRESUID=yes
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5267 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5268 # Check whether --enable-shadow was given.
5269 if test "${enable_shadow+set}" = set; then :
5270 enableval=$enable_shadow; case "$enableval" in
5271 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5274 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5275 $as_echo "yes" >&6; }
5278 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5281 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5292 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5293 # Check whether --enable-root-sudo was given.
5294 if test "${enable_root_sudo+set}" = set; then :
5295 enableval=$enable_root_sudo; case "$enableval" in
5296 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5297 $as_echo "yes" >&6; }
5299 no) $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5305 *) as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5311 $as_echo "yes" >&6; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5316 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5317 # Check whether --enable-log-host was given.
5318 if test "${enable_log_host+set}" = set; then :
5319 enableval=$enable_log_host; case "$enableval" in
5320 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5321 $as_echo "yes" >&6; }
5322 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5325 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5328 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5331 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5342 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5343 # Check whether --enable-noargs-shell was given.
5344 if test "${enable_noargs_shell+set}" = set; then :
5345 enableval=$enable_noargs_shell; case "$enableval" in
5346 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5347 $as_echo "yes" >&6; }
5348 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5351 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5354 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5357 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5368 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5369 # Check whether --enable-shell-sets-home was given.
5370 if test "${enable_shell_sets_home+set}" = set; then :
5371 enableval=$enable_shell_sets_home; case "$enableval" in
5372 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5373 $as_echo "yes" >&6; }
5374 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5377 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5380 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5383 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5394 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5395 # Check whether --enable-path_info was given.
5396 if test "${enable_path_info+set}" = set; then :
5397 enableval=$enable_path_info; case "$enableval" in
5398 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5401 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5402 $as_echo "yes" >&6; }
5403 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5407 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5410 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5421 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5422 # Check whether --enable-env_debug was given.
5423 if test "${enable_env_debug+set}" = set; then :
5424 enableval=$enable_env_debug; case "$enableval" in
5425 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5426 $as_echo "yes" >&6; }
5427 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5430 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5433 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5436 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5446 # Check whether --enable-zlib was given.
5447 if test "${enable_zlib+set}" = set; then :
5448 enableval=$enable_zlib;
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5455 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5456 # Check whether --enable-env_reset was given.
5457 if test "${enable_env_reset+set}" = set; then :
5458 enableval=$enable_env_reset; case "$enableval" in
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5465 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5471 if test "$env_reset" = "on"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5473 $as_echo "yes" >&6; }
5474 $as_echo "#define ENV_RESET 1" >>confdefs.h
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 $as_echo "#define ENV_RESET 0" >>confdefs.h
5483 # Check whether --enable-warnings was given.
5484 if test "${enable_warnings+set}" = set; then :
5485 enableval=$enable_warnings; case "$enableval" in
5488 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5489 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5496 # Check whether --enable-werror was given.
5497 if test "${enable_werror+set}" = set; then :
5498 enableval=$enable_werror; case "$enableval" in
5501 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&5
5502 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&2;}
5509 # Check whether --enable-admin-flag was given.
5510 if test "${enable_admin_flag+set}" = set; then :
5511 enableval=$enable_admin_flag; case "$enableval" in
5512 yes) $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5516 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5517 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5524 # Check whether --enable-nls was given.
5525 if test "${enable_nls+set}" = set; then :
5526 enableval=$enable_nls;
5533 # Check whether --with-selinux was given.
5534 if test "${with_selinux+set}" = set; then :
5535 withval=$with_selinux; case $with_selinux in
5536 yes) SELINUX_USAGE="[-r role] [-t type] "
5537 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5539 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5540 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5541 PROGS="${PROGS} sesh"
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5544 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5545 if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
5546 $as_echo_n "(cached) " >&6
5548 ac_check_lib_save_LIBS=$LIBS
5549 LIBS="-lselinux $LIBS"
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5553 /* Override any GCC internal prototype to avoid an error.
5554 Use char because int might match the return type of a GCC
5555 builtin and then its argument prototype would still apply. */
5559 char setkeycreatecon ();
5563 return setkeycreatecon ();
5568 if ac_fn_c_try_link "$LINENO"; then :
5569 ac_cv_lib_selinux_setkeycreatecon=yes
5571 ac_cv_lib_selinux_setkeycreatecon=no
5573 rm -f core conftest.err conftest.$ac_objext \
5574 conftest$ac_exeext conftest.$ac_ext
5575 LIBS=$ac_check_lib_save_LIBS
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5578 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5579 if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
5580 $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5586 *) as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5592 # Check whether --enable-gss_krb5_ccache_name was given.
5593 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5594 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5596 check_gss_krb5_ccache_name=no
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5601 $as_echo_n "checking for library containing strerror... " >&6; }
5602 if ${ac_cv_search_strerror+:} false; then :
5603 $as_echo_n "(cached) " >&6
5605 ac_func_search_save_LIBS=$LIBS
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5609 /* Override any GCC internal prototype to avoid an error.
5610 Use char because int might match the return type of a GCC
5611 builtin and then its argument prototype would still apply. */
5624 for ac_lib in '' cposix; do
5625 if test -z "$ac_lib"; then
5626 ac_res="none required"
5629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5631 if ac_fn_c_try_link "$LINENO"; then :
5632 ac_cv_search_strerror=$ac_res
5634 rm -f core conftest.err conftest.$ac_objext \
5636 if ${ac_cv_search_strerror+:} false; then :
5640 if ${ac_cv_search_strerror+:} false; then :
5643 ac_cv_search_strerror=no
5646 LIBS=$ac_func_search_save_LIBS
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5649 $as_echo "$ac_cv_search_strerror" >&6; }
5650 ac_res=$ac_cv_search_strerror
5651 if test "$ac_res" != no; then :
5652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5657 ac_cpp='$CPP $CPPFLAGS'
5658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5662 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5663 # On Suns, sometimes $CPP names a directory.
5664 if test -n "$CPP" && test -d "$CPP"; then
5667 if test -z "$CPP"; then
5668 if ${ac_cv_prog_CPP+:} false; then :
5669 $as_echo_n "(cached) " >&6
5671 # Double quotes because CPP needs to be expanded
5672 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5675 for ac_c_preproc_warn_flag in '' yes
5677 # Use a header file that comes with gcc, so configuring glibc
5678 # with a fresh cross-compiler works.
5679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5680 # <limits.h> exists even on freestanding compilers.
5681 # On the NeXT, cc -E runs the code through the compiler's parser,
5682 # not just through cpp. "Syntax error" is here to catch this case.
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5686 # include <limits.h>
5688 # include <assert.h>
5692 if ac_fn_c_try_cpp "$LINENO"; then :
5695 # Broken: fails on valid input.
5698 rm -f conftest.err conftest.i conftest.$ac_ext
5700 # OK, works on sane cases. Now check whether nonexistent headers
5701 # can be detected and how.
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <ac_nonexistent.h>
5706 if ac_fn_c_try_cpp "$LINENO"; then :
5707 # Broken: success on invalid input.
5710 # Passes both tests.
5714 rm -f conftest.err conftest.i conftest.$ac_ext
5717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5718 rm -f conftest.i conftest.err conftest.$ac_ext
5719 if $ac_preproc_ok; then :
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5732 $as_echo "$CPP" >&6; }
5734 for ac_c_preproc_warn_flag in '' yes
5736 # Use a header file that comes with gcc, so configuring glibc
5737 # with a fresh cross-compiler works.
5738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5739 # <limits.h> exists even on freestanding compilers.
5740 # On the NeXT, cc -E runs the code through the compiler's parser,
5741 # not just through cpp. "Syntax error" is here to catch this case.
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5745 # include <limits.h>
5747 # include <assert.h>
5751 if ac_fn_c_try_cpp "$LINENO"; then :
5754 # Broken: fails on valid input.
5757 rm -f conftest.err conftest.i conftest.$ac_ext
5759 # OK, works on sane cases. Now check whether nonexistent headers
5760 # can be detected and how.
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #include <ac_nonexistent.h>
5765 if ac_fn_c_try_cpp "$LINENO"; then :
5766 # Broken: success on invalid input.
5769 # Passes both tests.
5773 rm -f conftest.err conftest.i conftest.$ac_ext
5776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5777 rm -f conftest.i conftest.err conftest.$ac_ext
5778 if $ac_preproc_ok; then :
5781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5783 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5784 See \`config.log' for more details" "$LINENO" 5; }
5788 ac_cpp='$CPP $CPPFLAGS'
5789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793 if test -n "$ac_tool_prefix"; then
5794 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}ar; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_AR+:} false; then :
5799 $as_echo_n "(cached) " >&6
5801 if test -n "$AR"; then
5802 ac_cv_prog_AR="$AR" # Let the user override the test.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_prog_AR="${ac_tool_prefix}ar"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 if test -n "$AR"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5824 $as_echo "$AR" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5832 if test -z "$ac_cv_prog_AR"; then
5834 # Extract the first word of "ar", so it can be a program name with args.
5835 set dummy ar; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5839 $as_echo_n "(cached) " >&6
5841 if test -n "$ac_ct_AR"; then
5842 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5851 ac_cv_prog_ac_ct_AR="ar"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5862 if test -n "$ac_ct_AR"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5864 $as_echo "$ac_ct_AR" >&6; }
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5870 if test "x$ac_ct_AR" = x; then
5873 case $cross_compiling:$ac_tool_warned in
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5877 ac_tool_warned=yes ;;
5885 if test -n "$ac_tool_prefix"; then
5886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if ${ac_cv_prog_RANLIB+:} false; then :
5891 $as_echo_n "(cached) " >&6
5893 if test -n "$RANLIB"; then
5894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 RANLIB=$ac_cv_prog_RANLIB
5914 if test -n "$RANLIB"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5916 $as_echo "$RANLIB" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5924 if test -z "$ac_cv_prog_RANLIB"; then
5925 ac_ct_RANLIB=$RANLIB
5926 # Extract the first word of "ranlib", so it can be a program name with args.
5927 set dummy ranlib; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5931 $as_echo_n "(cached) " >&6
5933 if test -n "$ac_ct_RANLIB"; then
5934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943 ac_cv_prog_ac_ct_RANLIB="ranlib"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5954 if test -n "$ac_ct_RANLIB"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5956 $as_echo "$ac_ct_RANLIB" >&6; }
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5962 if test "x$ac_ct_RANLIB" = x; then
5965 case $cross_compiling:$ac_tool_warned in
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969 ac_tool_warned=yes ;;
5971 RANLIB=$ac_ct_RANLIB
5974 RANLIB="$ac_cv_prog_RANLIB"
5977 if test X"$AR" = X"false"; then
5978 as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
5981 if test "x$ac_cv_prog_cc_c89" = "xno"; then
5982 as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
5985 if test "$enable_static" = "no"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
5987 $as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
5992 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5993 if test -f "$ac_dir/install-sh"; then
5995 ac_install_sh="$ac_aux_dir/install-sh -c"
5997 elif test -f "$ac_dir/install.sh"; then
5999 ac_install_sh="$ac_aux_dir/install.sh -c"
6001 elif test -f "$ac_dir/shtool"; then
6003 ac_install_sh="$ac_aux_dir/shtool install -c"
6007 if test -z "$ac_aux_dir"; then
6008 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6011 # These three variables are undocumented and unsupported,
6012 # and are intended to be withdrawn in a future Autoconf release.
6013 # They can cause serious problems if a builder's source tree is in a directory
6014 # whose full name contains unusual characters.
6015 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6016 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6017 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6020 # Make sure we can run config.sub.
6021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6022 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6025 $as_echo_n "checking build system type... " >&6; }
6026 if ${ac_cv_build+:} false; then :
6027 $as_echo_n "(cached) " >&6
6029 ac_build_alias=$build_alias
6030 test "x$ac_build_alias" = x &&
6031 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6032 test "x$ac_build_alias" = x &&
6033 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6035 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6039 $as_echo "$ac_cv_build" >&6; }
6040 case $ac_cv_build in
6042 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6045 ac_save_IFS=$IFS; IFS='-'
6051 # Remember, the first character of IFS is used to create $*,
6052 # except with old shells:
6055 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6059 $as_echo_n "checking host system type... " >&6; }
6060 if ${ac_cv_host+:} false; then :
6061 $as_echo_n "(cached) " >&6
6063 if test "x$host_alias" = x; then
6064 ac_cv_host=$ac_cv_build
6066 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6067 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6072 $as_echo "$ac_cv_host" >&6; }
6075 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6078 ac_save_IFS=$IFS; IFS='-'
6084 # Remember, the first character of IFS is used to create $*,
6085 # except with old shells:
6088 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6096 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6101 macro_version='2.4.2'
6102 macro_revision='1.3337'
6116 ltmain="$ac_aux_dir/ltmain.sh"
6118 # Backslashify metacharacters that are still active within
6119 # double-quoted strings.
6120 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6122 # Same as above, but do not quote variable references.
6123 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6125 # Sed substitution to delay expansion of an escaped shell variable in a
6126 # double_quote_subst'ed string.
6127 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6129 # Sed substitution to delay expansion of an escaped single quote.
6130 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6132 # Sed substitution to avoid accidental globbing in evaled expressions
6133 no_glob_subst='s/\*/\\\*/g'
6135 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6136 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6137 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6140 $as_echo_n "checking how to print strings... " >&6; }
6141 # Test print first, because it will be a builtin if present.
6142 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6143 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6145 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6148 # Use this function as a fallback that always works.
6149 func_fallback_echo ()
6151 eval 'cat <<_LTECHO_EOF
6155 ECHO='func_fallback_echo'
6158 # func_echo_all arg...
6159 # Invoke $ECHO with all args, space-separated.
6166 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6167 $as_echo "printf" >&6; } ;;
6168 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6169 $as_echo "print -r" >&6; } ;;
6170 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6171 $as_echo "cat" >&6; } ;;
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6188 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6189 if ${ac_cv_path_SED+:} false; then :
6190 $as_echo_n "(cached) " >&6
6192 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6193 for ac_i in 1 2 3 4 5 6 7; do
6194 ac_script="$ac_script$as_nl$ac_script"
6196 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6197 { ac_script=; unset ac_script;}
6198 if test -z "$SED"; then
6199 ac_path_SED_found=false
6200 # Loop through the user's path and test for each of PROGNAME-LIST
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_prog in sed gsed; do
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6209 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6210 # Check for GNU ac_path_SED and select it if it is found.
6211 # Check for GNU $ac_path_SED
6212 case `"$ac_path_SED" --version 2>&1` in
6214 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6217 $as_echo_n 0123456789 >"conftest.in"
6220 cat "conftest.in" "conftest.in" >"conftest.tmp"
6221 mv "conftest.tmp" "conftest.in"
6222 cp "conftest.in" "conftest.nl"
6223 $as_echo '' >> "conftest.nl"
6224 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6226 as_fn_arith $ac_count + 1 && ac_count=$as_val
6227 if test $ac_count -gt ${ac_path_SED_max-0}; then
6228 # Best one so far, save it but keep looking for a better one
6229 ac_cv_path_SED="$ac_path_SED"
6230 ac_path_SED_max=$ac_count
6232 # 10*(2^10) chars as input seems more than enough
6233 test $ac_count -gt 10 && break
6235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6238 $ac_path_SED_found && break 3
6243 if test -z "$ac_cv_path_SED"; then
6244 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6252 $as_echo "$ac_cv_path_SED" >&6; }
6253 SED="$ac_cv_path_SED"
6256 test -z "$SED" && SED=sed
6257 Xsed="$SED -e 1s/^X//"
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6270 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6271 if ${ac_cv_path_GREP+:} false; then :
6272 $as_echo_n "(cached) " >&6
6274 if test -z "$GREP"; then
6275 ac_path_GREP_found=false
6276 # Loop through the user's path and test for each of PROGNAME-LIST
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6281 test -z "$as_dir" && as_dir=.
6282 for ac_prog in grep ggrep; do
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6285 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6286 # Check for GNU ac_path_GREP and select it if it is found.
6287 # Check for GNU $ac_path_GREP
6288 case `"$ac_path_GREP" --version 2>&1` in
6290 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6293 $as_echo_n 0123456789 >"conftest.in"
6296 cat "conftest.in" "conftest.in" >"conftest.tmp"
6297 mv "conftest.tmp" "conftest.in"
6298 cp "conftest.in" "conftest.nl"
6299 $as_echo 'GREP' >> "conftest.nl"
6300 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6302 as_fn_arith $ac_count + 1 && ac_count=$as_val
6303 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6304 # Best one so far, save it but keep looking for a better one
6305 ac_cv_path_GREP="$ac_path_GREP"
6306 ac_path_GREP_max=$ac_count
6308 # 10*(2^10) chars as input seems more than enough
6309 test $ac_count -gt 10 && break
6311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6314 $ac_path_GREP_found && break 3
6319 if test -z "$ac_cv_path_GREP"; then
6320 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6323 ac_cv_path_GREP=$GREP
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6328 $as_echo "$ac_cv_path_GREP" >&6; }
6329 GREP="$ac_cv_path_GREP"
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6333 $as_echo_n "checking for egrep... " >&6; }
6334 if ${ac_cv_path_EGREP+:} false; then :
6335 $as_echo_n "(cached) " >&6
6337 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6338 then ac_cv_path_EGREP="$GREP -E"
6340 if test -z "$EGREP"; then
6341 ac_path_EGREP_found=false
6342 # Loop through the user's path and test for each of PROGNAME-LIST
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6347 test -z "$as_dir" && as_dir=.
6348 for ac_prog in egrep; do
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6351 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6352 # Check for GNU ac_path_EGREP and select it if it is found.
6353 # Check for GNU $ac_path_EGREP
6354 case `"$ac_path_EGREP" --version 2>&1` in
6356 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6359 $as_echo_n 0123456789 >"conftest.in"
6362 cat "conftest.in" "conftest.in" >"conftest.tmp"
6363 mv "conftest.tmp" "conftest.in"
6364 cp "conftest.in" "conftest.nl"
6365 $as_echo 'EGREP' >> "conftest.nl"
6366 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6367 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6368 as_fn_arith $ac_count + 1 && ac_count=$as_val
6369 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6370 # Best one so far, save it but keep looking for a better one
6371 ac_cv_path_EGREP="$ac_path_EGREP"
6372 ac_path_EGREP_max=$ac_count
6374 # 10*(2^10) chars as input seems more than enough
6375 test $ac_count -gt 10 && break
6377 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6380 $ac_path_EGREP_found && break 3
6385 if test -z "$ac_cv_path_EGREP"; then
6386 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6389 ac_cv_path_EGREP=$EGREP
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6395 $as_echo "$ac_cv_path_EGREP" >&6; }
6396 EGREP="$ac_cv_path_EGREP"
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6400 $as_echo_n "checking for fgrep... " >&6; }
6401 if ${ac_cv_path_FGREP+:} false; then :
6402 $as_echo_n "(cached) " >&6
6404 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6405 then ac_cv_path_FGREP="$GREP -F"
6407 if test -z "$FGREP"; then
6408 ac_path_FGREP_found=false
6409 # Loop through the user's path and test for each of PROGNAME-LIST
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6414 test -z "$as_dir" && as_dir=.
6415 for ac_prog in fgrep; do
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6418 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6419 # Check for GNU ac_path_FGREP and select it if it is found.
6420 # Check for GNU $ac_path_FGREP
6421 case `"$ac_path_FGREP" --version 2>&1` in
6423 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6426 $as_echo_n 0123456789 >"conftest.in"
6429 cat "conftest.in" "conftest.in" >"conftest.tmp"
6430 mv "conftest.tmp" "conftest.in"
6431 cp "conftest.in" "conftest.nl"
6432 $as_echo 'FGREP' >> "conftest.nl"
6433 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6435 as_fn_arith $ac_count + 1 && ac_count=$as_val
6436 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6437 # Best one so far, save it but keep looking for a better one
6438 ac_cv_path_FGREP="$ac_path_FGREP"
6439 ac_path_FGREP_max=$ac_count
6441 # 10*(2^10) chars as input seems more than enough
6442 test $ac_count -gt 10 && break
6444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6447 $ac_path_FGREP_found && break 3
6452 if test -z "$ac_cv_path_FGREP"; then
6453 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6456 ac_cv_path_FGREP=$FGREP
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6462 $as_echo "$ac_cv_path_FGREP" >&6; }
6463 FGREP="$ac_cv_path_FGREP"
6466 test -z "$GREP" && GREP=grep
6486 # Check whether --with-gnu-ld was given.
6487 if test "${with_gnu_ld+set}" = set; then :
6488 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6494 if test "$GCC" = yes; then
6495 # Check if gcc -print-prog-name=ld gives a path.
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6497 $as_echo_n "checking for ld used by $CC... " >&6; }
6500 # gcc leaves a trailing carriage return which upsets mingw
6501 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6503 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6506 # Accept absolute paths.
6508 re_direlt='/[^/][^/]*/\.\./'
6509 # Canonicalize the pathname of ld
6510 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6511 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6512 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6514 test -z "$LD" && LD="$ac_prog"
6517 # If it fails, then pretend we aren't using GCC.
6521 # If it is relative, then search for the first ld in PATH.
6525 elif test "$with_gnu_ld" = yes; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6527 $as_echo_n "checking for GNU ld... " >&6; }
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6530 $as_echo_n "checking for non-GNU ld... " >&6; }
6532 if ${lt_cv_path_LD+:} false; then :
6533 $as_echo_n "(cached) " >&6
6535 if test -z "$LD"; then
6536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6537 for ac_dir in $PATH; do
6539 test -z "$ac_dir" && ac_dir=.
6540 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6541 lt_cv_path_LD="$ac_dir/$ac_prog"
6542 # Check to see if the program is GNU ld. I'd rather use --version,
6543 # but apparently some variants of GNU ld only accept -v.
6544 # Break only if it was the GNU/non-GNU ld that we prefer.
6545 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6546 *GNU* | *'with BFD'*)
6547 test "$with_gnu_ld" != no && break
6550 test "$with_gnu_ld" != yes && break
6557 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6562 if test -n "$LD"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6564 $as_echo "$LD" >&6; }
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6569 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6571 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6572 if ${lt_cv_prog_gnu_ld+:} false; then :
6573 $as_echo_n "(cached) " >&6
6575 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6576 case `$LD -v 2>&1 </dev/null` in
6577 *GNU* | *'with BFD'*)
6578 lt_cv_prog_gnu_ld=yes
6581 lt_cv_prog_gnu_ld=no
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6586 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6587 with_gnu_ld=$lt_cv_prog_gnu_ld
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6598 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6599 if ${lt_cv_path_NM+:} false; then :
6600 $as_echo_n "(cached) " >&6
6602 if test -n "$NM"; then
6603 # Let the user override the test.
6606 lt_nm_to_check="${ac_tool_prefix}nm"
6607 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6608 lt_nm_to_check="$lt_nm_to_check nm"
6610 for lt_tmp_nm in $lt_nm_to_check; do
6611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6612 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6614 test -z "$ac_dir" && ac_dir=.
6615 tmp_nm="$ac_dir/$lt_tmp_nm"
6616 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6617 # Check to see if the nm accepts a BSD-compat flag.
6618 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6619 # nm: unknown option "B" ignored
6620 # Tru64's nm complains that /dev/null is an invalid object file
6621 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6622 */dev/null* | *'Invalid file or object type'*)
6623 lt_cv_path_NM="$tmp_nm -B"
6627 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6629 lt_cv_path_NM="$tmp_nm -p"
6633 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6634 continue # so that we can try to find one that supports BSD flags
6643 : ${lt_cv_path_NM=no}
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6647 $as_echo "$lt_cv_path_NM" >&6; }
6648 if test "$lt_cv_path_NM" != "no"; then
6651 # Didn't find any BSD compatible name lister, look for dumpbin.
6652 if test -n "$DUMPBIN"; then :
6653 # Let the user override the test.
6655 if test -n "$ac_tool_prefix"; then
6656 for ac_prog in dumpbin "link -dump"
6658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 $as_echo_n "checking for $ac_word... " >&6; }
6662 if ${ac_cv_prog_DUMPBIN+:} false; then :
6663 $as_echo_n "(cached) " >&6
6665 if test -n "$DUMPBIN"; then
6666 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6675 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 DUMPBIN=$ac_cv_prog_DUMPBIN
6686 if test -n "$DUMPBIN"; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6688 $as_echo "$DUMPBIN" >&6; }
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 $as_echo "no" >&6; }
6695 test -n "$DUMPBIN" && break
6698 if test -z "$DUMPBIN"; then
6699 ac_ct_DUMPBIN=$DUMPBIN
6700 for ac_prog in dumpbin "link -dump"
6702 # Extract the first word of "$ac_prog", so it can be a program name with args.
6703 set dummy $ac_prog; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6707 $as_echo_n "(cached) " >&6
6709 if test -n "$ac_ct_DUMPBIN"; then
6710 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6719 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6730 if test -n "$ac_ct_DUMPBIN"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6732 $as_echo "$ac_ct_DUMPBIN" >&6; }
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6739 test -n "$ac_ct_DUMPBIN" && break
6742 if test "x$ac_ct_DUMPBIN" = x; then
6745 case $cross_compiling:$ac_tool_warned in
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6749 ac_tool_warned=yes ;;
6751 DUMPBIN=$ac_ct_DUMPBIN
6755 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6757 DUMPBIN="$DUMPBIN -symbols"
6765 if test "$DUMPBIN" != ":"; then
6769 test -z "$NM" && NM=nm
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6777 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6778 if ${lt_cv_nm_interface+:} false; then :
6779 $as_echo_n "(cached) " >&6
6781 lt_cv_nm_interface="BSD nm"
6782 echo "int some_variable = 0;" > conftest.$ac_ext
6783 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6784 (eval "$ac_compile" 2>conftest.err)
6785 cat conftest.err >&5
6786 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6787 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6788 cat conftest.err >&5
6789 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6790 cat conftest.out >&5
6791 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6792 lt_cv_nm_interface="MS dumpbin"
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6797 $as_echo "$lt_cv_nm_interface" >&6; }
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6800 $as_echo_n "checking whether ln -s works... " >&6; }
6802 if test "$LN_S" = "ln -s"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6804 $as_echo "yes" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6807 $as_echo "no, using $LN_S" >&6; }
6810 # find the maximum length of command line arguments
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6812 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6813 if ${lt_cv_sys_max_cmd_len+:} false; then :
6814 $as_echo_n "(cached) " >&6
6821 # On DJGPP, this test can blow up pretty badly due to problems in libc
6822 # (any single argument exceeding 2000 bytes causes a buffer overrun
6823 # during glob expansion). Even if it were fixed, the result of this
6824 # check would be larger than it should be.
6825 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6829 # Under GNU Hurd, this test is not required because there is
6830 # no limit to the length of command line arguments.
6831 # Libtool will interpret -1 as no limit whatsoever
6832 lt_cv_sys_max_cmd_len=-1;
6835 cygwin* | mingw* | cegcc*)
6836 # On Win9x/ME, this test blows up -- it succeeds, but takes
6837 # about 5 minutes as the teststring grows exponentially.
6838 # Worse, since 9x/ME are not pre-emptively multitasking,
6839 # you end up with a "frozen" computer, even though with patience
6840 # the test eventually succeeds (with a max line length of 256k).
6841 # Instead, let's just punt: use the minimum linelength reported by
6842 # all of the supported platforms: 8192 (on NT/2K/XP).
6843 lt_cv_sys_max_cmd_len=8192;
6847 # On MiNT this can take a long time and run out of memory.
6848 lt_cv_sys_max_cmd_len=8192;
6852 # On AmigaOS with pdksh, this test takes hours, literally.
6853 # So we just punt and use a minimum line length of 8192.
6854 lt_cv_sys_max_cmd_len=8192;
6857 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6858 # This has been around since 386BSD, at least. Likely further.
6859 if test -x /sbin/sysctl; then
6860 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6861 elif test -x /usr/sbin/sysctl; then
6862 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6864 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6866 # And add a safety zone
6867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6872 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6873 lt_cv_sys_max_cmd_len=196608
6877 # The test takes a long time on OS/2.
6878 lt_cv_sys_max_cmd_len=8192
6882 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6883 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6884 # nice to cause kernel panics so lets avoid the loop below.
6885 # First set a reasonable default.
6886 lt_cv_sys_max_cmd_len=16384
6888 if test -x /sbin/sysconfig; then
6889 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6890 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6895 lt_cv_sys_max_cmd_len=102400
6897 sysv5* | sco5v6* | sysv4.2uw2*)
6898 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6899 if test -n "$kargmax"; then
6900 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6902 lt_cv_sys_max_cmd_len=32768
6906 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6907 if test -n "$lt_cv_sys_max_cmd_len"; then
6908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6909 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6911 # Make teststring a little bigger before we do anything with it.
6912 # a 1K string should be a reasonable start.
6913 for i in 1 2 3 4 5 6 7 8 ; do
6914 teststring=$teststring$teststring
6916 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6917 # If test is not a shell built-in, we'll probably end up computing a
6918 # maximum length that is only half of the actual maximum length, but
6920 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6921 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6922 test $i != 17 # 1/2 MB should be enough
6925 teststring=$teststring$teststring
6927 # Only check the string length outside the loop.
6928 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6930 # Add a significant safety factor because C++ compilers can tack on
6931 # massive amounts of additional arguments before passing them to the
6932 # linker. It appears as though 1/2 is a usable value.
6933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6940 if test -n $lt_cv_sys_max_cmd_len ; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6942 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6945 $as_echo "none" >&6; }
6947 max_cmd_len=$lt_cv_sys_max_cmd_len
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6959 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6960 # Try some XSI features
6963 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6965 && eval 'test $(( 1 + 1 )) -eq 2 \
6966 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6969 $as_echo "$xsi_shell" >&6; }
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6973 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6975 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6977 && lt_shell_append=yes
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6979 $as_echo "$lt_shell_append" >&6; }
6982 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6992 # test EBCDIC or ASCII
6993 case `echo X|tr X '\101'` in
6994 A) # ASCII based system
6995 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6996 lt_SP2NL='tr \040 \012'
6997 lt_NL2SP='tr \015\012 \040\040'
6999 *) # EBCDIC based system
7000 lt_SP2NL='tr \100 \n'
7001 lt_NL2SP='tr \r\n \100\100'
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7014 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7015 if ${lt_cv_to_host_file_cmd+:} false; then :
7016 $as_echo_n "(cached) " >&6
7021 *-*-mingw* ) # actually msys
7022 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7025 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7027 * ) # otherwise, assume *nix
7028 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7034 *-*-mingw* ) # actually msys
7035 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7038 lt_cv_to_host_file_cmd=func_convert_file_noop
7040 * ) # otherwise, assume *nix
7041 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7045 * ) # unhandled hosts (and "normal" native builds)
7046 lt_cv_to_host_file_cmd=func_convert_file_noop
7052 to_host_file_cmd=$lt_cv_to_host_file_cmd
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7054 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7061 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7062 if ${lt_cv_to_tool_file_cmd+:} false; then :
7063 $as_echo_n "(cached) " >&6
7065 #assume ordinary cross tools, or native build.
7066 lt_cv_to_tool_file_cmd=func_convert_file_noop
7070 *-*-mingw* ) # actually msys
7071 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7079 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7081 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7088 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7089 if ${lt_cv_ld_reload_flag+:} false; then :
7090 $as_echo_n "(cached) " >&6
7092 lt_cv_ld_reload_flag='-r'
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7095 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7096 reload_flag=$lt_cv_ld_reload_flag
7097 case $reload_flag in
7099 *) reload_flag=" $reload_flag" ;;
7101 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7103 cygwin* | mingw* | pw32* | cegcc*)
7104 if test "$GCC" != yes; then
7109 if test "$GCC" = yes; then
7110 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7112 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_OBJDUMP+:} false; then :
7131 $as_echo_n "(cached) " >&6
7133 if test -n "$OBJDUMP"; then
7134 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 OBJDUMP=$ac_cv_prog_OBJDUMP
7154 if test -n "$OBJDUMP"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7156 $as_echo "$OBJDUMP" >&6; }
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7164 if test -z "$ac_cv_prog_OBJDUMP"; then
7165 ac_ct_OBJDUMP=$OBJDUMP
7166 # Extract the first word of "objdump", so it can be a program name with args.
7167 set dummy objdump; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7171 $as_echo_n "(cached) " >&6
7173 if test -n "$ac_ct_OBJDUMP"; then
7174 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7194 if test -n "$ac_ct_OBJDUMP"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7196 $as_echo "$ac_ct_OBJDUMP" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7202 if test "x$ac_ct_OBJDUMP" = x; then
7205 case $cross_compiling:$ac_tool_warned in
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7211 OBJDUMP=$ac_ct_OBJDUMP
7214 OBJDUMP="$ac_cv_prog_OBJDUMP"
7217 test -z "$OBJDUMP" && OBJDUMP=objdump
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7228 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7229 if ${lt_cv_deplibs_check_method+:} false; then :
7230 $as_echo_n "(cached) " >&6
7232 lt_cv_file_magic_cmd='$MAGIC_CMD'
7233 lt_cv_file_magic_test_file=
7234 lt_cv_deplibs_check_method='unknown'
7235 # Need to set the preceding variable on all platforms that support
7236 # interlibrary dependencies.
7237 # 'none' -- dependencies not supported.
7238 # `unknown' -- same as none, but documents that we really don't know.
7239 # 'pass_all' -- all dependencies passed with no checks.
7240 # 'test_compile' -- check by making test program.
7241 # 'file_magic [[regex]]' -- check by looking for files in library path
7242 # which responds to the $file_magic_cmd with a given extended regex.
7243 # If you have `file' or equivalent on your system and you're not sure
7244 # whether `pass_all' will *always* work, you probably want this one.
7248 lt_cv_deplibs_check_method=pass_all
7252 lt_cv_deplibs_check_method=pass_all
7256 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7257 lt_cv_file_magic_cmd='/usr/bin/file -L'
7258 lt_cv_file_magic_test_file=/shlib/libc.so
7262 # func_win32_libid is a shell function defined in ltmain.sh
7263 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7264 lt_cv_file_magic_cmd='func_win32_libid'
7268 # Base MSYS/MinGW do not provide the 'file' command needed by
7269 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7270 # unless we find 'file', for example because we are cross-compiling.
7271 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7272 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7273 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7274 lt_cv_file_magic_cmd='func_win32_libid'
7276 # Keep this pattern in sync with the one in func_win32_libid.
7277 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7278 lt_cv_file_magic_cmd='$OBJDUMP -f'
7283 # use the weaker test based on 'objdump'. See mingw*.
7284 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7285 lt_cv_file_magic_cmd='$OBJDUMP -f'
7288 darwin* | rhapsody*)
7289 lt_cv_deplibs_check_method=pass_all
7292 freebsd* | dragonfly*)
7293 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7296 # Not sure whether the presence of OpenBSD here was a mistake.
7297 # Let's accept both of them until this is cleared up.
7298 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7299 lt_cv_file_magic_cmd=/usr/bin/file
7300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7304 lt_cv_deplibs_check_method=pass_all
7309 lt_cv_deplibs_check_method=pass_all
7313 lt_cv_deplibs_check_method=pass_all
7316 hpux10.20* | hpux11*)
7317 lt_cv_file_magic_cmd=/usr/bin/file
7320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7321 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7324 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]'
7325 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7329 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7335 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7339 irix5* | irix6* | nonstopux*)
7341 *-32|*"-32 ") libmagic=32-bit;;
7342 *-n32|*"-n32 ") libmagic=N32;;
7343 *-64|*"-64 ") libmagic=64-bit;;
7344 *) libmagic=never-match;;
7346 lt_cv_deplibs_check_method=pass_all
7349 # This must be glibc/ELF.
7350 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7351 lt_cv_deplibs_check_method=pass_all
7355 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7364 lt_cv_file_magic_cmd=/usr/bin/file
7365 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7369 lt_cv_deplibs_check_method=pass_all
7373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7380 osf3* | osf4* | osf5*)
7381 lt_cv_deplibs_check_method=pass_all
7385 lt_cv_deplibs_check_method=pass_all
7389 lt_cv_deplibs_check_method=pass_all
7392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7393 lt_cv_deplibs_check_method=pass_all
7397 case $host_vendor in
7399 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]'
7400 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7403 lt_cv_deplibs_check_method=pass_all
7406 lt_cv_file_magic_cmd='/bin/file'
7407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7410 lt_cv_file_magic_cmd='/bin/file'
7411 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7412 lt_cv_file_magic_test_file=/lib/libc.so
7415 lt_cv_deplibs_check_method=pass_all
7418 lt_cv_deplibs_check_method=pass_all
7424 lt_cv_deplibs_check_method=pass_all
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7430 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7434 if test "$build" = "$host"; then
7437 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7440 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7446 file_magic_cmd=$lt_cv_file_magic_cmd
7447 deplibs_check_method=$lt_cv_deplibs_check_method
7448 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7471 if test -n "$ac_tool_prefix"; then
7472 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7473 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if ${ac_cv_prog_DLLTOOL+:} false; then :
7477 $as_echo_n "(cached) " >&6
7479 if test -n "$DLLTOOL"; then
7480 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 test -z "$as_dir" && as_dir=.
7487 for ac_exec_ext in '' $ac_executable_extensions; do
7488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7489 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 DLLTOOL=$ac_cv_prog_DLLTOOL
7500 if test -n "$DLLTOOL"; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7502 $as_echo "$DLLTOOL" >&6; }
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7510 if test -z "$ac_cv_prog_DLLTOOL"; then
7511 ac_ct_DLLTOOL=$DLLTOOL
7512 # Extract the first word of "dlltool", so it can be a program name with args.
7513 set dummy dlltool; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7517 $as_echo_n "(cached) " >&6
7519 if test -n "$ac_ct_DLLTOOL"; then
7520 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7540 if test -n "$ac_ct_DLLTOOL"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7542 $as_echo "$ac_ct_DLLTOOL" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7548 if test "x$ac_ct_DLLTOOL" = x; then
7551 case $cross_compiling:$ac_tool_warned in
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7555 ac_tool_warned=yes ;;
7557 DLLTOOL=$ac_ct_DLLTOOL
7560 DLLTOOL="$ac_cv_prog_DLLTOOL"
7563 test -z "$DLLTOOL" && DLLTOOL=dlltool
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7575 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7576 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7577 $as_echo_n "(cached) " >&6
7579 lt_cv_sharedlib_from_linklib_cmd='unknown'
7582 cygwin* | mingw* | pw32* | cegcc*)
7583 # two different shell functions defined in ltmain.sh
7584 # decide which to use based on capabilities of $DLLTOOL
7585 case `$DLLTOOL --help 2>&1` in
7586 *--identify-strict*)
7587 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7590 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7595 # fallback: assume linklib IS sharedlib
7596 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7602 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7603 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7604 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7612 if test -n "$ac_tool_prefix"; then
7615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if ${ac_cv_prog_AR+:} false; then :
7620 $as_echo_n "(cached) " >&6
7622 if test -n "$AR"; then
7623 ac_cv_prog_AR="$AR" # Let the user override the test.
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7632 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 if test -n "$AR"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7645 $as_echo "$AR" >&6; }
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7652 test -n "$AR" && break
7655 if test -z "$AR"; then
7659 # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy $ac_prog; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7664 $as_echo_n "(cached) " >&6
7666 if test -n "$ac_ct_AR"; then
7667 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7676 ac_cv_prog_ac_ct_AR="$ac_prog"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7687 if test -n "$ac_ct_AR"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7689 $as_echo "$ac_ct_AR" >&6; }
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7696 test -n "$ac_ct_AR" && break
7699 if test "x$ac_ct_AR" = x; then
7702 case $cross_compiling:$ac_tool_warned in
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706 ac_tool_warned=yes ;;
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7726 $as_echo_n "checking for archiver @FILE support... " >&6; }
7727 if ${lt_cv_ar_at_file+:} false; then :
7728 $as_echo_n "(cached) " >&6
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7742 if ac_fn_c_try_compile "$LINENO"; then :
7743 echo conftest.$ac_objext > conftest.lst
7744 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7746 (eval $lt_ar_try) 2>&5
7748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7749 test $ac_status = 0; }
7750 if test "$ac_status" -eq 0; then
7751 # Ensure the archiver fails upon bogus file names.
7752 rm -f conftest.$ac_objext libconftest.a
7753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7754 (eval $lt_ar_try) 2>&5
7756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757 test $ac_status = 0; }
7758 if test "$ac_status" -ne 0; then
7762 rm -f conftest.* libconftest.a
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7769 $as_echo "$lt_cv_ar_at_file" >&6; }
7771 if test "x$lt_cv_ar_at_file" = xno; then
7774 archiver_list_spec=$lt_cv_ar_at_file
7783 if test -n "$ac_tool_prefix"; then
7784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7785 set dummy ${ac_tool_prefix}strip; ac_word=$2
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if ${ac_cv_prog_STRIP+:} false; then :
7789 $as_echo_n "(cached) " >&6
7791 if test -n "$STRIP"; then
7792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 STRIP=$ac_cv_prog_STRIP
7812 if test -n "$STRIP"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7814 $as_echo "$STRIP" >&6; }
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7822 if test -z "$ac_cv_prog_STRIP"; then
7824 # Extract the first word of "strip", so it can be a program name with args.
7825 set dummy strip; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7829 $as_echo_n "(cached) " >&6
7831 if test -n "$ac_ct_STRIP"; then
7832 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7841 ac_cv_prog_ac_ct_STRIP="strip"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7852 if test -n "$ac_ct_STRIP"; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7854 $as_echo "$ac_ct_STRIP" >&6; }
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7860 if test "x$ac_ct_STRIP" = x; then
7863 case $cross_compiling:$ac_tool_warned in
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7867 ac_tool_warned=yes ;;
7872 STRIP="$ac_cv_prog_STRIP"
7875 test -z "$STRIP" && STRIP=:
7882 if test -n "$ac_tool_prefix"; then
7883 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7884 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if ${ac_cv_prog_RANLIB+:} false; then :
7888 $as_echo_n "(cached) " >&6
7890 if test -n "$RANLIB"; then
7891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 RANLIB=$ac_cv_prog_RANLIB
7911 if test -n "$RANLIB"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7913 $as_echo "$RANLIB" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7921 if test -z "$ac_cv_prog_RANLIB"; then
7922 ac_ct_RANLIB=$RANLIB
7923 # Extract the first word of "ranlib", so it can be a program name with args.
7924 set dummy ranlib; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7928 $as_echo_n "(cached) " >&6
7930 if test -n "$ac_ct_RANLIB"; then
7931 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940 ac_cv_prog_ac_ct_RANLIB="ranlib"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7951 if test -n "$ac_ct_RANLIB"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7953 $as_echo "$ac_ct_RANLIB" >&6; }
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7959 if test "x$ac_ct_RANLIB" = x; then
7962 case $cross_compiling:$ac_tool_warned in
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7966 ac_tool_warned=yes ;;
7968 RANLIB=$ac_ct_RANLIB
7971 RANLIB="$ac_cv_prog_RANLIB"
7974 test -z "$RANLIB" && RANLIB=:
7981 # Determine commands to create old-style static archives.
7982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7983 old_postinstall_cmds='chmod 644 $oldlib'
7984 old_postuninstall_cmds=
7986 if test -n "$RANLIB"; then
7989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8000 lock_old_archive_extraction=yes ;;
8002 lock_old_archive_extraction=no ;;
8025 for ac_prog in gawk mawk nawk awk
8027 # Extract the first word of "$ac_prog", so it can be a program name with args.
8028 set dummy $ac_prog; ac_word=$2
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 $as_echo_n "checking for $ac_word... " >&6; }
8031 if ${ac_cv_prog_AWK+:} false; then :
8032 $as_echo_n "(cached) " >&6
8034 if test -n "$AWK"; then
8035 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044 ac_cv_prog_AWK="$ac_prog"
8045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 if test -n "$AWK"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8057 $as_echo "$AWK" >&6; }
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8064 test -n "$AWK" && break
8085 # If no C compiler was specified, use CC.
8088 # If no C compiler flags were specified, use CFLAGS.
8089 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8091 # Allow CC to be a program name with arguments.
8095 # Check for command to grab the raw symbol name followed by C symbol from nm.
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8097 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8098 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8099 $as_echo_n "(cached) " >&6
8102 # These are sane defaults that work on at least a few old systems.
8103 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8105 # Character class describing NM global symbol codes.
8106 symcode='[BCDEGRST]'
8108 # Regexp to match symbols that can be accessed directly from C.
8109 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8111 # Define system-specific variables.
8116 cygwin* | mingw* | pw32* | cegcc*)
8117 symcode='[ABCDGISTW]'
8120 if test "$host_cpu" = ia64; then
8121 symcode='[ABCDEGRST]'
8125 symcode='[BCDEGRST]'
8128 symcode='[BCDEGQRST]'
8139 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8147 # If we're using GNU nm, then use its standard symbol codes.
8148 case `$NM -V 2>&1` in
8149 *GNU* | *'with BFD'*)
8150 symcode='[ABCDGIRSTW]' ;;
8153 # Transform an extracted symbol line into a proper C declaration.
8154 # Some systems (esp. on ia64) link data and code symbols differently,
8155 # so use this general approach.
8156 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8158 # Transform an extracted symbol line into symbol name and symbol address
8159 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8160 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'"
8162 # Handle CRLF in mingw tool chain
8166 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8170 # Try without a prefix underscore, then with it.
8171 for ac_symprfx in "" "_"; do
8173 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8174 symxfrm="\\1 $ac_symprfx\\2 \\2"
8176 # Write the raw and C identifiers.
8177 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8178 # Fake it for dumpbin and say T for any non-static function
8179 # and D for any global variable.
8180 # Also find C++ and __fastcall symbols from MSVC++,
8181 # which start with @ or ?.
8182 lt_cv_sys_global_symbol_pipe="$AWK '"\
8183 " {last_section=section; section=\$ 3};"\
8184 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8185 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8186 " \$ 0!~/External *\|/{next};"\
8187 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8188 " {if(hide[section]) next};"\
8189 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8190 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8191 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8192 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8193 " ' prfx=^$ac_symprfx"
8195 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8197 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8199 # Check to see that the pipe works correctly.
8203 cat > conftest.$ac_ext <<_LT_EOF
8208 void nm_test_func(void);
8209 void nm_test_func(void){}
8213 int main(){nm_test_var='a';nm_test_func();return(0);}
8216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8217 (eval $ac_compile) 2>&5
8219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8220 test $ac_status = 0; }; then
8221 # Now try to grab the symbols.
8223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8224 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8227 test $ac_status = 0; } && test -s "$nlist"; then
8228 # Try sorting and uniquifying the output.
8229 if sort "$nlist" | uniq > "$nlist"T; then
8230 mv -f "$nlist"T "$nlist"
8235 # Make sure that we snagged all the symbols we need.
8236 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8237 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8238 cat <<_LT_EOF > conftest.$ac_ext
8239 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8240 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8241 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8242 relocations are performed -- see ld's documentation on pseudo-relocs. */
8243 # define LT_DLSYM_CONST
8244 #elif defined(__osf__)
8245 /* This system does not cope well with relocations in const data. */
8246 # define LT_DLSYM_CONST
8248 # define LT_DLSYM_CONST const
8256 # Now generate the symbol file.
8257 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8259 cat <<_LT_EOF >> conftest.$ac_ext
8261 /* The mapping between symbol names and symbols. */
8262 LT_DLSYM_CONST struct {
8266 lt__PROGRAM__LTX_preloaded_symbols[] =
8268 { "@PROGRAM@", (void *) 0 },
8270 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8271 cat <<\_LT_EOF >> conftest.$ac_ext
8275 /* This works around a problem in FreeBSD linker */
8276 #ifdef FREEBSD_WORKAROUND
8277 static const void *lt_preloaded_setup() {
8278 return lt__PROGRAM__LTX_preloaded_symbols;
8286 # Now try linking the two files.
8287 mv conftest.$ac_objext conftstm.$ac_objext
8288 lt_globsym_save_LIBS=$LIBS
8289 lt_globsym_save_CFLAGS=$CFLAGS
8290 LIBS="conftstm.$ac_objext"
8291 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8293 (eval $ac_link) 2>&5
8295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8296 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8299 LIBS=$lt_globsym_save_LIBS
8300 CFLAGS=$lt_globsym_save_CFLAGS
8302 echo "cannot find nm_test_func in $nlist" >&5
8305 echo "cannot find nm_test_var in $nlist" >&5
8308 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8311 echo "$progname: failed program was:" >&5
8312 cat conftest.$ac_ext >&5
8314 rm -rf conftest* conftst*
8316 # Do not use the global_symbol_pipe unless it works.
8317 if test "$pipe_works" = yes; then
8320 lt_cv_sys_global_symbol_pipe=
8326 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8327 lt_cv_sys_global_symbol_to_cdecl=
8329 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8331 $as_echo "failed" >&6; }
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8334 $as_echo "ok" >&6; }
8337 # Response file support.
8338 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8339 nm_file_list_spec='@'
8340 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8341 nm_file_list_spec='@'
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8371 $as_echo_n "checking for sysroot... " >&6; }
8373 # Check whether --with-sysroot was given.
8374 if test "${with_sysroot+set}" = set; then :
8375 withval=$with_sysroot;
8382 case ${with_sysroot} in #(
8384 if test "$GCC" = yes; then
8385 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8389 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8395 $as_echo "${with_sysroot}" >&6; }
8396 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8401 $as_echo "${lt_sysroot:-no}" >&6; }
8407 # Check whether --enable-libtool-lock was given.
8408 if test "${enable_libtool_lock+set}" = set; then :
8409 enableval=$enable_libtool_lock;
8412 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8414 # Some flags need to be propagated to the compiler or linker for good
8418 # Find out which ABI we are using.
8419 echo 'int i;' > conftest.$ac_ext
8420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8421 (eval $ac_compile) 2>&5
8423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8424 test $ac_status = 0; }; then
8425 case `/usr/bin/file conftest.$ac_objext` in
8437 # Find out which ABI we are using.
8438 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8440 (eval $ac_compile) 2>&5
8442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8443 test $ac_status = 0; }; then
8444 if test "$lt_cv_prog_gnu_ld" = yes; then
8445 case `/usr/bin/file conftest.$ac_objext` in
8447 LD="${LD-ld} -melf32bsmip"
8450 LD="${LD-ld} -melf32bmipn32"
8453 LD="${LD-ld} -melf64bmip"
8457 case `/usr/bin/file conftest.$ac_objext` in
8473 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8474 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8475 # Find out which ABI we are using.
8476 echo 'int i;' > conftest.$ac_ext
8477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8478 (eval $ac_compile) 2>&5
8480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8481 test $ac_status = 0; }; then
8482 case `/usr/bin/file conftest.o` in
8485 x86_64-*kfreebsd*-gnu)
8486 LD="${LD-ld} -m elf_i386_fbsd"
8489 LD="${LD-ld} -m elf_i386"
8491 ppc64-*linux*|powerpc64-*linux*)
8492 LD="${LD-ld} -m elf32ppclinux"
8495 LD="${LD-ld} -m elf_s390"
8498 LD="${LD-ld} -m elf32_sparc"
8504 x86_64-*kfreebsd*-gnu)
8505 LD="${LD-ld} -m elf_x86_64_fbsd"
8508 LD="${LD-ld} -m elf_x86_64"
8510 ppc*-*linux*|powerpc*-*linux*)
8511 LD="${LD-ld} -m elf64ppc"
8513 s390*-*linux*|s390*-*tpf*)
8514 LD="${LD-ld} -m elf64_s390"
8517 LD="${LD-ld} -m elf64_sparc"
8527 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8528 SAVE_CFLAGS="$CFLAGS"
8529 CFLAGS="$CFLAGS -belf"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8531 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8532 if ${lt_cv_cc_needs_belf+:} false; then :
8533 $as_echo_n "(cached) " >&6
8536 ac_cpp='$CPP $CPPFLAGS'
8537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8552 if ac_fn_c_try_link "$LINENO"; then :
8553 lt_cv_cc_needs_belf=yes
8555 lt_cv_cc_needs_belf=no
8557 rm -f core conftest.err conftest.$ac_objext \
8558 conftest$ac_exeext conftest.$ac_ext
8560 ac_cpp='$CPP $CPPFLAGS'
8561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8567 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8568 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8569 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8570 CFLAGS="$SAVE_CFLAGS"
8574 # Find out which ABI we are using.
8575 echo 'int i;' > conftest.$ac_ext
8576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8577 (eval $ac_compile) 2>&5
8579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8580 test $ac_status = 0; }; then
8581 case `/usr/bin/file conftest.o` in
8583 case $lt_cv_prog_gnu_ld in
8587 LD="${LD-ld} -m elf_x86_64"
8590 LD="${LD-ld} -m elf64_sparc"
8593 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8594 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8599 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8611 need_locks="$enable_libtool_lock"
8613 if test -n "$ac_tool_prefix"; then
8614 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8615 set dummy ${ac_tool_prefix}mt; ac_word=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8619 $as_echo_n "(cached) " >&6
8621 if test -n "$MANIFEST_TOOL"; then
8622 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8631 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8641 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8642 if test -n "$MANIFEST_TOOL"; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8644 $as_echo "$MANIFEST_TOOL" >&6; }
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8652 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8653 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8654 # Extract the first word of "mt", so it can be a program name with args.
8655 set dummy mt; ac_word=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; }
8658 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8659 $as_echo_n "(cached) " >&6
8661 if test -n "$ac_ct_MANIFEST_TOOL"; then
8662 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8671 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8682 if test -n "$ac_ct_MANIFEST_TOOL"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8684 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8690 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8693 case $cross_compiling:$ac_tool_warned in
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8697 ac_tool_warned=yes ;;
8699 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8702 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8705 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8707 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8708 if ${lt_cv_path_mainfest_tool+:} false; then :
8709 $as_echo_n "(cached) " >&6
8711 lt_cv_path_mainfest_tool=no
8712 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8713 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8714 cat conftest.err >&5
8715 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8716 lt_cv_path_mainfest_tool=yes
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8721 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8722 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8732 rhapsody* | darwin*)
8733 if test -n "$ac_tool_prefix"; then
8734 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8735 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737 $as_echo_n "checking for $ac_word... " >&6; }
8738 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8739 $as_echo_n "(cached) " >&6
8741 if test -n "$DSYMUTIL"; then
8742 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8751 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8762 if test -n "$DSYMUTIL"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8764 $as_echo "$DSYMUTIL" >&6; }
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8772 if test -z "$ac_cv_prog_DSYMUTIL"; then
8773 ac_ct_DSYMUTIL=$DSYMUTIL
8774 # Extract the first word of "dsymutil", so it can be a program name with args.
8775 set dummy dsymutil; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8779 $as_echo_n "(cached) " >&6
8781 if test -n "$ac_ct_DSYMUTIL"; then
8782 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8802 if test -n "$ac_ct_DSYMUTIL"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8804 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8810 if test "x$ac_ct_DSYMUTIL" = x; then
8813 case $cross_compiling:$ac_tool_warned in
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8817 ac_tool_warned=yes ;;
8819 DSYMUTIL=$ac_ct_DSYMUTIL
8822 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8825 if test -n "$ac_tool_prefix"; then
8826 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8827 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if ${ac_cv_prog_NMEDIT+:} false; then :
8831 $as_echo_n "(cached) " >&6
8833 if test -n "$NMEDIT"; then
8834 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 NMEDIT=$ac_cv_prog_NMEDIT
8854 if test -n "$NMEDIT"; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8856 $as_echo "$NMEDIT" >&6; }
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8864 if test -z "$ac_cv_prog_NMEDIT"; then
8865 ac_ct_NMEDIT=$NMEDIT
8866 # Extract the first word of "nmedit", so it can be a program name with args.
8867 set dummy nmedit; ac_word=$2
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869 $as_echo_n "checking for $ac_word... " >&6; }
8870 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8871 $as_echo_n "(cached) " >&6
8873 if test -n "$ac_ct_NMEDIT"; then
8874 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8894 if test -n "$ac_ct_NMEDIT"; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8896 $as_echo "$ac_ct_NMEDIT" >&6; }
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8902 if test "x$ac_ct_NMEDIT" = x; then
8905 case $cross_compiling:$ac_tool_warned in
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8909 ac_tool_warned=yes ;;
8911 NMEDIT=$ac_ct_NMEDIT
8914 NMEDIT="$ac_cv_prog_NMEDIT"
8917 if test -n "$ac_tool_prefix"; then
8918 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8919 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if ${ac_cv_prog_LIPO+:} false; then :
8923 $as_echo_n "(cached) " >&6
8925 if test -n "$LIPO"; then
8926 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8935 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 LIPO=$ac_cv_prog_LIPO
8946 if test -n "$LIPO"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8948 $as_echo "$LIPO" >&6; }
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8956 if test -z "$ac_cv_prog_LIPO"; then
8958 # Extract the first word of "lipo", so it can be a program name with args.
8959 set dummy lipo; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8963 $as_echo_n "(cached) " >&6
8965 if test -n "$ac_ct_LIPO"; then
8966 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8975 ac_cv_prog_ac_ct_LIPO="lipo"
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8986 if test -n "$ac_ct_LIPO"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8988 $as_echo "$ac_ct_LIPO" >&6; }
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8994 if test "x$ac_ct_LIPO" = x; then
8997 case $cross_compiling:$ac_tool_warned in
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9001 ac_tool_warned=yes ;;
9006 LIPO="$ac_cv_prog_LIPO"
9009 if test -n "$ac_tool_prefix"; then
9010 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9011 set dummy ${ac_tool_prefix}otool; ac_word=$2
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013 $as_echo_n "checking for $ac_word... " >&6; }
9014 if ${ac_cv_prog_OTOOL+:} false; then :
9015 $as_echo_n "(cached) " >&6
9017 if test -n "$OTOOL"; then
9018 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024 test -z "$as_dir" && as_dir=.
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9027 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9037 OTOOL=$ac_cv_prog_OTOOL
9038 if test -n "$OTOOL"; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9040 $as_echo "$OTOOL" >&6; }
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043 $as_echo "no" >&6; }
9048 if test -z "$ac_cv_prog_OTOOL"; then
9050 # Extract the first word of "otool", so it can be a program name with args.
9051 set dummy otool; ac_word=$2
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9053 $as_echo_n "checking for $ac_word... " >&6; }
9054 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9055 $as_echo_n "(cached) " >&6
9057 if test -n "$ac_ct_OTOOL"; then
9058 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064 test -z "$as_dir" && as_dir=.
9065 for ac_exec_ext in '' $ac_executable_extensions; do
9066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9067 ac_cv_prog_ac_ct_OTOOL="otool"
9068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9077 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9078 if test -n "$ac_ct_OTOOL"; then
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9080 $as_echo "$ac_ct_OTOOL" >&6; }
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9083 $as_echo "no" >&6; }
9086 if test "x$ac_ct_OTOOL" = x; then
9089 case $cross_compiling:$ac_tool_warned in
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9093 ac_tool_warned=yes ;;
9098 OTOOL="$ac_cv_prog_OTOOL"
9101 if test -n "$ac_tool_prefix"; then
9102 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9103 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9105 $as_echo_n "checking for $ac_word... " >&6; }
9106 if ${ac_cv_prog_OTOOL64+:} false; then :
9107 $as_echo_n "(cached) " >&6
9109 if test -n "$OTOOL64"; then
9110 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
9118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9119 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9129 OTOOL64=$ac_cv_prog_OTOOL64
9130 if test -n "$OTOOL64"; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9132 $as_echo "$OTOOL64" >&6; }
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135 $as_echo "no" >&6; }
9140 if test -z "$ac_cv_prog_OTOOL64"; then
9141 ac_ct_OTOOL64=$OTOOL64
9142 # Extract the first word of "otool64", so it can be a program name with args.
9143 set dummy otool64; ac_word=$2
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9145 $as_echo_n "checking for $ac_word... " >&6; }
9146 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9147 $as_echo_n "(cached) " >&6
9149 if test -n "$ac_ct_OTOOL64"; then
9150 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156 test -z "$as_dir" && as_dir=.
9157 for ac_exec_ext in '' $ac_executable_extensions; do
9158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9159 ac_cv_prog_ac_ct_OTOOL64="otool64"
9160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9169 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9170 if test -n "$ac_ct_OTOOL64"; then
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9172 $as_echo "$ac_ct_OTOOL64" >&6; }
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 $as_echo "no" >&6; }
9178 if test "x$ac_ct_OTOOL64" = x; then
9181 case $cross_compiling:$ac_tool_warned in
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9185 ac_tool_warned=yes ;;
9187 OTOOL64=$ac_ct_OTOOL64
9190 OTOOL64="$ac_cv_prog_OTOOL64"
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9220 $as_echo_n "checking for -single_module linker flag... " >&6; }
9221 if ${lt_cv_apple_cc_single_mod+:} false; then :
9222 $as_echo_n "(cached) " >&6
9224 lt_cv_apple_cc_single_mod=no
9225 if test -z "${LT_MULTI_MODULE}"; then
9226 # By default we will add the -single_module flag. You can override
9227 # by either setting the environment variable LT_MULTI_MODULE
9228 # non-empty at configure time, or by adding -multi_module to the
9230 rm -rf libconftest.dylib*
9231 echo "int foo(void){return 1;}" > conftest.c
9232 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9233 -dynamiclib -Wl,-single_module conftest.c" >&5
9234 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9235 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9237 # If there is a non-empty error log, and "single_module"
9238 # appears in it, assume the flag caused a linker warning
9239 if test -s conftest.err && $GREP single_module conftest.err; then
9240 cat conftest.err >&5
9241 # Otherwise, if the output was created with a 0 exit code from
9242 # the compiler, it worked.
9243 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9244 lt_cv_apple_cc_single_mod=yes
9246 cat conftest.err >&5
9248 rm -rf libconftest.dylib*
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9253 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9256 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9257 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9258 $as_echo_n "(cached) " >&6
9260 lt_cv_ld_exported_symbols_list=no
9261 save_LDFLAGS=$LDFLAGS
9262 echo "_main" > conftest.sym
9263 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9275 if ac_fn_c_try_link "$LINENO"; then :
9276 lt_cv_ld_exported_symbols_list=yes
9278 lt_cv_ld_exported_symbols_list=no
9280 rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 LDFLAGS="$save_LDFLAGS"
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9286 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9289 $as_echo_n "checking for -force_load linker flag... " >&6; }
9290 if ${lt_cv_ld_force_load+:} false; then :
9291 $as_echo_n "(cached) " >&6
9293 lt_cv_ld_force_load=no
9294 cat > conftest.c << _LT_EOF
9295 int forced_loaded() { return 2;}
9297 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9298 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9299 echo "$AR cru libconftest.a conftest.o" >&5
9300 $AR cru libconftest.a conftest.o 2>&5
9301 echo "$RANLIB libconftest.a" >&5
9302 $RANLIB libconftest.a 2>&5
9303 cat > conftest.c << _LT_EOF
9304 int main() { return 0;}
9306 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9307 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9309 if test -s conftest.err && $GREP force_load conftest.err; then
9310 cat conftest.err >&5
9311 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9312 lt_cv_ld_force_load=yes
9314 cat conftest.err >&5
9316 rm -f conftest.err libconftest.a conftest conftest.c
9317 rm -rf conftest.dSYM
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9321 $as_echo "$lt_cv_ld_force_load" >&6; }
9323 rhapsody* | darwin1.[012])
9324 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9326 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9327 darwin*) # darwin 5.x on
9328 # if running on 10.5 or later, the deployment target defaults
9329 # to the OS version, if on x86, and 10.4, the deployment
9330 # target defaults to 10.4. Don't you love it?
9331 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9332 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9333 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9335 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9337 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9341 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9342 _lt_dar_single_mod='$single_module'
9344 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9345 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9347 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9349 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9350 _lt_dsymutil='~$DSYMUTIL $lib || :'
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9359 $as_echo_n "checking for ANSI C header files... " >&6; }
9360 if ${ac_cv_header_stdc+:} false; then :
9361 $as_echo_n "(cached) " >&6
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9378 if ac_fn_c_try_compile "$LINENO"; then :
9379 ac_cv_header_stdc=yes
9381 ac_cv_header_stdc=no
9383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385 if test $ac_cv_header_stdc = yes; then
9386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9393 $EGREP "memchr" >/dev/null 2>&1; then :
9396 ac_cv_header_stdc=no
9402 if test $ac_cv_header_stdc = yes; then
9403 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9410 $EGREP "free" >/dev/null 2>&1; then :
9413 ac_cv_header_stdc=no
9419 if test $ac_cv_header_stdc = yes; then
9420 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9421 if test "$cross_compiling" = yes; then :
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9428 #if ((' ' & 0x0FF) == 0x020)
9429 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9430 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9432 # define ISLOWER(c) \
9433 (('a' <= (c) && (c) <= 'i') \
9434 || ('j' <= (c) && (c) <= 'r') \
9435 || ('s' <= (c) && (c) <= 'z'))
9436 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9439 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9444 for (i = 0; i < 256; i++)
9445 if (XOR (islower (i), ISLOWER (i))
9446 || toupper (i) != TOUPPER (i))
9451 if ac_fn_c_try_run "$LINENO"; then :
9454 ac_cv_header_stdc=no
9456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9457 conftest.$ac_objext conftest.beam conftest.$ac_ext
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9463 $as_echo "$ac_cv_header_stdc" >&6; }
9464 if test $ac_cv_header_stdc = yes; then
9466 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9471 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9472 inttypes.h stdint.h unistd.h
9474 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9475 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9477 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9478 cat >>confdefs.h <<_ACEOF
9479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9487 for ac_header in dlfcn.h
9489 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9491 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9492 cat >>confdefs.h <<_ACEOF
9493 #define HAVE_DLFCN_H 1
9513 # Check whether --enable-shared was given.
9514 if test "${enable_shared+set}" = set; then :
9515 enableval=$enable_shared; p=${PACKAGE-default}
9517 yes) enable_shared=yes ;;
9518 no) enable_shared=no ;;
9521 # Look at the argument we got. We use all the common list separators.
9522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9523 for pkg in $enableval; do
9525 if test "X$pkg" = "X$p"; then
9544 # Check whether --enable-static was given.
9545 if test "${enable_static+set}" = set; then :
9546 enableval=$enable_static; p=${PACKAGE-default}
9548 yes) enable_static=yes ;;
9549 no) enable_static=no ;;
9552 # Look at the argument we got. We use all the common list separators.
9553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9554 for pkg in $enableval; do
9556 if test "X$pkg" = "X$p"; then
9576 # Check whether --with-pic was given.
9577 if test "${with_pic+set}" = set; then :
9578 withval=$with_pic; lt_p=${PACKAGE-default}
9580 yes|no) pic_mode=$withval ;;
9583 # Look at the argument we got. We use all the common list separators.
9584 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9585 for lt_pkg in $withval; do
9587 if test "X$lt_pkg" = "X$lt_p"; then
9599 test -z "$pic_mode" && pic_mode=default
9607 # Check whether --enable-fast-install was given.
9608 if test "${enable_fast_install+set}" = set; then :
9609 enableval=$enable_fast_install; p=${PACKAGE-default}
9611 yes) enable_fast_install=yes ;;
9612 no) enable_fast_install=no ;;
9614 enable_fast_install=no
9615 # Look at the argument we got. We use all the common list separators.
9616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9617 for pkg in $enableval; do
9619 if test "X$pkg" = "X$p"; then
9620 enable_fast_install=yes
9627 enable_fast_install=yes
9640 # This can be used to rebuild libtool when needed
9641 LIBTOOL_DEPS="$ltmain"
9643 # Always use our own libtool.
9644 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9675 test -z "$LN_S" && LN_S="ln -s"
9690 if test -n "${ZSH_VERSION+set}" ; then
9691 setopt NO_GLOB_SUBST
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9695 $as_echo_n "checking for objdir... " >&6; }
9696 if ${lt_cv_objdir+:} false; then :
9697 $as_echo_n "(cached) " >&6
9699 rm -f .libs 2>/dev/null
9700 mkdir .libs 2>/dev/null
9701 if test -d .libs; then
9704 # MS-DOS does not allow filenames that begin with a dot.
9707 rmdir .libs 2>/dev/null
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9710 $as_echo "$lt_cv_objdir" >&6; }
9711 objdir=$lt_cv_objdir
9717 cat >>confdefs.h <<_ACEOF
9718 #define LT_OBJDIR "$lt_cv_objdir/"
9726 # AIX sometimes has problems with the GCC collect2 program. For some
9727 # reason, if we set the COLLECT_NAMES environment variable, the problems
9728 # vanish in a puff of smoke.
9729 if test "X${COLLECT_NAMES+set}" != Xset; then
9731 export COLLECT_NAMES
9738 can_build_shared=yes
9740 # All known linkers require a `.a' archive for static linking (except MSVC,
9741 # which needs '.lib').
9744 with_gnu_ld="$lt_cv_prog_gnu_ld"
9747 old_CFLAGS="$CFLAGS"
9749 # Set sane defaults for various variables
9750 test -z "$CC" && CC=cc
9751 test -z "$LTCC" && LTCC=$CC
9752 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9753 test -z "$LD" && LD=ld
9754 test -z "$ac_objext" && ac_objext=o
9756 for cc_temp in $compiler""; do
9758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9764 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9767 # Only perform the check for file, if the check method requires it
9768 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9769 case $deplibs_check_method in
9771 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9773 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9774 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9775 $as_echo_n "(cached) " >&6
9779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9782 lt_save_MAGIC_CMD="$MAGIC_CMD"
9783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9784 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9785 for ac_dir in $ac_dummy; do
9787 test -z "$ac_dir" && ac_dir=.
9788 if test -f $ac_dir/${ac_tool_prefix}file; then
9789 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9790 if test -n "$file_magic_test_file"; then
9791 case $deplibs_check_method in
9793 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9796 $EGREP "$file_magic_regex" > /dev/null; then
9801 *** Warning: the command libtool uses to detect shared libraries,
9802 *** $file_magic_cmd, produces output that libtool cannot recognize.
9803 *** The result is that libtool may fail to recognize shared libraries
9804 *** as such. This will affect the creation of libtool libraries that
9805 *** depend on shared libraries, but programs linked with such libtool
9806 *** libraries will work regardless of this problem. Nevertheless, you
9807 *** may want to report the problem to your system manager and/or to
9808 *** bug-libtool@gnu.org
9818 MAGIC_CMD="$lt_save_MAGIC_CMD"
9823 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9824 if test -n "$MAGIC_CMD"; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9826 $as_echo "$MAGIC_CMD" >&6; }
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829 $as_echo "no" >&6; }
9836 if test -z "$lt_cv_path_MAGIC_CMD"; then
9837 if test -n "$ac_tool_prefix"; then
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9839 $as_echo_n "checking for file... " >&6; }
9840 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9841 $as_echo_n "(cached) " >&6
9845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9848 lt_save_MAGIC_CMD="$MAGIC_CMD"
9849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9850 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9851 for ac_dir in $ac_dummy; do
9853 test -z "$ac_dir" && ac_dir=.
9854 if test -f $ac_dir/file; then
9855 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9856 if test -n "$file_magic_test_file"; then
9857 case $deplibs_check_method in
9859 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9861 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9862 $EGREP "$file_magic_regex" > /dev/null; then
9867 *** Warning: the command libtool uses to detect shared libraries,
9868 *** $file_magic_cmd, produces output that libtool cannot recognize.
9869 *** The result is that libtool may fail to recognize shared libraries
9870 *** as such. This will affect the creation of libtool libraries that
9871 *** depend on shared libraries, but programs linked with such libtool
9872 *** libraries will work regardless of this problem. Nevertheless, you
9873 *** may want to report the problem to your system manager and/or to
9874 *** bug-libtool@gnu.org
9884 MAGIC_CMD="$lt_save_MAGIC_CMD"
9889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9890 if test -n "$MAGIC_CMD"; then
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9892 $as_echo "$MAGIC_CMD" >&6; }
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895 $as_echo "no" >&6; }
9908 # Use C for the default configuration in the libtool script
9912 ac_cpp='$CPP $CPPFLAGS'
9913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9918 # Source file extension for C test sources.
9921 # Object file extension for compiled C test sources.
9925 # Code to be used in simple compile tests
9926 lt_simple_compile_test_code="int some_variable = 0;"
9928 # Code to be used in simple link tests
9929 lt_simple_link_test_code='int main(){return(0);}'
9937 # If no C compiler was specified, use CC.
9940 # If no C compiler flags were specified, use CFLAGS.
9941 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9943 # Allow CC to be a program name with arguments.
9946 # Save the default compiler, since it gets overwritten when the other
9947 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9948 compiler_DEFAULT=$CC
9950 # save warnings/boilerplate of simple test code
9951 ac_outfile=conftest.$ac_objext
9952 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9953 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9954 _lt_compiler_boilerplate=`cat conftest.err`
9957 ac_outfile=conftest.$ac_objext
9958 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9959 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9960 _lt_linker_boilerplate=`cat conftest.err`
9965 ## There is no encapsulation within the following macros, do not change
9966 ## the running order or otherwise move them around unless you know exactly
9967 ## what you are doing...
9968 if test -n "$compiler"; then
9970 lt_prog_compiler_no_builtin_flag=
9972 if test "$GCC" = yes; then
9973 case $cc_basename in
9975 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9977 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9981 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9982 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9983 $as_echo_n "(cached) " >&6
9985 lt_cv_prog_compiler_rtti_exceptions=no
9986 ac_outfile=conftest.$ac_objext
9987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9988 lt_compiler_flag="-fno-rtti -fno-exceptions"
9989 # Insert the option either (1) after the last *FLAGS variable, or
9990 # (2) before a word containing "conftest.", or (3) at the end.
9991 # Note that $ac_compile itself does not contain backslashes and begins
9992 # with a dollar sign (not a hyphen), so the echo should work correctly.
9993 # The option is referenced via a variable to avoid confusing sed.
9994 lt_compile=`echo "$ac_compile" | $SED \
9995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9997 -e 's:$: $lt_compiler_flag:'`
9998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9999 (eval "$lt_compile" 2>conftest.err)
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 if (exit $ac_status) && test -s "$ac_outfile"; then
10004 # The compiler can only warn and ignore the option if not recognized
10005 # So say no if there are warnings other than the usual output.
10006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10009 lt_cv_prog_compiler_rtti_exceptions=yes
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10016 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10018 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10019 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10031 lt_prog_compiler_wl=
10032 lt_prog_compiler_pic=
10033 lt_prog_compiler_static=
10036 if test "$GCC" = yes; then
10037 lt_prog_compiler_wl='-Wl,'
10038 lt_prog_compiler_static='-static'
10042 # All AIX code is PIC.
10043 if test "$host_cpu" = ia64; then
10044 # AIX 5 now supports IA64 processor
10045 lt_prog_compiler_static='-Bstatic'
10052 # see comment about AmigaOS4 .so support
10053 lt_prog_compiler_pic='-fPIC'
10056 # FIXME: we need at least 68020 code to build shared libraries, but
10057 # adding the `-m68020' flag to GCC prevents building anything better,
10059 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10064 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10065 # PIC is the default for these OSes.
10068 mingw* | cygwin* | pw32* | os2* | cegcc*)
10069 # This hack is so that the source file can tell whether it is being
10070 # built for inclusion in a dll (and should export symbols for example).
10071 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10072 # (--disable-auto-import) libraries
10073 lt_prog_compiler_pic='-DDLL_EXPORT'
10076 darwin* | rhapsody*)
10077 # PIC is the default on this platform
10078 # Common symbols not allowed in MH_DYLIB files
10079 lt_prog_compiler_pic='-fno-common'
10083 # PIC is the default for Haiku.
10084 # The "-static" flag exists, but is broken.
10085 lt_prog_compiler_static=
10089 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10090 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10091 # sets the default TLS model and affects inlining.
10097 lt_prog_compiler_pic='-fPIC'
10103 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10104 # Instead, we relocate shared libraries at runtime.
10108 # Just because we use GCC doesn't mean we suddenly get shared libraries
10109 # on systems that don't support them.
10110 lt_prog_compiler_can_build_shared=no
10115 # QNX uses GNU C++, but need to define -shared option too, otherwise
10116 # it will coredump.
10117 lt_prog_compiler_pic='-fPIC -shared'
10121 if test -d /usr/nec; then
10122 lt_prog_compiler_pic=-Kconform_pic
10127 lt_prog_compiler_pic='-fPIC'
10131 case $cc_basename in
10132 nvcc*) # Cuda Compiler Driver 2.2
10133 lt_prog_compiler_wl='-Xlinker '
10134 if test -n "$lt_prog_compiler_pic"; then
10135 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10140 # PORTME Check for flag to pass linker flags through the system compiler.
10143 lt_prog_compiler_wl='-Wl,'
10144 if test "$host_cpu" = ia64; then
10145 # AIX 5 now supports IA64 processor
10146 lt_prog_compiler_static='-Bstatic'
10148 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10152 mingw* | cygwin* | pw32* | os2* | cegcc*)
10153 # This hack is so that the source file can tell whether it is being
10154 # built for inclusion in a dll (and should export symbols for example).
10155 lt_prog_compiler_pic='-DDLL_EXPORT'
10158 hpux9* | hpux10* | hpux11*)
10159 lt_prog_compiler_wl='-Wl,'
10160 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10161 # not for PA HP-UX.
10167 lt_prog_compiler_pic='+Z'
10170 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10171 lt_prog_compiler_static='${wl}-a ${wl}archive'
10174 irix5* | irix6* | nonstopux*)
10175 lt_prog_compiler_wl='-Wl,'
10176 # PIC (with -KPIC) is the default.
10177 lt_prog_compiler_static='-non_shared'
10180 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10181 case $cc_basename in
10182 # old Intel for x86_64 which still supported -KPIC.
10184 lt_prog_compiler_wl='-Wl,'
10185 lt_prog_compiler_pic='-KPIC'
10186 lt_prog_compiler_static='-static'
10188 # icc used to be incompatible with GCC.
10189 # ICC 10 doesn't accept -KPIC any more.
10191 lt_prog_compiler_wl='-Wl,'
10192 lt_prog_compiler_pic='-fPIC'
10193 lt_prog_compiler_static='-static'
10195 # Lahey Fortran 8.1.
10197 lt_prog_compiler_wl='-Wl,'
10198 lt_prog_compiler_pic='--shared'
10199 lt_prog_compiler_static='--static'
10202 # NAG Fortran compiler
10203 lt_prog_compiler_wl='-Wl,-Wl,,'
10204 lt_prog_compiler_pic='-PIC'
10205 lt_prog_compiler_static='-Bstatic'
10207 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10208 # Portland Group compilers (*not* the Pentium gcc compiler,
10209 # which looks to be a dead project)
10210 lt_prog_compiler_wl='-Wl,'
10211 lt_prog_compiler_pic='-fpic'
10212 lt_prog_compiler_static='-Bstatic'
10215 lt_prog_compiler_wl='-Wl,'
10216 # All Alpha code is PIC.
10217 lt_prog_compiler_static='-non_shared'
10219 xl* | bgxl* | bgf* | mpixl*)
10220 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10221 lt_prog_compiler_wl='-Wl,'
10222 lt_prog_compiler_pic='-qpic'
10223 lt_prog_compiler_static='-qstaticlink'
10226 case `$CC -V 2>&1 | sed 5q` in
10227 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10228 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10229 lt_prog_compiler_pic='-KPIC'
10230 lt_prog_compiler_static='-Bstatic'
10231 lt_prog_compiler_wl=''
10233 *Sun\ F* | *Sun*Fortran*)
10234 lt_prog_compiler_pic='-KPIC'
10235 lt_prog_compiler_static='-Bstatic'
10236 lt_prog_compiler_wl='-Qoption ld '
10240 lt_prog_compiler_pic='-KPIC'
10241 lt_prog_compiler_static='-Bstatic'
10242 lt_prog_compiler_wl='-Wl,'
10244 *Intel*\ [CF]*Compiler*)
10245 lt_prog_compiler_wl='-Wl,'
10246 lt_prog_compiler_pic='-fPIC'
10247 lt_prog_compiler_static='-static'
10250 lt_prog_compiler_wl='-Wl,'
10251 lt_prog_compiler_pic='-fpic'
10252 lt_prog_compiler_static='-Bstatic'
10260 lt_prog_compiler_pic='-KPIC'
10261 lt_prog_compiler_static='-Bstatic'
10265 # QNX uses GNU C++, but need to define -shared option too, otherwise
10266 # it will coredump.
10267 lt_prog_compiler_pic='-fPIC -shared'
10270 osf3* | osf4* | osf5*)
10271 lt_prog_compiler_wl='-Wl,'
10272 # All OSF/1 code is PIC.
10273 lt_prog_compiler_static='-non_shared'
10277 lt_prog_compiler_static='-non_shared'
10281 lt_prog_compiler_pic='-KPIC'
10282 lt_prog_compiler_static='-Bstatic'
10283 case $cc_basename in
10284 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10285 lt_prog_compiler_wl='-Qoption ld ';;
10287 lt_prog_compiler_wl='-Wl,';;
10292 lt_prog_compiler_wl='-Qoption ld '
10293 lt_prog_compiler_pic='-PIC'
10294 lt_prog_compiler_static='-Bstatic'
10297 sysv4 | sysv4.2uw2* | sysv4.3*)
10298 lt_prog_compiler_wl='-Wl,'
10299 lt_prog_compiler_pic='-KPIC'
10300 lt_prog_compiler_static='-Bstatic'
10304 if test -d /usr/nec ;then
10305 lt_prog_compiler_pic='-Kconform_pic'
10306 lt_prog_compiler_static='-Bstatic'
10310 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10311 lt_prog_compiler_wl='-Wl,'
10312 lt_prog_compiler_pic='-KPIC'
10313 lt_prog_compiler_static='-Bstatic'
10317 lt_prog_compiler_wl='-Wl,'
10318 lt_prog_compiler_can_build_shared=no
10322 lt_prog_compiler_pic='-pic'
10323 lt_prog_compiler_static='-Bstatic'
10327 lt_prog_compiler_can_build_shared=no
10333 # For platforms which do not support PIC, -DPIC is meaningless:
10335 lt_prog_compiler_pic=
10338 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10343 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10344 if ${lt_cv_prog_compiler_pic+:} false; then :
10345 $as_echo_n "(cached) " >&6
10347 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10350 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10351 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10354 # Check to make sure the PIC flag actually works.
10356 if test -n "$lt_prog_compiler_pic"; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10358 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10359 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10360 $as_echo_n "(cached) " >&6
10362 lt_cv_prog_compiler_pic_works=no
10363 ac_outfile=conftest.$ac_objext
10364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10365 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10366 # Insert the option either (1) after the last *FLAGS variable, or
10367 # (2) before a word containing "conftest.", or (3) at the end.
10368 # Note that $ac_compile itself does not contain backslashes and begins
10369 # with a dollar sign (not a hyphen), so the echo should work correctly.
10370 # The option is referenced via a variable to avoid confusing sed.
10371 lt_compile=`echo "$ac_compile" | $SED \
10372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10374 -e 's:$: $lt_compiler_flag:'`
10375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10376 (eval "$lt_compile" 2>conftest.err)
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 if (exit $ac_status) && test -s "$ac_outfile"; then
10381 # The compiler can only warn and ignore the option if not recognized
10382 # So say no if there are warnings other than the usual output.
10383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10386 lt_cv_prog_compiler_pic_works=yes
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10393 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10395 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10396 case $lt_prog_compiler_pic in
10398 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10401 lt_prog_compiler_pic=
10402 lt_prog_compiler_can_build_shared=no
10418 # Check to make sure the static flag actually works.
10420 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10422 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10423 if ${lt_cv_prog_compiler_static_works+:} false; then :
10424 $as_echo_n "(cached) " >&6
10426 lt_cv_prog_compiler_static_works=no
10427 save_LDFLAGS="$LDFLAGS"
10428 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10429 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10430 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10431 # The linker can only warn and ignore the option if not recognized
10432 # So say no if there are warnings
10433 if test -s conftest.err; then
10434 # Append any errors to the config.log.
10435 cat conftest.err 1>&5
10436 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10438 if diff conftest.exp conftest.er2 >/dev/null; then
10439 lt_cv_prog_compiler_static_works=yes
10442 lt_cv_prog_compiler_static_works=yes
10446 LDFLAGS="$save_LDFLAGS"
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10450 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10452 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10455 lt_prog_compiler_static=
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10465 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10466 if ${lt_cv_prog_compiler_c_o+:} false; then :
10467 $as_echo_n "(cached) " >&6
10469 lt_cv_prog_compiler_c_o=no
10470 $RM -r conftest 2>/dev/null
10474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10476 lt_compiler_flag="-o out/conftest2.$ac_objext"
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 lt_compile=`echo "$ac_compile" | $SED \
10482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10484 -e 's:$: $lt_compiler_flag:'`
10485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10486 (eval "$lt_compile" 2>out/conftest.err)
10488 cat out/conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10492 # The compiler can only warn and ignore the option if not recognized
10493 # So say no if there are warnings
10494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10495 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10496 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10497 lt_cv_prog_compiler_c_o=yes
10502 # SGI C++ compiler will create directory out/ii_files/ for
10503 # template instantiation
10504 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10505 $RM out/* && rmdir out
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10512 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10520 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10521 if ${lt_cv_prog_compiler_c_o+:} false; then :
10522 $as_echo_n "(cached) " >&6
10524 lt_cv_prog_compiler_c_o=no
10525 $RM -r conftest 2>/dev/null
10529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10531 lt_compiler_flag="-o out/conftest2.$ac_objext"
10532 # Insert the option either (1) after the last *FLAGS variable, or
10533 # (2) before a word containing "conftest.", or (3) at the end.
10534 # Note that $ac_compile itself does not contain backslashes and begins
10535 # with a dollar sign (not a hyphen), so the echo should work correctly.
10536 lt_compile=`echo "$ac_compile" | $SED \
10537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10539 -e 's:$: $lt_compiler_flag:'`
10540 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10541 (eval "$lt_compile" 2>out/conftest.err)
10543 cat out/conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10547 # The compiler can only warn and ignore the option if not recognized
10548 # So say no if there are warnings
10549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10552 lt_cv_prog_compiler_c_o=yes
10557 # SGI C++ compiler will create directory out/ii_files/ for
10558 # template instantiation
10559 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10560 $RM out/* && rmdir out
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10567 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10572 hard_links="nottested"
10573 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10574 # do not overwrite the value of need_locks provided by the user
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10576 $as_echo_n "checking if we can lock with hard links... " >&6; }
10579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10581 ln conftest.a conftest.b 2>&5 || hard_links=no
10582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10584 $as_echo "$hard_links" >&6; }
10585 if test "$hard_links" = no; then
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10587 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10600 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10603 allow_undefined_flag=
10604 always_export_symbols=no
10606 archive_expsym_cmds=
10607 compiler_needs_object=no
10608 enable_shared_with_static_runtimes=no
10609 export_dynamic_flag_spec=
10610 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10611 hardcode_automatic=no
10613 hardcode_direct_absolute=no
10614 hardcode_libdir_flag_spec=
10615 hardcode_libdir_separator=
10616 hardcode_minus_L=no
10617 hardcode_shlibpath_var=unsupported
10619 link_all_deplibs=unknown
10621 module_expsym_cmds=
10622 old_archive_from_new_cmds=
10623 old_archive_from_expsyms_cmds=
10624 thread_safe_flag_spec=
10625 whole_archive_flag_spec=
10626 # include_expsyms should be a list of space-separated symbols to be *always*
10627 # included in the symbol list
10629 # exclude_expsyms can be an extended regexp of symbols to exclude
10630 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10631 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10632 # as well as any symbol that contains `d'.
10633 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10634 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10635 # platforms (ab)use it in PIC code, but their linkers get confused if
10636 # the symbol is explicitly referenced. Since portable code cannot
10637 # rely on this symbol name, it's probably fine to never include it in
10638 # preloaded symbol tables.
10639 # Exclude shared library initialization/finalization symbols.
10640 extract_expsyms_cmds=
10643 cygwin* | mingw* | pw32* | cegcc*)
10644 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10645 # When not using gcc, we currently assume that we are using
10646 # Microsoft Visual C++.
10647 if test "$GCC" != yes; then
10652 # we just hope/assume this is gcc and not c89 (= MSVC++)
10662 # On some targets, GNU ld is compatible enough with the native linker
10663 # that we're better off using the native interface for both.
10664 lt_use_gnu_ld_interface=no
10665 if test "$with_gnu_ld" = yes; then
10668 # The AIX port of GNU ld has always aspired to compatibility
10669 # with the native linker. However, as the warning in the GNU ld
10670 # block says, versions before 2.19.5* couldn't really create working
10671 # shared libraries, regardless of the interface used.
10672 case `$LD -v 2>&1` in
10673 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10674 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10675 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10677 lt_use_gnu_ld_interface=yes
10682 lt_use_gnu_ld_interface=yes
10687 if test "$lt_use_gnu_ld_interface" = yes; then
10688 # If archive_cmds runs LD, not CC, wlarc should be empty
10691 # Set some defaults for GNU ld with shared library support. These
10692 # are reset later if shared libraries are not supported. Putting them
10693 # here allows them to be overridden if necessary.
10694 runpath_var=LD_RUN_PATH
10695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10696 export_dynamic_flag_spec='${wl}--export-dynamic'
10697 # ancient GNU ld didn't support --whole-archive et. al.
10698 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10699 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10701 whole_archive_flag_spec=
10703 supports_anon_versioning=no
10704 case `$LD -v 2>&1` in
10705 *GNU\ gold*) supports_anon_versioning=yes ;;
10706 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10707 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10708 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10709 *\ 2.11.*) ;; # other 2.11 versions
10710 *) supports_anon_versioning=yes ;;
10713 # See if GNU ld supports shared libraries.
10716 # On AIX/PPC, the GNU linker is very broken
10717 if test "$host_cpu" != ia64; then
10721 *** Warning: the GNU linker, at least up to release 2.19, is reported
10722 *** to be unable to reliably create shared libraries on AIX.
10723 *** Therefore, libtool is disabling shared libraries support. If you
10724 *** really care for shared libraries, you may want to install binutils
10725 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10726 *** You will then need to restart the configuration process.
10735 # see comment about AmigaOS4 .so support
10736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10737 archive_expsym_cmds=''
10740 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)'
10741 hardcode_libdir_flag_spec='-L$libdir'
10742 hardcode_minus_L=yes
10748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10749 allow_undefined_flag=unsupported
10750 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10751 # support --undefined. This deserves some investigation. FIXME
10752 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10758 cygwin* | mingw* | pw32* | cegcc*)
10759 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10760 # as there is no search path for DLLs.
10761 hardcode_libdir_flag_spec='-L$libdir'
10762 export_dynamic_flag_spec='${wl}--export-all-symbols'
10763 allow_undefined_flag=unsupported
10764 always_export_symbols=no
10765 enable_shared_with_static_runtimes=yes
10766 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'
10767 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10769 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10771 # If the export-symbols file already is a .def file (1st line
10772 # is EXPORTS), use it as is; otherwise, prepend...
10773 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10774 cp $export_symbols $output_objdir/$soname.def;
10776 echo EXPORTS > $output_objdir/$soname.def;
10777 cat $export_symbols >> $output_objdir/$soname.def;
10779 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10787 link_all_deplibs=yes
10792 hardcode_shlibpath_var=no
10793 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10794 export_dynamic_flag_spec='${wl}-E'
10795 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10796 # Instead, shared libraries are loaded at an image base (0x10000000 by
10797 # default) and relocated if they conflict, which is a slow very memory
10798 # consuming and fragmenting process. To avoid this, we pick a random,
10799 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10800 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10801 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10802 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'
10805 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10807 if test "$host_os" = linux-dietlibc; then
10808 case $cc_basename in
10809 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10812 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10813 && test "$tmp_diet" = no
10815 tmp_addflag=' $pic_flag'
10816 tmp_sharedflag='-shared'
10817 case $cc_basename,$host_cpu in
10818 pgcc*) # Portland Group C compiler
10819 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'
10820 tmp_addflag=' $pic_flag'
10822 pgf77* | pgf90* | pgf95* | pgfortran*)
10823 # Portland Group f77 and f90 compilers
10824 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'
10825 tmp_addflag=' $pic_flag -Mnomain' ;;
10826 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10827 tmp_addflag=' -i_dynamic' ;;
10828 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10829 tmp_addflag=' -i_dynamic -nofor_main' ;;
10830 ifc* | ifort*) # Intel Fortran compiler
10831 tmp_addflag=' -nofor_main' ;;
10832 lf95*) # Lahey Fortran 8.1
10833 whole_archive_flag_spec=
10834 tmp_sharedflag='--shared' ;;
10835 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10836 tmp_sharedflag='-qmkshrobj'
10838 nvcc*) # Cuda Compiler Driver 2.2
10839 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'
10840 compiler_needs_object=yes
10843 case `$CC -V 2>&1 | sed 5q` in
10844 *Sun\ C*) # Sun C 5.9
10845 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'
10846 compiler_needs_object=yes
10847 tmp_sharedflag='-G' ;;
10848 *Sun\ F*) # Sun Fortran 8.3
10849 tmp_sharedflag='-G' ;;
10851 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10853 if test "x$supports_anon_versioning" = xyes; then
10854 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10855 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10856 echo "local: *; };" >> $output_objdir/$libname.ver~
10857 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10860 case $cc_basename in
10861 xlf* | bgf* | bgxlf* | mpixlf*)
10862 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10863 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10865 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10866 if test "x$supports_anon_versioning" = xyes; then
10867 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10868 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10869 echo "local: *; };" >> $output_objdir/$libname.ver~
10870 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10881 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10884 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10885 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10890 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10894 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10895 *** create shared libraries on Solaris systems. Therefore, libtool
10896 *** is disabling shared libraries support. We urge you to upgrade GNU
10897 *** binutils to release 2.9.1 or newer. Another option is to modify
10898 *** your PATH or compiler configuration so that the native linker is
10899 *** used, and then restart.
10902 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10903 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10904 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10910 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10911 case `$LD -v 2>&1` in
10912 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10916 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10917 *** reliably create shared libraries on SCO systems. Therefore, libtool
10918 *** is disabling shared libraries support. We urge you to upgrade GNU
10919 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10920 *** your PATH or compiler configuration so that the native linker is
10921 *** used, and then restart.
10926 # For security reasons, it is highly recommended that you always
10927 # use absolute paths for naming shared libraries, and exclude the
10928 # DT_RUNPATH tag from executables and libraries. But doing so
10929 # requires that you compile everything twice, which is a pain.
10930 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10933 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10942 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10944 hardcode_direct=yes
10945 hardcode_shlibpath_var=no
10949 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10950 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10951 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10958 if test "$ld_shlibs" = no; then
10960 hardcode_libdir_flag_spec=
10961 export_dynamic_flag_spec=
10962 whole_archive_flag_spec=
10965 # PORTME fill in a description of your system's linker (not GNU ld)
10968 allow_undefined_flag=unsupported
10969 always_export_symbols=yes
10970 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'
10971 # Note: this linker hardcodes the directories in LIBPATH if there
10972 # are no directories specified by -L.
10973 hardcode_minus_L=yes
10974 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10975 # Neither direct hardcoding nor static linking is supported with a
10977 hardcode_direct=unsupported
10982 if test "$host_cpu" = ia64; then
10983 # On IA64, the linker does run time linking by default, so we don't
10984 # have to do anything special.
10985 aix_use_runtimelinking=no
10986 exp_sym_flag='-Bexport'
10989 # If we're using GNU nm, then we don't want the "-C" option.
10990 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10991 # Also, AIX nm treats weak defined symbols like other global
10992 # defined symbols, whereas GNU nm marks them as "W".
10993 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10994 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'
10996 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'
10998 aix_use_runtimelinking=no
11000 # Test if we are trying to use run time linking or normal
11001 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11002 # need to do runtime linking.
11003 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11004 for ld_flag in $LDFLAGS; do
11005 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11006 aix_use_runtimelinking=yes
11013 exp_sym_flag='-bexport'
11014 no_entry_flag='-bnoentry'
11017 # When large executables or shared objects are built, AIX ld can
11018 # have problems creating the table of contents. If linking a library
11019 # or program results in "error TOC overflow" add -mminimal-toc to
11020 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11021 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11024 hardcode_direct=yes
11025 hardcode_direct_absolute=yes
11026 hardcode_libdir_separator=':'
11027 link_all_deplibs=yes
11028 file_list_spec='${wl}-f,'
11030 if test "$GCC" = yes; then
11031 case $host_os in aix4.[012]|aix4.[012].*)
11032 # We only want to do this on AIX 4.2 and lower, the check
11033 # below for broken collect2 doesn't work under 4.3+
11034 collect2name=`${CC} -print-prog-name=collect2`
11035 if test -f "$collect2name" &&
11036 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11038 # We have reworked collect2
11041 # We have old collect2
11042 hardcode_direct=unsupported
11043 # It fails to find uninstalled libraries when the uninstalled
11044 # path is not listed in the libpath. Setting hardcode_minus_L
11045 # to unsupported forces relinking
11046 hardcode_minus_L=yes
11047 hardcode_libdir_flag_spec='-L$libdir'
11048 hardcode_libdir_separator=
11052 shared_flag='-shared'
11053 if test "$aix_use_runtimelinking" = yes; then
11054 shared_flag="$shared_flag "'${wl}-G'
11058 if test "$host_cpu" = ia64; then
11059 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11060 # chokes on -Wl,-G. The following line is correct:
11063 if test "$aix_use_runtimelinking" = yes; then
11064 shared_flag='${wl}-G'
11066 shared_flag='${wl}-bM:SRE'
11071 export_dynamic_flag_spec='${wl}-bexpall'
11072 # It seems that -bexpall does not export symbols beginning with
11073 # underscore (_), so it is better to generate a list of symbols to export.
11074 always_export_symbols=yes
11075 if test "$aix_use_runtimelinking" = yes; then
11076 # Warning - without using the other runtime loading flags (-brtl),
11077 # -berok will link without error, but may produce a broken library.
11078 allow_undefined_flag='-berok'
11079 # Determine the default libpath from the value encoded in an
11080 # empty executable.
11081 if test "${lt_cv_aix_libpath+set}" = set; then
11082 aix_libpath=$lt_cv_aix_libpath
11084 if ${lt_cv_aix_libpath_+:} false; then :
11085 $as_echo_n "(cached) " >&6
11087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11098 if ac_fn_c_try_link "$LINENO"; then :
11100 lt_aix_libpath_sed='
11101 /Import File Strings/,/^$/ {
11103 s/^0 *\([^ ]*\) *$/\1/
11107 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11108 # Check for a 64-bit object if we didn't find anything.
11109 if test -z "$lt_cv_aix_libpath_"; then
11110 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11113 rm -f core conftest.err conftest.$ac_objext \
11114 conftest$ac_exeext conftest.$ac_ext
11115 if test -z "$lt_cv_aix_libpath_"; then
11116 lt_cv_aix_libpath_="/usr/lib:/lib"
11121 aix_libpath=$lt_cv_aix_libpath_
11124 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11125 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"
11127 if test "$host_cpu" = ia64; then
11128 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11129 allow_undefined_flag="-z nodefs"
11130 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"
11132 # Determine the default libpath from the value encoded in an
11133 # empty executable.
11134 if test "${lt_cv_aix_libpath+set}" = set; then
11135 aix_libpath=$lt_cv_aix_libpath
11137 if ${lt_cv_aix_libpath_+:} false; then :
11138 $as_echo_n "(cached) " >&6
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11151 if ac_fn_c_try_link "$LINENO"; then :
11153 lt_aix_libpath_sed='
11154 /Import File Strings/,/^$/ {
11156 s/^0 *\([^ ]*\) *$/\1/
11160 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11161 # Check for a 64-bit object if we didn't find anything.
11162 if test -z "$lt_cv_aix_libpath_"; then
11163 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11166 rm -f core conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
11168 if test -z "$lt_cv_aix_libpath_"; then
11169 lt_cv_aix_libpath_="/usr/lib:/lib"
11174 aix_libpath=$lt_cv_aix_libpath_
11177 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11178 # Warning - without using the other run time loading flags,
11179 # -berok will link without error, but may produce a broken library.
11180 no_undefined_flag=' ${wl}-bernotok'
11181 allow_undefined_flag=' ${wl}-berok'
11182 if test "$with_gnu_ld" = yes; then
11183 # We only use this code for GNU lds that support --whole-archive.
11184 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11186 # Exported symbols can be pulled into shared objects from archives
11187 whole_archive_flag_spec='$convenience'
11189 archive_cmds_need_lc=yes
11190 # This is similar to how AIX traditionally builds its shared libraries.
11191 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'
11199 # see comment about AmigaOS4 .so support
11200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11201 archive_expsym_cmds=''
11204 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)'
11205 hardcode_libdir_flag_spec='-L$libdir'
11206 hardcode_minus_L=yes
11212 export_dynamic_flag_spec=-rdynamic
11215 cygwin* | mingw* | pw32* | cegcc*)
11216 # When not using gcc, we currently assume that we are using
11217 # Microsoft Visual C++.
11218 # hardcode_libdir_flag_spec is actually meaningless, as there is
11219 # no search path for DLLs.
11220 case $cc_basename in
11223 hardcode_libdir_flag_spec=' '
11224 allow_undefined_flag=unsupported
11225 always_export_symbols=yes
11227 # Tell ltmain to make .lib files, not .a files.
11229 # Tell ltmain to make .dll files, not .so files.
11231 # FIXME: Setting linknames here is a bad hack.
11232 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11233 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11234 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11236 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11238 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11240 # The linker will not automatically build a static lib if we build a DLL.
11241 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11242 enable_shared_with_static_runtimes=yes
11243 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11244 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11246 old_postinstall_cmds='chmod 644 $oldlib'
11247 postlink_cmds='lt_outputfile="@OUTPUT@"~
11248 lt_tool_outputfile="@TOOL_OUTPUT@"~
11249 case $lt_outputfile in
11252 lt_outputfile="$lt_outputfile.exe"
11253 lt_tool_outputfile="$lt_tool_outputfile.exe"
11256 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11257 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11258 $RM "$lt_outputfile.manifest";
11262 # Assume MSVC wrapper
11263 hardcode_libdir_flag_spec=' '
11264 allow_undefined_flag=unsupported
11265 # Tell ltmain to make .lib files, not .a files.
11267 # Tell ltmain to make .dll files, not .so files.
11269 # FIXME: Setting linknames here is a bad hack.
11270 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11271 # The linker will automatically build a .lib file if we build a DLL.
11272 old_archive_from_new_cmds='true'
11273 # FIXME: Should let the user specify the lib program.
11274 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11275 enable_shared_with_static_runtimes=yes
11280 darwin* | rhapsody*)
11283 archive_cmds_need_lc=no
11285 hardcode_automatic=yes
11286 hardcode_shlibpath_var=unsupported
11287 if test "$lt_cv_ld_force_load" = "yes"; then
11288 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\"`'
11291 whole_archive_flag_spec=''
11293 link_all_deplibs=yes
11294 allow_undefined_flag="$_lt_dar_allow_undefined"
11295 case $cc_basename in
11296 ifort*) _lt_dar_can_shared=yes ;;
11297 *) _lt_dar_can_shared=$GCC ;;
11299 if test "$_lt_dar_can_shared" = "yes"; then
11300 output_verbose_link_cmd=func_echo_all
11301 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11302 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11303 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}"
11304 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}"
11313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11314 hardcode_libdir_flag_spec='-L$libdir'
11315 hardcode_shlibpath_var=no
11318 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11319 # support. Future versions do this automatically, but an explicit c++rt0.o
11320 # does not break anything, and helps significantly (at the cost of a little
11323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11324 hardcode_libdir_flag_spec='-R$libdir'
11325 hardcode_direct=yes
11326 hardcode_shlibpath_var=no
11329 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11332 hardcode_direct=yes
11333 hardcode_minus_L=yes
11334 hardcode_shlibpath_var=no
11337 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11338 freebsd* | dragonfly*)
11339 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11340 hardcode_libdir_flag_spec='-R$libdir'
11341 hardcode_direct=yes
11342 hardcode_shlibpath_var=no
11346 if test "$GCC" = yes; then
11347 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'
11349 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'
11351 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11352 hardcode_libdir_separator=:
11353 hardcode_direct=yes
11355 # hardcode_minus_L: Not really in the search PATH,
11356 # but as the default location of the library.
11357 hardcode_minus_L=yes
11358 export_dynamic_flag_spec='${wl}-E'
11362 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11363 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11365 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11367 if test "$with_gnu_ld" = no; then
11368 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11369 hardcode_libdir_separator=:
11370 hardcode_direct=yes
11371 hardcode_direct_absolute=yes
11372 export_dynamic_flag_spec='${wl}-E'
11373 # hardcode_minus_L: Not really in the search PATH,
11374 # but as the default location of the library.
11375 hardcode_minus_L=yes
11380 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11383 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11386 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11389 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11395 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11398 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11402 # Older versions of the 11.00 compiler do not understand -b yet
11403 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11405 $as_echo_n "checking if $CC understands -b... " >&6; }
11406 if ${lt_cv_prog_compiler__b+:} false; then :
11407 $as_echo_n "(cached) " >&6
11409 lt_cv_prog_compiler__b=no
11410 save_LDFLAGS="$LDFLAGS"
11411 LDFLAGS="$LDFLAGS -b"
11412 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11413 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11414 # The linker can only warn and ignore the option if not recognized
11415 # So say no if there are warnings
11416 if test -s conftest.err; then
11417 # Append any errors to the config.log.
11418 cat conftest.err 1>&5
11419 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11421 if diff conftest.exp conftest.er2 >/dev/null; then
11422 lt_cv_prog_compiler__b=yes
11425 lt_cv_prog_compiler__b=yes
11429 LDFLAGS="$save_LDFLAGS"
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11433 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11435 if test x"$lt_cv_prog_compiler__b" = xyes; then
11436 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11438 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11444 if test "$with_gnu_ld" = no; then
11445 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11446 hardcode_libdir_separator=:
11451 hardcode_shlibpath_var=no
11454 hardcode_direct=yes
11455 hardcode_direct_absolute=yes
11456 export_dynamic_flag_spec='${wl}-E'
11458 # hardcode_minus_L: Not really in the search PATH,
11459 # but as the default location of the library.
11460 hardcode_minus_L=yes
11466 irix5* | irix6* | nonstopux*)
11467 if test "$GCC" = yes; then
11468 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'
11469 # Try to use the -exported_symbol ld option, if it does not
11470 # work, assume that -exports_file does not work either and
11471 # implicitly export all symbols.
11472 # This should be the same for all languages, so no per-tag cache variable.
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11474 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11475 if ${lt_cv_irix_exported_symbol+:} false; then :
11476 $as_echo_n "(cached) " >&6
11478 save_LDFLAGS="$LDFLAGS"
11479 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11482 int foo (void) { return 0; }
11484 if ac_fn_c_try_link "$LINENO"; then :
11485 lt_cv_irix_exported_symbol=yes
11487 lt_cv_irix_exported_symbol=no
11489 rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491 LDFLAGS="$save_LDFLAGS"
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11494 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11495 if test "$lt_cv_irix_exported_symbol" = yes; then
11496 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'
11499 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'
11500 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'
11502 archive_cmds_need_lc='no'
11503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11504 hardcode_libdir_separator=:
11506 link_all_deplibs=yes
11510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11513 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11515 hardcode_libdir_flag_spec='-R$libdir'
11516 hardcode_direct=yes
11517 hardcode_shlibpath_var=no
11521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11522 hardcode_direct=yes
11523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11524 hardcode_libdir_separator=:
11525 hardcode_shlibpath_var=no
11532 if test -f /usr/libexec/ld.so; then
11533 hardcode_direct=yes
11534 hardcode_shlibpath_var=no
11535 hardcode_direct_absolute=yes
11536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11537 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11538 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11539 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11540 export_dynamic_flag_spec='${wl}-E'
11543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11545 hardcode_libdir_flag_spec='-R$libdir'
11548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11559 hardcode_libdir_flag_spec='-L$libdir'
11560 hardcode_minus_L=yes
11561 allow_undefined_flag=unsupported
11562 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'
11563 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11567 if test "$GCC" = yes; then
11568 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11569 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'
11571 allow_undefined_flag=' -expect_unresolved \*'
11572 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'
11574 archive_cmds_need_lc='no'
11575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11576 hardcode_libdir_separator=:
11579 osf4* | osf5*) # as osf3* with the addition of -msym flag
11580 if test "$GCC" = yes; then
11581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11582 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'
11583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11585 allow_undefined_flag=' -expect_unresolved \*'
11586 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'
11587 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~
11588 $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'
11590 # Both c and cxx compiler support -rpath directly
11591 hardcode_libdir_flag_spec='-rpath $libdir'
11593 archive_cmds_need_lc='no'
11594 hardcode_libdir_separator=:
11598 no_undefined_flag=' -z defs'
11599 if test "$GCC" = yes; then
11601 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11602 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11603 $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'
11605 case `$CC -V 2>&1` in
11608 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11609 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11610 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11614 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11615 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11616 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11620 hardcode_libdir_flag_spec='-R$libdir'
11621 hardcode_shlibpath_var=no
11623 solaris2.[0-5] | solaris2.[0-5].*) ;;
11625 # The compiler driver will combine and reorder linker options,
11626 # but understands `-z linker_flag'. GCC discards it without `$wl',
11627 # but is careful enough not to reorder.
11628 # Supported since Solaris 2.6 (maybe 2.5.1?)
11629 if test "$GCC" = yes; then
11630 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11632 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11636 link_all_deplibs=yes
11640 if test "x$host_vendor" = xsequent; then
11641 # Use $CC to link under sequent, because it throws in some extra .o
11642 # files that make .init and .fini sections work.
11643 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11645 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11647 hardcode_libdir_flag_spec='-L$libdir'
11648 hardcode_direct=yes
11649 hardcode_minus_L=yes
11650 hardcode_shlibpath_var=no
11654 case $host_vendor in
11656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11657 hardcode_direct=yes # is this really true???
11660 ## LD is ld it makes a PLAMLIB
11661 ## CC just makes a GrossModule.
11662 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11663 reload_cmds='$CC -r -o $output$reload_objs'
11667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11668 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11671 runpath_var='LD_RUN_PATH'
11672 hardcode_shlibpath_var=no
11676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11677 hardcode_shlibpath_var=no
11678 export_dynamic_flag_spec='-Bexport'
11682 if test -d /usr/nec; then
11683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11684 hardcode_shlibpath_var=no
11685 runpath_var=LD_RUN_PATH
11686 hardcode_runpath_var=yes
11691 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11692 no_undefined_flag='${wl}-z,text'
11693 archive_cmds_need_lc=no
11694 hardcode_shlibpath_var=no
11695 runpath_var='LD_RUN_PATH'
11697 if test "$GCC" = yes; then
11698 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11699 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11701 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11702 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11706 sysv5* | sco3.2v5* | sco5v6*)
11707 # Note: We can NOT use -z defs as we might desire, because we do not
11708 # link with -lc, and that would cause any symbols used from libc to
11709 # always be unresolved, which means just about no library would
11710 # ever link correctly. If we're not using GNU ld we use -z text
11711 # though, which does catch some bad symbols but isn't as heavy-handed
11713 no_undefined_flag='${wl}-z,text'
11714 allow_undefined_flag='${wl}-z,nodefs'
11715 archive_cmds_need_lc=no
11716 hardcode_shlibpath_var=no
11717 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11718 hardcode_libdir_separator=':'
11719 link_all_deplibs=yes
11720 export_dynamic_flag_spec='${wl}-Bexport'
11721 runpath_var='LD_RUN_PATH'
11723 if test "$GCC" = yes; then
11724 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11725 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11727 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11728 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11734 hardcode_libdir_flag_spec='-L$libdir'
11735 hardcode_shlibpath_var=no
11743 if test x$host_vendor = xsni; then
11745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11746 export_dynamic_flag_spec='${wl}-Blargedynsym'
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11753 $as_echo "$ld_shlibs" >&6; }
11754 test "$ld_shlibs" = no && can_build_shared=no
11756 with_gnu_ld=$with_gnu_ld
11773 # Do we need to explicitly link libc?
11775 case "x$archive_cmds_need_lc" in
11777 # Assume -lc should be added
11778 archive_cmds_need_lc=yes
11780 if test "$enable_shared" = yes && test "$GCC" = yes; then
11781 case $archive_cmds in
11783 # FIXME: we may have to deal with multi-command sequences.
11786 # Test whether the compiler implicitly links with -lc since on some
11787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11788 # to ld, don't add -lc before -lgcc.
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11790 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11791 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11792 $as_echo_n "(cached) " >&6
11795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11798 (eval $ac_compile) 2>&5
11800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801 test $ac_status = 0; } 2>conftest.err; then
11804 libobjs=conftest.$ac_objext
11806 wl=$lt_prog_compiler_wl
11807 pic_flag=$lt_prog_compiler_pic
11813 lt_save_allow_undefined_flag=$allow_undefined_flag
11814 allow_undefined_flag=
11815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11816 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11819 test $ac_status = 0; }
11821 lt_cv_archive_cmds_need_lc=no
11823 lt_cv_archive_cmds_need_lc=yes
11825 allow_undefined_flag=$lt_save_allow_undefined_flag
11827 cat conftest.err 1>&5
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11833 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11834 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11993 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11995 if test "$GCC" = yes; then
11997 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11998 *) lt_awk_arg="/^libraries:/" ;;
12001 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12002 *) lt_sed_strip_eq="s,=/,/,g" ;;
12004 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12005 case $lt_search_path_spec in
12007 # if the path contains ";" then we assume it to be the separator
12008 # otherwise default to the standard path separator (i.e. ":") - it is
12009 # assumed that no part of a normal pathname contains ";" but that should
12010 # okay in the real world where ";" in dirpaths is itself problematic.
12011 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12014 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12017 # Ok, now we have the path, separated by spaces, we can step through it
12018 # and add multilib dir if necessary.
12019 lt_tmp_lt_search_path_spec=
12020 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12021 for lt_sys_path in $lt_search_path_spec; do
12022 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12023 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12025 test -d "$lt_sys_path" && \
12026 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12029 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12030 BEGIN {RS=" "; FS="/|\n";} {
12033 for (lt_i = NF; lt_i > 0; lt_i--) {
12034 if ($lt_i != "" && $lt_i != ".") {
12035 if ($lt_i == "..") {
12038 if (lt_count == 0) {
12039 lt_foo="/" $lt_i lt_foo;
12046 if (lt_foo != "") { lt_freq[lt_foo]++; }
12047 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12049 # AWK program above erroneously prepends '/' to C:/dos/paths
12052 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12053 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12055 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12057 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12059 library_names_spec=
12060 libname_spec='lib$name'
12064 postuninstall_cmds=
12068 shlibpath_overrides_runpath=unknown
12070 dynamic_linker="$host_os ld.so"
12071 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12072 need_lib_prefix=unknown
12073 hardcode_into_libs=no
12075 # when you set need_version to no, make sure it does not cause -set_version
12076 # flags to be left without arguments
12077 need_version=unknown
12081 version_type=linux # correct to gnu/linux during the next big refactor
12082 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12083 shlibpath_var=LIBPATH
12085 # AIX 3 has no versioning support, so we append a major version to the name.
12086 soname_spec='${libname}${release}${shared_ext}$major'
12090 version_type=linux # correct to gnu/linux during the next big refactor
12093 hardcode_into_libs=yes
12094 if test "$host_cpu" = ia64; then
12095 # AIX 5 supports IA64
12096 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12097 shlibpath_var=LD_LIBRARY_PATH
12099 # With GCC up to 2.95.x, collect2 would create an import file
12100 # for dependence libraries. The import file would start with
12101 # the line `#! .'. This would cause the generated library to
12102 # depend on `.', always an invalid library. This was fixed in
12103 # development snapshots of GCC prior to 3.0.
12105 aix4 | aix4.[01] | aix4.[01].*)
12106 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12108 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12111 can_build_shared=no
12115 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12116 # soname into executable. Probably we can add versioning support to
12117 # collect2, so additional links can be useful in future.
12118 if test "$aix_use_runtimelinking" = yes; then
12119 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12120 # instead of lib<name>.a to let people know that these are not
12121 # typical AIX shared libraries.
12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12124 # We preserve .a as extension for shared libraries through AIX4.2
12125 # and later when we are not doing run time linking.
12126 library_names_spec='${libname}${release}.a $libname.a'
12127 soname_spec='${libname}${release}${shared_ext}$major'
12129 shlibpath_var=LIBPATH
12136 # Since July 2007 AmigaOS4 officially supports .so libraries.
12137 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12141 library_names_spec='$libname.ixlibrary $libname.a'
12142 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12143 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'
12149 library_names_spec='${libname}${shared_ext}'
12150 dynamic_linker="$host_os ld.so"
12151 shlibpath_var=LIBRARY_PATH
12155 version_type=linux # correct to gnu/linux during the next big refactor
12157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12158 soname_spec='${libname}${release}${shared_ext}$major'
12159 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12160 shlibpath_var=LD_LIBRARY_PATH
12161 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12162 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12163 # the default ld.so.conf also contains /usr/contrib/lib and
12164 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12165 # libtool to hard-code these into programs
12168 cygwin* | mingw* | pw32* | cegcc*)
12169 version_type=windows
12174 case $GCC,$cc_basename in
12177 library_names_spec='$libname.dll.a'
12178 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12179 postinstall_cmds='base_file=`basename \${file}`~
12180 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12181 dldir=$destdir/`dirname \$dlpath`~
12182 test -d \$dldir || mkdir -p \$dldir~
12183 $install_prog $dir/$dlname \$dldir/$dlname~
12184 chmod a+x \$dldir/$dlname~
12185 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12186 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12188 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12189 dlpath=$dir/\$dldll~
12191 shlibpath_overrides_runpath=yes
12195 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12196 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12198 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12201 # MinGW DLLs use traditional 'lib' prefix
12202 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12205 # pw32 DLLs use 'pw' prefix rather than 'lib'
12206 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12209 dynamic_linker='Win32 ld.exe'
12214 libname_spec='$name'
12215 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12216 library_names_spec='${libname}.dll.lib'
12220 sys_lib_search_path_spec=
12223 for lt_path in $LIB
12226 # Let DOS variable expansion print the short 8.3 style file name.
12227 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12228 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12231 # Convert to MSYS style.
12232 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12235 # Convert to unix form, then to dos form, then back to unix form
12236 # but this time dos style (no spaces!) so that the unix form looks
12237 # like /cygdrive/c/PROGRA~1:/cygdr...
12238 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12239 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12240 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12243 sys_lib_search_path_spec="$LIB"
12244 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12245 # It is most probably a Windows format PATH.
12246 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12248 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12250 # FIXME: find the short name or the path components, as spaces are
12251 # common. (e.g. "Program Files" -> "PROGRA~1")
12255 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12256 postinstall_cmds='base_file=`basename \${file}`~
12257 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12258 dldir=$destdir/`dirname \$dlpath`~
12259 test -d \$dldir || mkdir -p \$dldir~
12260 $install_prog $dir/$dlname \$dldir/$dlname'
12261 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12262 dlpath=$dir/\$dldll~
12264 shlibpath_overrides_runpath=yes
12265 dynamic_linker='Win32 link.exe'
12269 # Assume MSVC wrapper
12270 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12271 dynamic_linker='Win32 ld.exe'
12274 # FIXME: first we should search . and the directory the executable is in
12278 darwin* | rhapsody*)
12279 dynamic_linker="$host_os dyld"
12280 version_type=darwin
12283 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12284 soname_spec='${libname}${release}${major}$shared_ext'
12285 shlibpath_overrides_runpath=yes
12286 shlibpath_var=DYLD_LIBRARY_PATH
12287 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12289 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12290 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12294 version_type=linux # correct to gnu/linux during the next big refactor
12297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12298 soname_spec='${libname}${release}${shared_ext}$major'
12299 shlibpath_var=LD_LIBRARY_PATH
12302 freebsd* | dragonfly*)
12303 # DragonFly does not have aout. When/if they implement a new
12304 # versioning mechanism, adjust this.
12305 if test -x /usr/bin/objformat; then
12306 objformat=`/usr/bin/objformat`
12309 freebsd[23].*) objformat=aout ;;
12310 *) objformat=elf ;;
12313 version_type=freebsd-$objformat
12314 case $version_type in
12316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12325 shlibpath_var=LD_LIBRARY_PATH
12328 shlibpath_overrides_runpath=yes
12330 freebsd3.[01]* | freebsdelf3.[01]*)
12331 shlibpath_overrides_runpath=yes
12332 hardcode_into_libs=yes
12334 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12335 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12336 shlibpath_overrides_runpath=no
12337 hardcode_into_libs=yes
12339 *) # from 4.6 on, and DragonFly
12340 shlibpath_overrides_runpath=yes
12341 hardcode_into_libs=yes
12347 version_type=linux # correct to gnu/linux during the next big refactor
12350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12351 soname_spec='${libname}${release}${shared_ext}$major'
12352 shlibpath_var=LD_LIBRARY_PATH
12353 shlibpath_overrides_runpath=no
12354 hardcode_into_libs=yes
12358 version_type=linux # correct to gnu/linux during the next big refactor
12361 dynamic_linker="$host_os runtime_loader"
12362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12363 soname_spec='${libname}${release}${shared_ext}$major'
12364 shlibpath_var=LIBRARY_PATH
12365 shlibpath_overrides_runpath=yes
12366 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12367 hardcode_into_libs=yes
12370 hpux9* | hpux10* | hpux11*)
12371 # Give a soname corresponding to the major version so that dld.sl refuses to
12372 # link against other versions.
12379 hardcode_into_libs=yes
12380 dynamic_linker="$host_os dld.so"
12381 shlibpath_var=LD_LIBRARY_PATH
12382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12385 if test "X$HPUX_IA64_MODE" = X32; then
12386 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12388 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12394 hardcode_into_libs=yes
12395 dynamic_linker="$host_os dld.sl"
12396 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12399 soname_spec='${libname}${release}${shared_ext}$major'
12400 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12405 dynamic_linker="$host_os dld.sl"
12406 shlibpath_var=SHLIB_PATH
12407 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
12412 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12413 postinstall_cmds='chmod 555 $lib'
12414 # or fails outright, so override atomically:
12415 install_override_mode=555
12419 version_type=linux # correct to gnu/linux during the next big refactor
12422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12423 soname_spec='${libname}${release}${shared_ext}$major'
12424 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12425 shlibpath_var=LD_LIBRARY_PATH
12426 shlibpath_overrides_runpath=no
12427 hardcode_into_libs=yes
12430 irix5* | irix6* | nonstopux*)
12432 nonstopux*) version_type=nonstopux ;;
12434 if test "$lt_cv_prog_gnu_ld" = yes; then
12435 version_type=linux # correct to gnu/linux during the next big refactor
12442 soname_spec='${libname}${release}${shared_ext}$major'
12443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12445 irix5* | nonstopux*)
12446 libsuff= shlibsuff=
12449 case $LD in # libtool.m4 will add one of these switches to LD
12450 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12451 libsuff= shlibsuff= libmagic=32-bit;;
12452 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12453 libsuff=32 shlibsuff=N32 libmagic=N32;;
12454 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12455 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12456 *) libsuff= shlibsuff= libmagic=never-match;;
12460 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12461 shlibpath_overrides_runpath=no
12462 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12463 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12464 hardcode_into_libs=yes
12467 # No shared lib support for Linux oldld, aout, or coff.
12468 linux*oldld* | linux*aout* | linux*coff*)
12472 # This must be glibc/ELF.
12473 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12474 version_type=linux # correct to gnu/linux during the next big refactor
12477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12478 soname_spec='${libname}${release}${shared_ext}$major'
12479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12480 shlibpath_var=LD_LIBRARY_PATH
12481 shlibpath_overrides_runpath=no
12483 # Some binutils ld are patched to set DT_RUNPATH
12484 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12485 $as_echo_n "(cached) " >&6
12487 lt_cv_shlibpath_overrides_runpath=no
12488 save_LDFLAGS=$LDFLAGS
12489 save_libdir=$libdir
12490 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12491 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12503 if ac_fn_c_try_link "$LINENO"; then :
12504 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12505 lt_cv_shlibpath_overrides_runpath=yes
12508 rm -f core conftest.err conftest.$ac_objext \
12509 conftest$ac_exeext conftest.$ac_ext
12510 LDFLAGS=$save_LDFLAGS
12511 libdir=$save_libdir
12515 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12517 # This implies no fast_install, which is unacceptable.
12518 # Some rework will be needed to allow for fast_install
12519 # before this can be enabled.
12520 hardcode_into_libs=yes
12522 # Append ld.so.conf contents to the search path
12523 if test -f /etc/ld.so.conf; then
12524 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' ' '`
12525 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12528 # We used to test for /lib/ld.so.1 and disable shared libraries on
12529 # powerpc, because MkLinux only supported shared libraries with the
12530 # GNU dynamic linker. Since this was broken with cross compilers,
12531 # most powerpc-linux boxes support dynamic linking these days and
12532 # people can always --disable-shared, the test was removed, and we
12533 # assume the GNU/Linux dynamic linker is in use.
12534 dynamic_linker='GNU/Linux ld.so'
12541 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12544 dynamic_linker='NetBSD (a.out) ld.so'
12546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12547 soname_spec='${libname}${release}${shared_ext}$major'
12548 dynamic_linker='NetBSD ld.elf_so'
12550 shlibpath_var=LD_LIBRARY_PATH
12551 shlibpath_overrides_runpath=yes
12552 hardcode_into_libs=yes
12556 version_type=linux # correct to gnu/linux during the next big refactor
12557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12558 shlibpath_var=LD_LIBRARY_PATH
12559 shlibpath_overrides_runpath=yes
12566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12567 soname_spec='${libname}${release}${shared_ext}$major'
12568 shlibpath_var=LD_LIBRARY_PATH
12569 shlibpath_overrides_runpath=no
12570 hardcode_into_libs=yes
12571 dynamic_linker='ldqnx.so'
12576 sys_lib_dlsearch_path_spec="/usr/lib"
12578 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12580 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12581 *) need_version=no ;;
12583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12585 shlibpath_var=LD_LIBRARY_PATH
12586 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12588 openbsd2.[89] | openbsd2.[89].*)
12589 shlibpath_overrides_runpath=no
12592 shlibpath_overrides_runpath=yes
12596 shlibpath_overrides_runpath=yes
12601 libname_spec='$name'
12604 library_names_spec='$libname${shared_ext} $libname.a'
12605 dynamic_linker='OS/2 ld.exe'
12606 shlibpath_var=LIBPATH
12609 osf3* | osf4* | osf5*)
12613 soname_spec='${libname}${release}${shared_ext}$major'
12614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12615 shlibpath_var=LD_LIBRARY_PATH
12616 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12617 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12625 version_type=linux # correct to gnu/linux during the next big refactor
12628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12629 soname_spec='${libname}${release}${shared_ext}$major'
12630 shlibpath_var=LD_LIBRARY_PATH
12631 shlibpath_overrides_runpath=yes
12632 hardcode_into_libs=yes
12633 # ldd complains unless libraries are executable
12634 postinstall_cmds='chmod +x $lib'
12639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12640 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12641 shlibpath_var=LD_LIBRARY_PATH
12642 shlibpath_overrides_runpath=yes
12643 if test "$with_gnu_ld" = yes; then
12650 version_type=linux # correct to gnu/linux during the next big refactor
12651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12652 soname_spec='${libname}${release}${shared_ext}$major'
12653 shlibpath_var=LD_LIBRARY_PATH
12654 case $host_vendor in
12656 shlibpath_overrides_runpath=no
12658 runpath_var=LD_RUN_PATH
12666 shlibpath_overrides_runpath=no
12667 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12673 if test -d /usr/nec ;then
12674 version_type=linux # correct to gnu/linux during the next big refactor
12675 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12676 soname_spec='$libname${shared_ext}.$major'
12677 shlibpath_var=LD_LIBRARY_PATH
12681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12682 version_type=freebsd-elf
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12686 soname_spec='${libname}${release}${shared_ext}$major'
12687 shlibpath_var=LD_LIBRARY_PATH
12688 shlibpath_overrides_runpath=yes
12689 hardcode_into_libs=yes
12690 if test "$with_gnu_ld" = yes; then
12691 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12693 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12696 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12700 sys_lib_dlsearch_path_spec='/usr/lib'
12704 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12705 version_type=linux # correct to gnu/linux during the next big refactor
12708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12709 shlibpath_var=LD_LIBRARY_PATH
12710 shlibpath_overrides_runpath=no
12711 hardcode_into_libs=yes
12715 version_type=linux # correct to gnu/linux during the next big refactor
12716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12717 soname_spec='${libname}${release}${shared_ext}$major'
12718 shlibpath_var=LD_LIBRARY_PATH
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12726 $as_echo "$dynamic_linker" >&6; }
12727 test "$dynamic_linker" = no && can_build_shared=no
12729 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12730 if test "$GCC" = yes; then
12731 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12734 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12735 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12737 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12738 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12833 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12835 if test -n "$hardcode_libdir_flag_spec" ||
12836 test -n "$runpath_var" ||
12837 test "X$hardcode_automatic" = "Xyes" ; then
12839 # We can hardcode non-existent directories.
12840 if test "$hardcode_direct" != no &&
12841 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12842 # have to relink, otherwise we might link with an installed library
12843 # when we should be linking with a yet-to-be-installed one
12844 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12845 test "$hardcode_minus_L" != no; then
12846 # Linking always hardcodes the temporary library directory.
12847 hardcode_action=relink
12849 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12850 hardcode_action=immediate
12853 # We cannot hardcode anything, or else we can only hardcode existing
12855 hardcode_action=unsupported
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12858 $as_echo "$hardcode_action" >&6; }
12860 if test "$hardcode_action" = relink ||
12861 test "$inherit_rpath" = yes; then
12862 # Fast installation is not supported
12863 enable_fast_install=no
12864 elif test "$shlibpath_overrides_runpath" = yes ||
12865 test "$enable_shared" = no; then
12866 # Fast installation is not necessary
12867 enable_fast_install=needless
12875 if test "x$enable_dlopen" != xyes; then
12876 enable_dlopen=unknown
12877 enable_dlopen_self=unknown
12878 enable_dlopen_self_static=unknown
12885 lt_cv_dlopen="load_add_on"
12887 lt_cv_dlopen_self=yes
12890 mingw* | pw32* | cegcc*)
12891 lt_cv_dlopen="LoadLibrary"
12896 lt_cv_dlopen="dlopen"
12901 # if libdl is installed we need to link against it
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12903 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12904 if ${ac_cv_lib_dl_dlopen+:} false; then :
12905 $as_echo_n "(cached) " >&6
12907 ac_check_lib_save_LIBS=$LIBS
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12927 if ac_fn_c_try_link "$LINENO"; then :
12928 ac_cv_lib_dl_dlopen=yes
12930 ac_cv_lib_dl_dlopen=no
12932 rm -f core conftest.err conftest.$ac_objext \
12933 conftest$ac_exeext conftest.$ac_ext
12934 LIBS=$ac_check_lib_save_LIBS
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12937 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12938 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12942 lt_cv_dlopen="dyld"
12944 lt_cv_dlopen_self=yes
12951 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12952 if test "x$ac_cv_func_shl_load" = xyes; then :
12953 lt_cv_dlopen="shl_load"
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12956 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12957 if ${ac_cv_lib_dld_shl_load+:} false; then :
12958 $as_echo_n "(cached) " >&6
12960 ac_check_lib_save_LIBS=$LIBS
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12965 /* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12975 return shl_load ();
12980 if ac_fn_c_try_link "$LINENO"; then :
12981 ac_cv_lib_dld_shl_load=yes
12983 ac_cv_lib_dld_shl_load=no
12985 rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
12987 LIBS=$ac_check_lib_save_LIBS
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12990 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12991 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12992 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12994 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12995 if test "x$ac_cv_func_dlopen" = xyes; then :
12996 lt_cv_dlopen="dlopen"
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12999 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13000 if ${ac_cv_lib_dl_dlopen+:} false; then :
13001 $as_echo_n "(cached) " >&6
13003 ac_check_lib_save_LIBS=$LIBS
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13008 /* Override any GCC internal prototype to avoid an error.
13009 Use char because int might match the return type of a GCC
13010 builtin and then its argument prototype would still apply. */
13023 if ac_fn_c_try_link "$LINENO"; then :
13024 ac_cv_lib_dl_dlopen=yes
13026 ac_cv_lib_dl_dlopen=no
13028 rm -f core conftest.err conftest.$ac_objext \
13029 conftest$ac_exeext conftest.$ac_ext
13030 LIBS=$ac_check_lib_save_LIBS
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13033 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13034 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13038 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13039 if ${ac_cv_lib_svld_dlopen+:} false; then :
13040 $as_echo_n "(cached) " >&6
13042 ac_check_lib_save_LIBS=$LIBS
13043 LIBS="-lsvld $LIBS"
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13047 /* Override any GCC internal prototype to avoid an error.
13048 Use char because int might match the return type of a GCC
13049 builtin and then its argument prototype would still apply. */
13062 if ac_fn_c_try_link "$LINENO"; then :
13063 ac_cv_lib_svld_dlopen=yes
13065 ac_cv_lib_svld_dlopen=no
13067 rm -f core conftest.err conftest.$ac_objext \
13068 conftest$ac_exeext conftest.$ac_ext
13069 LIBS=$ac_check_lib_save_LIBS
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13072 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13073 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13077 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13078 if ${ac_cv_lib_dld_dld_link+:} false; then :
13079 $as_echo_n "(cached) " >&6
13081 ac_check_lib_save_LIBS=$LIBS
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13086 /* Override any GCC internal prototype to avoid an error.
13087 Use char because int might match the return type of a GCC
13088 builtin and then its argument prototype would still apply. */
13096 return dld_link ();
13101 if ac_fn_c_try_link "$LINENO"; then :
13102 ac_cv_lib_dld_dld_link=yes
13104 ac_cv_lib_dld_dld_link=no
13106 rm -f core conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
13108 LIBS=$ac_check_lib_save_LIBS
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13111 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13112 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13113 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13134 if test "x$lt_cv_dlopen" != xno; then
13140 case $lt_cv_dlopen in
13142 save_CPPFLAGS="$CPPFLAGS"
13143 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13145 save_LDFLAGS="$LDFLAGS"
13146 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13149 LIBS="$lt_cv_dlopen_libs $LIBS"
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13152 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13153 if ${lt_cv_dlopen_self+:} false; then :
13154 $as_echo_n "(cached) " >&6
13156 if test "$cross_compiling" = yes; then :
13157 lt_cv_dlopen_self=cross
13159 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13160 lt_status=$lt_dlunknown
13161 cat > conftest.$ac_ext <<_LT_EOF
13162 #line $LINENO "configure"
13163 #include "confdefs.h"
13172 # define LT_DLGLOBAL RTLD_GLOBAL
13175 # define LT_DLGLOBAL DL_GLOBAL
13177 # define LT_DLGLOBAL 0
13181 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13182 find out it does not work in some platform. */
13183 #ifndef LT_DLLAZY_OR_NOW
13185 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13188 # define LT_DLLAZY_OR_NOW DL_LAZY
13191 # define LT_DLLAZY_OR_NOW RTLD_NOW
13194 # define LT_DLLAZY_OR_NOW DL_NOW
13196 # define LT_DLLAZY_OR_NOW 0
13203 /* When -fvisbility=hidden is used, assume the code has been annotated
13204 correspondingly for the symbols needed. */
13205 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13206 int fnord () __attribute__((visibility("default")));
13209 int fnord () { return 42; }
13212 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13213 int status = $lt_dlunknown;
13217 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13220 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13221 else puts (dlerror ());
13223 /* dlclose (self); */
13231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13232 (eval $ac_link) 2>&5
13234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13235 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13236 (./conftest; exit; ) >&5 2>/dev/null
13238 case x$lt_status in
13239 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13240 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13241 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13244 # compilation failed
13245 lt_cv_dlopen_self=no
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13253 $as_echo "$lt_cv_dlopen_self" >&6; }
13255 if test "x$lt_cv_dlopen_self" = xyes; then
13256 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13258 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13259 if ${lt_cv_dlopen_self_static+:} false; then :
13260 $as_echo_n "(cached) " >&6
13262 if test "$cross_compiling" = yes; then :
13263 lt_cv_dlopen_self_static=cross
13265 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13266 lt_status=$lt_dlunknown
13267 cat > conftest.$ac_ext <<_LT_EOF
13268 #line $LINENO "configure"
13269 #include "confdefs.h"
13278 # define LT_DLGLOBAL RTLD_GLOBAL
13281 # define LT_DLGLOBAL DL_GLOBAL
13283 # define LT_DLGLOBAL 0
13287 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13288 find out it does not work in some platform. */
13289 #ifndef LT_DLLAZY_OR_NOW
13291 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13294 # define LT_DLLAZY_OR_NOW DL_LAZY
13297 # define LT_DLLAZY_OR_NOW RTLD_NOW
13300 # define LT_DLLAZY_OR_NOW DL_NOW
13302 # define LT_DLLAZY_OR_NOW 0
13309 /* When -fvisbility=hidden is used, assume the code has been annotated
13310 correspondingly for the symbols needed. */
13311 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13312 int fnord () __attribute__((visibility("default")));
13315 int fnord () { return 42; }
13318 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13319 int status = $lt_dlunknown;
13323 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13326 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13327 else puts (dlerror ());
13329 /* dlclose (self); */
13337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13338 (eval $ac_link) 2>&5
13340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13341 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13342 (./conftest; exit; ) >&5 2>/dev/null
13344 case x$lt_status in
13345 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13346 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13347 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13350 # compilation failed
13351 lt_cv_dlopen_self_static=no
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13359 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13362 CPPFLAGS="$save_CPPFLAGS"
13363 LDFLAGS="$save_LDFLAGS"
13368 case $lt_cv_dlopen_self in
13369 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13370 *) enable_dlopen_self=unknown ;;
13373 case $lt_cv_dlopen_self_static in
13374 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13375 *) enable_dlopen_self_static=unknown ;;
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13398 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13399 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13400 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13401 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13403 $as_echo "yes" >&6; }
13405 # FIXME - insert some real tests, host_os isn't really good enough
13408 if test -n "$STRIP" ; then
13409 striplib="$STRIP -x"
13410 old_striplib="$STRIP -S"
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13412 $as_echo "yes" >&6; }
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415 $as_echo "no" >&6; }
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420 $as_echo "no" >&6; }
13436 # Report which library types will actually be built
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13438 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13440 $as_echo "$can_build_shared" >&6; }
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13443 $as_echo_n "checking whether to build shared libraries... " >&6; }
13444 test "$can_build_shared" = "no" && enable_shared=no
13446 # On AIX, shared libraries and static libraries use the same namespace, and
13447 # are all built from PIC.
13450 test "$enable_shared" = yes && enable_static=no
13451 if test -n "$RANLIB"; then
13452 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13453 postinstall_cmds='$RANLIB $lib'
13458 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13459 test "$enable_shared" = yes && enable_static=no
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13464 $as_echo "$enable_shared" >&6; }
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13467 $as_echo_n "checking whether to build static libraries... " >&6; }
13468 # Make sure either enable_shared or enable_static is yes.
13469 test "$enable_shared" = yes || enable_static=yes
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13471 $as_echo "$enable_static" >&6; }
13478 ac_cpp='$CPP $CPPFLAGS'
13479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13499 ac_config_commands="$ac_config_commands libtool"
13504 # Only expand once:
13508 if test "$enable_shared" = "no"; then
13513 ac_cv_func_dlopen=no
13515 eval _shrext="$shrext_cmds"
13516 # Darwin uses .dylib for libraries but .so for modules
13517 if test X"$_shrext" = X".dylib"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
13524 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
13526 # Check whether --with-noexec was given.
13527 if test "${with_noexec+set}" = set; then :
13528 withval=$with_noexec; case $with_noexec in
13529 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
13535 with_noexec="$libexecdir/sudo_noexec$_shrext"
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
13539 $as_echo "$with_noexec" >&6; }
13540 NOEXECFILE="sudo_noexec$_shrext"
13541 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
13543 # Extract the first word of "uname", so it can be a program name with args.
13544 set dummy uname; ac_word=$2
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13546 $as_echo_n "checking for $ac_word... " >&6; }
13547 if ${ac_cv_prog_UNAMEPROG+:} false; then :
13548 $as_echo_n "(cached) " >&6
13550 if test -n "$UNAMEPROG"; then
13551 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
13553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13554 for as_dir in $PATH
13557 test -z "$as_dir" && as_dir=.
13558 for ac_exec_ext in '' $ac_executable_extensions; do
13559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13560 ac_cv_prog_UNAMEPROG="uname"
13561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13570 UNAMEPROG=$ac_cv_prog_UNAMEPROG
13571 if test -n "$UNAMEPROG"; then
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
13573 $as_echo "$UNAMEPROG" >&6; }
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576 $as_echo "no" >&6; }
13580 # Extract the first word of "tr", so it can be a program name with args.
13581 set dummy tr; ac_word=$2
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13583 $as_echo_n "checking for $ac_word... " >&6; }
13584 if ${ac_cv_prog_TRPROG+:} false; then :
13585 $as_echo_n "(cached) " >&6
13587 if test -n "$TRPROG"; then
13588 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13597 ac_cv_prog_TRPROG="tr"
13598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13607 TRPROG=$ac_cv_prog_TRPROG
13608 if test -n "$TRPROG"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
13610 $as_echo "$TRPROG" >&6; }
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613 $as_echo "no" >&6; }
13617 for ac_prog in nroff mandoc
13619 # Extract the first word of "$ac_prog", so it can be a program name with args.
13620 set dummy $ac_prog; ac_word=$2
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622 $as_echo_n "checking for $ac_word... " >&6; }
13623 if ${ac_cv_prog_NROFFPROG+:} false; then :
13624 $as_echo_n "(cached) " >&6
13626 if test -n "$NROFFPROG"; then
13627 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 for as_dir in $PATH
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
13635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13636 ac_cv_prog_NROFFPROG="$ac_prog"
13637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 NROFFPROG=$ac_cv_prog_NROFFPROG
13647 if test -n "$NROFFPROG"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
13649 $as_echo "$NROFFPROG" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13656 test -n "$NROFFPROG" && break
13659 if test -n "$NROFFPROG"; then
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -c option" >&5
13661 $as_echo_n "checking whether $NROFFPROG supports the -c option... " >&6; }
13662 if ${sudo_cv_var_nroff_opt_c+:} false; then :
13663 $as_echo_n "(cached) " >&6
13665 if $NROFFPROG -c </dev/null >/dev/null 2>&1; then
13666 sudo_cv_var_nroff_opt_c=yes
13668 sudo_cv_var_nroff_opt_c=no
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_c" >&5
13673 $as_echo "$sudo_cv_var_nroff_opt_c" >&6; }
13674 if test "$sudo_cv_var_nroff_opt_c" = "yes"; then
13675 NROFFPROG="$NROFFPROG -c"
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -Tascii option" >&5
13678 $as_echo_n "checking whether $NROFFPROG supports the -Tascii option... " >&6; }
13679 if ${sudo_cv_var_nroff_opt_Tascii+:} false; then :
13680 $as_echo_n "(cached) " >&6
13682 if $NROFFPROG -Tascii </dev/null >/dev/null 2>&1; then
13683 sudo_cv_var_nroff_opt_Tascii=yes
13685 sudo_cv_var_nroff_opt_Tascii=no
13687 if test "$sudo_cv_var_nroff_opt_Tascii" = "yes"; then
13688 NROFFPROG="$NROFFPROG -Tascii"
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_Tascii" >&5
13693 $as_echo "$sudo_cv_var_nroff_opt_Tascii" >&6; }
13696 mansrcdir='$(srcdir)'
13699 if test -n "$sudo_cv_prev_host"; then
13700 if test "$sudo_cv_prev_host" != "$host"; then
13701 as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
13704 $as_echo_n "checking previous host type... " >&6; }
13705 if ${sudo_cv_prev_host+:} false; then :
13706 $as_echo_n "(cached) " >&6
13708 sudo_cv_prev_host="$host"
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
13712 $as_echo "$sudo_cv_prev_host" >&6; }
13715 # this will produce no output since there is no cached value
13716 if ${sudo_cv_prev_host+:} false; then :
13717 $as_echo_n "(cached) " >&6
13719 sudo_cv_prev_host="$host"
13724 if test -n "$host_os"; then
13725 OS=`echo $host_os | sed 's/[0-9].*//'`
13726 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
13727 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
13736 # LD_PRELOAD is space-delimited
13737 RTLD_PRELOAD_DELIM=" "
13739 # getcwd(3) opens a pipe to getpwd(1)!?!
13742 # system headers lack prototypes but gcc helps...
13743 if test -n "$GCC"; then
13744 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
13747 shadow_funcs="getpwanam issecure"
13750 # LD_PRELOAD is space-delimited
13751 RTLD_PRELOAD_DELIM=" "
13753 # To get the crypt(3) prototype (so we pass -Wall)
13754 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13755 # AFS support needs -lucb
13756 if test "$with_AFS" = "yes"; then
13757 AFS_LIBS="-lc -lucb"
13759 : ${mansectsu='1m'}
13760 : ${mansectform='4'}
13761 : ${with_rpath='yes'}
13762 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13763 for ac_func in priv_set
13765 ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
13766 if test "x$ac_cv_func_priv_set" = xyes; then :
13767 cat >>confdefs.h <<_ACEOF
13768 #define HAVE_PRIV_SET 1
13776 # To get all prototypes (so we pass -Wall)
13777 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
13778 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
13779 if test X"$with_blibpath" != X"no"; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
13781 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
13782 O_LDFLAGS="$LDFLAGS"
13783 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13795 if ac_fn_c_try_link "$LINENO"; then :
13797 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
13798 blibpath="$with_blibpath"
13799 elif test -n "$GCC"; then
13800 blibpath="/usr/lib:/lib:/usr/local/lib"
13802 blibpath="/usr/lib:/lib"
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13805 $as_echo "yes" >&6; }
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809 $as_echo "no" >&6; }
13811 rm -f core conftest.err conftest.$ac_objext \
13812 conftest$ac_exeext conftest.$ac_ext
13814 LDFLAGS="$O_LDFLAGS"
13816 # On AIX 6 and higher default to PAM, else default to LAM
13817 if test $OSMAJOR -ge 6; then
13818 if test X"$with_pam" = X""; then
13819 AUTH_EXCL_DEF="PAM"
13822 if test X"$with_aixauth" = X""; then
13823 for ac_func in authenticate
13825 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
13826 if test "x$ac_cv_func_authenticate" = xyes; then :
13827 cat >>confdefs.h <<_ACEOF
13828 #define HAVE_AUTHENTICATE 1
13830 AUTH_EXCL_DEF="AIX_AUTH"
13837 # AIX analog of nsswitch.conf, enabled by default
13839 # Check whether --with-netsvc was given.
13840 if test "${with_netsvc+set}" = set; then :
13841 withval=$with_netsvc; case $with_netsvc in
13843 yes) with_netsvc="/etc/netsvc.conf"
13849 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
13850 with_netsvc="/etc/netsvc.conf"
13853 # For implementing getgrouplist()
13854 for ac_func in getgrset
13856 ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
13857 if test "x$ac_cv_func_getgrset" = xyes; then :
13858 cat >>confdefs.h <<_ACEOF
13859 #define HAVE_GETGRSET 1
13866 # LDR_PRELOAD is only supported in AIX 5.3 and later
13867 if test $OSMAJOR -lt 5; then
13870 RTLD_PRELOAD_VAR="LDR_PRELOAD"
13873 # AIX-specific functions
13874 for ac_func in getuserattr setauthdb
13876 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13877 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13878 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13879 cat >>confdefs.h <<_ACEOF
13880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13886 COMMON_OBJS="$COMMON_OBJS aix.lo"
13889 : ${mansectsu='1m'}
13890 : ${mansectform='4'}
13893 # AFS support needs -lBSD
13894 if test "$with_AFS" = "yes"; then
13895 AFS_LIBS="-lc -lBSD"
13897 : ${mansectsu='1m'}
13898 : ${mansectform='4'}
13900 # The HP bundled compiler cannot generate shared libs
13901 if test -z "$GCC"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
13903 $as_echo_n "checking for HP bundled C compiler... " >&6; }
13904 if ${sudo_cv_var_hpccbundled+:} false; then :
13905 $as_echo_n "(cached) " >&6
13907 if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
13908 sudo_cv_var_hpccbundled=yes
13910 sudo_cv_var_hpccbundled=no
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
13915 $as_echo "$sudo_cv_var_hpccbundled" >&6; }
13916 if test "$sudo_cv_var_hpccbundled" = "yes"; then
13917 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
13921 # Build PA-RISC1.1 objects for better portability
13922 case "$host_cpu" in
13925 if test -n "$GCC"; then
13926 portable_flag="-march=1.1"
13928 portable_flag="+DAportable"
13930 CFLAGS="$CFLAGS $portable_flag"
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
13932 $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
13933 if ${sudo_cv_var_daportable+:} false; then :
13934 $as_echo_n "(cached) " >&6
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13947 if ac_fn_c_try_link "$LINENO"; then :
13948 sudo_cv_var_daportable=yes
13950 sudo_cv_var_daportable=no
13953 rm -f core conftest.err conftest.$ac_objext \
13954 conftest$ac_exeext conftest.$ac_ext
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
13959 $as_echo "$sudo_cv_var_daportable" >&6; }
13960 if test X"$sudo_cv_var_daportable" != X"yes"; then
13968 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13972 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13975 shadow_funcs="getspwuid"
13977 # DCE support (requires ANSI C compiler)
13978 if test "$with_DCE" = "yes"; then
13979 # order of libs in 9.X is important. -lc_r must be last
13980 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
13981 LIBS="${LIBS} -ldce -lM -lc_r"
13982 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
13986 shadow_funcs="getprpwnam iscomsec"
13987 shadow_libs="-lsec"
13988 # HP-UX 10.20 libc has an incompatible getline
13989 ac_cv_func_getline="no"
13992 shadow_funcs="getspnam iscomsec"
13993 shadow_libs="-lsec"
13994 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13999 # ignore envariables wrt dynamic lib path
14000 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
14002 : ${CHECKSIA='true'}
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
14004 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
14005 # Check whether --enable-sia was given.
14006 if test "${enable_sia+set}" = set; then :
14007 enableval=$enable_sia; case "$enableval" in
14008 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14012 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14013 $as_echo "yes" >&6; }
14016 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017 $as_echo "no" >&6; }
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
14019 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14025 $as_echo "no" >&6; }
14029 shadow_funcs="getprpwnam dispcrypt"
14030 # OSF/1 4.x and higher need -ldb too
14031 if test $OSMAJOR -lt 4; then
14032 shadow_libs="-lsecurity -laud -lm"
14034 shadow_libs="-lsecurity -ldb -laud -lm"
14037 # use SIA by default, if we have it
14038 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
14041 # Some versions of Digital Unix ship with a broken
14042 # copy of prot.h, which we need for shadow passwords.
14043 # XXX - make should remove this as part of distclean
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
14046 $as_echo_n "checking for broken prot.h... " >&6; }
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14050 #include <sys/types.h>
14051 #include <sys/security.h>
14062 if ac_fn_c_try_compile "$LINENO"; then :
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14064 $as_echo "no" >&6; }
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
14067 $as_echo "yes, fixing locally" >&6; }
14068 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
14071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072 # ":DEFAULT" must be appended to _RLD_LIST
14073 RTLD_PRELOAD_VAR="_RLD_LIST"
14074 RTLD_PRELOAD_DEFAULT="DEFAULT"
14076 : ${mansectform='4'}
14079 OSDEFS="${OSDEFS} -D_BSD_TYPES"
14080 if test -z "$NROFFPROG"; then
14081 MAN_POSTINSTALL=' /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
14082 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14083 if test -d /usr/share/catman/local; then
14084 mandir="/usr/share/catman/local"
14086 mandir="/usr/catman/local"
14090 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14091 if test -d "/usr/share/man/local"; then
14092 mandir="/usr/share/man/local"
14094 mandir="/usr/man/local"
14098 # IRIX <= 4 needs -lsun
14099 if test "$OSMAJOR" -le 4; then
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
14101 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
14102 if ${ac_cv_lib_sun_getpwnam+:} false; then :
14103 $as_echo_n "(cached) " >&6
14105 ac_check_lib_save_LIBS=$LIBS
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14110 /* Override any GCC internal prototype to avoid an error.
14111 Use char because int might match the return type of a GCC
14112 builtin and then its argument prototype would still apply. */
14120 return getpwnam ();
14125 if ac_fn_c_try_link "$LINENO"; then :
14126 ac_cv_lib_sun_getpwnam=yes
14128 ac_cv_lib_sun_getpwnam=no
14130 rm -f core conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14132 LIBS=$ac_check_lib_save_LIBS
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
14135 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
14136 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
14137 LIBS="${LIBS} -lsun"
14141 # ":DEFAULT" must be appended to _RLD_LIST
14142 RTLD_PRELOAD_VAR="_RLD_LIST"
14143 RTLD_PRELOAD_DEFAULT="DEFAULT"
14144 : ${mansectsu='1m'}
14145 : ${mansectform='4'}
14147 *-*-linux*|*-*-k*bsd*-gnu)
14148 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14149 # Some Linux versions need to link with -lshadow
14150 shadow_funcs="getspnam"
14151 shadow_libs_optional="-lshadow"
14152 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14155 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
14156 if test -z "$GCC"; then
14157 CFLAGS="${CFLAGS} -D__STDC__"
14160 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
14161 shadow_funcs="getprpwnam"
14162 shadow_libs="-lprot"
14166 shadow_funcs="getauthuid"
14167 shadow_libs="-lauth"
14170 LIBS="${LIBS} -lsun -lbsd"
14171 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
14172 OSDEFS="${OSDEFS} -D_MIPS"
14173 : ${mansectsu='1m'}
14174 : ${mansectform='4'}
14177 OSDEFS="${OSDEFS} -D_ISC"
14179 SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
14181 shadow_funcs="getspnam"
14182 shadow_libs="-lsec"
14184 : ${mansectsu='1m'}
14185 : ${mansectform='4'}
14188 shadow_funcs="getprpwnam"
14189 shadow_libs="-lprot -lx"
14190 : ${mansectsu='1m'}
14191 : ${mansectform='4'}
14193 m88k-motorola-sysv*)
14194 # motorolla's cc (a variant of gcc) does -O but not -O2
14195 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
14196 : ${mansectsu='1m'}
14197 : ${mansectform='4'}
14200 shadow_funcs="getspnam"
14201 shadow_libs="-lsec"
14202 : ${mansectsu='1m'}
14203 : ${mansectform='4'}
14204 : ${with_rpath='yes'}
14206 *-ncr-sysv4*|*-ncr-sysvr4*)
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
14208 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
14209 if ${ac_cv_lib_c89_strcasecmp+:} false; then :
14210 $as_echo_n "(cached) " >&6
14212 ac_check_lib_save_LIBS=$LIBS
14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h. */
14217 /* Override any GCC internal prototype to avoid an error.
14218 Use char because int might match the return type of a GCC
14219 builtin and then its argument prototype would still apply. */
14223 char strcasecmp ();
14227 return strcasecmp ();
14232 if ac_fn_c_try_link "$LINENO"; then :
14233 ac_cv_lib_c89_strcasecmp=yes
14235 ac_cv_lib_c89_strcasecmp=no
14237 rm -f core conftest.err conftest.$ac_objext \
14238 conftest$ac_exeext conftest.$ac_ext
14239 LIBS=$ac_check_lib_save_LIBS
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
14242 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
14243 if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
14244 LIBS="${LIBS} -lc89"
14247 : ${mansectsu='1m'}
14248 : ${mansectform='4'}
14249 : ${with_rpath='yes'}
14251 *-ccur-sysv4*|*-ccur-sysvr4*)
14252 LIBS="${LIBS} -lgen"
14253 : ${mansectsu='1m'}
14254 : ${mansectform='4'}
14255 : ${with_rpath='yes'}
14259 # Check for newer BSD auth API
14260 if test -z "$with_bsdauth"; then
14261 for ac_func in auth_challenge
14263 ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
14264 if test "x$ac_cv_func_auth_challenge" = xyes; then :
14265 cat >>confdefs.h <<_ACEOF
14266 #define HAVE_AUTH_CHALLENGE 1
14268 AUTH_EXCL_DEF="BSD_AUTH"
14275 # FreeBSD has a real setreuid(2) starting with 2.1 and
14276 # backported to 2.0.5. We just take 2.1 and above...
14282 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14283 if test "${with_skey-'no'}" = "yes"; then
14284 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14286 CHECKSHADOW="false"
14287 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14288 : ${with_logincap='maybe'}
14291 # OpenBSD has a real setreuid(2) starting with 3.3 but
14292 # we will use setresuid(2) instead.
14294 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14295 CHECKSHADOW="false"
14296 # OpenBSD >= 3.0 supports BSD auth
14297 if test -z "$with_bsdauth"; then
14298 if test "$OSMAJOR" -ge 3; then
14299 AUTH_EXCL_DEF="BSD_AUTH"
14302 : ${with_logincap='maybe'}
14305 # NetBSD has a real setreuid(2) starting with 1.3.2
14307 0.9*|1.[012]*|1.3|1.3.1)
14311 CHECKSHADOW="false"
14312 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14313 : ${with_logincap='maybe'}
14316 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14317 if test "${with_skey-'no'}" = "yes"; then
14318 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14320 CHECKSHADOW="false"
14321 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14322 : ${with_logincap='yes'}
14325 CHECKSHADOW="false"
14328 # Darwin has a real setreuid(2) starting with 9.0
14329 if test $OSMAJOR -lt 9; then
14332 CHECKSHADOW="false"
14333 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14334 : ${with_logincap='yes'}
14335 RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14336 RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14339 # lockf() on is broken on the NeXT -- use flock instead
14340 ac_cv_func_lockf=no
14341 ac_cv_func_flock=yes
14342 RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14343 RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14346 : ${mansectsu='1m'}
14347 : ${mansectform='4'}
14348 : ${with_rpath='yes'}
14351 : ${mansectsu='1m'}
14352 : ${mansectform='4'}
14355 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14359 if test -n "$with_noexec"; then
14360 cat >>confdefs.h <<EOF
14361 #define RTLD_PRELOAD_VAR "$RTLD_PRELOAD_VAR"
14364 cat >>confdefs.h <<EOF
14365 #define RTLD_PRELOAD_DELIM "$RTLD_PRELOAD_DELIM"
14368 if test -n "$RTLD_PRELOAD_DEFAULT"; then
14369 cat >>confdefs.h <<EOF
14370 #define RTLD_PRELOAD_DEFAULT "$RTLD_PRELOAD_DEFAULT"
14374 if test -n "$RTLD_PRELOAD_ENABLE_VAR"; then
14375 cat >>confdefs.h <<EOF
14376 #define RTLD_PRELOAD_ENABLE_VAR "$RTLD_PRELOAD_ENABLE_VAR"
14382 AUTH_REG=${AUTH_REG# }
14383 AUTH_EXCL=${AUTH_EXCL# }
14384 if test -n "$AUTH_EXCL"; then
14386 if test $# != 1; then
14387 as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
14389 if test -n "$AUTH_REG"; then
14390 as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
14393 if test X"${with_skey}${with_opie}" = X"yesyes"; then
14394 as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
14398 : ${mansectform='5'}
14400 if test -n "$with_libpath"; then
14401 for i in ${with_libpath}; do
14403 if test X"$with_rpath" = X"yes"; then
14405 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
14407 *) LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
14411 LDFLAGS="${LDFLAGS} -L$i"
14413 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
14414 blibpath_add="${blibpath_add}:$i"
14419 if test -n "$with_libraries"; then
14420 for i in ${with_libraries}; do
14427 LIBS="${LIBS} ${i}"
14431 if test $ac_cv_c_compiler_gnu = yes; then
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14433 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14434 if ${ac_cv_prog_gcc_traditional+:} false; then :
14435 $as_echo_n "(cached) " >&6
14437 ac_pattern="Autoconf.*'x'"
14438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h. */
14443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14444 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14445 ac_cv_prog_gcc_traditional=yes
14447 ac_cv_prog_gcc_traditional=no
14452 if test $ac_cv_prog_gcc_traditional = no; then
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14455 #include <termio.h>
14458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14459 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14460 ac_cv_prog_gcc_traditional=yes
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14467 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14468 if test $ac_cv_prog_gcc_traditional = yes; then
14469 CC="$CC -traditional"
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14474 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14475 if ${ac_cv_c_const+:} false; then :
14476 $as_echo_n "(cached) " >&6
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14484 /* FIXME: Include the comments suggested by Paul. */
14485 #ifndef __cplusplus
14486 /* Ultrix mips cc rejects this. */
14487 typedef int charset[2];
14489 /* SunOS 4.1.1 cc rejects this. */
14490 char const *const *pcpcc;
14492 /* NEC SVR4.0.2 mips cc rejects this. */
14493 struct point {int x, y;};
14494 static struct point const zero = {0,0};
14495 /* AIX XL C 1.02.0.0 rejects this.
14496 It does not let you subtract one const X* pointer from another in
14497 an arm of an if-expression whose if-part is not a constant
14499 const char *g = "string";
14500 pcpcc = &g + (g ? g-g : 0);
14501 /* HPUX 7.0 cc rejects these. */
14503 ppc = (char**) pcpcc;
14504 pcpcc = (char const *const *) ppc;
14505 { /* SCO 3.2v4 cc rejects this. */
14507 char const *s = 0 ? (char *) 0 : (char const *) 0;
14512 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14513 int x[] = {25, 17};
14514 const int *foo = &x[0];
14517 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14518 typedef const int *iptr;
14522 { /* AIX XL C 1.02.0.0 rejects this saying
14523 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14524 struct s { int j; const int *ap[3]; };
14525 struct s *b; b->j = 5;
14527 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14528 const int foo = 10;
14529 if (!foo) return 0;
14531 return !cs[0] && !zero.x;
14538 if ac_fn_c_try_compile "$LINENO"; then :
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14546 $as_echo "$ac_cv_c_const" >&6; }
14547 if test $ac_cv_c_const = no; then
14549 $as_echo "#define const /**/" >>confdefs.h
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14554 $as_echo_n "checking for working volatile... " >&6; }
14555 if ${ac_cv_c_volatile+:} false; then :
14556 $as_echo_n "(cached) " >&6
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14566 int * volatile y = (int *) 0;
14572 if ac_fn_c_try_compile "$LINENO"; then :
14573 ac_cv_c_volatile=yes
14575 ac_cv_c_volatile=no
14577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14580 $as_echo "$ac_cv_c_volatile" >&6; }
14581 if test $ac_cv_c_volatile = no; then
14583 $as_echo "#define volatile /**/" >>confdefs.h
14587 # Check for variadic macro support in cpp
14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14591 $ac_includes_default
14592 #if defined(__GNUC__) && __GNUC__ == 2
14593 # define sudo_fprintf(fp, fmt...) fprintf((fp), (fmt))
14595 # define sudo_fprintf(fp, ...) fprintf((fp), __VA_ARGS__)
14601 sudo_fprintf(stderr, "a %s", "test");
14606 if ac_fn_c_try_compile "$LINENO"; then :
14609 as_fn_error $? "Your C compiler doesn't support variadic macros, try building with gcc instead" "$LINENO" 5
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14612 if test X"$with_gnu_ld" != "yes" -a -n "$GCC"; then
14614 CFLAGS="$CFLAGS -static-libgcc"
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -static-libgcc" >&5
14616 $as_echo_n "checking whether $CC understands -static-libgcc... " >&6; }
14617 if ${sudo_cv_var_gcc_static_libgcc+:} false; then :
14618 $as_echo_n "(cached) " >&6
14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14631 if ac_fn_c_try_link "$LINENO"; then :
14632 sudo_cv_var_gcc_static_libgcc=yes
14634 sudo_cv_var_gcc_static_libgcc=no
14637 rm -f core conftest.err conftest.$ac_objext \
14638 conftest$ac_exeext conftest.$ac_ext
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gcc_static_libgcc" >&5
14643 $as_echo "$sudo_cv_var_gcc_static_libgcc" >&6; }
14645 if test "$sudo_cv_var_gcc_static_libgcc" = "yes"; then
14646 LTLDFLAGS="$LTLDFLAGS -Wc,-static-libgcc"
14649 for ac_prog in 'bison -y' byacc
14651 # Extract the first word of "$ac_prog", so it can be a program name with args.
14652 set dummy $ac_prog; ac_word=$2
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14654 $as_echo_n "checking for $ac_word... " >&6; }
14655 if ${ac_cv_prog_YACC+:} false; then :
14656 $as_echo_n "(cached) " >&6
14658 if test -n "$YACC"; then
14659 ac_cv_prog_YACC="$YACC" # Let the user override the test.
14661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14662 for as_dir in $PATH
14665 test -z "$as_dir" && as_dir=.
14666 for ac_exec_ext in '' $ac_executable_extensions; do
14667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14668 ac_cv_prog_YACC="$ac_prog"
14669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14678 YACC=$ac_cv_prog_YACC
14679 if test -n "$YACC"; then
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14681 $as_echo "$YACC" >&6; }
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14684 $as_echo "no" >&6; }
14688 test -n "$YACC" && break
14690 test -n "$YACC" || YACC="yacc"
14692 # Extract the first word of "flex", so it can be a program name with args.
14693 set dummy flex; ac_word=$2
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14695 $as_echo_n "checking for $ac_word... " >&6; }
14696 if ${ac_cv_path_FLEX+:} false; then :
14697 $as_echo_n "(cached) " >&6
14701 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14705 for as_dir in $PATH
14708 test -z "$as_dir" && as_dir=.
14709 for ac_exec_ext in '' $ac_executable_extensions; do
14710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14711 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14719 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
14723 FLEX=$ac_cv_path_FLEX
14724 if test -n "$FLEX"; then
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14726 $as_echo "$FLEX" >&6; }
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14729 $as_echo "no" >&6; }
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
14734 $as_echo_n "checking for mv... " >&6; }
14736 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
14737 if test -f "$p"; then
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14740 $as_echo "$p" >&6; }
14741 cat >>confdefs.h <<EOF
14742 #define _PATH_MV "$p"
14748 if test X"$found" != X"yes"; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14750 $as_echo "not found" >&6; }
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
14754 $as_echo_n "checking for bourne shell... " >&6; }
14756 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
14757 if test -f "$p"; then
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14760 $as_echo "$p" >&6; }
14761 cat >>confdefs.h <<EOF
14762 #define _PATH_BSHELL "$p"
14768 if test X"$found" != X"yes"; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14770 $as_echo "not found" >&6; }
14773 if test -z "$with_sendmail"; then
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
14775 $as_echo_n "checking for sendmail... " >&6; }
14777 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
14778 if test -f "$p"; then
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14781 $as_echo "$p" >&6; }
14782 cat >>confdefs.h <<EOF
14783 #define _PATH_SUDO_SENDMAIL "$p"
14789 if test X"$found" != X"yes"; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14791 $as_echo "not found" >&6; }
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
14796 $as_echo_n "checking for vi... " >&6; }
14798 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
14799 if test -f "$editor"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
14802 $as_echo "$editor" >&6; }
14803 cat >>confdefs.h <<EOF
14804 #define _PATH_VI "$editor"
14810 if test X"$found" != X"yes"; then
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14812 $as_echo "not found" >&6; }
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
14816 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
14817 if test X"$with_logfac" = X""; then
14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14820 #include <syslog.h>
14824 int i = LOG_AUTHPRIV; (void)i;
14829 if ac_fn_c_try_compile "$LINENO"; then :
14832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14835 cat >>confdefs.h <<_ACEOF
14836 #define LOGFAC "$logfac"
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
14840 $as_echo "$logfac" >&6; }
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14842 $as_echo_n "checking for ANSI C header files... " >&6; }
14843 if ${ac_cv_header_stdc+:} false; then :
14844 $as_echo_n "(cached) " >&6
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14848 #include <stdlib.h>
14849 #include <stdarg.h>
14850 #include <string.h>
14861 if ac_fn_c_try_compile "$LINENO"; then :
14862 ac_cv_header_stdc=yes
14864 ac_cv_header_stdc=no
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 if test $ac_cv_header_stdc = yes; then
14869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h. */
14872 #include <string.h>
14875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14876 $EGREP "memchr" >/dev/null 2>&1; then :
14879 ac_cv_header_stdc=no
14885 if test $ac_cv_header_stdc = yes; then
14886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14889 #include <stdlib.h>
14892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14893 $EGREP "free" >/dev/null 2>&1; then :
14896 ac_cv_header_stdc=no
14902 if test $ac_cv_header_stdc = yes; then
14903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14904 if test "$cross_compiling" = yes; then :
14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908 /* end confdefs.h. */
14910 #include <stdlib.h>
14911 #if ((' ' & 0x0FF) == 0x020)
14912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14915 # define ISLOWER(c) \
14916 (('a' <= (c) && (c) <= 'i') \
14917 || ('j' <= (c) && (c) <= 'r') \
14918 || ('s' <= (c) && (c) <= 'z'))
14919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14927 for (i = 0; i < 256; i++)
14928 if (XOR (islower (i), ISLOWER (i))
14929 || toupper (i) != TOUPPER (i))
14934 if ac_fn_c_try_run "$LINENO"; then :
14937 ac_cv_header_stdc=no
14939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14940 conftest.$ac_objext conftest.beam conftest.$ac_ext
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14946 $as_echo "$ac_cv_header_stdc" >&6; }
14947 if test $ac_cv_header_stdc = yes; then
14949 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14953 ac_header_dirent=no
14954 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14955 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14957 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14958 if eval \${$as_ac_Header+:} false; then :
14959 $as_echo_n "(cached) " >&6
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14963 #include <sys/types.h>
14975 if ac_fn_c_try_compile "$LINENO"; then :
14976 eval "$as_ac_Header=yes"
14978 eval "$as_ac_Header=no"
14980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14982 eval ac_res=\$$as_ac_Header
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14984 $as_echo "$ac_res" >&6; }
14985 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14986 cat >>confdefs.h <<_ACEOF
14987 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14990 ac_header_dirent=$ac_hdr; break
14994 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14995 if test $ac_header_dirent = dirent.h; then
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14997 $as_echo_n "checking for library containing opendir... " >&6; }
14998 if ${ac_cv_search_opendir+:} false; then :
14999 $as_echo_n "(cached) " >&6
15001 ac_func_search_save_LIBS=$LIBS
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15005 /* Override any GCC internal prototype to avoid an error.
15006 Use char because int might match the return type of a GCC
15007 builtin and then its argument prototype would still apply. */
15020 for ac_lib in '' dir; do
15021 if test -z "$ac_lib"; then
15022 ac_res="none required"
15025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15027 if ac_fn_c_try_link "$LINENO"; then :
15028 ac_cv_search_opendir=$ac_res
15030 rm -f core conftest.err conftest.$ac_objext \
15032 if ${ac_cv_search_opendir+:} false; then :
15036 if ${ac_cv_search_opendir+:} false; then :
15039 ac_cv_search_opendir=no
15041 rm conftest.$ac_ext
15042 LIBS=$ac_func_search_save_LIBS
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15045 $as_echo "$ac_cv_search_opendir" >&6; }
15046 ac_res=$ac_cv_search_opendir
15047 if test "$ac_res" != no; then :
15048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15054 $as_echo_n "checking for library containing opendir... " >&6; }
15055 if ${ac_cv_search_opendir+:} false; then :
15056 $as_echo_n "(cached) " >&6
15058 ac_func_search_save_LIBS=$LIBS
15059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060 /* end confdefs.h. */
15062 /* Override any GCC internal prototype to avoid an error.
15063 Use char because int might match the return type of a GCC
15064 builtin and then its argument prototype would still apply. */
15077 for ac_lib in '' x; do
15078 if test -z "$ac_lib"; then
15079 ac_res="none required"
15082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15084 if ac_fn_c_try_link "$LINENO"; then :
15085 ac_cv_search_opendir=$ac_res
15087 rm -f core conftest.err conftest.$ac_objext \
15089 if ${ac_cv_search_opendir+:} false; then :
15093 if ${ac_cv_search_opendir+:} false; then :
15096 ac_cv_search_opendir=no
15098 rm conftest.$ac_ext
15099 LIBS=$ac_func_search_save_LIBS
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15102 $as_echo "$ac_cv_search_opendir" >&6; }
15103 ac_res=$ac_cv_search_opendir
15104 if test "$ac_res" != no; then :
15105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15112 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15113 if ${ac_cv_header_time+:} false; then :
15114 $as_echo_n "(cached) " >&6
15116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117 /* end confdefs.h. */
15118 #include <sys/types.h>
15119 #include <sys/time.h>
15125 if ((struct tm *) 0)
15131 if ac_fn_c_try_compile "$LINENO"; then :
15132 ac_cv_header_time=yes
15134 ac_cv_header_time=no
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15139 $as_echo "$ac_cv_header_time" >&6; }
15140 if test $ac_cv_header_time = yes; then
15142 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15147 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15148 if ${ac_cv_header_stdbool_h+:} false; then :
15149 $as_echo_n "(cached) " >&6
15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152 /* end confdefs.h. */
15154 #include <stdbool.h>
15156 "error: bool is not defined"
15159 "error: false is not defined"
15162 "error: false is not 0"
15165 "error: true is not defined"
15168 "error: true is not 1"
15170 #ifndef __bool_true_false_are_defined
15171 "error: __bool_true_false_are_defined is not defined"
15174 struct s { _Bool s: 1; _Bool t; } s;
15176 char a[true == 1 ? 1 : -1];
15177 char b[false == 0 ? 1 : -1];
15178 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15179 char d[(bool) 0.5 == true ? 1 : -1];
15180 /* See body of main program for 'e'. */
15181 char f[(_Bool) 0.0 == false ? 1 : -1];
15183 char h[sizeof (_Bool)];
15184 char i[sizeof s.t];
15185 enum { j = false, k = true, l = false * true, m = true * 256 };
15186 /* The following fails for
15187 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15189 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15190 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15191 /* Catch a bug in an HP-UX C compiler. See
15192 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15193 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15205 /* Refer to every declared value, to avoid compiler optimizations. */
15206 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15207 + !m + !n + !o + !p + !q + !pq);
15213 if ac_fn_c_try_compile "$LINENO"; then :
15214 ac_cv_header_stdbool_h=yes
15216 ac_cv_header_stdbool_h=no
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15221 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15222 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15223 if test "x$ac_cv_type__Bool" = xyes; then :
15225 cat >>confdefs.h <<_ACEOF
15226 #define HAVE__BOOL 1
15232 if test $ac_cv_header_stdbool_h = yes; then
15234 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
15239 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
15240 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
15241 $as_echo_n "(cached) " >&6
15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h. */
15245 #include <sys/types.h>
15249 return makedev(0, 0);
15254 if ac_fn_c_try_link "$LINENO"; then :
15255 ac_cv_header_sys_types_h_makedev=yes
15257 ac_cv_header_sys_types_h_makedev=no
15259 rm -f core conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
15264 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
15266 if test $ac_cv_header_sys_types_h_makedev = no; then
15267 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
15268 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
15270 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
15276 if test $ac_cv_header_sys_mkdev_h = no; then
15277 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
15278 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
15280 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
15288 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
15290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15291 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15292 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15293 cat >>confdefs.h <<_ACEOF
15294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15301 for ac_header in procfs.h sys/procfs.h
15303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15304 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15305 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15306 cat >>confdefs.h <<_ACEOF
15307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15309 ac_fn_c_check_member "$LINENO" "struct psinfo" "pr_ttydev" "ac_cv_member_struct_psinfo_pr_ttydev" "$ac_includes_default
15310 #ifdef HAVE_PROCFS_H
15311 #include <procfs.h>
15313 #ifdef HAVE_SYS_PROCFS_H
15314 #include <sys/procfs.h>
15318 if test "x$ac_cv_member_struct_psinfo_pr_ttydev" = xyes; then :
15320 cat >>confdefs.h <<_ACEOF
15321 #define HAVE_STRUCT_PSINFO_PR_TTYDEV 1
15324 for ac_func in _ttyname_dev
15326 ac_fn_c_check_func "$LINENO" "_ttyname_dev" "ac_cv_func__ttyname_dev"
15327 if test "x$ac_cv_func__ttyname_dev" = xyes; then :
15328 cat >>confdefs.h <<_ACEOF
15329 #define HAVE__TTYNAME_DEV 1
15342 # Check whether --enable-largefile was given.
15343 if test "${enable_largefile+set}" = set; then :
15344 enableval=$enable_largefile;
15347 if test "$enable_largefile" != no; then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15350 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15351 if ${ac_cv_sys_largefile_CC+:} false; then :
15352 $as_echo_n "(cached) " >&6
15354 ac_cv_sys_largefile_CC=no
15355 if test "$GCC" != yes; then
15358 # IRIX 6.2 and later do not support large files by default,
15359 # so use the C compiler's -n32 option if that helps.
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362 #include <sys/types.h>
15363 /* Check that off_t can represent 2**63 - 1 correctly.
15364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15365 since some C++ compilers masquerading as C compilers
15366 incorrectly reject 9223372036854775807. */
15367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15369 && LARGE_OFF_T % 2147483647 == 1)
15379 if ac_fn_c_try_compile "$LINENO"; then :
15382 rm -f core conftest.err conftest.$ac_objext
15384 if ac_fn_c_try_compile "$LINENO"; then :
15385 ac_cv_sys_largefile_CC=' -n32'; break
15387 rm -f core conftest.err conftest.$ac_objext
15391 rm -f conftest.$ac_ext
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15395 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15396 if test "$ac_cv_sys_largefile_CC" != no; then
15397 CC=$CC$ac_cv_sys_largefile_CC
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15401 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15402 if ${ac_cv_sys_file_offset_bits+:} false; then :
15403 $as_echo_n "(cached) " >&6
15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408 #include <sys/types.h>
15409 /* Check that off_t can represent 2**63 - 1 correctly.
15410 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15411 since some C++ compilers masquerading as C compilers
15412 incorrectly reject 9223372036854775807. */
15413 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15414 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15415 && LARGE_OFF_T % 2147483647 == 1)
15425 if ac_fn_c_try_compile "$LINENO"; then :
15426 ac_cv_sys_file_offset_bits=no; break
15428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15431 #define _FILE_OFFSET_BITS 64
15432 #include <sys/types.h>
15433 /* Check that off_t can represent 2**63 - 1 correctly.
15434 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15435 since some C++ compilers masquerading as C compilers
15436 incorrectly reject 9223372036854775807. */
15437 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15438 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15439 && LARGE_OFF_T % 2147483647 == 1)
15449 if ac_fn_c_try_compile "$LINENO"; then :
15450 ac_cv_sys_file_offset_bits=64; break
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453 ac_cv_sys_file_offset_bits=unknown
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15458 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15459 case $ac_cv_sys_file_offset_bits in #(
15462 cat >>confdefs.h <<_ACEOF
15463 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15468 if test $ac_cv_sys_file_offset_bits = unknown; then
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15470 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15471 if ${ac_cv_sys_large_files+:} false; then :
15472 $as_echo_n "(cached) " >&6
15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h. */
15477 #include <sys/types.h>
15478 /* Check that off_t can represent 2**63 - 1 correctly.
15479 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15480 since some C++ compilers masquerading as C compilers
15481 incorrectly reject 9223372036854775807. */
15482 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15483 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15484 && LARGE_OFF_T % 2147483647 == 1)
15494 if ac_fn_c_try_compile "$LINENO"; then :
15495 ac_cv_sys_large_files=no; break
15497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h. */
15500 #define _LARGE_FILES 1
15501 #include <sys/types.h>
15502 /* Check that off_t can represent 2**63 - 1 correctly.
15503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15504 since some C++ compilers masquerading as C compilers
15505 incorrectly reject 9223372036854775807. */
15506 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15508 && LARGE_OFF_T % 2147483647 == 1)
15518 if ac_fn_c_try_compile "$LINENO"; then :
15519 ac_cv_sys_large_files=1; break
15521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15522 ac_cv_sys_large_files=unknown
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15527 $as_echo "$ac_cv_sys_large_files" >&6; }
15528 case $ac_cv_sys_large_files in #(
15531 cat >>confdefs.h <<_ACEOF
15532 #define _LARGE_FILES $ac_cv_sys_large_files
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
15543 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
15544 if ${sudo_cv_xopen_source_extended+:} false; then :
15545 $as_echo_n "(cached) " >&6
15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15549 $ac_includes_default
15550 #include <sys/socket.h>
15559 if ac_fn_c_try_compile "$LINENO"; then :
15560 sudo_cv_xopen_source_extended=no
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565 #define _XOPEN_SOURCE_EXTENDED
15566 $ac_includes_default
15567 #include <sys/socket.h>
15576 if ac_fn_c_try_compile "$LINENO"; then :
15577 sudo_cv_xopen_source_extended=yes
15579 sudo_cv_xopen_source_extended=error
15581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
15587 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
15588 if test "$sudo_cv_xopen_source_extended" = "yes"; then
15589 OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
15590 cat >>confdefs.h <<\EOF
15591 #define _XOPEN_SOURCE_EXTENDED 1
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15598 $as_echo_n "checking POSIX termios... " >&6; }
15599 if ${ac_cv_sys_posix_termios+:} false; then :
15600 $as_echo_n "(cached) " >&6
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15604 #include <sys/types.h>
15605 #include <unistd.h>
15606 #include <termios.h>
15611 /* SunOS 4.0.3 has termios.h but not the library calls. */
15617 if ac_fn_c_try_link "$LINENO"; then :
15618 ac_cv_sys_posix_termios=yes
15620 ac_cv_sys_posix_termios=no
15622 rm -f core conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15626 $as_echo "$ac_cv_sys_posix_termios" >&6; }
15628 if test "$ac_cv_sys_posix_termios" != "yes"; then
15629 as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
15633 if test X"$ac_cv_header_paths_h" = X"yes"; then
15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15635 /* end confdefs.h. */
15636 $ac_includes_default
15641 char *p = _PATH_MAILDIR;
15646 if ac_fn_c_try_compile "$LINENO"; then :
15649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651 if test $maildir = no; then
15652 # Solaris has maillock.h which defines MAILDIR
15653 for ac_header in maillock.h
15655 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
15656 if test "x$ac_cv_header_maillock_h" = xyes; then :
15657 cat >>confdefs.h <<_ACEOF
15658 #define HAVE_MAILLOCK_H 1
15661 cat >>confdefs.h <<\EOF
15662 #define _PATH_MAILDIR MAILDIR
15671 if test $maildir = no; then
15672 for d in /var/mail /var/spool/mail /usr/spool/mail; do
15673 if test -d "$d"; then
15675 cat >>confdefs.h <<EOF
15676 #define _PATH_MAILDIR "$d"
15682 if test $maildir = no; then
15683 # unable to find mail dir, hope for the best
15684 cat >>confdefs.h <<EOF
15685 #define _PATH_MAILDIR "/var/mail"
15692 if test ${with_logincap-'no'} != "no"; then
15693 for ac_header in login_cap.h
15695 ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
15696 if test "x$ac_cv_header_login_cap_h" = xyes; then :
15697 cat >>confdefs.h <<_ACEOF
15698 #define HAVE_LOGIN_CAP_H 1
15700 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
15703 SUDO_LIBS="${SUDO_LIBS} -lutil"
15704 SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
15713 if test ${with_project-'no'} != "no"; then
15714 ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
15715 if test "x$ac_cv_header_project_h" = xyes; then :
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
15718 $as_echo_n "checking for setproject in -lproject... " >&6; }
15719 if ${ac_cv_lib_project_setproject+:} false; then :
15720 $as_echo_n "(cached) " >&6
15722 ac_check_lib_save_LIBS=$LIBS
15723 LIBS="-lproject $LIBS"
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15727 /* Override any GCC internal prototype to avoid an error.
15728 Use char because int might match the return type of a GCC
15729 builtin and then its argument prototype would still apply. */
15733 char setproject ();
15737 return setproject ();
15742 if ac_fn_c_try_link "$LINENO"; then :
15743 ac_cv_lib_project_setproject=yes
15745 ac_cv_lib_project_setproject=no
15747 rm -f core conftest.err conftest.$ac_objext \
15748 conftest$ac_exeext conftest.$ac_ext
15749 LIBS=$ac_check_lib_save_LIBS
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
15752 $as_echo "$ac_cv_lib_project_setproject" >&6; }
15753 if test "x$ac_cv_lib_project_setproject" = xyes; then :
15755 $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
15757 SUDO_LIBS="${SUDO_LIBS} -lproject"
15766 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15767 if test "x$ac_cv_type_mode_t" = xyes; then :
15771 cat >>confdefs.h <<_ACEOF
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15778 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15779 if ${ac_cv_type_uid_t+:} false; then :
15780 $as_echo_n "(cached) " >&6
15782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783 /* end confdefs.h. */
15784 #include <sys/types.h>
15787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15788 $EGREP "uid_t" >/dev/null 2>&1; then :
15789 ac_cv_type_uid_t=yes
15791 ac_cv_type_uid_t=no
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15797 $as_echo "$ac_cv_type_uid_t" >&6; }
15798 if test $ac_cv_type_uid_t = no; then
15800 $as_echo "#define uid_t int" >>confdefs.h
15803 $as_echo "#define gid_t int" >>confdefs.h
15807 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
15808 if test "x$ac_cv_type___signed_char" = xyes; then :
15811 ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
15812 if test "x$ac_cv_type_signed_char" = xyes; then :
15813 $as_echo "#define __signed signed" >>confdefs.h
15816 $as_echo "#define __signed /**/" >>confdefs.h
15822 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
15823 #include <signal.h>
15825 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15828 $as_echo "#define sig_atomic_t int" >>confdefs.h
15832 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
15833 #include <signal.h>
15835 if test "x$ac_cv_type_sigaction_t" = xyes; then :
15837 cat >>confdefs.h <<_ACEOF
15838 #define HAVE_SIGACTION_T 1
15844 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
15845 #if TIME_WITH_SYS_TIME
15846 # include <sys/time.h>
15850 if test "x$ac_cv_type_struct_timespec" = xyes; then :
15852 cat >>confdefs.h <<_ACEOF
15853 #define HAVE_STRUCT_TIMESPEC 1
15859 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
15860 #include <netinet/in.h>
15862 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
15864 cat >>confdefs.h <<_ACEOF
15865 #define HAVE_STRUCT_IN6_ADDR 1
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15873 $as_echo_n "checking for long long int... " >&6; }
15874 if ${ac_cv_type_long_long_int+:} false; then :
15875 $as_echo_n "(cached) " >&6
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15880 /* For now, do not test the preprocessor; as of 2007 there are too many
15881 implementations with broken preprocessors. Perhaps this can
15882 be revisited in 2012. In the meantime, code should not expect
15883 #if to work with literals wider than 32 bits. */
15884 /* Test literals. */
15885 long long int ll = 9223372036854775807ll;
15886 long long int nll = -9223372036854775807LL;
15887 unsigned long long int ull = 18446744073709551615ULL;
15888 /* Test constant expressions. */
15889 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15891 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15897 /* Test availability of runtime routines for shift and division. */
15898 long long int llmax = 9223372036854775807ll;
15899 unsigned long long int ullmax = 18446744073709551615ull;
15900 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15901 | (llmax / ll) | (llmax % ll)
15902 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15903 | (ullmax / ull) | (ullmax % ull));
15909 if ac_fn_c_try_link "$LINENO"; then :
15910 if test "$cross_compiling" = yes; then :
15911 ac_cv_type_long_long_int=yes
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15915 #include <limits.h>
15918 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15919 # define LLONG_MAX (HALF - 1 + HALF)
15924 long long int n = 1;
15928 long long int m = n << i;
15931 if (LLONG_MAX / 2 < m)
15939 if ac_fn_c_try_run "$LINENO"; then :
15940 ac_cv_type_long_long_int=yes
15942 ac_cv_type_long_long_int=no
15944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15945 conftest.$ac_objext conftest.beam conftest.$ac_ext
15949 ac_cv_type_long_long_int=no
15951 rm -f core conftest.err conftest.$ac_objext \
15952 conftest$ac_exeext conftest.$ac_ext
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15955 $as_echo "$ac_cv_type_long_long_int" >&6; }
15956 if test $ac_cv_type_long_long_int = yes; then
15958 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15962 # The cast to long int works around a bug in the HP C Compiler
15963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15965 # This bug is HP SR number 8606223364.
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
15967 $as_echo_n "checking size of long int... " >&6; }
15968 if ${ac_cv_sizeof_long_int+:} false; then :
15969 $as_echo_n "(cached) " >&6
15971 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
15974 if test "$ac_cv_type_long_int" = yes; then
15975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15977 as_fn_error 77 "cannot compute sizeof (long int)
15978 See \`config.log' for more details" "$LINENO" 5; }
15980 ac_cv_sizeof_long_int=0
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
15986 $as_echo "$ac_cv_sizeof_long_int" >&6; }
15990 cat >>confdefs.h <<_ACEOF
15991 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15995 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15996 if test "x$ac_cv_type_size_t" = xyes; then :
16000 cat >>confdefs.h <<_ACEOF
16001 #define size_t unsigned int
16006 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16007 if test "x$ac_cv_type_ssize_t" = xyes; then :
16011 cat >>confdefs.h <<_ACEOF
16012 #define ssize_t int
16017 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
16018 if test "x$ac_cv_type_dev_t" = xyes; then :
16022 cat >>confdefs.h <<_ACEOF
16028 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
16029 if test "x$ac_cv_type_ino_t" = xyes; then :
16033 cat >>confdefs.h <<_ACEOF
16034 #define ino_t unsigned int
16039 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16040 $ac_includes_default
16041 #include <sys/socket.h>
16043 if test "x$ac_cv_type_socklen_t" = xyes; then :
16046 $as_echo "#define socklen_t unsigned int" >>confdefs.h
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
16052 $as_echo_n "checking max length of uid_t... " >&6; }
16053 if ${sudo_cv_uid_t_len+:} false; then :
16054 $as_echo_n "(cached) " >&6
16057 if test "$cross_compiling" = yes; then :
16058 sudo_cv_uid_t_len=10
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16064 #include <limits.h>
16065 #include <sys/types.h>
16066 #include <sys/param.h>
16070 uid_t u = (uid_t) -1;
16072 if ((f = fopen("conftestdata", "w")) == NULL)
16075 (void) sprintf(b, "%lu", (unsigned long) u);
16076 (void) fprintf(f, "%d\n", strlen(b));
16081 if ac_fn_c_try_run "$LINENO"; then :
16082 sudo_cv_uid_t_len=`cat conftestdata`
16084 sudo_cv_uid_t_len=10
16086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16087 conftest.$ac_objext conftest.beam conftest.$ac_ext
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
16095 $as_echo "$sudo_cv_uid_t_len" >&6; }
16097 cat >>confdefs.h <<_ACEOF
16098 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
16103 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
16104 #include <sys/socket.h>
16107 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
16109 $as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
16115 CFLAGS="$CFLAGS $OSDEFS"
16116 if test $ac_cv_header_utmpx_h = "yes"; then
16117 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
16118 #include <sys/types.h>
16122 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
16124 cat >>confdefs.h <<_ACEOF
16125 #define HAVE_STRUCT_UTMPX_UT_ID 1
16130 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
16131 #include <sys/types.h>
16135 if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
16137 cat >>confdefs.h <<_ACEOF
16138 #define HAVE_STRUCT_UTMPX_UT_PID 1
16143 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
16144 #include <sys/types.h>
16148 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
16150 cat >>confdefs.h <<_ACEOF
16151 #define HAVE_STRUCT_UTMPX_UT_TV 1
16156 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
16157 #include <sys/types.h>
16161 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
16163 cat >>confdefs.h <<_ACEOF
16164 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
16170 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
16171 #include <sys/types.h>
16175 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
16177 cat >>confdefs.h <<_ACEOF
16178 #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
16181 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16185 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
16186 #include <sys/types.h>
16190 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
16192 cat >>confdefs.h <<_ACEOF
16193 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16196 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16204 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
16205 #include <sys/types.h>
16209 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
16211 cat >>confdefs.h <<_ACEOF
16212 #define HAVE_STRUCT_UTMP_UT_ID 1
16217 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
16218 #include <sys/types.h>
16222 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
16224 cat >>confdefs.h <<_ACEOF
16225 #define HAVE_STRUCT_UTMP_UT_PID 1
16230 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
16231 #include <sys/types.h>
16235 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
16237 cat >>confdefs.h <<_ACEOF
16238 #define HAVE_STRUCT_UTMP_UT_TV 1
16243 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
16244 #include <sys/types.h>
16248 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
16250 cat >>confdefs.h <<_ACEOF
16251 #define HAVE_STRUCT_UTMP_UT_TYPE 1
16256 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
16257 #include <sys/types.h>
16261 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
16263 cat >>confdefs.h <<_ACEOF
16264 #define HAVE_STRUCT_UTMP_UT_USER 1
16270 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
16271 #include <sys/types.h>
16275 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
16277 cat >>confdefs.h <<_ACEOF
16278 #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
16281 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16285 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
16286 #include <sys/types.h>
16290 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
16292 cat >>confdefs.h <<_ACEOF
16293 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16296 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
16307 $as_echo_n "checking type of array argument to getgroups... " >&6; }
16308 if ${ac_cv_type_getgroups+:} false; then :
16309 $as_echo_n "(cached) " >&6
16311 if test "$cross_compiling" = yes; then :
16312 ac_cv_type_getgroups=cross
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16316 /* Thanks to Mike Rendell for this test. */
16317 $ac_includes_default
16320 #define MAX(x, y) ((x) > (y) ? (x) : (y))
16325 gid_t gidset[NGID];
16327 union { gid_t gval; long int lval; } val;
16330 for (i = 0; i < NGID; i++)
16331 gidset[i] = val.gval;
16332 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16334 /* Exit non-zero if getgroups seems to require an array of ints. This
16335 happens when gid_t is short int but getgroups modifies an array
16337 return n > 0 && gidset[n] != val.gval;
16340 if ac_fn_c_try_run "$LINENO"; then :
16341 ac_cv_type_getgroups=gid_t
16343 ac_cv_type_getgroups=int
16345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16346 conftest.$ac_objext conftest.beam conftest.$ac_ext
16349 if test $ac_cv_type_getgroups = cross; then
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h. */
16352 #include <unistd.h>
16355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16356 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
16357 ac_cv_type_getgroups=gid_t
16359 ac_cv_type_getgroups=int
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
16366 $as_echo "$ac_cv_type_getgroups" >&6; }
16368 cat >>confdefs.h <<_ACEOF
16369 #define GETGROUPS_T $ac_cv_type_getgroups
16373 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16374 if test "x$ac_cv_type_size_t" = xyes; then :
16378 cat >>confdefs.h <<_ACEOF
16379 #define size_t unsigned int
16384 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16385 if test "x$ac_cv_func_getgroups" = xyes; then :
16390 # If we don't yet have getgroups, see if it's in -lbsd.
16391 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16393 if test $ac_cv_func_getgroups = no; then
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16395 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
16396 if ${ac_cv_lib_bsd_getgroups+:} false; then :
16397 $as_echo_n "(cached) " >&6
16399 ac_check_lib_save_LIBS=$LIBS
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16404 /* Override any GCC internal prototype to avoid an error.
16405 Use char because int might match the return type of a GCC
16406 builtin and then its argument prototype would still apply. */
16414 return getgroups ();
16419 if ac_fn_c_try_link "$LINENO"; then :
16420 ac_cv_lib_bsd_getgroups=yes
16422 ac_cv_lib_bsd_getgroups=no
16424 rm -f core conftest.err conftest.$ac_objext \
16425 conftest$ac_exeext conftest.$ac_ext
16426 LIBS=$ac_check_lib_save_LIBS
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16429 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16430 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16431 GETGROUPS_LIB=-lbsd
16436 # Run the program to test the functionality of the system-supplied
16437 # getgroups function only if there is such a function.
16438 if test $ac_cv_func_getgroups = yes; then
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16440 $as_echo_n "checking for working getgroups... " >&6; }
16441 if ${ac_cv_func_getgroups_works+:} false; then :
16442 $as_echo_n "(cached) " >&6
16444 if test "$cross_compiling" = yes; then :
16445 ac_cv_func_getgroups_works=no
16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448 /* end confdefs.h. */
16449 $ac_includes_default
16453 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
16454 return getgroups (0, 0) == -1;
16459 if ac_fn_c_try_run "$LINENO"; then :
16460 ac_cv_func_getgroups_works=yes
16462 ac_cv_func_getgroups_works=no
16464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16465 conftest.$ac_objext conftest.beam conftest.$ac_ext
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16471 $as_echo "$ac_cv_func_getgroups_works" >&6; }
16473 ac_cv_func_getgroups_works=no
16475 if test $ac_cv_func_getgroups_works = yes; then
16477 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16482 for ac_func in glob strrchr sysconf tzset strftime setenv \
16483 regcomp setlocale nl_langinfo mbr_check_membership \
16486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16487 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16488 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16489 cat >>confdefs.h <<_ACEOF
16490 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16496 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
16497 if test "x$ac_cv_func_getgrouplist" = xyes; then :
16498 $as_echo "#define HAVE_GETGROUPLIST 1" >>confdefs.h
16501 case " $LIBOBJS " in
16502 *" getgrouplist.$ac_objext "* ) ;;
16503 *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
16510 for ac_func in getline
16512 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16513 if test "x$ac_cv_func_getline" = xyes; then :
16514 cat >>confdefs.h <<_ACEOF
16515 #define HAVE_GETLINE 1
16520 case " $LIBOBJS " in
16521 *" getline.$ac_objext "* ) ;;
16522 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16526 for ac_func in fgetln
16528 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
16529 if test "x$ac_cv_func_fgetln" = xyes; then :
16530 cat >>confdefs.h <<_ACEOF
16531 #define HAVE_FGETLN 1
16541 O_CPPFLAGS="$CPPFLAGS"
16542 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
16543 ac_fn_c_check_func "$LINENO" "__sprintf_chk" "ac_cv_func___sprintf_chk"
16544 if test "x$ac_cv_func___sprintf_chk" = xyes; then :
16546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547 /* end confdefs.h. */
16552 char buf[4]; (void)sprintf(buf, "%s", "foo");
16557 if ac_fn_c_try_link "$LINENO"; then :
16558 OSDEFS="${OSDEFS} -D_FORTIFY_SOURCE=2"
16560 rm -f core conftest.err conftest.$ac_objext \
16561 conftest$ac_exeext conftest.$ac_ext
16565 CPPFLAGS="$O_CPPFLAGS"
16568 for ac_func in getutxid getutid
16570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16571 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16572 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16573 cat >>confdefs.h <<_ACEOF
16574 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16576 utmp_style=POSIX; break
16580 if test "$utmp_style" = "LEGACY"; then
16581 for ac_func in getttyent ttyslot
16583 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16584 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16585 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16586 cat >>confdefs.h <<_ACEOF
16587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16595 for ac_func in sysctl
16597 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
16598 if test "x$ac_cv_func_sysctl" = xyes; then :
16599 cat >>confdefs.h <<_ACEOF
16600 #define HAVE_SYSCTL 1
16602 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_tdev" "ac_cv_member_struct_kinfo_proc_ki_tdev" "
16603 #include <sys/param.h>
16604 #include <sys/sysctl.h>
16605 #include <sys/user.h>
16608 if test "x$ac_cv_member_struct_kinfo_proc_ki_tdev" = xyes; then :
16610 cat >>confdefs.h <<_ACEOF
16611 #define HAVE_STRUCT_KINFO_PROC_KI_TDEV 1
16617 ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_tdev" "ac_cv_member_struct_kinfo_proc2_p_tdev" "
16618 #include <sys/param.h>
16619 #include <sys/sysctl.h>
16622 if test "x$ac_cv_member_struct_kinfo_proc2_p_tdev" = xyes; then :
16624 cat >>confdefs.h <<_ACEOF
16625 #define HAVE_STRUCT_KINFO_PROC2_P_TDEV 1
16631 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_tdev" "ac_cv_member_struct_kinfo_proc_p_tdev" "
16632 #include <sys/param.h>
16633 #include <sys/sysctl.h>
16636 if test "x$ac_cv_member_struct_kinfo_proc_p_tdev" = xyes; then :
16638 cat >>confdefs.h <<_ACEOF
16639 #define HAVE_STRUCT_KINFO_PROC_P_TDEV 1
16645 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_eproc.e_tdev" "ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" "
16646 #include <sys/param.h>
16647 #include <sys/sysctl.h>
16650 if test "x$ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" = xyes; then :
16652 cat >>confdefs.h <<_ACEOF
16653 #define HAVE_STRUCT_KINFO_PROC_KP_EPROC_E_TDEV 1
16673 for ac_func in openpty
16675 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
16676 if test "x$ac_cv_func_openpty" = xyes; then :
16677 cat >>confdefs.h <<_ACEOF
16678 #define HAVE_OPENPTY 1
16680 for ac_header in libutil.h util.h pty.h
16682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16683 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16685 cat >>confdefs.h <<_ACEOF
16686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
16696 $as_echo_n "checking for openpty in -lutil... " >&6; }
16697 if ${ac_cv_lib_util_openpty+:} false; then :
16698 $as_echo_n "(cached) " >&6
16700 ac_check_lib_save_LIBS=$LIBS
16701 LIBS="-lutil $LIBS"
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16705 /* Override any GCC internal prototype to avoid an error.
16706 Use char because int might match the return type of a GCC
16707 builtin and then its argument prototype would still apply. */
16720 if ac_fn_c_try_link "$LINENO"; then :
16721 ac_cv_lib_util_openpty=yes
16723 ac_cv_lib_util_openpty=no
16725 rm -f core conftest.err conftest.$ac_objext \
16726 conftest$ac_exeext conftest.$ac_ext
16727 LIBS=$ac_check_lib_save_LIBS
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
16730 $as_echo "$ac_cv_lib_util_openpty" >&6; }
16731 if test "x$ac_cv_lib_util_openpty" = xyes; then :
16733 for ac_header in libutil.h util.h pty.h
16735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16736 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16738 cat >>confdefs.h <<_ACEOF
16739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16746 case "$SUDO_LIBS" in
16748 *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
16750 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
16755 for ac_func in _getpty
16757 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
16758 if test "x$ac_cv_func__getpty" = xyes; then :
16759 cat >>confdefs.h <<_ACEOF
16760 #define HAVE__GETPTY 1
16765 for ac_func in grantpt
16767 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
16768 if test "x$ac_cv_func_grantpt" = xyes; then :
16769 cat >>confdefs.h <<_ACEOF
16770 #define HAVE_GRANTPT 1
16773 for ac_func in posix_openpt
16775 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
16776 if test "x$ac_cv_func_posix_openpt" = xyes; then :
16777 cat >>confdefs.h <<_ACEOF
16778 #define HAVE_POSIX_OPENPT 1
16787 for ac_func in revoke
16789 ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
16790 if test "x$ac_cv_func_revoke" = xyes; then :
16791 cat >>confdefs.h <<_ACEOF
16792 #define HAVE_REVOKE 1
16813 for ac_func in unsetenv
16815 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16816 if test "x$ac_cv_func_unsetenv" = xyes; then :
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_UNSETENV 1
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
16821 $as_echo_n "checking whether unsetenv returns void... " >&6; }
16822 if ${sudo_cv_func_unsetenv_void+:} false; then :
16823 $as_echo_n "(cached) " >&6
16825 if test "$cross_compiling" = yes; then :
16826 sudo_cv_func_unsetenv_void=no
16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h. */
16830 $ac_includes_default
16837 return unsetenv("FOO") != 0;
16844 if ac_fn_c_try_run "$LINENO"; then :
16845 sudo_cv_func_unsetenv_void=no
16847 sudo_cv_func_unsetenv_void=yes
16849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16850 conftest.$ac_objext conftest.beam conftest.$ac_ext
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
16855 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
16856 if test $sudo_cv_func_unsetenv_void = yes; then
16858 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv takes a const argument" >&5
16866 $as_echo_n "checking whether putenv takes a const argument... " >&6; }
16867 if ${sudo_cv_func_putenv_const+:} false; then :
16868 $as_echo_n "(cached) " >&6
16870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h. */
16872 $ac_includes_default
16873 int putenv(const char *string) {return 0;}
16882 if ac_fn_c_try_compile "$LINENO"; then :
16883 sudo_cv_func_putenv_const=yes
16885 sudo_cv_func_putenv_const=no
16887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
16891 $as_echo "$sudo_cv_func_putenv_const" >&6; }
16892 if test $sudo_cv_func_putenv_const = yes; then
16894 $as_echo "#define PUTENV_CONST const" >>confdefs.h
16897 $as_echo "#define PUTENV_CONST /**/" >>confdefs.h
16901 if test -z "$SKIP_SETRESUID"; then
16902 for ac_func in setresuid
16904 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
16905 if test "x$ac_cv_func_setresuid" = xyes; then :
16906 cat >>confdefs.h <<_ACEOF
16907 #define HAVE_SETRESUID 1
16911 for ac_func in getresuid
16913 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
16914 if test "x$ac_cv_func_getresuid" = xyes; then :
16915 cat >>confdefs.h <<_ACEOF
16916 #define HAVE_GETRESUID 1
16927 if test -z "$SKIP_SETREUID"; then
16928 for ac_func in setreuid
16930 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
16931 if test "x$ac_cv_func_setreuid" = xyes; then :
16932 cat >>confdefs.h <<_ACEOF
16933 #define HAVE_SETREUID 1
16940 if test -z "$SKIP_SETEUID"; then
16941 for ac_func in seteuid
16943 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
16944 if test "x$ac_cv_func_seteuid" = xyes; then :
16945 cat >>confdefs.h <<_ACEOF
16946 #define HAVE_SETEUID 1
16953 if test X"$with_interfaces" != X"no"; then
16954 for ac_func in getifaddrs
16956 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
16957 if test "x$ac_cv_func_getifaddrs" = xyes; then :
16958 cat >>confdefs.h <<_ACEOF
16959 #define HAVE_GETIFADDRS 1
16961 for ac_func in freeifaddrs
16963 ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
16964 if test "x$ac_cv_func_freeifaddrs" = xyes; then :
16965 cat >>confdefs.h <<_ACEOF
16966 #define HAVE_FREEIFADDRS 1
16976 if test -z "$BROKEN_GETCWD"; then
16977 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
16978 if test "x$ac_cv_func_getcwd" = xyes; then :
16979 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
16982 case " $LIBOBJS " in
16983 *" getcwd.$ac_objext "* ) ;;
16984 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
16992 for ac_func in lockf flock
16994 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16995 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16996 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16997 cat >>confdefs.h <<_ACEOF
16998 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17004 for ac_func in innetgr _innetgr
17006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17007 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17008 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17009 cat >>confdefs.h <<_ACEOF
17010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17012 for ac_func in getdomainname
17014 ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
17015 if test "x$ac_cv_func_getdomainname" = xyes; then :
17016 cat >>confdefs.h <<_ACEOF
17017 #define HAVE_GETDOMAINNAME 1
17026 for ac_func in utimes
17028 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
17029 if test "x$ac_cv_func_utimes" = xyes; then :
17030 cat >>confdefs.h <<_ACEOF
17031 #define HAVE_UTIMES 1
17033 for ac_func in futimes futimesat
17035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17036 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17037 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17038 cat >>confdefs.h <<_ACEOF
17039 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17046 for ac_func in futime
17048 ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
17049 if test "x$ac_cv_func_futime" = xyes; then :
17050 cat >>confdefs.h <<_ACEOF
17051 #define HAVE_FUTIME 1
17056 case " $LIBOBJS " in
17057 *" utimes.$ac_objext "* ) ;;
17058 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17065 for ac_func in killpg
17067 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
17068 if test "x$ac_cv_func_killpg" = xyes; then :
17069 cat >>confdefs.h <<_ACEOF
17070 #define HAVE_KILLPG 1
17074 case " $LIBOBJS " in
17075 *" killpg.$ac_objext "* ) ;;
17076 *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
17084 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
17085 if ${sudo_cv_func_fnmatch+:} false; then :
17086 $as_echo_n "(cached) " >&6
17088 rm -f conftestdata; > conftestdata
17089 if test "$cross_compiling" = yes; then :
17090 sudo_cv_func_fnmatch=no
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h. */
17094 #include <fnmatch.h>
17095 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17097 if ac_fn_c_try_run "$LINENO"; then :
17098 sudo_cv_func_fnmatch=yes
17100 sudo_cv_func_fnmatch=no
17102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17103 conftest.$ac_objext conftest.beam conftest.$ac_ext
17106 rm -f core core.* *.core
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
17110 $as_echo "$sudo_cv_func_fnmatch" >&6; }
17111 if test $sudo_cv_func_fnmatch = yes; then :
17112 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
17115 case " $LIBOBJS " in
17116 *" fnmatch.$ac_objext "* ) ;;
17117 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17121 COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }fnm_test"
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
17125 $as_echo_n "checking for isblank... " >&6; }
17126 if ${sudo_cv_func_isblank+:} false; then :
17127 $as_echo_n "(cached) " >&6
17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17135 return (isblank('a'));
17140 if ac_fn_c_try_link "$LINENO"; then :
17141 sudo_cv_func_isblank=yes
17143 sudo_cv_func_isblank=no
17145 rm -f core conftest.err conftest.$ac_objext \
17146 conftest$ac_exeext conftest.$ac_ext
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
17149 $as_echo "$sudo_cv_func_isblank" >&6; }
17151 if test "$sudo_cv_func_isblank" = "yes"; then
17153 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
17156 case " $LIBOBJS " in
17157 *" isblank.$ac_objext "* ) ;;
17158 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17164 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
17165 if test "x$ac_cv_func_memrchr" = xyes; then :
17166 $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
17169 case " $LIBOBJS " in
17170 *" memrchr.$ac_objext "* ) ;;
17171 *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
17177 ac_fn_c_check_func "$LINENO" "pw_dup" "ac_cv_func_pw_dup"
17178 if test "x$ac_cv_func_pw_dup" = xyes; then :
17179 $as_echo "#define HAVE_PW_DUP 1" >>confdefs.h
17182 case " $LIBOBJS " in
17183 *" pw_dup.$ac_objext "* ) ;;
17184 *) LIBOBJS="$LIBOBJS pw_dup.$ac_objext"
17190 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17191 if test "x$ac_cv_func_strlcpy" = xyes; then :
17192 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17195 case " $LIBOBJS " in
17196 *" strlcpy.$ac_objext "* ) ;;
17197 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17203 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17204 if test "x$ac_cv_func_strlcat" = xyes; then :
17205 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
17208 case " $LIBOBJS " in
17209 *" strlcat.$ac_objext "* ) ;;
17210 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
17217 for ac_func in nanosleep
17219 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17220 if test "x$ac_cv_func_nanosleep" = xyes; then :
17221 cat >>confdefs.h <<_ACEOF
17222 #define HAVE_NANOSLEEP 1
17227 # On Solaris, nanosleep is in librt
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
17229 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
17230 if ${ac_cv_lib_rt_nanosleep+:} false; then :
17231 $as_echo_n "(cached) " >&6
17233 ac_check_lib_save_LIBS=$LIBS
17235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17236 /* end confdefs.h. */
17238 /* Override any GCC internal prototype to avoid an error.
17239 Use char because int might match the return type of a GCC
17240 builtin and then its argument prototype would still apply. */
17248 return nanosleep ();
17253 if ac_fn_c_try_link "$LINENO"; then :
17254 ac_cv_lib_rt_nanosleep=yes
17256 ac_cv_lib_rt_nanosleep=no
17258 rm -f core conftest.err conftest.$ac_objext \
17259 conftest$ac_exeext conftest.$ac_ext
17260 LIBS=$ac_check_lib_save_LIBS
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
17263 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
17264 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
17265 REPLAY_LIBS="${REPLAY_LIBS} -lrt"
17267 case " $LIBOBJS " in
17268 *" nanosleep.$ac_objext "* ) ;;
17269 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
17279 for ac_func in closefrom
17281 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
17282 if test "x$ac_cv_func_closefrom" = xyes; then :
17283 cat >>confdefs.h <<_ACEOF
17284 #define HAVE_CLOSEFROM 1
17288 case " $LIBOBJS " in
17289 *" closefrom.$ac_objext "* ) ;;
17290 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17294 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
17297 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
17298 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
17306 for ac_func in mkstemps mkdtemp
17308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17309 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17310 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17311 cat >>confdefs.h <<_ACEOF
17312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17317 for ac_func in random lrand48
17319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17320 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17321 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17322 cat >>confdefs.h <<_ACEOF
17323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17329 case " $LIBOBJS " in
17330 *" mktemp.$ac_objext "* ) ;;
17331 *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
17339 for ac_func in snprintf vsnprintf asprintf vasprintf
17341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17342 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17343 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17344 cat >>confdefs.h <<_ACEOF
17345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17353 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17354 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17355 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17356 $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
17358 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
17359 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
17360 $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
17365 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
17366 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
17367 $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
17374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17375 /* end confdefs.h. */
17376 #include <sys/types.h>
17377 #include <$ac_header_dirent>
17381 DIR *d; (void)dirfd(d);
17386 if ac_fn_c_try_link "$LINENO"; then :
17387 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h. */
17392 #include <sys/types.h>
17393 #include <$ac_header_dirent>
17397 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17402 if ac_fn_c_try_link "$LINENO"; then :
17403 $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
17406 rm -f core conftest.err conftest.$ac_objext \
17407 conftest$ac_exeext conftest.$ac_ext
17409 rm -f core conftest.err conftest.$ac_objext \
17410 conftest$ac_exeext conftest.$ac_ext
17411 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17412 $ac_includes_default
17413 #include <$ac_header_dirent>
17416 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17418 cat >>confdefs.h <<_ACEOF
17419 #define HAVE_STRUCT_DIRENT_D_TYPE 1
17425 if test -n "$NEED_SNPRINTF"; then
17426 case " $LIBOBJS " in
17427 *" snprintf.$ac_objext "* ) ;;
17428 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17433 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17434 if test "x$ac_cv_func_socket" = xyes; then :
17438 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17440 for lib in $libs; do
17441 case "$NET_LIBS" in
17443 *) _libs="$_libs $lib";;
17447 test -z "$libs" && continue
17448 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17449 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17451 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5
17453 $as_echo_n "checking for socket in -l$lib${5+ }$extralibs... " >&6; }
17454 if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17455 $as_echo_n "(cached) " >&6
17458 SUDO_CHECK_LIB_OLIBS="$LIBS"
17459 LIBS="$LIBS -l$lib${5+ }$extralibs"
17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461 /* end confdefs.h. */
17463 /* Override any GCC internal prototype to avoid an error.
17464 Use char because int might match the return type of a GCC
17465 builtin and then its argument prototype would still apply. */
17478 if ac_fn_c_try_link "$LINENO"; then :
17479 eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes
17481 eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no
17484 rm -f core conftest.err conftest.$ac_objext \
17485 conftest$ac_exeext conftest.$ac_ext
17486 LIBS="$SUDO_CHECK_LIB_OLIBS"
17490 if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17492 $as_echo "yes" >&6; }
17493 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17496 $as_echo "no" >&6; }
17504 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
17505 if test "x$ac_cv_func_inet_addr" = xyes; then :
17509 ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
17510 if test "x$ac_cv_func___inet_addr" = xyes; then :
17514 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17516 for lib in $libs; do
17517 case "$NET_LIBS" in
17519 *) _libs="$_libs $lib";;
17523 test -z "$libs" && continue
17524 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17525 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17527 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -l$lib${5+ }$extralibs" >&5
17529 $as_echo_n "checking for inet_addr in -l$lib${5+ }$extralibs... " >&6; }
17530 if { as_var=sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17531 $as_echo_n "(cached) " >&6
17534 SUDO_CHECK_LIB_OLIBS="$LIBS"
17535 LIBS="$LIBS -l$lib${5+ }$extralibs"
17536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537 /* end confdefs.h. */
17539 /* Override any GCC internal prototype to avoid an error.
17540 Use char because int might match the return type of a GCC
17541 builtin and then its argument prototype would still apply. */
17549 return inet_addr ();
17554 if ac_fn_c_try_link "$LINENO"; then :
17555 eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=yes
17557 eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=no
17560 rm -f core conftest.err conftest.$ac_objext \
17561 conftest$ac_exeext conftest.$ac_ext
17562 LIBS="$SUDO_CHECK_LIB_OLIBS"
17566 if eval test \$sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras = "yes"; then
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17568 $as_echo "yes" >&6; }
17569 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17572 $as_echo "no" >&6; }
17583 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
17584 if test "x$ac_cv_func_syslog" = xyes; then :
17588 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17590 for lib in $libs; do
17591 case "$NET_LIBS" in
17593 *) _libs="$_libs $lib";;
17597 test -z "$libs" && continue
17598 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17599 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17601 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5
17603 $as_echo_n "checking for syslog in -l$lib${5+ }$extralibs... " >&6; }
17604 if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17605 $as_echo_n "(cached) " >&6
17608 SUDO_CHECK_LIB_OLIBS="$LIBS"
17609 LIBS="$LIBS -l$lib${5+ }$extralibs"
17610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17611 /* end confdefs.h. */
17613 /* Override any GCC internal prototype to avoid an error.
17614 Use char because int might match the return type of a GCC
17615 builtin and then its argument prototype would still apply. */
17628 if ac_fn_c_try_link "$LINENO"; then :
17629 eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes
17631 eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no
17634 rm -f core conftest.err conftest.$ac_objext \
17635 conftest$ac_exeext conftest.$ac_ext
17636 LIBS="$SUDO_CHECK_LIB_OLIBS"
17640 if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17642 $as_echo "yes" >&6; }
17643 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17646 $as_echo "no" >&6; }
17654 for ac_func in getaddrinfo
17656 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17657 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17658 cat >>confdefs.h <<_ACEOF
17659 #define HAVE_GETADDRINFO 1
17665 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17667 for lib in $libs; do
17668 case "$NET_LIBS" in
17670 *) _libs="$_libs $lib";;
17674 test -z "$libs" && continue
17675 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17676 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17678 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib${5+ }$extralibs" >&5
17680 $as_echo_n "checking for getaddrinfo in -l$lib${5+ }$extralibs... " >&6; }
17681 if { as_var=sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17682 $as_echo_n "(cached) " >&6
17685 SUDO_CHECK_LIB_OLIBS="$LIBS"
17686 LIBS="$LIBS -l$lib${5+ }$extralibs"
17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17690 /* Override any GCC internal prototype to avoid an error.
17691 Use char because int might match the return type of a GCC
17692 builtin and then its argument prototype would still apply. */
17696 char getaddrinfo ();
17700 return getaddrinfo ();
17705 if ac_fn_c_try_link "$LINENO"; then :
17706 eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=yes
17708 eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=no
17711 rm -f core conftest.err conftest.$ac_objext \
17712 conftest$ac_exeext conftest.$ac_ext
17713 LIBS="$SUDO_CHECK_LIB_OLIBS"
17717 if eval test \$sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras = "yes"; then
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17719 $as_echo "yes" >&6; }
17720 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; found=yes; break
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17723 $as_echo "no" >&6; }
17728 if test X"$found" != X"no"; then
17729 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17736 for ac_func in getprogname
17738 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17739 if test "x$ac_cv_func_getprogname" = xyes; then :
17740 cat >>confdefs.h <<_ACEOF
17741 #define HAVE_GETPROGNAME 1
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
17747 $as_echo_n "checking for __progname... " >&6; }
17748 if ${sudo_cv___progname+:} false; then :
17749 $as_echo_n "(cached) " >&6
17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753 /* end confdefs.h. */
17758 extern char *__progname; (void)puts(__progname);
17763 if ac_fn_c_try_link "$LINENO"; then :
17764 sudo_cv___progname=yes
17766 sudo_cv___progname=no
17768 rm -f core conftest.err conftest.$ac_objext \
17769 conftest$ac_exeext conftest.$ac_ext
17772 if test "$sudo_cv___progname" = "yes"; then
17773 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17776 case " $LIBOBJS " in
17777 *" getprogname.$ac_objext "* ) ;;
17778 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
17784 $as_echo "$sudo_cv___progname" >&6; }
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
17790 $as_echo_n "checking for __func__... " >&6; }
17791 if ${sudo_cv___func__+:} false; then :
17792 $as_echo_n "(cached) " >&6
17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h. */
17801 (void)puts(__func__);
17806 if ac_fn_c_try_link "$LINENO"; then :
17807 sudo_cv___func__=yes
17809 sudo_cv___func__=no
17811 rm -f core conftest.err conftest.$ac_objext \
17812 conftest$ac_exeext conftest.$ac_ext
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___func__" >&5
17816 $as_echo "$sudo_cv___func__" >&6; }
17817 if test "$sudo_cv___func__" = "yes"; then
17818 $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
17820 elif test -n "$GCC"; then
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
17822 $as_echo_n "checking for __FUNCTION__... " >&6; }
17823 if ${sudo_cv___FUNCTION__+:} false; then :
17824 $as_echo_n "(cached) " >&6
17827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17828 /* end confdefs.h. */
17833 (void)puts(__FUNCTION__);
17838 if ac_fn_c_try_link "$LINENO"; then :
17839 sudo_cv___FUNCTION__=yes
17841 sudo_cv___FUNCTION__=no
17843 rm -f core conftest.err conftest.$ac_objext \
17844 conftest$ac_exeext conftest.$ac_ext
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___FUNCTION__" >&5
17848 $as_echo "$sudo_cv___FUNCTION__" >&6; }
17849 if test "$sudo_cv___FUNCTION__" = "yes"; then
17850 $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
17853 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
17858 # gettext() and friends may be located in libc (Linux and Solaris)
17859 # or in libintl. However, it is possible to have libintl installed
17860 # even when gettext() is present in libc. In the case of GNU libintl,
17861 # gettext() will be defined to gettext_libintl in libintl.h.
17862 # Since gcc prefers /usr/local/include to /usr/include, we need to
17863 # make sure we use the gettext() that matches the include file.
17864 if test "$enable_nls" != "no"; then
17865 if test "$enable_nls" != "yes"; then
17866 CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
17868 if test X"$with_rpath" = X"yes"; then
17870 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,+b,$enable_nls/lib"
17872 *) LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,-R$enable_nls/lib"
17876 LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
17878 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17879 blibpath_add="${blibpath_add}:$enable_nls/lib"
17884 for l in "libc" "-lintl" "-lintl -liconv"; do
17885 if test "$l" = "libc"; then
17886 # If user specified a dir for libintl ignore libc
17887 if test "$enable_nls" != "yes"; then
17890 gettext_name=sudo_cv_gettext
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
17892 $as_echo_n "checking for gettext... " >&6; }
17895 gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
17897 $as_echo_n "checking for gettext in $l... " >&6; }
17899 if eval \${$gettext_name+:} false; then :
17900 $as_echo_n "(cached) " >&6
17903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17906 #include <libintl.h>
17910 (void)gettext((char *)0);
17916 if ac_fn_c_try_link "$LINENO"; then :
17917 eval $gettext_name=yes
17919 eval $gettext_name=no
17922 rm -f core conftest.err conftest.$ac_objext \
17923 conftest$ac_exeext conftest.$ac_ext
17927 eval gettext_result="\$$gettext_name"
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
17929 $as_echo "$gettext_result" >&6; }
17930 test "$gettext_result" = "yes" && break
17934 if test "$sudo_cv_gettext" = "yes"; then
17935 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17938 elif test "$sudo_cv_gettext_lintl" = "yes"; then
17939 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17943 elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
17944 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17947 LIBINTL="-lintl -liconv"
17951 case "$enable_zlib" in
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
17954 $as_echo_n "checking for gzdopen in -lz... " >&6; }
17955 if ${ac_cv_lib_z_gzdopen+:} false; then :
17956 $as_echo_n "(cached) " >&6
17958 ac_check_lib_save_LIBS=$LIBS
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17963 /* Override any GCC internal prototype to avoid an error.
17964 Use char because int might match the return type of a GCC
17965 builtin and then its argument prototype would still apply. */
17978 if ac_fn_c_try_link "$LINENO"; then :
17979 ac_cv_lib_z_gzdopen=yes
17981 ac_cv_lib_z_gzdopen=no
17983 rm -f core conftest.err conftest.$ac_objext \
17984 conftest$ac_exeext conftest.$ac_ext
17985 LIBS=$ac_check_lib_save_LIBS
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
17988 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
17989 if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
17991 for ac_header in zlib.h
17993 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17994 if test "x$ac_cv_header_zlib_h" = xyes; then :
17995 cat >>confdefs.h <<_ACEOF
17996 #define HAVE_ZLIB_H 1
18000 enable_zlib=builtin
18012 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18020 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18022 CPPFLAGS="-I${enable_zlib}/include ${CPPFLAGS}"
18024 if test X"$with_rpath" = X"yes"; then
18026 *-*-hpux*) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
18028 *) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
18032 ZLIB="${ZLIB} -L$enable_zlib/lib"
18034 if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
18035 blibpath_add="${blibpath_add}:$enable_zlib/lib"
18041 if test X"$enable_zlib" = X"builtin"; then
18042 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18044 CPPFLAGS='-I$(top_builddir)/zlib -I$(top_srcdir)/zlib '"${CPPFLAGS}"
18045 ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
18047 ac_config_headers="$ac_config_headers zlib/zconf.h"
18049 ac_config_files="$ac_config_files zlib/Makefile"
18053 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
18054 $ac_includes_default
18058 if test "x$ac_cv_have_decl_errno" = xyes; then :
18064 cat >>confdefs.h <<_ACEOF
18065 #define HAVE_DECL_ERRNO $ac_have_decl
18069 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
18070 $ac_includes_default
18074 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
18080 cat >>confdefs.h <<_ACEOF
18081 #define HAVE_DECL_H_ERRNO $ac_have_decl
18085 for ac_func in strsignal
18087 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
18088 if test "x$ac_cv_func_strsignal" = xyes; then :
18089 cat >>confdefs.h <<_ACEOF
18090 #define HAVE_STRSIGNAL 1
18095 case " $LIBOBJS " in
18096 *" strsignal.$ac_objext "* ) ;;
18097 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
18101 HAVE_SIGLIST="false"
18102 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
18103 $ac_includes_default
18104 #include <signal.h>
18107 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
18113 cat >>confdefs.h <<_ACEOF
18114 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
18116 if test $ac_have_decl = 1; then :
18118 HAVE_SIGLIST="true"
18122 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
18123 $ac_includes_default
18124 #include <signal.h>
18127 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
18133 cat >>confdefs.h <<_ACEOF
18134 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
18136 if test $ac_have_decl = 1; then :
18138 HAVE_SIGLIST="true"
18142 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
18143 $ac_includes_default
18144 #include <signal.h>
18147 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
18153 cat >>confdefs.h <<_ACEOF
18154 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
18156 if test $ac_have_decl = 1; then :
18158 HAVE_SIGLIST="true"
18163 if test "$HAVE_SIGLIST" != "true"; then
18164 case " $LIBOBJS " in
18165 *" siglist.$ac_objext "* ) ;;
18166 *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
18176 if test ${with_netsvc-"no"} != "no"; then
18177 cat >>confdefs.h <<EOF
18178 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
18181 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
18182 elif test ${with_nsswitch-"yes"} != "no"; then
18183 cat >>confdefs.h <<EOF
18184 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
18187 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
18191 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
18192 for auth in $AUTH_EXCL_DEF; do
18194 AIX_AUTH) with_aixauth=maybe;;
18195 BSD_AUTH) with_bsdauth=maybe;;
18196 PAM) with_pam=maybe;;
18197 SIA) CHECKSIA=true;;
18202 if test ${with_pam-"no"} != "no"; then
18204 # Check for pam_start() in libpam first, then for pam_appl.h.
18207 as_ac_Lib=`$as_echo "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | $as_tr_sh`
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18209 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18210 if eval \${$as_ac_Lib+:} false; then :
18211 $as_echo_n "(cached) " >&6
18213 ac_check_lib_save_LIBS=$LIBS
18214 LIBS="-lpam $lt_cv_dlopen_libs $LIBS"
18215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216 /* end confdefs.h. */
18218 /* Override any GCC internal prototype to avoid an error.
18219 Use char because int might match the return type of a GCC
18220 builtin and then its argument prototype would still apply. */
18228 return pam_start ();
18233 if ac_fn_c_try_link "$LINENO"; then :
18234 eval "$as_ac_Lib=yes"
18236 eval "$as_ac_Lib=no"
18238 rm -f core conftest.err conftest.$ac_objext \
18239 conftest$ac_exeext conftest.$ac_ext
18240 LIBS=$ac_check_lib_save_LIBS
18242 eval ac_res=\$$as_ac_Lib
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18244 $as_echo "$ac_res" >&6; }
18245 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18250 # Some PAM implementations (MacOS X for example) put the PAM headers
18251 # in /usr/include/pam instead of /usr/include/security...
18254 for ac_header in security/pam_appl.h pam/pam_appl.h
18256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18257 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18258 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18259 cat >>confdefs.h <<_ACEOF
18260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18262 found_pam_hdrs=yes; break
18267 if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"; then
18268 # Found both PAM libs and headers
18270 elif test "$with_pam" = "yes"; then
18271 if test "$found_pam_lib" = "no"; then
18272 as_fn_error $? "\"--with-pam specified but unable to locate PAM development library.\"" "$LINENO" 5
18274 if test "$found_pam_hdrs" = "no"; then
18275 as_fn_error $? "\"--with-pam specified but unable to locate PAM development headers.\"" "$LINENO" 5
18277 elif test "$found_pam_lib" != "$found_pam_hdrs"; then
18278 if test "$found_pam_lib" = "no"; then
18279 as_fn_error $? "\"found PAM headers but no PAM development library; specify --without-pam to build without PAM\"" "$LINENO" 5
18281 if test "$found_pam_hdrs" = "no"; then
18282 as_fn_error $? "\"found PAM library but no PAM development headers; specify --without-pam to build without PAM\"" "$LINENO" 5
18286 if test "$with_pam" = "yes"; then
18287 # Older PAM implementations lack pam_getenvlist
18289 LIBS="$LIBS -lpam $lt_cv_dlopen_libs"
18290 for ac_func in pam_getenvlist
18292 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
18293 if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
18294 cat >>confdefs.h <<_ACEOF
18295 #define HAVE_PAM_GETENVLIST 1
18303 # We already link with -ldl if needed (see LIBDL below)
18304 SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
18305 $as_echo "#define HAVE_PAM 1" >>confdefs.h
18307 AUTH_OBJS="$AUTH_OBJS pam.lo";
18311 # Check whether --with-pam-login was given.
18312 if test "${with_pam_login+set}" = set; then :
18313 withval=$with_pam_login; case $with_pam_login in
18314 yes) $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
18317 $as_echo_n "checking whether to use PAM login... " >&6; }
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18319 $as_echo "yes" >&6; }
18322 *) as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
18329 $as_echo_n "checking whether to use PAM session support... " >&6; }
18330 # Check whether --enable-pam_session was given.
18331 if test "${enable_pam_session+set}" = set; then :
18332 enableval=$enable_pam_session; case "$enableval" in
18333 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18334 $as_echo "yes" >&6; }
18336 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18337 $as_echo "no" >&6; }
18338 $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
18341 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18342 $as_echo "no" >&6; }
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
18344 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18349 $as_echo "yes" >&6; }
18355 if test ${with_aixauth-'no'} != "no"; then
18356 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
18358 $as_echo "$as_me: using AIX general authentication" >&6;}
18359 $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
18361 AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
18362 SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
18367 if test ${with_bsdauth-'no'} != "no"; then
18368 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
18369 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
18370 $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
18372 AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
18373 BSDAUTH_USAGE='[-a auth_type] '
18374 AUTH_EXCL=BSD_AUTH; BAMAN=1
18376 as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
18382 if test ${CHECKSIA-'false'} = "true"; then
18383 for ac_func in sia_ses_init
18385 ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
18386 if test "x$ac_cv_func_sia_ses_init" = xyes; then :
18387 cat >>confdefs.h <<_ACEOF
18388 #define HAVE_SIA_SES_INIT 1
18396 if test "$found" = "true"; then
18398 AUTH_OBJS="$AUTH_OBJS sia.lo"
18402 if test ${with_fwtk-'no'} != "no"; then
18403 if test "$with_fwtk" != "yes"; then
18405 if test X"$with_rpath" = X"yes"; then
18407 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
18409 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
18413 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
18415 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18416 blibpath_add="${blibpath_add}:${with_fwtk}"
18419 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
18422 SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
18423 AUTH_OBJS="$AUTH_OBJS fwtk.lo"
18426 if test ${with_SecurID-'no'} != "no"; then
18427 if test "$with_SecurID" != "yes"; then
18429 elif test -d /usr/ace/examples; then
18430 with_SecurID=/usr/ace/examples
18432 with_SecurID=/usr/ace
18434 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
18436 if test X"$with_rpath" = X"yes"; then
18438 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18440 *) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18444 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
18446 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18447 blibpath_add="${blibpath_add}:${with_SecurID}"
18450 SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
18451 AUTH_OBJS="$AUTH_OBJS securid5.lo";
18455 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
18456 for auth in $AUTH_DEF; do
18458 passwd) : ${with_passwd='maybe'};;
18463 if test ${with_kerb5-'no'} != "no"; then
18464 # Extract the first word of "krb5-config", so it can be a program name with args.
18465 set dummy krb5-config; ac_word=$2
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18467 $as_echo_n "checking for $ac_word... " >&6; }
18468 if ${ac_cv_prog_KRB5CONFIG+:} false; then :
18469 $as_echo_n "(cached) " >&6
18471 if test -n "$KRB5CONFIG"; then
18472 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
18474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18475 for as_dir in $PATH
18478 test -z "$as_dir" && as_dir=.
18479 for ac_exec_ext in '' $ac_executable_extensions; do
18480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18481 ac_cv_prog_KRB5CONFIG="yes"
18482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18489 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
18492 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
18493 if test -n "$KRB5CONFIG"; then
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
18495 $as_echo "$KRB5CONFIG" >&6; }
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18498 $as_echo "no" >&6; }
18502 if test -n "$KRB5CONFIG"; then
18503 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18505 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18506 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
18507 SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18509 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18511 /* end confdefs.h. */
18516 const char *tmp = heimdal_version;
18521 if ac_fn_c_try_compile "$LINENO"; then :
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18524 $as_echo "yes" >&6; }
18525 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18531 $as_echo "no" >&6; }
18535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18537 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18539 if test "$with_kerb5" = "yes"; then
18541 O_CPPFLAGS="$CPPFLAGS"
18542 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
18543 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h. */
18555 if ac_fn_c_try_cpp "$LINENO"; then :
18558 rm -f conftest.err conftest.i conftest.$ac_ext
18560 if test X"$found" = X"no"; then
18561 CPPFLAGS="$O_CPPFLAGS"
18562 { $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
18563 $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;}
18567 if test X"$with_rpath" = X"yes"; then
18569 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
18571 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
18575 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
18577 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18578 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
18581 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18585 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587 /* end confdefs.h. */
18592 const char *tmp = heimdal_version;
18597 if ac_fn_c_try_compile "$LINENO"; then :
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18600 $as_echo "yes" >&6; }
18601 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18603 # XXX - need to check whether -lcrypo is needed!
18604 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18606 $as_echo_n "checking for main in -lroken... " >&6; }
18607 if ${ac_cv_lib_roken_main+:} false; then :
18608 $as_echo_n "(cached) " >&6
18610 ac_check_lib_save_LIBS=$LIBS
18611 LIBS="-lroken $LIBS"
18612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18613 /* end confdefs.h. */
18624 if ac_fn_c_try_link "$LINENO"; then :
18625 ac_cv_lib_roken_main=yes
18627 ac_cv_lib_roken_main=no
18629 rm -f core conftest.err conftest.$ac_objext \
18630 conftest$ac_exeext conftest.$ac_ext
18631 LIBS=$ac_check_lib_save_LIBS
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18634 $as_echo "$ac_cv_lib_roken_main" >&6; }
18635 if test "x$ac_cv_lib_roken_main" = xyes; then :
18636 SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18643 $as_echo "no" >&6; }
18644 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
18646 $as_echo_n "checking for main in -lkrb5support... " >&6; }
18647 if ${ac_cv_lib_krb5support_main+:} false; then :
18648 $as_echo_n "(cached) " >&6
18650 ac_check_lib_save_LIBS=$LIBS
18651 LIBS="-lkrb5support $LIBS"
18652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653 /* end confdefs.h. */
18664 if ac_fn_c_try_link "$LINENO"; then :
18665 ac_cv_lib_krb5support_main=yes
18667 ac_cv_lib_krb5support_main=no
18669 rm -f core conftest.err conftest.$ac_objext \
18670 conftest$ac_exeext conftest.$ac_ext
18671 LIBS=$ac_check_lib_save_LIBS
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
18674 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
18675 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
18676 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
18681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18682 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18685 LIBS="${LIBS} ${SUDOERS_LIBS}"
18686 for ac_func in krb5_verify_user krb5_init_secure_context
18688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18689 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18690 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18691 cat >>confdefs.h <<_ACEOF
18692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18698 for ac_func in krb5_get_init_creds_opt_alloc
18700 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
18701 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
18702 cat >>confdefs.h <<_ACEOF
18703 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
18707 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
18708 if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
18709 $as_echo_n "(cached) " >&6
18712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18718 krb5_get_init_creds_opt_free(NULL, NULL);
18724 if ac_fn_c_try_compile "$LINENO"; then :
18725 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
18727 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
18730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
18735 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
18740 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
18741 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an instance name for Kerberos V" >&5
18746 $as_echo_n "checking whether to use an instance name for Kerberos V... " >&6; }
18747 # Check whether --enable-kerb5-instance was given.
18748 if test "${enable_kerb5_instance+set}" = set; then :
18749 enableval=$enable_kerb5_instance; case "$enableval" in
18750 yes) as_fn_error $? "\"must give --enable-kerb5-instance an argument.\"" "$LINENO" 5
18752 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18753 $as_echo "no" >&6; }
18755 *) cat >>confdefs.h <<EOF
18756 #define SUDO_KRB5_INSTANCE "$enableval"
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
18760 $as_echo "$enableval" >&6; }
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18765 $as_echo "no" >&6; }
18770 if test ${with_AFS-'no'} = "yes"; then
18772 # looks like the "standard" place for AFS libs is /usr/afsws/lib
18773 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
18774 for i in $AFSLIBDIRS; do
18775 if test -d ${i}; then
18777 if test X"$with_rpath" = X"yes"; then
18779 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,+b,$i"
18781 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,-R$i"
18785 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
18787 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18788 blibpath_add="${blibpath_add}:$i"
18791 FOUND_AFSLIBDIR=true
18794 if test -z "$FOUND_AFSLIBDIR"; then
18795 { $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
18796 $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;}
18799 # Order is important here. Note that we build AFS_LIBS from right to left
18800 # since AFS_LIBS may be initialized with BSD compat libs that must go last
18801 AFS_LIBS="-laudit ${AFS_LIBS}"
18802 for i in $AFSLIBDIRS; do
18803 if test -f ${i}/util.a; then
18804 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
18809 if test -z "$FOUND_UTIL_A"; then
18810 AFS_LIBS="-lutil ${AFS_LIBS}"
18812 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
18814 # AFS includes may live in /usr/include on some machines...
18815 for i in /usr/afsws/include; do
18816 if test -d ${i}; then
18817 CPPFLAGS="${CPPFLAGS} -I${i}"
18818 FOUND_AFSINCDIR=true
18822 if test -z "$FOUND_AFSLIBDIR"; then
18823 { $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
18824 $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;}
18827 AUTH_OBJS="$AUTH_OBJS afs.lo"
18830 if test ${with_DCE-'no'} = "yes"; then
18831 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
18832 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
18833 AUTH_OBJS="$AUTH_OBJS dce.lo"
18836 if test "${with_skey-'no'}" = "yes"; then
18837 O_LDFLAGS="$LDFLAGS"
18838 if test "$with_skey" != "yes"; then
18839 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
18841 if test X"$with_rpath" = X"yes"; then
18843 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18845 *) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18849 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
18851 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18852 blibpath_add="${blibpath_add}:${with_skey}/lib"
18856 if test X"$with_rpath" = X"yes"; then
18858 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18860 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18864 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
18866 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18867 blibpath_add="${blibpath_add}:${with_skey}/lib"
18870 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18872 if test "x$ac_cv_header_skey_h" = xyes; then :
18881 O_CPPFLAGS="$CPPFLAGS"
18882 for dir in "" "/usr/local" "/usr/contrib"; do
18883 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
18884 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18886 if test "x$ac_cv_header_skey_h" = xyes; then :
18892 if test "$found" = "no" -o -z "$dir"; then
18893 CPPFLAGS="$O_CPPFLAGS"
18896 if test X"$with_rpath" = X"yes"; then
18898 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18900 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18904 LDFLAGS="${LDFLAGS} -L${dir}/lib"
18906 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18907 blibpath_add="${blibpath_add}:${dir}/lib"
18911 if test X"$with_rpath" = X"yes"; then
18913 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18915 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18919 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
18921 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18922 blibpath_add="${blibpath_add}:${dir}/lib"
18926 if test "$found" = "no"; then
18927 { $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
18928 $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;}
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
18932 $as_echo_n "checking for main in -lskey... " >&6; }
18933 if ${ac_cv_lib_skey_main+:} false; then :
18934 $as_echo_n "(cached) " >&6
18936 ac_check_lib_save_LIBS=$LIBS
18937 LIBS="-lskey $LIBS"
18938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18939 /* end confdefs.h. */
18950 if ac_fn_c_try_link "$LINENO"; then :
18951 ac_cv_lib_skey_main=yes
18953 ac_cv_lib_skey_main=no
18955 rm -f core conftest.err conftest.$ac_objext \
18956 conftest$ac_exeext conftest.$ac_ext
18957 LIBS=$ac_check_lib_save_LIBS
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
18960 $as_echo "$ac_cv_lib_skey_main" >&6; }
18961 if test "x$ac_cv_lib_skey_main" = xyes; then :
18964 { $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
18965 $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;}
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
18969 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
18970 if ${ac_cv_lib_skey_skeyaccess+:} false; then :
18971 $as_echo_n "(cached) " >&6
18973 ac_check_lib_save_LIBS=$LIBS
18974 LIBS="-lskey $LIBS"
18975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18976 /* end confdefs.h. */
18978 /* Override any GCC internal prototype to avoid an error.
18979 Use char because int might match the return type of a GCC
18980 builtin and then its argument prototype would still apply. */
18984 char skeyaccess ();
18988 return skeyaccess ();
18993 if ac_fn_c_try_link "$LINENO"; then :
18994 ac_cv_lib_skey_skeyaccess=yes
18996 ac_cv_lib_skey_skeyaccess=no
18998 rm -f core conftest.err conftest.$ac_objext \
18999 conftest$ac_exeext conftest.$ac_ext
19000 LIBS=$ac_check_lib_save_LIBS
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
19003 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
19004 if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
19005 $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
19011 $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
19012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013 /* end confdefs.h. */
19019 skeychallenge(NULL, NULL, NULL, 0);
19025 if ac_fn_c_try_compile "$LINENO"; then :
19027 $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19030 $as_echo "yes" >&6; }
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19035 $as_echo "no" >&6; }
19039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19041 LDFLAGS="$O_LDFLAGS"
19042 SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
19043 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19046 if test "${with_opie-'no'}" = "yes"; then
19047 O_LDFLAGS="$LDFLAGS"
19048 if test "$with_opie" != "yes"; then
19049 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
19051 if test X"$with_rpath" = X"yes"; then
19053 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
19055 *) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
19059 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
19061 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19062 blibpath_add="${blibpath_add}:${with_opie}/lib"
19066 if test X"$with_rpath" = X"yes"; then
19068 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
19070 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
19074 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
19076 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19077 blibpath_add="${blibpath_add}:${with_opie}/lib"
19080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19081 /* end confdefs.h. */
19091 if ac_fn_c_try_cpp "$LINENO"; then :
19096 rm -f conftest.err conftest.i conftest.$ac_ext
19099 O_CPPFLAGS="$CPPFLAGS"
19100 for dir in "" "/usr/local" "/usr/contrib"; do
19101 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19103 /* end confdefs.h. */
19113 if ac_fn_c_try_cpp "$LINENO"; then :
19116 rm -f conftest.err conftest.i conftest.$ac_ext
19118 if test "$found" = "no" -o -z "$dir"; then
19119 CPPFLAGS="$O_CPPFLAGS"
19122 if test X"$with_rpath" = X"yes"; then
19124 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19126 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19130 LDFLAGS="${LDFLAGS} -L${dir}/lib"
19132 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19133 blibpath_add="${blibpath_add}:${dir}/lib"
19137 if test X"$with_rpath" = X"yes"; then
19139 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19141 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19145 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19147 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19148 blibpath_add="${blibpath_add}:${dir}/lib"
19152 if test "$found" = "no"; then
19153 { $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
19154 $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;}
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
19158 $as_echo_n "checking for main in -lopie... " >&6; }
19159 if ${ac_cv_lib_opie_main+:} false; then :
19160 $as_echo_n "(cached) " >&6
19162 ac_check_lib_save_LIBS=$LIBS
19163 LIBS="-lopie $LIBS"
19164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19176 if ac_fn_c_try_link "$LINENO"; then :
19177 ac_cv_lib_opie_main=yes
19179 ac_cv_lib_opie_main=no
19181 rm -f core conftest.err conftest.$ac_objext \
19182 conftest$ac_exeext conftest.$ac_ext
19183 LIBS=$ac_check_lib_save_LIBS
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
19186 $as_echo "$ac_cv_lib_opie_main" >&6; }
19187 if test "x$ac_cv_lib_opie_main" = xyes; then :
19190 { $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
19191 $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;}
19194 LDFLAGS="$O_LDFLAGS"
19195 SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
19196 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19199 if test ${with_passwd-'no'} != "no"; then
19200 if test -z "$LIB_CRYPT"; then
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19203 $as_echo_n "checking for library containing crypt... " >&6; }
19204 if ${ac_cv_search_crypt+:} false; then :
19205 $as_echo_n "(cached) " >&6
19207 ac_func_search_save_LIBS=$LIBS
19208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19209 /* end confdefs.h. */
19211 /* Override any GCC internal prototype to avoid an error.
19212 Use char because int might match the return type of a GCC
19213 builtin and then its argument prototype would still apply. */
19226 for ac_lib in '' crypt crypt_d ufc; do
19227 if test -z "$ac_lib"; then
19228 ac_res="none required"
19231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19233 if ac_fn_c_try_link "$LINENO"; then :
19234 ac_cv_search_crypt=$ac_res
19236 rm -f core conftest.err conftest.$ac_objext \
19238 if ${ac_cv_search_crypt+:} false; then :
19242 if ${ac_cv_search_crypt+:} false; then :
19245 ac_cv_search_crypt=no
19247 rm conftest.$ac_ext
19248 LIBS=$ac_func_search_save_LIBS
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19251 $as_echo "$ac_cv_search_crypt" >&6; }
19252 ac_res=$ac_cv_search_crypt
19253 if test "$ac_res" != no; then :
19254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19255 test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19261 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
19263 LIBS="$LIBS $shadow_libs"
19265 for ac_func in $shadow_funcs
19267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19268 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19269 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19270 cat >>confdefs.h <<_ACEOF
19271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19277 if test "$found" = "yes"; then
19278 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
19279 elif test -n "$shadow_libs_optional"; then
19280 LIBS="$LIBS $shadow_libs_optional"
19281 for ac_func in $shadow_funcs
19283 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19284 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19285 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19286 cat >>confdefs.h <<_ACEOF
19287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19293 if test "$found" = "yes"; then
19294 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
19297 if test "$found" = "yes"; then
19298 case "$shadow_funcs" in
19299 *getprpwnam*) SECUREWARE=1;;
19301 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
19307 if test "$CHECKSHADOW" = "true"; then
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
19309 $as_echo_n "checking for library containing getspnam... " >&6; }
19310 if ${ac_cv_search_getspnam+:} false; then :
19311 $as_echo_n "(cached) " >&6
19313 ac_func_search_save_LIBS=$LIBS
19314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19315 /* end confdefs.h. */
19317 /* Override any GCC internal prototype to avoid an error.
19318 Use char because int might match the return type of a GCC
19319 builtin and then its argument prototype would still apply. */
19327 return getspnam ();
19332 for ac_lib in '' gen; do
19333 if test -z "$ac_lib"; then
19334 ac_res="none required"
19337 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19339 if ac_fn_c_try_link "$LINENO"; then :
19340 ac_cv_search_getspnam=$ac_res
19342 rm -f core conftest.err conftest.$ac_objext \
19344 if ${ac_cv_search_getspnam+:} false; then :
19348 if ${ac_cv_search_getspnam+:} false; then :
19351 ac_cv_search_getspnam=no
19353 rm conftest.$ac_ext
19354 LIBS=$ac_func_search_save_LIBS
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
19357 $as_echo "$ac_cv_search_getspnam" >&6; }
19358 ac_res=$ac_cv_search_getspnam
19359 if test "$ac_res" != no; then :
19360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19361 $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
19362 CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19366 if test "$CHECKSHADOW" = "true"; then
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
19368 $as_echo_n "checking for library containing getprpwnam... " >&6; }
19369 if ${ac_cv_search_getprpwnam+:} false; then :
19370 $as_echo_n "(cached) " >&6
19372 ac_func_search_save_LIBS=$LIBS
19373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19374 /* end confdefs.h. */
19376 /* Override any GCC internal prototype to avoid an error.
19377 Use char because int might match the return type of a GCC
19378 builtin and then its argument prototype would still apply. */
19382 char getprpwnam ();
19386 return getprpwnam ();
19391 for ac_lib in '' sec security prot; do
19392 if test -z "$ac_lib"; then
19393 ac_res="none required"
19396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19398 if ac_fn_c_try_link "$LINENO"; then :
19399 ac_cv_search_getprpwnam=$ac_res
19401 rm -f core conftest.err conftest.$ac_objext \
19403 if ${ac_cv_search_getprpwnam+:} false; then :
19407 if ${ac_cv_search_getprpwnam+:} false; then :
19410 ac_cv_search_getprpwnam=no
19412 rm conftest.$ac_ext
19413 LIBS=$ac_func_search_save_LIBS
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
19416 $as_echo "$ac_cv_search_getprpwnam" >&6; }
19417 ac_res=$ac_cv_search_getprpwnam
19418 if test "$ac_res" != no; then :
19419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19420 $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
19421 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19425 if test -n "$SECUREWARE"; then
19426 for ac_func in bigcrypt set_auth_parameters initprivs
19428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19430 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19431 cat >>confdefs.h <<_ACEOF
19432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19438 AUTH_OBJS="$AUTH_OBJS secureware.lo"
19442 if test ${with_ldap-'no'} != "no"; then
19443 _LDFLAGS="$LDFLAGS"
19444 if test "$with_ldap" != "yes"; then
19446 if test X"$with_rpath" = X"yes"; then
19448 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19450 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19454 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
19456 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19457 blibpath_add="${blibpath_add}:${with_ldap}/lib"
19461 if test X"$with_rpath" = X"yes"; then
19463 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19465 *) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19469 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
19471 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19472 blibpath_add="${blibpath_add}:${with_ldap}/lib"
19475 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19478 SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
19482 $as_echo_n "checking for LDAP libraries... " >&6; }
19486 for l in -lldap -llber '-lssl -lcrypto'; do
19488 LDAP_LIBS="${LDAP_LIBS} $l"
19489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19490 /* end confdefs.h. */
19491 #include <sys/types.h>
19497 (void)ldap_init(0, 0)
19502 if ac_fn_c_try_link "$LINENO"; then :
19505 rm -f core conftest.err conftest.$ac_objext \
19506 conftest$ac_exeext conftest.$ac_ext
19508 if test "$found" = "no"; then
19511 for l in -libmldap -lidsldif; do
19513 LDAP_LIBS="${LDAP_LIBS} $l"
19514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19515 /* end confdefs.h. */
19516 #include <sys/types.h>
19522 (void)ldap_init(0, 0)
19527 if ac_fn_c_try_link "$LINENO"; then :
19530 rm -f core conftest.err conftest.$ac_objext \
19531 conftest$ac_exeext conftest.$ac_ext
19534 if test "$found" = "no"; then
19535 LIBS="${_LIBS} -lldap"
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
19538 $as_echo "not found, using -lldap" >&6; }
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
19541 $as_echo "$LDAP_LIBS" >&6; }
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
19545 $as_echo_n "checking for library containing ber_set_option... " >&6; }
19546 if ${ac_cv_search_ber_set_option+:} false; then :
19547 $as_echo_n "(cached) " >&6
19549 ac_func_search_save_LIBS=$LIBS
19550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19551 /* end confdefs.h. */
19553 /* Override any GCC internal prototype to avoid an error.
19554 Use char because int might match the return type of a GCC
19555 builtin and then its argument prototype would still apply. */
19559 char ber_set_option ();
19563 return ber_set_option ();
19568 for ac_lib in '' lber; do
19569 if test -z "$ac_lib"; then
19570 ac_res="none required"
19573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19575 if ac_fn_c_try_link "$LINENO"; then :
19576 ac_cv_search_ber_set_option=$ac_res
19578 rm -f core conftest.err conftest.$ac_objext \
19580 if ${ac_cv_search_ber_set_option+:} false; then :
19584 if ${ac_cv_search_ber_set_option+:} false; then :
19587 ac_cv_search_ber_set_option=no
19589 rm conftest.$ac_ext
19590 LIBS=$ac_func_search_save_LIBS
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
19593 $as_echo "$ac_cv_search_ber_set_option" >&6; }
19594 ac_res=$ac_cv_search_ber_set_option
19595 if test "$ac_res" != no; then :
19596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19602 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
19603 LDAP_LIBS="$LDAP_LIBS -llber"
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
19606 $as_echo_n "checking whether lber.h is needed... " >&6; }
19607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608 /* end confdefs.h. */
19609 #include <sys/types.h>
19614 (void)ldap_init(0, 0)
19619 if ac_fn_c_try_link "$LINENO"; then :
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19621 $as_echo "no" >&6; }
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19625 $as_echo "yes" >&6; }
19626 $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
19629 rm -f core conftest.err conftest.$ac_objext \
19630 conftest$ac_exeext conftest.$ac_ext
19632 for ac_header in sasl/sasl.h sasl.h
19634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19635 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19636 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19637 cat >>confdefs.h <<_ACEOF
19638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19640 for ac_func in ldap_sasl_interactive_bind_s
19642 ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
19643 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
19644 cat >>confdefs.h <<_ACEOF
19645 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
19657 for ac_header in ldap_ssl.h mps/ldap_ssl.h
19659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19660 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
19662 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19663 cat >>confdefs.h <<_ACEOF
19664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19671 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
19673 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19674 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19675 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19676 cat >>confdefs.h <<_ACEOF
19677 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19683 for ac_func in ldap_search_ext_s ldap_search_st
19685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19687 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19688 cat >>confdefs.h <<_ACEOF
19689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19696 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
19698 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
19699 if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
19700 $as_echo_n "(cached) " >&6
19702 ac_check_lib_save_LIBS=$LIBS
19703 LIBS="-lgssapi $LIBS"
19704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h. */
19707 /* Override any GCC internal prototype to avoid an error.
19708 Use char because int might match the return type of a GCC
19709 builtin and then its argument prototype would still apply. */
19713 char gss_krb5_ccache_name ();
19717 return gss_krb5_ccache_name ();
19722 if ac_fn_c_try_link "$LINENO"; then :
19723 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
19725 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
19727 rm -f core conftest.err conftest.$ac_objext \
19728 conftest$ac_exeext conftest.$ac_ext
19729 LIBS=$ac_check_lib_save_LIBS
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
19732 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
19733 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
19734 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19736 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
19739 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
19740 if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
19741 $as_echo_n "(cached) " >&6
19743 ac_check_lib_save_LIBS=$LIBS
19744 LIBS="-lgssapi_krb5 $LIBS"
19745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19746 /* end confdefs.h. */
19748 /* Override any GCC internal prototype to avoid an error.
19749 Use char because int might match the return type of a GCC
19750 builtin and then its argument prototype would still apply. */
19754 char gss_krb5_ccache_name ();
19758 return gss_krb5_ccache_name ();
19763 if ac_fn_c_try_link "$LINENO"; then :
19764 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
19766 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
19768 rm -f core conftest.err conftest.$ac_objext \
19769 conftest$ac_exeext conftest.$ac_ext
19770 LIBS=$ac_check_lib_save_LIBS
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
19773 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
19774 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
19775 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19777 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
19784 # gssapi headers may be separate or part of Kerberos V
19786 O_CPPFLAGS="$CPPFLAGS"
19787 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
19788 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h. */
19791 #include <gssapi/gssapi.h>
19800 if ac_fn_c_try_cpp "$LINENO"; then :
19801 found="gssapi/gssapi.h"; break
19803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19804 /* end confdefs.h. */
19805 #include <gssapi.h>
19814 if ac_fn_c_try_cpp "$LINENO"; then :
19815 found="gssapi.h"; break
19817 rm -f conftest.err conftest.i conftest.$ac_ext
19819 rm -f conftest.err conftest.i conftest.$ac_ext
19821 if test X"$found" != X"no"; then
19822 for ac_header in $found
19824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19825 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19826 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19827 cat >>confdefs.h <<_ACEOF
19828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19835 if test X"$found" = X"gssapi/gssapi.h"; then
19836 for ac_header in gssapi/gssapi_krb5.h
19838 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
19839 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
19840 cat >>confdefs.h <<_ACEOF
19841 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
19850 CPPFLAGS="$O_CPPFLAGS"
19851 { $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
19852 $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;}
19856 SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
19858 LDFLAGS="$_LDFLAGS"
19862 # How to do dynamic object loading.
19863 # We support dlopen() and sh_load(), else fall back to static loading.
19865 case "$lt_cv_dlopen" in
19867 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
19869 SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19870 LT_STATIC="--tag=disable-static"
19873 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19875 SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19876 LT_STATIC="--tag=disable-static"
19877 case " $LIBOBJS " in
19878 *" dlopen.$ac_objext "* ) ;;
19879 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19885 if test X"${ac_cv_func_dlopen}" = X"yes"; then
19886 as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
19888 # Preload sudoers module symbols
19889 SUDO_OBJS="${SUDO_OBJS} preload.o"
19890 SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
19892 case " $LIBOBJS " in
19893 *" dlopen.$ac_objext "* ) ;;
19894 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19902 # Add library needed for dynamic loading, if any.
19904 LIBDL="$lt_cv_dlopen_libs"
19905 if test X"$LIBDL" != X""; then
19906 SUDO_LIBS="${SUDO_LIBS} $LIBDL"
19907 SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
19910 # On HP-UX, you cannot dlopen() a shared object that uses pthreads
19911 # unless the main program is linked against -lpthread. Since we
19912 # have no knowledge what libraries a plugin may depend on, we always
19913 # link against -lpthread on HP-UX if it is available.
19914 # This check should go after all other libraries tests.
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
19918 $as_echo_n "checking for main in -lpthread... " >&6; }
19919 if ${ac_cv_lib_pthread_main+:} false; then :
19920 $as_echo_n "(cached) " >&6
19922 ac_check_lib_save_LIBS=$LIBS
19923 LIBS="-lpthread $LIBS"
19924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19925 /* end confdefs.h. */
19936 if ac_fn_c_try_link "$LINENO"; then :
19937 ac_cv_lib_pthread_main=yes
19939 ac_cv_lib_pthread_main=no
19941 rm -f core conftest.err conftest.$ac_objext \
19942 conftest$ac_exeext conftest.$ac_ext
19943 LIBS=$ac_check_lib_save_LIBS
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
19946 $as_echo "$ac_cv_lib_pthread_main" >&6; }
19947 if test "x$ac_cv_lib_pthread_main" = xyes; then :
19948 SUDO_LIBS="${SUDO_LIBS} -lpthread"
19954 if test -n "$blibpath"; then
19955 if test -n "$blibpath_add"; then
19956 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
19957 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
19958 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}"
19962 if test "$utmp_style" = "LEGACY"; then
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
19964 $as_echo_n "checking for utmp file path... " >&6; }
19966 for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
19967 if test -r "$p"; then
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
19970 $as_echo "$p" >&6; }
19971 cat >>confdefs.h <<EOF
19972 #define _PATH_UTMP "$p"
19978 if test X"$found" != X"yes"; then
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19980 $as_echo "not found" >&6; }
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
19985 $as_echo_n "checking for log file location... " >&6; }
19986 if test -n "$with_logpath"; then
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
19988 $as_echo "$with_logpath" >&6; }
19989 cat >>confdefs.h <<EOF
19990 #define _PATH_SUDO_LOGFILE "$with_logpath"
19993 elif test -d "/var/log"; then
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
19995 $as_echo "/var/log/sudo.log" >&6; }
19996 cat >>confdefs.h <<\EOF
19997 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
20000 elif test -d "/var/adm"; then
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
20002 $as_echo "/var/adm/sudo.log" >&6; }
20003 cat >>confdefs.h <<\EOF
20004 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
20007 elif test -d "/usr/adm"; then
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
20009 $as_echo "/usr/adm/sudo.log" >&6; }
20010 cat >>confdefs.h <<\EOF
20011 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
20016 $as_echo "unknown" >&6; }
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
20020 $as_echo_n "checking for timestamp file location... " >&6; }
20021 timedir="$with_timedir"
20022 if test -z "$timedir"; then
20023 for d in /var/db /var/lib /var/adm /usr/adm; do
20024 if test -d "$d"; then
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
20031 $as_echo "$timedir" >&6; }
20032 cat >>confdefs.h <<EOF
20033 #define _PATH_SUDO_TIMEDIR "$timedir"
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
20039 $as_echo_n "checking for I/O log dir location... " >&6; }
20040 if test "${with_iologdir-yes}" != "yes"; then
20041 iolog_dir="$with_iologdir"
20042 elif test -d "/var/log"; then
20043 iolog_dir="/var/log/sudo-io"
20044 elif test -d "/var/adm"; then
20045 iolog_dir="/var/adm/sudo-io"
20047 iolog_dir="/usr/adm/sudo-io"
20049 if test "${with_iologdir}" != "no"; then
20050 cat >>confdefs.h <<EOF
20051 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
20056 $as_echo "$iolog_dir" >&6; }
20059 case "$with_passwd" in
20061 AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
20064 $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
20066 if test -z "$AUTH_OBJS"; then
20067 as_fn_error $? "no authentication methods defined." "$LINENO" 5
20071 AUTH_OBJS=${AUTH_OBJS# }
20072 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
20074 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
20076 if test -n "$LIBS"; then
20081 for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
20082 test $l = $sl && dupe=1
20084 test $dupe = 0 && LIBS="${LIBS} $l"
20088 if test -n "$GCC"; then
20089 if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
20090 CFLAGS="${CFLAGS} -Wall"
20092 if test X"$enable_werror" = X"yes"; then
20093 CFLAGS="${CFLAGS} -Werror"
20097 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
20099 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
20100 oexec_prefix="$exec_prefix"
20101 if test "$exec_prefix" = '$(prefix)'; then
20102 if test "$prefix" = "NONE"; then
20103 exec_prefix="$ac_default_prefix"
20105 exec_prefix="$prefix"
20108 if test X"$with_noexec" != X"no"; then
20109 PROGS="${PROGS} libsudo_noexec.la"
20110 INSTALL_NOEXEC="install-noexec"
20112 noexec_file="$with_noexec"
20114 while test X"$noexec_file" != X"$_noexec_file"; do
20115 _noexec_file="$noexec_file"
20116 eval noexec_file="$_noexec_file"
20118 cat >>confdefs.h <<EOF
20119 #define _PATH_SUDO_NOEXEC "$noexec_file"
20123 if test X"$with_selinux" != X"no"; then
20124 sesh_file="$libexecdir/sesh"
20126 while test X"$sesh_file" != X"$_sesh_file"; do
20127 _sesh_file="$sesh_file"
20128 eval sesh_file="$_sesh_file"
20130 cat >>confdefs.h <<EOF
20131 #define _PATH_SUDO_SESH "$sesh_file"
20135 PLUGINDIR="$with_plugindir"
20137 while test X"$PLUGINDIR" != X"$_PLUGINDIR"; do
20138 _PLUGINDIR="$PLUGINDIR"
20139 eval PLUGINDIR="$_PLUGINDIR"
20141 cat >>confdefs.h <<EOF
20142 #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
20145 cat >>confdefs.h <<EOF
20146 #define SUDOERS_PLUGIN "sudoers${SOEXT}"
20149 exec_prefix="$oexec_prefix"
20152 if test X"$prefix" = X"NONE"; then
20153 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
20155 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
20157 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
20158 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
20159 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
20160 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
20161 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
20162 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
20163 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
20165 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"
20167 cat >confcache <<\_ACEOF
20168 # This file is a shell script that caches the results of configure
20169 # tests run on this system so they can be shared between configure
20170 # scripts and configure runs, see configure's option --config-cache.
20171 # It is not useful on other systems. If it contains results you don't
20172 # want to keep, you may remove or edit it.
20174 # config.status only pays attention to the cache file if you give it
20175 # the --recheck option to rerun configure.
20177 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20178 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20179 # following values.
20183 # The following way of writing the cache mishandles newlines in values,
20184 # but we know of no workaround that is simple, portable, and efficient.
20185 # So, we kill variables containing newlines.
20186 # Ultrix sh set writes to stderr and can't be redirected directly,
20187 # and sets the high bit in the cache file unless we assign to the vars.
20189 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20190 eval ac_val=\$$ac_var
20194 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20195 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20198 _ | IFS | as_nl) ;; #(
20199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20200 *) { eval $ac_var=; unset $ac_var;} ;;
20206 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20207 *${as_nl}ac_space=\ *)
20208 # `set' does not quote correctly, so add quotes: double-quote
20209 # substitution turns \\\\ into \\, and sed turns \\ into \.
20212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20215 # `set' quotes correctly as required by POSIX, so do not add quotes.
20216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20225 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20227 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20229 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20230 if test -w "$cache_file"; then
20231 if test "x$cache_file" != "x/dev/null"; then
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20233 $as_echo "$as_me: updating cache $cache_file" >&6;}
20234 if test ! -f "$cache_file" || test -h "$cache_file"; then
20235 cat confcache >"$cache_file"
20237 case $cache_file in #(
20239 mv -f confcache "$cache_file"$$ &&
20240 mv -f "$cache_file"$$ "$cache_file" ;; #(
20242 mv -f confcache "$cache_file" ;;
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20248 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20254 # Let make expand exec_prefix.
20255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20257 DEFS=-DHAVE_CONFIG_H
20262 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20263 # 1. Remove the extension, and $U if already installed.
20264 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20265 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20266 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20267 # will be set to the directory where LIBOBJS objects are built.
20268 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20269 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20271 LIBOBJS=$ac_libobjs
20273 LTLIBOBJS=$ac_ltlibobjs
20277 : "${CONFIG_STATUS=./config.status}"
20279 ac_clean_files_save=$ac_clean_files
20280 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20282 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20284 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20286 # Generated by $as_me.
20287 # Run this file to recreate the current configuration.
20288 # Compiler output produced by configure, useful for debugging
20289 # configure, is in config.log if it exists.
20292 ac_cs_recheck=false
20295 SHELL=\${CONFIG_SHELL-$SHELL}
20298 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20299 ## -------------------- ##
20300 ## M4sh Initialization. ##
20301 ## -------------------- ##
20303 # Be more Bourne compatible
20304 DUALCASE=1; export DUALCASE # for MKS sh
20305 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20308 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20309 # is contrary to our usage. Disable this feature.
20310 alias -g '${1+"$@"}'='"$@"'
20311 setopt NO_GLOB_SUBST
20313 case `(set -o) 2>/dev/null` in #(
20325 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20326 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20327 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20328 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20329 # Prefer a ksh shell builtin over an external printf program on Solaris,
20330 # but without wasting forks for bash or zsh.
20331 if test -z "$BASH_VERSION$ZSH_VERSION" \
20332 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20333 as_echo='print -r --'
20334 as_echo_n='print -rn --'
20335 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20336 as_echo='printf %s\n'
20337 as_echo_n='printf %s'
20339 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20340 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20341 as_echo_n='/usr/ucb/echo -n'
20343 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20344 as_echo_n_body='eval
20348 expr "X$arg" : "X\\(.*\\)$as_nl";
20349 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20351 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20353 export as_echo_n_body
20354 as_echo_n='sh -c $as_echo_n_body as_echo'
20356 export as_echo_body
20357 as_echo='sh -c $as_echo_body as_echo'
20360 # The user is always right.
20361 if test "${PATH_SEPARATOR+set}" != set; then
20363 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20364 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20371 # We need space, tab and new line, in precisely that order. Quoting is
20372 # there to prevent editors from complaining about space-tab.
20373 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20374 # splitting by setting IFS to empty value.)
20377 # Find who we are. Look in the path if we contain no directory separator.
20380 *[\\/]* ) as_myself=$0 ;;
20381 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20382 for as_dir in $PATH
20385 test -z "$as_dir" && as_dir=.
20386 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20392 # We did not find ourselves, most probably we were run as `sh COMMAND'
20393 # in which case we are not to be found in the path.
20394 if test "x$as_myself" = x; then
20397 if test ! -f "$as_myself"; then
20398 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20402 # Unset variables that we do not need and which cause bugs (e.g. in
20403 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20404 # suppresses any "Segmentation fault" message there. '((' could
20405 # trigger a bug in pdksh 5.2.14.
20406 for as_var in BASH_ENV ENV MAIL MAILPATH
20407 do eval test x\${$as_var+set} = xset \
20408 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20421 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20425 # ----------------------------------------
20426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20428 # script with STATUS, using 1 if that was 0.
20431 as_status=$1; test $as_status -eq 0 && as_status=1
20433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20434 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20436 $as_echo "$as_me: error: $2" >&2
20437 as_fn_exit $as_status
20441 # as_fn_set_status STATUS
20442 # -----------------------
20443 # Set $? to STATUS, without forking.
20444 as_fn_set_status ()
20447 } # as_fn_set_status
20449 # as_fn_exit STATUS
20450 # -----------------
20451 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20455 as_fn_set_status $1
20461 # Portably unset VAR.
20464 { eval $1=; unset $1;}
20466 as_unset=as_fn_unset
20467 # as_fn_append VAR VALUE
20468 # ----------------------
20469 # Append the text in VALUE to the end of the definition contained in VAR. Take
20470 # advantage of any shell optimizations that allow amortized linear growth over
20471 # repeated appends, instead of the typical quadratic growth present in naive
20473 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20474 eval 'as_fn_append ()
20485 # as_fn_arith ARG...
20486 # ------------------
20487 # Perform arithmetic evaluation on the ARGs, and store the result in the
20488 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20489 # must be portable across $(()) and expr.
20490 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20491 eval 'as_fn_arith ()
20498 as_val=`expr "$@" || test $? -eq 1`
20503 if expr a : '\(a\)' >/dev/null 2>&1 &&
20504 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20510 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20511 as_basename=basename
20516 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20522 as_me=`$as_basename -- "$0" ||
20523 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20524 X"$0" : 'X\(//\)$' \| \
20525 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20527 sed '/^.*\/\([^/][^/]*\)\/*$/{
20541 # Avoid depending upon Character Ranges.
20542 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20543 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20544 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20545 as_cr_digits='0123456789'
20546 as_cr_alnum=$as_cr_Letters$as_cr_digits
20548 ECHO_C= ECHO_N= ECHO_T=
20549 case `echo -n x` in #(((((
20551 case `echo 'xy\c'` in
20552 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20554 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20561 rm -f conf$$ conf$$.exe conf$$.file
20562 if test -d conf$$.dir; then
20563 rm -f conf$$.dir/conf$$.file
20566 mkdir conf$$.dir 2>/dev/null
20568 if (echo >conf$$.file) 2>/dev/null; then
20569 if ln -s conf$$.file conf$$ 2>/dev/null; then
20571 # ... but there are two gotchas:
20572 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20573 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20574 # In both cases, we have to default to `cp -p'.
20575 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20577 elif ln conf$$.file conf$$ 2>/dev/null; then
20585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20586 rmdir conf$$.dir 2>/dev/null
20591 # Create "$as_dir" as a directory, including parents if necessary.
20596 -*) as_dir=./$as_dir;;
20598 test -d "$as_dir" || eval $as_mkdir_p || {
20602 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20603 *) as_qdir=$as_dir;;
20605 as_dirs="'$as_qdir' $as_dirs"
20606 as_dir=`$as_dirname -- "$as_dir" ||
20607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20608 X"$as_dir" : 'X\(//\)[^/]' \| \
20609 X"$as_dir" : 'X\(//\)$' \| \
20610 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20611 $as_echo X"$as_dir" |
20612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20616 /^X\(\/\/\)[^/].*/{
20629 test -d "$as_dir" && break
20631 test -z "$as_dirs" || eval "mkdir $as_dirs"
20632 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20636 if mkdir -p . 2>/dev/null; then
20637 as_mkdir_p='mkdir -p "$as_dir"'
20639 test -d ./-p && rmdir ./-p
20643 if test -x / >/dev/null 2>&1; then
20644 as_test_x='test -x'
20646 if ls -dL / >/dev/null 2>&1; then
20653 if test -d "$1"; then
20659 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20660 ???[sx]*):;;*)false;;esac;fi
20664 as_executable_p=$as_test_x
20666 # Sed expression to map a string onto a valid CPP name.
20667 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20669 # Sed expression to map a string onto a valid variable name.
20670 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20674 ## ----------------------------------- ##
20675 ## Main body of $CONFIG_STATUS script. ##
20676 ## ----------------------------------- ##
20678 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20681 # Save the log message, to keep $0 and so on meaningful, and to
20682 # report actual input values of CONFIG_FILES etc. instead of their
20683 # values after options handling.
20685 This file was extended by sudo $as_me 1.8.5p2, which was
20686 generated by GNU Autoconf 2.68. Invocation command line was
20688 CONFIG_FILES = $CONFIG_FILES
20689 CONFIG_HEADERS = $CONFIG_HEADERS
20690 CONFIG_LINKS = $CONFIG_LINKS
20691 CONFIG_COMMANDS = $CONFIG_COMMANDS
20694 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20699 case $ac_config_files in *"
20700 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20703 case $ac_config_headers in *"
20704 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20709 # Files that config.status was made for.
20710 config_files="$ac_config_files"
20711 config_headers="$ac_config_headers"
20712 config_commands="$ac_config_commands"
20716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20718 \`$as_me' instantiates files and other configuration actions
20719 from templates according to the current configuration. Unless the files
20720 and actions are specified as TAGs, all are instantiated by default.
20722 Usage: $0 [OPTION]... [TAG]...
20724 -h, --help print this help, then exit
20725 -V, --version print version number and configuration settings, then exit
20726 --config print configuration, then exit
20727 -q, --quiet, --silent
20728 do not print progress messages
20729 -d, --debug don't remove temporary files
20730 --recheck update $as_me by reconfiguring in the same conditions
20731 --file=FILE[:TEMPLATE]
20732 instantiate the configuration file FILE
20733 --header=FILE[:TEMPLATE]
20734 instantiate the configuration header FILE
20736 Configuration files:
20739 Configuration headers:
20742 Configuration commands:
20745 Report bugs to <http://www.sudo.ws/bugs/>."
20748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20749 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20751 sudo config.status 1.8.5p2
20752 configured by $0, generated by GNU Autoconf 2.68,
20753 with options \\"\$ac_cs_config\\"
20755 Copyright (C) 2010 Free Software Foundation, Inc.
20756 This config.status script is free software; the Free Software Foundation
20757 gives unlimited permission to copy, distribute and modify it."
20762 test -n "\$AWK" || AWK=awk
20765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20766 # The default lists apply if the user does not specify any file.
20772 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20773 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20777 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20789 # Handling of the options.
20790 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20792 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20793 $as_echo "$ac_cs_version"; exit ;;
20794 --config | --confi | --conf | --con | --co | --c )
20795 $as_echo "$ac_cs_config"; exit ;;
20796 --debug | --debu | --deb | --de | --d | -d )
20798 --file | --fil | --fi | --f )
20801 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20802 '') as_fn_error $? "missing file argument" ;;
20804 as_fn_append CONFIG_FILES " '$ac_optarg'"
20805 ac_need_defaults=false;;
20806 --header | --heade | --head | --hea )
20809 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20811 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20812 ac_need_defaults=false;;
20814 # Conflict between --help and --header
20815 as_fn_error $? "ambiguous option: \`$1'
20816 Try \`$0 --help' for more information.";;
20817 --help | --hel | -h )
20818 $as_echo "$ac_cs_usage"; exit ;;
20819 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20820 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20823 # This is an error.
20824 -*) as_fn_error $? "unrecognized option: \`$1'
20825 Try \`$0 --help' for more information." ;;
20827 *) as_fn_append ac_config_targets " $1"
20828 ac_need_defaults=false ;;
20834 ac_configure_extra_args=
20836 if $ac_cs_silent; then
20838 ac_configure_extra_args="$ac_configure_extra_args --silent"
20842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20843 if \$ac_cs_recheck; then
20844 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20846 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20847 CONFIG_SHELL='$SHELL'
20848 export CONFIG_SHELL
20853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20857 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20858 ## Running $as_me. ##
20864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20870 # The HP-UX ksh and POSIX shell print the target directory to stdout
20871 # if CDPATH is set.
20872 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20874 sed_quote_subst='$sed_quote_subst'
20875 double_quote_subst='$double_quote_subst'
20876 delay_variable_subst='$delay_variable_subst'
20877 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20878 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20879 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20880 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20881 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20882 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20883 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20884 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20885 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20886 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20887 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20888 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20889 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20890 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20891 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20892 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20893 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20894 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20895 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20896 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20897 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20898 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20899 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20900 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20901 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20902 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20903 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20904 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20905 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20906 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20907 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20908 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20909 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20910 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20911 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20912 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20913 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20914 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20915 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20916 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20917 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20918 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20919 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20920 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20921 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20922 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20923 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20924 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20925 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20926 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20927 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20928 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20929 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20930 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20931 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20932 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20933 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"`'
20934 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20935 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20936 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20937 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20938 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20939 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20940 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20941 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20942 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20943 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20944 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20945 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20946 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20947 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20948 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20949 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20950 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20951 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20952 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20953 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20954 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20955 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20956 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20957 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20958 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20959 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20960 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20961 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20962 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20963 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20964 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20965 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20966 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20967 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20968 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20969 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20970 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20971 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20972 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20973 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20974 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20975 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20976 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20977 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20978 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20979 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20980 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20981 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20982 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20983 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20984 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20985 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20986 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20987 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20988 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20989 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20990 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20991 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20992 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20993 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20994 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20995 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20996 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20997 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20998 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20999 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21000 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21001 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21002 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21003 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21004 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21005 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21006 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21009 LTCFLAGS='$LTCFLAGS'
21010 compiler='$compiler_DEFAULT'
21012 # A function that is used when there is no print builtin or printf.
21013 func_fallback_echo ()
21015 eval 'cat <<_LTECHO_EOF
21020 # Quote evaled strings.
21035 deplibs_check_method \
21040 sharedlib_from_linklib_cmd \
21043 archiver_list_spec \
21049 lt_cv_sys_global_symbol_pipe \
21050 lt_cv_sys_global_symbol_to_cdecl \
21051 lt_cv_sys_global_symbol_to_c_name_address \
21052 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21053 nm_file_list_spec \
21054 lt_prog_compiler_no_builtin_flag \
21055 lt_prog_compiler_pic \
21056 lt_prog_compiler_wl \
21057 lt_prog_compiler_static \
21058 lt_cv_prog_compiler_c_o \
21067 export_dynamic_flag_spec \
21068 whole_archive_flag_spec \
21069 compiler_needs_object \
21071 allow_undefined_flag \
21072 no_undefined_flag \
21073 hardcode_libdir_flag_spec \
21074 hardcode_libdir_separator \
21078 variables_saved_for_relink \
21080 library_names_spec \
21082 install_override_mode \
21086 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21087 *[\\\\\\\`\\"\\\$]*)
21088 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21091 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21096 # Double-quote double-evaled strings.
21097 for var in reload_cmds \
21098 old_postinstall_cmds \
21099 old_postuninstall_cmds \
21101 extract_expsyms_cmds \
21102 old_archive_from_new_cmds \
21103 old_archive_from_expsyms_cmds \
21105 archive_expsym_cmds \
21107 module_expsym_cmds \
21108 export_symbols_cmds \
21112 postuninstall_cmds \
21114 sys_lib_search_path_spec \
21115 sys_lib_dlsearch_path_spec; do
21116 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21117 *[\\\\\\\`\\"\\\$]*)
21118 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21121 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21126 ac_aux_dir='$ac_aux_dir'
21127 xsi_shell='$xsi_shell'
21128 lt_shell_append='$lt_shell_append'
21130 # See if we are running on zsh, and set the options which allow our
21131 # commands through without removal of \ escapes INIT.
21132 if test -n "\${ZSH_VERSION+set}" ; then
21133 setopt NO_GLOB_SUBST
21139 TIMESTAMP='$TIMESTAMP'
21148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21150 # Handling of arguments.
21151 for ac_config_target in $ac_config_targets
21153 case $ac_config_target in
21154 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21155 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
21156 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21157 "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
21158 "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
21159 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21160 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
21161 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
21162 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21163 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21164 "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
21165 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21166 "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
21167 "plugins/sample_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_group/Makefile" ;;
21168 "plugins/system_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/system_group/Makefile" ;;
21169 "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
21170 "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
21172 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21177 # If the user did not use the arguments to specify the items to instantiate,
21178 # then the envvar interface is used. Set only those that are not.
21179 # We use the long form for the default assignment because of an extremely
21180 # bizarre bug on SunOS 4.1.3.
21181 if $ac_need_defaults; then
21182 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21183 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21184 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21187 # Have a temporary directory for convenience. Make it in the build tree
21188 # simply because there is no reason against having it here, and in addition,
21189 # creating and moving files from /tmp can sometimes cause problems.
21190 # Hook for its removal unless debugging.
21191 # Note that there is a small window in which the directory will not be cleaned:
21192 # after its creation but before its name has been assigned to `$tmp'.
21196 trap 'exit_status=$?
21197 : "${ac_tmp:=$tmp}"
21198 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21200 trap 'as_fn_exit 1' 1 2 13 15
21202 # Create a (secure) tmp directory for tmp files.
21205 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21209 tmp=./conf$$-$RANDOM
21210 (umask 077 && mkdir "$tmp")
21211 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21214 # Set up the scripts for CONFIG_FILES section.
21215 # No need to generate them if there are no CONFIG_FILES.
21216 # This happens for instance with `./config.status config.h'.
21217 if test -n "$CONFIG_FILES"; then
21220 ac_cr=`echo X | tr X '\015'`
21221 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21222 # But we know of no other shell where ac_cr would be empty at this
21223 # point, so we can use a bashism as a fallback.
21224 if test "x$ac_cr" = x; then
21225 eval ac_cr=\$\'\\r\'
21227 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21228 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21231 ac_cs_awk_cr=$ac_cr
21234 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21239 echo "cat >conf$$subs.awk <<_ACEOF" &&
21240 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21242 } >conf$$subs.sh ||
21243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21244 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21246 for ac_last_try in false false false false false :; do
21247 . ./conf$$subs.sh ||
21248 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21250 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21251 if test $ac_delim_n = $ac_delim_num; then
21253 elif $ac_last_try; then
21254 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21259 rm -f conf$$subs.sh
21261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21262 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21266 s/^/S["/; s/!.*/"]=/
21276 s/\(.\{148\}\)..*/\1/
21278 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21290 s/\(.\{148\}\)..*/\1/
21292 s/["\\]/\\&/g; s/^/"/; s/$/"/
21296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21301 ' <conf$$subs.awk | sed '
21306 ' >>$CONFIG_STATUS || ac_write_fail=1
21307 rm -f conf$$subs.awk
21308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21310 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21311 for (key in S) S_is_set[key] = 1
21317 nfields = split(line, field, "@")
21319 len = length(field[1])
21320 for (i = 2; i < nfields; i++) {
21322 keylen = length(key)
21323 if (S_is_set[key]) {
21325 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21326 len += length(value) + length(field[++i])
21337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21338 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21339 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21342 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21343 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21346 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21347 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21348 # trailing colons and then remove the whole line if VPATH becomes empty
21349 # (actually we leave an empty line to preserve line numbers).
21350 if test "x$srcdir" = x.; then
21351 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21370 fi # test -n "$CONFIG_FILES"
21372 # Set up the scripts for CONFIG_HEADERS section.
21373 # No need to generate them if there are no CONFIG_HEADERS.
21374 # This happens for instance with `./config.status Makefile'.
21375 if test -n "$CONFIG_HEADERS"; then
21376 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21380 # Transform confdefs.h into an awk script `defines.awk', embedded as
21381 # here-document in config.status, that substitutes the proper values into
21382 # config.h.in to produce config.h.
21384 # Create a delimiter string that does not exist in confdefs.h, to ease
21385 # handling of long lines.
21387 for ac_last_try in false false :; do
21388 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21389 if test -z "$ac_tt"; then
21391 elif $ac_last_try; then
21392 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21398 # For the awk script, D is an array of macro values keyed by name,
21399 # likewise P contains macro parameters if any. Preserve backslash
21400 # newline sequences.
21402 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21404 s/.\{148\}/&'"$ac_delim"'/g
21407 s/^[ ]*#[ ]*define[ ][ ]*/ /
21414 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21416 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21420 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21421 D["\1"]=" \3\\\\\\n"\\/p
21423 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21428 s/.\{148\}/&'"$ac_delim"'/g
21433 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21436 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21438 ' <confdefs.h | sed '
21439 s/'"$ac_delim"'/"\\\
21440 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21443 for (key in D) D_is_set[key] = 1
21446 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21448 split(line, arg, " ")
21449 if (arg[1] == "#") {
21453 defundef = substr(arg[1], 2)
21456 split(mac1, mac2, "(") #)
21458 prefix = substr(line, 1, index(line, defundef) - 1)
21459 if (D_is_set[macro]) {
21460 # Preserve the white space surrounding the "#".
21461 print prefix "define", macro P[macro] D[macro]
21464 # Replace #undef with comments. This is necessary, for example,
21465 # in the case of _POSIX_SOURCE, which is predefined and required
21466 # on some systems where configure will not decide to define it.
21467 if (defundef == "undef") {
21468 print "/*", prefix defundef, macro, "*/"
21476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21477 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21478 fi # test -n "$CONFIG_HEADERS"
21481 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21486 :[FHLC]) ac_mode=$ac_tag; continue;;
21488 case $ac_mode$ac_tag in
21490 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21491 :[FH]-) ac_tag=-:-;;
21492 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21509 -) ac_f="$ac_tmp/stdin";;
21510 *) # Look for the file first in the build tree, then in the source tree
21511 # (if the path is not absolute). The absolute path cannot be DOS-style,
21512 # because $ac_f cannot contain `:'.
21516 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21518 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21520 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21521 as_fn_append ac_file_inputs " '$ac_f'"
21524 # Let's still pretend it is `configure' which instantiates (i.e., don't
21525 # use $as_me), people would be surprised to read:
21526 # /* config.h. Generated by config.status. */
21527 configure_input='Generated from '`
21528 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21530 if test x"$ac_file" != x-; then
21531 configure_input="$ac_file. $configure_input"
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21533 $as_echo "$as_me: creating $ac_file" >&6;}
21535 # Neutralize special characters interpreted by sed in replacement strings.
21536 case $configure_input in #(
21537 *\&* | *\|* | *\\* )
21538 ac_sed_conf_input=`$as_echo "$configure_input" |
21539 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21540 *) ac_sed_conf_input=$configure_input;;
21544 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21550 ac_dir=`$as_dirname -- "$ac_file" ||
21551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21552 X"$ac_file" : 'X\(//\)[^/]' \| \
21553 X"$ac_file" : 'X\(//\)$' \| \
21554 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21555 $as_echo X"$ac_file" |
21556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21560 /^X\(\/\/\)[^/].*/{
21573 as_dir="$ac_dir"; as_fn_mkdir_p
21577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21580 # A ".." for each directory in $ac_dir_suffix.
21581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21582 case $ac_top_builddir_sub in
21583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21587 ac_abs_top_builddir=$ac_pwd
21588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21589 # for backward compatibility:
21590 ac_top_builddir=$ac_top_build_prefix
21593 .) # We are building in place.
21595 ac_top_srcdir=$ac_top_builddir_sub
21596 ac_abs_top_srcdir=$ac_pwd ;;
21597 [\\/]* | ?:[\\/]* ) # Absolute name.
21598 ac_srcdir=$srcdir$ac_dir_suffix;
21599 ac_top_srcdir=$srcdir
21600 ac_abs_top_srcdir=$srcdir ;;
21601 *) # Relative name.
21602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21603 ac_top_srcdir=$ac_top_build_prefix$srcdir
21604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21618 # If the template does not know about datarootdir, expand it.
21619 # FIXME: This hack should be removed a few years after 2.60.
21620 ac_datarootdir_hack=; ac_datarootdir_seen=
21631 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21632 *datarootdir*) ac_datarootdir_seen=yes;;
21633 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21635 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21638 ac_datarootdir_hack='
21639 s&@datadir@&$datadir&g
21640 s&@docdir@&$docdir&g
21641 s&@infodir@&$infodir&g
21642 s&@localedir@&$localedir&g
21643 s&@mandir@&$mandir&g
21644 s&\\\${datarootdir}&$datarootdir&g' ;;
21648 # Neutralize VPATH when `$srcdir' = `.'.
21649 # Shell code in configure.ac might set extrasub.
21650 # FIXME: do we really want to maintain this feature?
21651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21652 ac_sed_extra="$ac_vpsub
21655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21658 s|@configure_input@|$ac_sed_conf_input|;t t
21659 s&@top_builddir@&$ac_top_builddir_sub&;t t
21660 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21661 s&@srcdir@&$ac_srcdir&;t t
21662 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21663 s&@top_srcdir@&$ac_top_srcdir&;t t
21664 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21665 s&@builddir@&$ac_builddir&;t t
21666 s&@abs_builddir@&$ac_abs_builddir&;t t
21667 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21668 $ac_datarootdir_hack
21670 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21671 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21674 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21675 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21676 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21678 which seems to be undefined. Please make sure it is defined" >&5
21679 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21680 which seems to be undefined. Please make sure it is defined" >&2;}
21682 rm -f "$ac_tmp/stdin"
21684 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21685 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21693 if test x"$ac_file" != x-; then
21695 $as_echo "/* $configure_input */" \
21696 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21697 } >"$ac_tmp/config.h" \
21698 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21699 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21701 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21704 mv "$ac_tmp/config.h" "$ac_file" \
21705 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21708 $as_echo "/* $configure_input */" \
21709 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21710 || as_fn_error $? "could not create -" "$LINENO" 5
21714 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21715 $as_echo "$as_me: executing $ac_file commands" >&6;}
21720 case $ac_file$ac_mode in
21723 # See if we are running on zsh, and set the options which allow our
21724 # commands through without removal of \ escapes.
21725 if test -n "${ZSH_VERSION+set}" ; then
21726 setopt NO_GLOB_SUBST
21729 cfgfile="${ofile}T"
21730 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21733 cat <<_LT_EOF >> "$cfgfile"
21736 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21737 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21738 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21739 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21741 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21742 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21744 # Written by Gordon Matzigkeit, 1996
21746 # This file is part of GNU Libtool.
21748 # GNU Libtool is free software; you can redistribute it and/or
21749 # modify it under the terms of the GNU General Public License as
21750 # published by the Free Software Foundation; either version 2 of
21751 # the License, or (at your option) any later version.
21753 # As a special exception to the GNU General Public License,
21754 # if you distribute this file as part of a program or library that
21755 # is built using GNU Libtool, you may include this file under the
21756 # same distribution terms that you use for the rest of that program.
21758 # GNU Libtool is distributed in the hope that it will be useful,
21759 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21760 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21761 # GNU General Public License for more details.
21763 # You should have received a copy of the GNU General Public License
21764 # along with GNU Libtool; see the file COPYING. If not, a copy
21765 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21766 # obtained by writing to the Free Software Foundation, Inc.,
21767 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21770 # The names of the tagged configurations supported by this script.
21773 # ### BEGIN LIBTOOL CONFIG
21775 # Which release of libtool.m4 was used?
21776 macro_version=$macro_version
21777 macro_revision=$macro_revision
21779 # Whether or not to build shared libraries.
21780 build_libtool_libs=$enable_shared
21782 # Whether or not to build static libraries.
21783 build_old_libs=$enable_static
21785 # What type of objects to build.
21788 # Whether or not to optimize for fast installation.
21789 fast_install=$enable_fast_install
21791 # Shell to use when invoking shell scripts.
21794 # An echo program that protects backslashes.
21797 # The PATH separator for the build system.
21798 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21801 host_alias=$host_alias
21805 # The build system.
21806 build_alias=$build_alias
21810 # A sed program that does not truncate output.
21813 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21814 Xsed="\$SED -e 1s/^X//"
21816 # A grep program that handles long lines.
21822 # A literal string matcher.
21825 # A BSD- or MS-compatible name lister.
21828 # Whether we need soft or hard links.
21831 # What is the maximum length of a command?
21832 max_cmd_len=$max_cmd_len
21834 # Object file suffix (normally "o").
21837 # Executable file suffix (normally "").
21840 # whether the shell understands "unset".
21843 # turn spaces into newlines.
21846 # turn newlines into spaces.
21849 # convert \$build file names to \$host format.
21850 to_host_file_cmd=$lt_cv_to_host_file_cmd
21852 # convert \$build files to toolchain format.
21853 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21855 # An object symbol dumper.
21856 OBJDUMP=$lt_OBJDUMP
21858 # Method to check whether dependent libraries are shared objects.
21859 deplibs_check_method=$lt_deplibs_check_method
21861 # Command to use when deplibs_check_method = "file_magic".
21862 file_magic_cmd=$lt_file_magic_cmd
21864 # How to find potential files when deplibs_check_method = "file_magic".
21865 file_magic_glob=$lt_file_magic_glob
21867 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21868 want_nocaseglob=$lt_want_nocaseglob
21870 # DLL creation program.
21871 DLLTOOL=$lt_DLLTOOL
21873 # Command to associate shared and link libraries.
21874 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21879 # Flags to create an archive.
21880 AR_FLAGS=$lt_AR_FLAGS
21882 # How to feed a file listing to the archiver.
21883 archiver_list_spec=$lt_archiver_list_spec
21885 # A symbol stripping program.
21888 # Commands used to install an old-style archive.
21890 old_postinstall_cmds=$lt_old_postinstall_cmds
21891 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21893 # Whether to use a lock for old archive extraction.
21894 lock_old_archive_extraction=$lock_old_archive_extraction
21899 # LTCC compiler flags.
21900 LTCFLAGS=$lt_CFLAGS
21902 # Take the output of nm and produce a listing of raw symbols and C names.
21903 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21905 # Transform the output of nm in a proper C declaration.
21906 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21908 # Transform the output of nm in a C name address pair.
21909 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21911 # Transform the output of nm in a C name address pair when lib prefix is needed.
21912 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21914 # Specify filename containing input files for \$NM.
21915 nm_file_list_spec=$lt_nm_file_list_spec
21917 # The root where to search for dependent libraries,and in which our libraries should be installed.
21918 lt_sysroot=$lt_sysroot
21920 # The name of the directory that contains temporary libtool files.
21923 # Used to examine libraries when file_magic_cmd begins with "file".
21924 MAGIC_CMD=$MAGIC_CMD
21926 # Must we lock files when doing compilation?
21927 need_locks=$lt_need_locks
21930 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21932 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21933 DSYMUTIL=$lt_DSYMUTIL
21935 # Tool to change global to local symbols on Mac OS X.
21938 # Tool to manipulate fat objects and archives on Mac OS X.
21941 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21944 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21945 OTOOL64=$lt_OTOOL64
21947 # Old archive suffix (normally "a").
21950 # Shared library suffix (normally ".so").
21951 shrext_cmds=$lt_shrext_cmds
21953 # The commands to extract the exported symbol list from a shared archive.
21954 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21956 # Variables whose values should be saved in libtool wrapper scripts and
21957 # restored at link time.
21958 variables_saved_for_relink=$lt_variables_saved_for_relink
21960 # Do we need the "lib" prefix for modules?
21961 need_lib_prefix=$need_lib_prefix
21963 # Do we need a version for libraries?
21964 need_version=$need_version
21966 # Library versioning type.
21967 version_type=$version_type
21969 # Shared library runtime path variable.
21970 runpath_var=$runpath_var
21972 # Shared library path variable.
21973 shlibpath_var=$shlibpath_var
21975 # Is shlibpath searched before the hard-coded library search path?
21976 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21978 # Format of library name prefix.
21979 libname_spec=$lt_libname_spec
21981 # List of archive names. First name is the real one, the rest are links.
21982 # The last name is the one that the linker finds with -lNAME
21983 library_names_spec=$lt_library_names_spec
21985 # The coded name of the library, if different from the real name.
21986 soname_spec=$lt_soname_spec
21988 # Permission mode override for installation of shared libraries.
21989 install_override_mode=$lt_install_override_mode
21991 # Command to use after installation of a shared archive.
21992 postinstall_cmds=$lt_postinstall_cmds
21994 # Command to use after uninstallation of a shared archive.
21995 postuninstall_cmds=$lt_postuninstall_cmds
21997 # Commands used to finish a libtool library installation in a directory.
21998 finish_cmds=$lt_finish_cmds
22000 # As "finish_cmds", except a single script fragment to be evaled but
22002 finish_eval=$lt_finish_eval
22004 # Whether we should hardcode library paths into libraries.
22005 hardcode_into_libs=$hardcode_into_libs
22007 # Compile-time system search path for libraries.
22008 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22010 # Run-time system search path for libraries.
22011 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22013 # Whether dlopen is supported.
22014 dlopen_support=$enable_dlopen
22016 # Whether dlopen of programs is supported.
22017 dlopen_self=$enable_dlopen_self
22019 # Whether dlopen of statically linked programs is supported.
22020 dlopen_self_static=$enable_dlopen_self_static
22022 # Commands to strip libraries.
22023 old_striplib=$lt_old_striplib
22024 striplib=$lt_striplib
22027 # The linker used to build libraries.
22030 # How to create reloadable object files.
22031 reload_flag=$lt_reload_flag
22032 reload_cmds=$lt_reload_cmds
22034 # Commands used to build an old-style archive.
22035 old_archive_cmds=$lt_old_archive_cmds
22037 # A language specific compiler.
22040 # Is the compiler the GNU compiler?
22043 # Compiler flag to turn off builtin functions.
22044 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22046 # Additional compiler flags for building library objects.
22047 pic_flag=$lt_lt_prog_compiler_pic
22049 # How to pass a linker flag through the compiler.
22050 wl=$lt_lt_prog_compiler_wl
22052 # Compiler flag to prevent dynamic linking.
22053 link_static_flag=$lt_lt_prog_compiler_static
22055 # Does compiler simultaneously support -c and -o options?
22056 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22058 # Whether or not to add -lc for building shared libraries.
22059 build_libtool_need_lc=$archive_cmds_need_lc
22061 # Whether or not to disallow shared libs when runtime libs are static.
22062 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22064 # Compiler flag to allow reflexive dlopens.
22065 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22067 # Compiler flag to generate shared objects directly from archives.
22068 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22070 # Whether the compiler copes with passing no objects directly.
22071 compiler_needs_object=$lt_compiler_needs_object
22073 # Create an old-style archive from a shared archive.
22074 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22076 # Create a temporary old-style archive to link instead of a shared archive.
22077 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22079 # Commands used to build a shared archive.
22080 archive_cmds=$lt_archive_cmds
22081 archive_expsym_cmds=$lt_archive_expsym_cmds
22083 # Commands used to build a loadable module if different from building
22084 # a shared archive.
22085 module_cmds=$lt_module_cmds
22086 module_expsym_cmds=$lt_module_expsym_cmds
22088 # Whether we are building with GNU ld or not.
22089 with_gnu_ld=$lt_with_gnu_ld
22091 # Flag that allows shared libraries with undefined symbols to be built.
22092 allow_undefined_flag=$lt_allow_undefined_flag
22094 # Flag that enforces no undefined symbols.
22095 no_undefined_flag=$lt_no_undefined_flag
22097 # Flag to hardcode \$libdir into a binary during linking.
22098 # This must work even if \$libdir does not exist
22099 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22101 # Whether we need a single "-rpath" flag with a separated argument.
22102 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22104 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22105 # DIR into the resulting binary.
22106 hardcode_direct=$hardcode_direct
22108 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22109 # DIR into the resulting binary and the resulting library dependency is
22110 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22111 # library is relocated.
22112 hardcode_direct_absolute=$hardcode_direct_absolute
22114 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22115 # into the resulting binary.
22116 hardcode_minus_L=$hardcode_minus_L
22118 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22119 # into the resulting binary.
22120 hardcode_shlibpath_var=$hardcode_shlibpath_var
22122 # Set to "yes" if building a shared library automatically hardcodes DIR
22123 # into the library and all subsequent libraries and executables linked
22125 hardcode_automatic=$hardcode_automatic
22127 # Set to yes if linker adds runtime paths of dependent libraries
22128 # to runtime path list.
22129 inherit_rpath=$inherit_rpath
22131 # Whether libtool must link a program against all its dependency libraries.
22132 link_all_deplibs=$link_all_deplibs
22134 # Set to "yes" if exported symbols are required.
22135 always_export_symbols=$always_export_symbols
22137 # The commands to list exported symbols.
22138 export_symbols_cmds=$lt_export_symbols_cmds
22140 # Symbols that should not be listed in the preloaded symbols.
22141 exclude_expsyms=$lt_exclude_expsyms
22143 # Symbols that must always be exported.
22144 include_expsyms=$lt_include_expsyms
22146 # Commands necessary for linking programs (against libraries) with templates.
22147 prelink_cmds=$lt_prelink_cmds
22149 # Commands necessary for finishing linking programs.
22150 postlink_cmds=$lt_postlink_cmds
22152 # Specify filename containing input files.
22153 file_list_spec=$lt_file_list_spec
22155 # How to hardcode a shared library path into an executable.
22156 hardcode_action=$hardcode_action
22158 # ### END LIBTOOL CONFIG
22164 cat <<\_LT_EOF >> "$cfgfile"
22165 # AIX sometimes has problems with the GCC collect2 program. For some
22166 # reason, if we set the COLLECT_NAMES environment variable, the problems
22167 # vanish in a puff of smoke.
22168 if test "X${COLLECT_NAMES+set}" != Xset; then
22170 export COLLECT_NAMES
22177 ltmain="$ac_aux_dir/ltmain.sh"
22180 # We use sed instead of cat because bash on DJGPP gets confused if
22181 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22182 # text mode, it properly converts lines to CR/LF. This bash problem
22183 # is reportedly fixed, but why not run on old versions too?
22184 sed '$q' "$ltmain" >> "$cfgfile" \
22185 || (rm -f "$cfgfile"; exit 1)
22187 if test x"$xsi_shell" = xyes; then
22188 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22192 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22193 \ * ) func_dirname_result="${3}" ;;\
22195 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22196 && mv -f "$cfgfile.tmp" "$cfgfile" \
22197 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22198 test 0 -eq $? || _lt_function_replace_fail=:
22201 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22204 \ func_basename_result="${1##*/}"\
22205 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22206 && mv -f "$cfgfile.tmp" "$cfgfile" \
22207 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22208 test 0 -eq $? || _lt_function_replace_fail=:
22211 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22212 func_dirname_and_basename ()\
22215 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22216 \ * ) func_dirname_result="${3}" ;;\
22218 \ func_basename_result="${1##*/}"\
22219 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22220 && mv -f "$cfgfile.tmp" "$cfgfile" \
22221 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22222 test 0 -eq $? || _lt_function_replace_fail=:
22225 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22228 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22229 \ # positional parameters, so assign one to ordinary parameter first.\
22230 \ func_stripname_result=${3}\
22231 \ func_stripname_result=${func_stripname_result#"${1}"}\
22232 \ func_stripname_result=${func_stripname_result%"${2}"}\
22233 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22234 && mv -f "$cfgfile.tmp" "$cfgfile" \
22235 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22236 test 0 -eq $? || _lt_function_replace_fail=:
22239 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22240 func_split_long_opt ()\
22242 \ func_split_long_opt_name=${1%%=*}\
22243 \ func_split_long_opt_arg=${1#*=}\
22244 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22245 && mv -f "$cfgfile.tmp" "$cfgfile" \
22246 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22247 test 0 -eq $? || _lt_function_replace_fail=:
22250 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22251 func_split_short_opt ()\
22253 \ func_split_short_opt_arg=${1#??}\
22254 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22255 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22256 && mv -f "$cfgfile.tmp" "$cfgfile" \
22257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22258 test 0 -eq $? || _lt_function_replace_fail=:
22261 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22265 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22266 \ *) func_lo2o_result=${1} ;;\
22268 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22269 && mv -f "$cfgfile.tmp" "$cfgfile" \
22270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22271 test 0 -eq $? || _lt_function_replace_fail=:
22274 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22277 func_xform_result=${1%.*}.lo\
22278 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22279 && mv -f "$cfgfile.tmp" "$cfgfile" \
22280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22281 test 0 -eq $? || _lt_function_replace_fail=:
22284 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22287 func_arith_result=$(( $* ))\
22288 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22289 && mv -f "$cfgfile.tmp" "$cfgfile" \
22290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22291 test 0 -eq $? || _lt_function_replace_fail=:
22294 sed -e '/^func_len ()$/,/^} # func_len /c\
22297 func_len_result=${#1}\
22298 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22299 && mv -f "$cfgfile.tmp" "$cfgfile" \
22300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22301 test 0 -eq $? || _lt_function_replace_fail=:
22305 if test x"$lt_shell_append" = xyes; then
22306 sed -e '/^func_append ()$/,/^} # func_append /c\
22309 eval "${1}+=\\${2}"\
22310 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22311 && mv -f "$cfgfile.tmp" "$cfgfile" \
22312 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22313 test 0 -eq $? || _lt_function_replace_fail=:
22316 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22317 func_append_quoted ()\
22319 \ func_quote_for_eval "${2}"\
22320 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22321 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22322 && mv -f "$cfgfile.tmp" "$cfgfile" \
22323 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22324 test 0 -eq $? || _lt_function_replace_fail=:
22327 # Save a `func_append' function call where possible by direct use of '+='
22328 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22329 && mv -f "$cfgfile.tmp" "$cfgfile" \
22330 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22331 test 0 -eq $? || _lt_function_replace_fail=:
22333 # Save a `func_append' function call even when '+=' is not available
22334 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22335 && mv -f "$cfgfile.tmp" "$cfgfile" \
22336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22337 test 0 -eq $? || _lt_function_replace_fail=:
22340 if test x"$_lt_function_replace_fail" = x":"; then
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22342 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22346 mv -f "$cfgfile" "$ofile" ||
22347 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22358 ac_clean_files=$ac_clean_files_save
22360 test $ac_write_fail = 0 ||
22361 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22364 # configure is writing to config.log, and then calls config.status.
22365 # config.status does its own redirection, appending to config.log.
22366 # Unfortunately, on DOS this fails, as config.log is still kept open
22367 # by configure, so config.status won't be able to write to it; its
22368 # output is simply discarded. So we exec the FD to /dev/null,
22369 # effectively closing config.log, so it can be properly (re)opened and
22370 # appended to by config.status. When coming back to configure, we
22371 # need to make the FD available again.
22372 if test "$no_create" != yes; then
22374 ac_config_status_args=
22375 test "$silent" = yes &&
22376 ac_config_status_args="$ac_config_status_args --quiet"
22378 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22380 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22381 # would make configure fail if this is the last instruction.
22382 $ac_cs_success || as_fn_exit 1
22384 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22386 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22390 if test "$with_pam" = "yes"; then
22393 if test -f /usr/lib/security/libpam_hpsec.so.1; then
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: You may wish to add the following line to /etc/pam.conf" >&5
22395 $as_echo "$as_me: You may wish to add the following line to /etc/pam.conf" >&6;}
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5
22397 $as_echo "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;}
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
22402 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}