2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for sudo 1.6.8.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # Check that we are running under the correct shell.
245 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Remove one level of quotation (which was required for Make).
250 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255 if test "X$1" = X--no-reexec; then
256 # Discard the --no-reexec flag, and continue.
258 elif test "X$1" = X--fallback-echo; then
259 # Avoid inline document here, it may be left over
261 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262 # Yippee, $echo works!
265 # Restart under the correct shell.
266 exec $SHELL "$0" --no-reexec ${1+"$@"}
269 if test "X$1" = X--fallback-echo; then
270 # used as fallback echo
278 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282 if test -z "$ECHO"; then
283 if test "X${echo_test_string+set}" != Xset; then
284 # find a string as large as possible, as long as the shell can cope with it
285 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288 echo_test_string="`eval $cmd`" &&
289 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
296 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$echo" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
351 echo="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 echo="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
418 PACKAGE_TARNAME='sudo'
419 PACKAGE_VERSION='1.6.8'
420 PACKAGE_STRING='sudo 1.6.8'
423 # Factoring default headers for most tests.
424 ac_includes_default="\
427 # include <sys/types.h>
430 # include <sys/stat.h>
441 # if !STDC_HEADERS && HAVE_MEMORY_H
447 # include <strings.h>
450 # include <inttypes.h>
460 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBTOOL CFLAGS PROGS CPPFLAGS LDFLAGS SUDO_LDFLAGS SUDO_OBJS SUDO_LIBS NET_LIBS AFS_LIBS OSDEFS AUTH_OBJS MANTYPE MAN_POSTINSTALL SUDOERS_MODE SUDOERS_UID SUDOERS_GID DEV mansectsu mansectform mansrcdir NOEXECDIR noexec_file INSTALL_NOEXEC timedir timeout password_timeout sudo_umask passprompt long_otp_prompt lecture logfac goodpri badpri loglen ignore_dot mail_no_user mail_no_host mail_no_perms mailto mailsub badpass_message fqdn runas_default env_editor passwd_tries tty_tickets insults root_sudo EGREPPROG CC ac_ct_CC EXEEXT OBJEXT CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 UNAMEPROG TRPROG NROFFPROG YACC LIBOBJS ALLOCA KRB5CONFIG LTLIBOBJS'
463 # Initialize some variables set by options.
465 ac_init_version=false
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
475 program_transform_name=s,x,x,
483 # Installation directory options.
484 # These are left unexpanded so users can "make install exec_prefix=/foo"
485 # and all the variables that are supposed to be based on exec_prefix
486 # by default will actually change.
487 # Use braces instead of parens because sh, perl, etc. also accept them.
488 bindir='${exec_prefix}/bin'
489 sbindir='${exec_prefix}/sbin'
490 libexecdir='${exec_prefix}/libexec'
491 datadir='${prefix}/share'
492 sysconfdir='${prefix}/etc'
493 sharedstatedir='${prefix}/com'
494 localstatedir='${prefix}/var'
495 libdir='${exec_prefix}/lib'
496 includedir='${prefix}/include'
497 oldincludedir='/usr/include'
498 infodir='${prefix}/info'
499 mandir='${prefix}/man'
504 # If the previous option needs an argument, assign it.
505 if test -n "$ac_prev"; then
506 eval "$ac_prev=\$ac_option"
511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513 # Accept the important Cygnus configure options, so we can diagnose typos.
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build_alias ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build_alias=$ac_optarg ;;
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file=$ac_optarg ;;
535 cache_file=config.cache ;;
537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 datadir=$ac_optarg ;;
543 -disable-* | --disable-*)
544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 eval "enable_$ac_feature=no" ;;
552 -enable-* | --enable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 eval enable_$ac_feature='$ac_optarg' ;;
565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567 | --exec | --exe | --ex)
568 ac_prev=exec_prefix ;;
569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571 | --exec=* | --exe=* | --ex=*)
572 exec_prefix=$ac_optarg ;;
574 -gas | --gas | --ga | --g)
575 # Obsolete; use --with-gas.
578 -help | --help | --hel | --he | -h)
580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581 ac_init_help=recursive ;;
582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583 ac_init_help=short ;;
585 -host | --host | --hos | --ho)
586 ac_prev=host_alias ;;
587 -host=* | --host=* | --hos=* | --ho=*)
588 host_alias=$ac_optarg ;;
590 -includedir | --includedir | --includedi | --included | --include \
591 | --includ | --inclu | --incl | --inc)
592 ac_prev=includedir ;;
593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594 | --includ=* | --inclu=* | --incl=* | --inc=*)
595 includedir=$ac_optarg ;;
597 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600 infodir=$ac_optarg ;;
602 -libdir | --libdir | --libdi | --libd)
604 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608 | --libexe | --libex | --libe)
609 ac_prev=libexecdir ;;
610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611 | --libexe=* | --libex=* | --libe=*)
612 libexecdir=$ac_optarg ;;
614 -localstatedir | --localstatedir | --localstatedi | --localstated \
615 | --localstate | --localstat | --localsta | --localst \
616 | --locals | --local | --loca | --loc | --lo)
617 ac_prev=localstatedir ;;
618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621 localstatedir=$ac_optarg ;;
623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
629 # Obsolete; use --without-fp.
632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633 | --no-cr | --no-c | -n)
636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642 | --oldin | --oldi | --old | --ol | --o)
643 ac_prev=oldincludedir ;;
644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647 oldincludedir=$ac_optarg ;;
649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 -program-prefix | --program-prefix | --program-prefi | --program-pref \
655 | --program-pre | --program-pr | --program-p)
656 ac_prev=program_prefix ;;
657 -program-prefix=* | --program-prefix=* | --program-prefi=* \
658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659 program_prefix=$ac_optarg ;;
661 -program-suffix | --program-suffix | --program-suffi | --program-suff \
662 | --program-suf | --program-su | --program-s)
663 ac_prev=program_suffix ;;
664 -program-suffix=* | --program-suffix=* | --program-suffi=* \
665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666 program_suffix=$ac_optarg ;;
668 -program-transform-name | --program-transform-name \
669 | --program-transform-nam | --program-transform-na \
670 | --program-transform-n | --program-transform- \
671 | --program-transform | --program-transfor \
672 | --program-transfo | --program-transf \
673 | --program-trans | --program-tran \
674 | --progr-tra | --program-tr | --program-t)
675 ac_prev=program_transform_name ;;
676 -program-transform-name=* | --program-transform-name=* \
677 | --program-transform-nam=* | --program-transform-na=* \
678 | --program-transform-n=* | --program-transform-=* \
679 | --program-transform=* | --program-transfor=* \
680 | --program-transfo=* | --program-transf=* \
681 | --program-trans=* | --program-tran=* \
682 | --progr-tra=* | --program-tr=* | --program-t=*)
683 program_transform_name=$ac_optarg ;;
685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686 | -silent | --silent | --silen | --sile | --sil)
689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 sbindir=$ac_optarg ;;
695 -sharedstatedir | --sharedstatedir | --sharedstatedi \
696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697 | --sharedst | --shareds | --shared | --share | --shar \
699 ac_prev=sharedstatedir ;;
700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 sharedstatedir=$ac_optarg ;;
706 -site | --site | --sit)
708 -site=* | --site=* | --sit=*)
711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717 | --syscon | --sysco | --sysc | --sys | --sy)
718 ac_prev=sysconfdir ;;
719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721 sysconfdir=$ac_optarg ;;
723 -target | --target | --targe | --targ | --tar | --ta | --t)
724 ac_prev=target_alias ;;
725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726 target_alias=$ac_optarg ;;
728 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 -version | --version | --versio | --versi | --vers | -V)
735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736 # Reject names that are not valid shell variable names.
737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738 { echo "$as_me: error: invalid package name: $ac_package" >&2
739 { (exit 1); exit 1; }; }
740 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 eval with_$ac_package='$ac_optarg' ;;
747 -without-* | --without-*)
748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
753 ac_package=`echo $ac_package | sed 's/-/_/g'`
754 eval "with_$ac_package=no" ;;
757 # Obsolete; use --with-x.
760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761 | --x-incl | --x-inc | --x-in | --x-i)
762 ac_prev=x_includes ;;
763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765 x_includes=$ac_optarg ;;
767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769 ac_prev=x_libraries ;;
770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772 x_libraries=$ac_optarg ;;
774 -*) { echo "$as_me: error: unrecognized option: $ac_option
775 Try \`$0 --help' for more information." >&2
776 { (exit 1); exit 1; }; }
780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784 { (exit 1); exit 1; }; }
785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786 eval "$ac_envvar='$ac_optarg'"
790 # FIXME: should be removed in autoconf 3.0.
791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800 if test -n "$ac_prev"; then
801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802 { echo "$as_me: error: missing argument to $ac_option" >&2
803 { (exit 1); exit 1; }; }
806 # Be sure to have absolute paths.
807 for ac_var in exec_prefix prefix
809 eval ac_val=$`echo $ac_var`
811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813 { (exit 1); exit 1; }; };;
817 # Be sure to have absolute paths.
818 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819 localstatedir libdir includedir oldincludedir infodir mandir
821 eval ac_val=$`echo $ac_var`
823 [\\/$]* | ?:[\\/]* ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
829 # There might be people who depend on the old broken behavior: `$host'
830 # used to hold the argument of --host etc.
831 # FIXME: To remove some day.
836 # FIXME: To remove some day.
837 if test "x$host_alias" != x; then
838 if test "x$build_alias" = x; then
839 cross_compiling=maybe
840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841 If a cross compiler is detected then cross compile mode will be used." >&2
842 elif test "x$build_alias" != "x$host_alias"; then
848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850 test "$silent" = yes && exec 6>/dev/null
853 # Find the source files, if location was not specified.
854 if test -z "$srcdir"; then
855 ac_srcdir_defaulted=yes
856 # Try the directory containing this script, then its parent.
857 ac_confdir=`(dirname "$0") 2>/dev/null ||
858 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859 X"$0" : 'X\(//\)[^/]' \| \
860 X"$0" : 'X\(//\)$' \| \
861 X"$0" : 'X\(/\)' \| \
862 . : '\(.\)' 2>/dev/null ||
864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866 /^X\(\/\/\)$/{ s//\1/; q; }
867 /^X\(\/\).*/{ s//\1/; q; }
870 if test ! -r $srcdir/$ac_unique_file; then
874 ac_srcdir_defaulted=no
876 if test ! -r $srcdir/$ac_unique_file; then
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879 { (exit 1); exit 1; }; }
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882 { (exit 1); exit 1; }; }
885 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887 { (exit 1); exit 1; }; }
888 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889 ac_env_build_alias_set=${build_alias+set}
890 ac_env_build_alias_value=$build_alias
891 ac_cv_env_build_alias_set=${build_alias+set}
892 ac_cv_env_build_alias_value=$build_alias
893 ac_env_host_alias_set=${host_alias+set}
894 ac_env_host_alias_value=$host_alias
895 ac_cv_env_host_alias_set=${host_alias+set}
896 ac_cv_env_host_alias_value=$host_alias
897 ac_env_target_alias_set=${target_alias+set}
898 ac_env_target_alias_value=$target_alias
899 ac_cv_env_target_alias_set=${target_alias+set}
900 ac_cv_env_target_alias_value=$target_alias
901 ac_env_CC_set=${CC+set}
903 ac_cv_env_CC_set=${CC+set}
904 ac_cv_env_CC_value=$CC
905 ac_env_CFLAGS_set=${CFLAGS+set}
906 ac_env_CFLAGS_value=$CFLAGS
907 ac_cv_env_CFLAGS_set=${CFLAGS+set}
908 ac_cv_env_CFLAGS_value=$CFLAGS
909 ac_env_LDFLAGS_set=${LDFLAGS+set}
910 ac_env_LDFLAGS_value=$LDFLAGS
911 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_cv_env_LDFLAGS_value=$LDFLAGS
913 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
914 ac_env_CPPFLAGS_value=$CPPFLAGS
915 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
917 ac_env_CPP_set=${CPP+set}
918 ac_env_CPP_value=$CPP
919 ac_cv_env_CPP_set=${CPP+set}
920 ac_cv_env_CPP_value=$CPP
921 ac_env_CXX_set=${CXX+set}
922 ac_env_CXX_value=$CXX
923 ac_cv_env_CXX_set=${CXX+set}
924 ac_cv_env_CXX_value=$CXX
925 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
926 ac_env_CXXFLAGS_value=$CXXFLAGS
927 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
928 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
929 ac_env_CXXCPP_set=${CXXCPP+set}
930 ac_env_CXXCPP_value=$CXXCPP
931 ac_cv_env_CXXCPP_set=${CXXCPP+set}
932 ac_cv_env_CXXCPP_value=$CXXCPP
933 ac_env_F77_set=${F77+set}
934 ac_env_F77_value=$F77
935 ac_cv_env_F77_set=${F77+set}
936 ac_cv_env_F77_value=$F77
937 ac_env_FFLAGS_set=${FFLAGS+set}
938 ac_env_FFLAGS_value=$FFLAGS
939 ac_cv_env_FFLAGS_set=${FFLAGS+set}
940 ac_cv_env_FFLAGS_value=$FFLAGS
943 # Report the --help message.
945 if test "$ac_init_help" = "long"; then
946 # Omit some internal or obsolete options to make the list less imposing.
947 # This message is too long to be a string in the A/UX 3.1 sh.
949 \`configure' configures sudo 1.6.8 to adapt to many kinds of systems.
951 Usage: $0 [OPTION]... [VAR=VALUE]...
953 To assign environment variables (e.g., CC, CFLAGS...), specify them as
954 VAR=VALUE. See below for descriptions of some of the useful variables.
956 Defaults for the options are specified in brackets.
959 -h, --help display this help and exit
960 --help=short display options specific to this package
961 --help=recursive display the short help of all the included packages
962 -V, --version display version information and exit
963 -q, --quiet, --silent do not print \`checking...' messages
964 --cache-file=FILE cache test results in FILE [disabled]
965 -C, --config-cache alias for \`--cache-file=config.cache'
966 -n, --no-create do not create output files
967 --srcdir=DIR find the sources in DIR [configure dir or \`..']
972 Installation directories:
973 --prefix=PREFIX install architecture-independent files in PREFIX
975 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
978 By default, \`make install' will install all the files in
979 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
980 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
981 for instance \`--prefix=\$HOME'.
983 For better control, use the options below.
985 Fine tuning of the installation directories:
986 --bindir=DIR user executables [EPREFIX/bin]
987 --sbindir=DIR system admin executables [EPREFIX/sbin]
988 --libexecdir=DIR program executables [EPREFIX/libexec]
989 --datadir=DIR read-only architecture-independent data [PREFIX/share]
990 --sysconfdir=DIR read-only single-machine data [/etc]
991 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
992 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
993 --libdir=DIR object code libraries [EPREFIX/lib]
994 --includedir=DIR C header files [PREFIX/include]
995 --oldincludedir=DIR C header files for non-gcc [/usr/include]
996 --infodir=DIR info documentation [PREFIX/info]
997 --mandir=DIR man documentation [PREFIX/man]
1003 --build=BUILD configure for building on BUILD [guessed]
1004 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1005 --target=TARGET configure for building compilers for TARGET [HOST]
1009 if test -n "$ac_init_help"; then
1010 case $ac_init_help in
1011 short | recursive ) echo "Configuration of sudo 1.6.8:";;
1016 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1017 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1018 --disable-authentication
1019 Do not require authentication by default
1020 --disable-root-mailer Don't run the mailer as root, run as the user
1021 --disable-setreuid Don't try to use the setreuid() function
1022 --disable-setresuid Don't try to use the setresuid() function
1023 --disable-saved-ids Don't try to use POSIX saved ids
1024 --disable-shadow Never use shadow passwords
1025 --disable-root-sudo Don't allow root to run sudo
1026 --enable-log-host Log the hostname in the log file
1027 --enable-noargs-shell If sudo is given no arguments run a shell
1028 --enable-shell-sets-home
1029 set $HOME to target user in shell mode
1030 --disable-path-info Print 'command not allowed' not 'command not found'
1031 --enable-shared[=PKGS]
1032 build shared libraries [default=yes]
1033 --enable-static[=PKGS]
1034 build static libraries [default=no]
1035 --enable-fast-install[=PKGS]
1036 optimize for fast installation [default=yes]
1037 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --disable-sia Never use SIA on Digital UNIX
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-otp-only deprecated
1044 --with-alertmail deprecated
1045 --with-CC C compiler to use
1046 --with-rpath pass -R flag in addition to -L for lib paths
1047 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1048 --with-incpath additional places to look for include files
1049 --with-libpath additional places to look for libraries
1050 --with-libraries additional libraries to link with
1051 --with-devel add development options
1052 --with-efence link with -lefence for malloc() debugging
1053 --with-csops add CSOps standard options
1054 --without-passwd don't use passwd/shadow file for authentication
1055 --with-skey=DIR enable S/Key support
1056 --with-opie=DIR enable OPIE support
1057 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1058 --with-SecurID[=DIR] enable SecurID support
1059 --with-fwtk[=DIR] enable FWTK AuthSRV support
1060 --with-kerb4[=DIR] enable Kerberos IV support
1061 --with-kerb5[=DIR] enable Kerberos V support
1062 --with-authenticate enable AIX general authentication support
1063 --with-pam enable PAM support
1064 --with-AFS enable AFS support
1065 --with-DCE enable DCE support
1066 --with-logincap enable BSD login class support
1067 --with-bsdauth enable BSD authentication support
1068 --without-lecture don't print lecture for first-time sudoer
1069 --with-logging log via syslog, file, or both
1070 --with-logfac syslog facility to log with (default is "local2")
1071 --with-goodpri syslog priority for commands (def is "notice")
1072 --with-badpri syslog priority for failures (def is "alert")
1073 --with-logpath path to the sudo log file
1074 --with-loglen maximum length of a log file line (default is 80)
1075 --with-ignore-dot ignore '.' in the PATH
1076 --without-mail-if-no-user do not send mail if user not in sudoers
1077 --with-mail-if-no-host send mail if user in sudoers but not for this host
1078 --with-mail-if-noperms send mail if user not allowed to run command
1079 --with-mailto who should get sudo mail (default is "root")
1080 --with-mailsubject subject of sudo mail
1081 --with-passprompt default password prompt
1082 --with-badpass-message message the user sees when the password is wrong
1083 --with-fqdn expect fully qualified hosts in sudoers
1084 --with-timedir path to the sudo timestamp dir
1085 --with-sendmail=path set path to sendmail
1086 --without-sendmail do not send mail at all
1087 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1088 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1089 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1090 --with-umask umask with which the prog should run (default is 022)
1091 --without-umask Preserves the umask of the user invoking sudo.
1092 --with-runas-default User to run commands as (default is "root")
1093 --with-exempt=group no passwd needed for users in this group
1094 --with-editor=path Default editor for visudo (defaults to vi)
1095 --with-env-editor Use the environment variable EDITOR for visudo
1096 --with-passwd-tries number of tries to enter password (default is 3)
1097 --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
1098 --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1099 --with-execv use execv() instead of execvp()
1100 --with-tty-tickets use a different ticket file for each tty
1101 --with-insults insult the user for entering an incorrect password
1102 --with-all-insults include all the sudo insult sets
1103 --with-classic-insults include the insults from the "classic" sudo
1104 --with-csops-insults include CSOps insults
1105 --with-hal-insults include 2001-like insults
1106 --with-goons-insults include the insults from the "Goon Show"
1107 --with-ldap[=DIR] enable LDAP support
1108 --with-ldap-conf-file path to LDAP configuration file
1109 --with-pc-insults replace politically incorrect insults with less offensive ones
1110 --with-secure-path override the user's path with a built-in one
1111 --without-interfaces don't try to read the ip addr of ether interfaces
1112 --with-stow properly handle GNU stow packaging
1113 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1114 --with-pic try to use only PIC/non-PIC objects [default=use
1117 include additional configurations [automatic]
1118 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1120 Some influential environment variables:
1121 CC C compiler command
1122 CFLAGS C compiler flags
1123 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1124 nonstandard directory <lib dir>
1125 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1126 headers in a nonstandard directory <include dir>
1128 CXX C++ compiler command
1129 CXXFLAGS C++ compiler flags
1130 CXXCPP C++ preprocessor
1131 F77 Fortran 77 compiler command
1132 FFLAGS Fortran 77 compiler flags
1134 Use these variables to override the choices made by `configure' or to help
1135 it to find libraries and programs with nonstandard names/locations.
1140 if test "$ac_init_help" = "recursive"; then
1141 # If there are subdirs, report their specific --help.
1143 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1144 test -d $ac_dir || continue
1147 if test "$ac_dir" != .; then
1148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1149 # A "../" for each directory in $ac_dir_suffix.
1150 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1152 ac_dir_suffix= ac_top_builddir=
1156 .) # No --srcdir option. We are building in place.
1158 if test -z "$ac_top_builddir"; then
1161 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1163 [\\/]* | ?:[\\/]* ) # Absolute path.
1164 ac_srcdir=$srcdir$ac_dir_suffix;
1165 ac_top_srcdir=$srcdir ;;
1167 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1168 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1170 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1172 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1173 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1174 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1175 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1178 # Check for guested configure; otherwise get Cygnus style configure.
1179 if test -f $ac_srcdir/configure.gnu; then
1181 $SHELL $ac_srcdir/configure.gnu --help=recursive
1182 elif test -f $ac_srcdir/configure; then
1184 $SHELL $ac_srcdir/configure --help=recursive
1185 elif test -f $ac_srcdir/configure.ac ||
1186 test -f $ac_srcdir/configure.in; then
1188 $ac_configure --help
1190 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1196 test -n "$ac_init_help" && exit 0
1197 if $ac_init_version; then
1199 sudo configure 1.6.8
1200 generated by GNU Autoconf 2.57
1202 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1203 Free Software Foundation, Inc.
1204 This configure script is free software; the Free Software Foundation
1205 gives unlimited permission to copy, distribute and modify it.
1211 This file contains any messages produced by compilers while
1212 running configure, to aid debugging if configure makes a mistake.
1214 It was created by sudo $as_me 1.6.8, which was
1215 generated by GNU Autoconf 2.57. Invocation command line was
1226 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1235 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1236 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1237 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1239 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1240 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1241 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1249 test -z "$as_dir" && as_dir=.
1250 echo "PATH: $as_dir"
1265 # Keep a trace of the command line.
1266 # Strip out --no-create and --no-recursion so they do not pile up.
1267 # Strip out --silent because we don't want to record it for future runs.
1268 # Also quote any args containing shell meta-characters.
1269 # Make two passes to allow for proper duplicate-argument suppression.
1274 ac_must_keep_next=false
1280 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291 if test $ac_must_keep_next = true; then
1292 ac_must_keep_next=false # Got value, back to normal.
1295 *=* | --config-cache | -C | -disable-* | --disable-* \
1296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298 | -with-* | --with-* | -without-* | --without-* | --x)
1299 case "$ac_configure_args0 " in
1300 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1303 -* ) ac_must_keep_next=true ;;
1306 ac_configure_args="$ac_configure_args$ac_sep\"$ac_arg\""
1307 # Get rid of the leading space.
1313 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316 # When interrupted or exit'd, cleanup temporary files, and complete
1317 # config.log. We remove comments because anyway the quotes in there
1318 # would cause problems or look ugly.
1319 # WARNING: Be sure not to use single quotes in there, as some shells,
1320 # such as our DU 5.0 friend, will then `close' the trap.
1321 trap 'exit_status=$?
1322 # Save into config.log some information that might help in debugging.
1327 ## ---------------- ##
1328 ## Cache variables. ##
1329 ## ---------------- ##
1332 # The following way of writing the cache mishandles newlines in values,
1335 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1338 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1350 ## ----------------- ##
1351 ## Output variables. ##
1352 ## ----------------- ##
1355 for ac_var in $ac_subst_vars
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1362 if test -n "$ac_subst_files"; then
1369 for ac_var in $ac_subst_files
1371 eval ac_val=$`echo $ac_var`
1372 echo "$ac_var='"'"'$ac_val'"'"'"
1377 if test -s confdefs.h; then
1384 sed "/^$/d" confdefs.h | sort
1387 test "$ac_signal" != 0 &&
1388 echo "$as_me: caught signal $ac_signal"
1389 echo "$as_me: exit $exit_status"
1391 rm -f core core.* *.core &&
1392 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1395 for ac_signal in 1 2 13 15; do
1396 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1400 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1401 rm -rf conftest* confdefs.h
1402 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1405 # Predefined preprocessor variables.
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_NAME "$PACKAGE_NAME"
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_STRING "$PACKAGE_STRING"
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1432 # Let the site file select an alternate cache file if it wants to.
1433 # Prefer explicitly selected file to automatically selected ones.
1434 if test -z "$CONFIG_SITE"; then
1435 if test "x$prefix" != xNONE; then
1436 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1441 for ac_site_file in $CONFIG_SITE; do
1442 if test -r "$ac_site_file"; then
1443 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444 echo "$as_me: loading site script $ac_site_file" >&6;}
1445 sed 's/^/| /' "$ac_site_file" >&5
1450 if test -r "$cache_file"; then
1451 # Some versions of bash will fail to source /dev/null (special
1452 # files actually), so we avoid doing that.
1453 if test -f "$cache_file"; then
1454 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455 echo "$as_me: loading cache $cache_file" >&6;}
1457 [\\/]* | ?:[\\/]* ) . $cache_file;;
1458 *) . ./$cache_file;;
1462 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463 echo "$as_me: creating cache $cache_file" >&6;}
1467 # Check that the precious variables saved in the cache have kept the same
1469 ac_cache_corrupted=false
1470 for ac_var in `(set) 2>&1 |
1471 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1472 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473 eval ac_new_set=\$ac_env_${ac_var}_set
1474 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475 eval ac_new_val="\$ac_env_${ac_var}_value"
1476 case $ac_old_set,$ac_new_set in
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1482 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484 ac_cache_corrupted=: ;;
1487 if test "x$ac_old_val" != "x$ac_new_val"; then
1488 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1489 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1490 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1491 echo "$as_me: former value: $ac_old_val" >&2;}
1492 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1493 echo "$as_me: current value: $ac_new_val" >&2;}
1494 ac_cache_corrupted=:
1497 # Pass precious variables to config.status.
1498 if test "$ac_new_set" = set; then
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502 *) ac_arg=$ac_var=$ac_new_val ;;
1504 case " $ac_configure_args " in
1505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1506 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1510 if $ac_cache_corrupted; then
1511 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515 { (exit 1); exit 1; }; }
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1550 ac_config_headers="$ac_config_headers config.h pathnames.h"
1552 { echo "$as_me:$LINENO: Configuring Sudo version 1.6.8" >&5
1553 echo "$as_me: Configuring Sudo version 1.6.8" >&6;}
1589 passprompt="Password:"
1601 mailsub='*** SECURITY information for %h ***'
1602 badpass_message='Sorry, try again.'
1612 test -n "$MANTYPE" || MANTYPE="man"
1613 test -n "$mansrcdir" || mansrcdir="."
1614 test -n "$SUDOERS_MODE" || SUDOERS_MODE=0440
1615 test -n "$SUDOERS_UID" || SUDOERS_UID=0
1616 test -n "$SUDOERS_GID" || SUDOERS_GID=0
1622 test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
1623 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
1624 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1625 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
1629 # Check whether --with-otp-only or --without-otp-only was given.
1630 if test "${with_otp_only+set}" = set; then
1631 withval="$with_otp_only"
1632 case $with_otp_only in
1634 cat >>confdefs.h <<\_ACEOF
1635 #define WITHOUT_PASSWD 1
1638 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
1639 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
1645 # Check whether --with-alertmail or --without-alertmail was given.
1646 if test "${with_alertmail+set}" = set; then
1647 withval="$with_alertmail"
1648 case $with_alertmail in
1649 *) with_mailto="$with_alertmail"
1650 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
1651 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
1658 # Check whether --with-CC or --without-CC was given.
1659 if test "${with_CC+set}" = set; then
1662 yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
1663 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
1664 { (exit 1); exit 1; }; }
1666 no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
1667 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
1668 { (exit 1); exit 1; }; }
1676 # Check whether --with-rpath or --without-rpath was given.
1677 if test "${with_rpath+set}" = set; then
1678 withval="$with_rpath"
1682 *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
1683 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
1684 { (exit 1); exit 1; }; }
1690 # Check whether --with-blibpath or --without-blibpath was given.
1691 if test "${with_blibpath+set}" = set; then
1692 withval="$with_blibpath"
1693 case $with_blibpath in
1696 *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
1697 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
1703 # Check whether --with-incpath or --without-incpath was given.
1704 if test "${with_incpath+set}" = set; then
1705 withval="$with_incpath"
1706 case $with_incpath in
1707 yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
1708 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
1709 { (exit 1); exit 1; }; }
1711 no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
1712 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
1713 { (exit 1); exit 1; }; }
1715 *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
1716 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
1717 for i in ${with_incpath}; do
1718 CPPFLAGS="${CPPFLAGS} -I${i}"
1725 # Check whether --with-libpath or --without-libpath was given.
1726 if test "${with_libpath+set}" = set; then
1727 withval="$with_libpath"
1728 case $with_libpath in
1729 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
1730 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
1731 { (exit 1); exit 1; }; }
1733 no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
1734 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
1735 { (exit 1); exit 1; }; }
1737 *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
1738 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
1744 # Check whether --with-libraries or --without-libraries was given.
1745 if test "${with_libraries+set}" = set; then
1746 withval="$with_libraries"
1747 case $with_libraries in
1748 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
1749 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
1750 { (exit 1); exit 1; }; }
1752 no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
1753 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
1754 { (exit 1); exit 1; }; }
1756 *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
1757 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
1763 # Check whether --with-devel or --without-devel was given.
1764 if test "${with_devel+set}" = set; then
1765 withval="$with_devel"
1767 yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
1768 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
1769 PROGS="${PROGS} testsudoers"
1770 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
1774 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
1775 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
1781 # Check whether --with-efence or --without-efence was given.
1782 if test "${with_efence+set}" = set; then
1783 withval="$with_efence"
1784 case $with_efence in
1785 yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
1786 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
1787 LIBS="${LIBS} -lefence"
1788 if test -f /usr/local/lib/libefence.a; then
1789 with_libpath="${with_libpath} /usr/local/lib"
1793 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
1794 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
1800 # Check whether --with-csops or --without-csops was given.
1801 if test "${with_csops+set}" = set; then
1802 withval="$with_csops"
1804 yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
1805 echo "$as_me: Adding CSOps standard options" >&6;}
1809 with_classic_insults=yes
1810 with_csops_insults=yes
1812 test -n "$mansectsu" || mansectsu=8
1813 test -n "$mansectform" || mansectform=5
1816 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
1817 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
1823 # Check whether --with-passwd or --without-passwd was given.
1824 if test "${with_passwd+set}" = set; then
1825 withval="$with_passwd"
1826 case $with_passwd in
1828 no) cat >>confdefs.h <<\_ACEOF
1829 #define WITHOUT_PASSWD 1
1832 echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
1833 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6
1834 echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1837 *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1838 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
1839 { (exit 1); exit 1; }; }
1845 # Check whether --with-skey or --without-skey was given.
1846 if test "${with_skey+set}" = set; then
1847 withval="$with_skey"
1850 *) if test -n "$with_opie"; then
1851 { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
1852 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
1853 { (exit 1); exit 1; }; }
1855 cat >>confdefs.h <<\_ACEOF
1859 echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
1860 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6
1861 echo "$as_me:$LINENO: result: yes" >&5
1862 echo "${ECHO_T}yes" >&6
1863 AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1869 # Check whether --with-opie or --without-opie was given.
1870 if test "${with_opie+set}" = set; then
1871 withval="$with_opie"
1874 *) if test -n "$with_skey"; then
1875 { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
1876 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
1877 { (exit 1); exit 1; }; }
1879 cat >>confdefs.h <<\_ACEOF
1883 echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
1884 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6
1885 echo "$as_me:$LINENO: result: yes" >&5
1886 echo "${ECHO_T}yes" >&6
1887 AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1893 # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
1894 if test "${with_long_otp_prompt+set}" = set; then
1895 withval="$with_long_otp_prompt"
1896 case $with_long_otp_prompt in
1897 yes) cat >>confdefs.h <<\_ACEOF
1898 #define LONG_OTP_PROMPT 1
1901 echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
1902 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6
1903 echo "$as_me:$LINENO: result: yes" >&5
1904 echo "${ECHO_T}yes" >&6
1907 no) long_otp_prompt=off
1909 *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1910 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
1911 { (exit 1); exit 1; }; }
1917 # Check whether --with-SecurID or --without-SecurID was given.
1918 if test "${with_SecurID+set}" = set; then
1919 withval="$with_SecurID"
1920 case $with_SecurID in
1921 no) with_SecurID="";;
1922 *) cat >>confdefs.h <<\_ACEOF
1923 #define HAVE_SECURID 1
1926 echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
1927 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6
1928 echo "$as_me:$LINENO: result: yes" >&5
1929 echo "${ECHO_T}yes" >&6
1936 # Check whether --with-fwtk or --without-fwtk was given.
1937 if test "${with_fwtk+set}" = set; then
1938 withval="$with_fwtk"
1941 *) cat >>confdefs.h <<\_ACEOF
1945 echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
1946 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6
1947 echo "$as_me:$LINENO: result: yes" >&5
1948 echo "${ECHO_T}yes" >&6
1956 # Check whether --with-kerb4 or --without-kerb4 was given.
1957 if test "${with_kerb4+set}" = set; then
1958 withval="$with_kerb4"
1961 *) echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
1962 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6
1963 echo "$as_me:$LINENO: result: yes" >&5
1964 echo "${ECHO_T}yes" >&6
1970 # Check whether --with-kerb5 or --without-kerb5 was given.
1971 if test "${with_kerb5+set}" = set; then
1972 withval="$with_kerb5"
1975 *) echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
1976 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6
1977 echo "$as_me:$LINENO: result: yes" >&5
1978 echo "${ECHO_T}yes" >&6
1984 # Check whether --with-authenticate or --without-authenticate was given.
1985 if test "${with_authenticate+set}" = set; then
1986 withval="$with_authenticate"
1987 case $with_authenticate in
1988 yes) cat >>confdefs.h <<\_ACEOF
1989 #define HAVE_AUTHENTICATE 1
1992 echo "$as_me:$LINENO: checking whether to use AIX general authentication" >&5
1993 echo $ECHO_N "checking whether to use AIX general authentication... $ECHO_C" >&6
1994 echo "$as_me:$LINENO: result: yes" >&5
1995 echo "${ECHO_T}yes" >&6
1997 AUTH_OBJS="aix_auth.o"
2000 *) { { echo "$as_me:$LINENO: error: \"--with-authenticate does not take an argument.\"" >&5
2001 echo "$as_me: error: \"--with-authenticate does not take an argument.\"" >&2;}
2002 { (exit 1); exit 1; }; }
2008 # Check whether --with-pam or --without-pam was given.
2009 if test "${with_pam+set}" = set; then
2012 yes) cat >>confdefs.h <<\_ACEOF
2016 echo "$as_me:$LINENO: checking whether to use PAM authentication" >&5
2017 echo $ECHO_N "checking whether to use PAM authentication... $ECHO_C" >&6
2018 echo "$as_me:$LINENO: result: yes" >&5
2019 echo "${ECHO_T}yes" >&6
2024 *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2025 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2026 { (exit 1); exit 1; }; }
2032 # Check whether --with-AFS or --without-AFS was given.
2033 if test "${with_AFS+set}" = set; then
2036 yes) cat >>confdefs.h <<\_ACEOF
2040 echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2041 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6
2042 echo "$as_me:$LINENO: result: yes" >&5
2043 echo "${ECHO_T}yes" >&6
2044 AUTH_OBJS="${AUTH_OBJS} afs.o"
2047 *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2048 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2049 { (exit 1); exit 1; }; }
2055 # Check whether --with-DCE or --without-DCE was given.
2056 if test "${with_DCE+set}" = set; then
2059 yes) cat >>confdefs.h <<\_ACEOF
2063 echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2064 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6
2065 echo "$as_me:$LINENO: result: yes" >&5
2066 echo "${ECHO_T}yes" >&6
2067 AUTH_OBJS="${AUTH_OBJS} dce.o"
2070 *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2071 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2072 { (exit 1); exit 1; }; }
2078 # Check whether --with-logincap or --without-logincap was given.
2079 if test "${with_logincap+set}" = set; then
2080 withval="$with_logincap"
2081 case $with_logincap in
2083 *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2084 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2085 { (exit 1); exit 1; }; }
2091 # Check whether --with-bsdauth or --without-bsdauth was given.
2092 if test "${with_bsdauth+set}" = set; then
2093 withval="$with_bsdauth"
2094 case $with_bsdauth in
2095 yes) with_logincap=yes
2098 *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2099 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2100 { (exit 1); exit 1; }; }
2105 echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2106 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6
2108 # Check whether --with-lecture or --without-lecture was given.
2109 if test "${with_lecture+set}" = set; then
2110 withval="$with_lecture"
2111 case $with_lecture in
2112 yes|short|always) lecture=once
2114 no|none|never) lecture=never
2116 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2117 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2118 { (exit 1); exit 1; }; }
2122 if test "$lecture" = "once"; then
2123 echo "$as_me:$LINENO: result: yes" >&5
2124 echo "${ECHO_T}yes" >&6
2126 cat >>confdefs.h <<\_ACEOF
2127 #define NO_LECTURE 1
2130 echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2134 echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2135 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6
2137 # Check whether --with-logging or --without-logging was given.
2138 if test "${with_logging+set}" = set; then
2139 withval="$with_logging"
2140 case $with_logging in
2141 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2142 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2143 { (exit 1); exit 1; }; }
2145 no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2146 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2147 { (exit 1); exit 1; }; }
2149 syslog) cat >>confdefs.h <<\_ACEOF
2150 #define LOGGING SLOG_SYSLOG
2153 echo "$as_me:$LINENO: result: syslog" >&5
2154 echo "${ECHO_T}syslog" >&6
2156 file) cat >>confdefs.h <<\_ACEOF
2157 #define LOGGING SLOG_FILE
2160 echo "$as_me:$LINENO: result: file" >&5
2161 echo "${ECHO_T}file" >&6
2163 both) cat >>confdefs.h <<\_ACEOF
2164 #define LOGGING SLOG_BOTH
2167 echo "$as_me:$LINENO: result: both" >&5
2168 echo "${ECHO_T}both" >&6
2170 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2171 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2172 { (exit 1); exit 1; }; }
2176 cat >>confdefs.h <<\_ACEOF
2177 #define LOGGING SLOG_SYSLOG
2179 echo "$as_me:$LINENO: result: syslog" >&5
2180 echo "${ECHO_T}syslog" >&6
2183 echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2184 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6
2186 # Check whether --with-logfac or --without-logfac was given.
2187 if test "${with_logfac+set}" = set; then
2188 withval="$with_logfac"
2189 case $with_logfac in
2190 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2191 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2192 { (exit 1); exit 1; }; }
2194 no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2195 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2196 { (exit 1); exit 1; }; }
2198 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
2200 *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2201 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2202 { (exit 1); exit 1; }; }
2207 cat >>confdefs.h <<_ACEOF
2208 #define LOGFAC "$logfac"
2211 echo "$as_me:$LINENO: result: $logfac" >&5
2212 echo "${ECHO_T}$logfac" >&6
2214 echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2215 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6
2217 # Check whether --with-goodpri or --without-goodpri was given.
2218 if test "${with_goodpri+set}" = set; then
2219 withval="$with_goodpri"
2220 case $with_goodpri in
2221 yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2222 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2223 { (exit 1); exit 1; }; }
2225 no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2226 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2227 { (exit 1); exit 1; }; }
2229 alert|crit|debug|emerg|err|info|notice|warning)
2230 goodpri=$with_goodpri
2232 *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2233 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2234 { (exit 1); exit 1; }; }
2239 cat >>confdefs.h <<_ACEOF
2240 #define PRI_SUCCESS "$goodpri"
2243 echo "$as_me:$LINENO: result: $goodpri" >&5
2244 echo "${ECHO_T}$goodpri" >&6
2246 echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2247 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6
2249 # Check whether --with-badpri or --without-badpri was given.
2250 if test "${with_badpri+set}" = set; then
2251 withval="$with_badpri"
2252 case $with_badpri in
2253 yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2254 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2255 { (exit 1); exit 1; }; }
2257 no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2258 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2259 { (exit 1); exit 1; }; }
2261 alert|crit|debug|emerg|err|info|notice|warning)
2264 *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2265 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2266 { (exit 1); exit 1; }; }
2271 cat >>confdefs.h <<_ACEOF
2272 #define PRI_FAILURE "$badpri"
2275 echo "$as_me:$LINENO: result: $badpri" >&5
2276 echo "${ECHO_T}$badpri" >&6
2279 # Check whether --with-logpath or --without-logpath was given.
2280 if test "${with_logpath+set}" = set; then
2281 withval="$with_logpath"
2282 case $with_logpath in
2283 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2284 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2285 { (exit 1); exit 1; }; }
2287 no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2288 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2289 { (exit 1); exit 1; }; }
2294 echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2295 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6
2297 # Check whether --with-loglen or --without-loglen was given.
2298 if test "${with_loglen+set}" = set; then
2299 withval="$with_loglen"
2300 case $with_loglen in
2301 yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2302 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2303 { (exit 1); exit 1; }; }
2305 no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2306 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2307 { (exit 1); exit 1; }; }
2309 [0-9]*) loglen=$with_loglen
2311 *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2312 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2313 { (exit 1); exit 1; }; }
2318 cat >>confdefs.h <<_ACEOF
2319 #define MAXLOGFILELEN $loglen
2322 echo "$as_me:$LINENO: result: $loglen" >&5
2323 echo "${ECHO_T}$loglen" >&6
2325 echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2326 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6
2328 # Check whether --with-ignore-dot or --without-ignore-dot was given.
2329 if test "${with_ignore_dot+set}" = set; then
2330 withval="$with_ignore_dot"
2331 case $with_ignore_dot in
2336 *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2337 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2338 { (exit 1); exit 1; }; }
2342 if test "$ignore_dot" = "on"; then
2343 cat >>confdefs.h <<\_ACEOF
2344 #define IGNORE_DOT_PATH 1
2347 echo "$as_me:$LINENO: result: yes" >&5
2348 echo "${ECHO_T}yes" >&6
2350 echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2354 echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2355 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6
2357 # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
2358 if test "${with_mail_if_no_user+set}" = set; then
2359 withval="$with_mail_if_no_user"
2360 case $with_mail_if_no_user in
2361 yes) mail_no_user=on
2363 no) mail_no_user=off
2365 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2366 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2367 { (exit 1); exit 1; }; }
2371 if test "$mail_no_user" = "on"; then
2372 cat >>confdefs.h <<\_ACEOF
2373 #define SEND_MAIL_WHEN_NO_USER 1
2376 echo "$as_me:$LINENO: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6
2379 echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2383 echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2384 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6
2386 # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
2387 if test "${with_mail_if_no_host+set}" = set; then
2388 withval="$with_mail_if_no_host"
2389 case $with_mail_if_no_host in
2390 yes) mail_no_host=on
2392 no) mail_no_host=off
2394 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2395 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2396 { (exit 1); exit 1; }; }
2400 if test "$mail_no_host" = "on"; then
2401 cat >>confdefs.h <<\_ACEOF
2402 #define SEND_MAIL_WHEN_NO_HOST 1
2405 echo "$as_me:$LINENO: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6
2408 echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2412 echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2413 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6
2415 # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
2416 if test "${with_mail_if_noperms+set}" = set; then
2417 withval="$with_mail_if_noperms"
2418 case $with_mail_if_noperms in
2419 yes) mail_noperms=on
2421 no) mail_noperms=off
2423 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2424 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2425 { (exit 1); exit 1; }; }
2429 if test "$mail_noperms" = "on"; then
2430 cat >>confdefs.h <<\_ACEOF
2431 #define SEND_MAIL_WHEN_NOT_OK 1
2434 echo "$as_me:$LINENO: result: yes" >&5
2435 echo "${ECHO_T}yes" >&6
2437 echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6
2441 echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2442 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6
2444 # Check whether --with-mailto or --without-mailto was given.
2445 if test "${with_mailto+set}" = set; then
2446 withval="$with_mailto"
2447 case $with_mailto in
2448 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
2449 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2450 { (exit 1); exit 1; }; }
2452 no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
2453 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2454 { (exit 1); exit 1; }; }
2456 *) mailto=$with_mailto
2461 cat >>confdefs.h <<_ACEOF
2462 #define MAILTO "$mailto"
2465 echo "$as_me:$LINENO: result: $mailto" >&5
2466 echo "${ECHO_T}$mailto" >&6
2469 # Check whether --with-mailsubject or --without-mailsubject was given.
2470 if test "${with_mailsubject+set}" = set; then
2471 withval="$with_mailsubject"
2472 case $with_mailsubject in
2473 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
2474 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2475 { (exit 1); exit 1; }; }
2477 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2478 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
2480 *) mailsub="$with_mailsubject"
2481 echo "$as_me:$LINENO: checking sudo mail subject" >&5
2482 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6
2483 echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
2484 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6
2489 cat >>confdefs.h <<_ACEOF
2490 #define MAILSUBJECT "$mailsub"
2494 echo "$as_me:$LINENO: checking for bad password prompt" >&5
2495 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6
2497 # Check whether --with-passprompt or --without-passprompt was given.
2498 if test "${with_passprompt+set}" = set; then
2499 withval="$with_passprompt"
2500 case $with_passprompt in
2501 yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
2502 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2503 { (exit 1); exit 1; }; }
2505 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
2506 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
2508 *) passprompt="$with_passprompt"
2511 echo "$as_me:$LINENO: result: $passprompt" >&5
2512 echo "${ECHO_T}$passprompt" >&6
2514 cat >>confdefs.h <<_ACEOF
2515 #define PASSPROMPT "$passprompt"
2519 echo "$as_me:$LINENO: checking for bad password message" >&5
2520 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6
2522 # Check whether --with-badpass-message or --without-badpass-message was given.
2523 if test "${with_badpass_message+set}" = set; then
2524 withval="$with_badpass_message"
2525 case $with_badpass_message in
2526 yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
2527 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
2528 { (exit 1); exit 1; }; }
2530 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
2531 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
2533 *) badpass_message="$with_badpass_message"
2538 cat >>confdefs.h <<_ACEOF
2539 #define INCORRECT_PASSWORD "$badpass_message"
2542 echo "$as_me:$LINENO: result: $badpass_message" >&5
2543 echo "${ECHO_T}$badpass_message" >&6
2545 echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
2546 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6
2548 # Check whether --with-fqdn or --without-fqdn was given.
2549 if test "${with_fqdn+set}" = set; then
2550 withval="$with_fqdn"
2556 *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
2557 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
2558 { (exit 1); exit 1; }; }
2562 if test "$fqdn" = "on"; then
2563 cat >>confdefs.h <<\_ACEOF
2567 echo "$as_me:$LINENO: result: yes" >&5
2568 echo "${ECHO_T}yes" >&6
2570 echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2575 # Check whether --with-timedir or --without-timedir was given.
2576 if test "${with_timedir+set}" = set; then
2577 withval="$with_timedir"
2578 case $with_timedir in
2579 yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
2580 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
2581 { (exit 1); exit 1; }; }
2583 no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
2584 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
2585 { (exit 1); exit 1; }; }
2591 # Check whether --with-sendmail or --without-sendmail was given.
2592 if test "${with_sendmail+set}" = set; then
2593 withval="$with_sendmail"
2594 case $with_sendmail in
2595 yes) with_sendmail=""
2598 *) cat >>confdefs.h <<EOF
2599 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
2607 # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
2608 if test "${with_sudoers_mode+set}" = set; then
2609 withval="$with_sudoers_mode"
2610 case $with_sudoers_mode in
2611 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
2612 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
2613 { (exit 1); exit 1; }; }
2615 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
2616 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
2617 { (exit 1); exit 1; }; }
2619 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
2621 0*) SUDOERS_MODE=$with_sudoers_mode
2623 *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
2624 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
2625 { (exit 1); exit 1; }; }
2631 # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
2632 if test "${with_sudoers_uid+set}" = set; then
2633 withval="$with_sudoers_uid"
2634 case $with_sudoers_uid in
2635 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
2636 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
2637 { (exit 1); exit 1; }; }
2639 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
2640 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
2641 { (exit 1); exit 1; }; }
2643 [0-9]*) SUDOERS_UID=$with_sudoers_uid
2645 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
2646 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
2647 { (exit 1); exit 1; }; }
2653 # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
2654 if test "${with_sudoers_gid+set}" = set; then
2655 withval="$with_sudoers_gid"
2656 case $with_sudoers_gid in
2657 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
2658 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
2659 { (exit 1); exit 1; }; }
2661 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
2662 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
2663 { (exit 1); exit 1; }; }
2665 [0-9]*) SUDOERS_GID=$with_sudoers_gid
2667 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
2668 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
2669 { (exit 1); exit 1; }; }
2674 echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
2675 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6
2677 # Check whether --with-umask or --without-umask was given.
2678 if test "${with_umask+set}" = set; then
2679 withval="$with_umask"
2681 yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
2682 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
2683 { (exit 1); exit 1; }; }
2687 [0-9]*) sudo_umask=$with_umask
2689 *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
2690 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
2691 { (exit 1); exit 1; }; }
2696 cat >>confdefs.h <<_ACEOF
2697 #define SUDO_UMASK $sudo_umask
2700 if test "$sudo_umask" = "0777"; then
2701 echo "$as_me:$LINENO: result: user" >&5
2702 echo "${ECHO_T}user" >&6
2704 echo "$as_me:$LINENO: result: $sudo_umask" >&5
2705 echo "${ECHO_T}$sudo_umask" >&6
2708 echo "$as_me:$LINENO: checking for default user to run commands as" >&5
2709 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6
2711 # Check whether --with-runas-default or --without-runas-default was given.
2712 if test "${with_runas_default+set}" = set; then
2713 withval="$with_runas_default"
2714 case $with_runas_default in
2715 yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
2716 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
2717 { (exit 1); exit 1; }; }
2719 no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
2720 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
2721 { (exit 1); exit 1; }; }
2723 *) runas_default="$with_runas_default"
2728 cat >>confdefs.h <<_ACEOF
2729 #define RUNAS_DEFAULT "$runas_default"
2732 echo "$as_me:$LINENO: result: $runas_default" >&5
2733 echo "${ECHO_T}$runas_default" >&6
2736 # Check whether --with-exempt or --without-exempt was given.
2737 if test "${with_exempt+set}" = set; then
2738 withval="$with_exempt"
2739 case $with_exempt in
2740 yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
2741 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
2742 { (exit 1); exit 1; }; }
2744 no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
2745 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
2746 { (exit 1); exit 1; }; }
2749 cat >>confdefs.h <<_ACEOF
2750 #define EXEMPTGROUP "$with_exempt"
2753 echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
2754 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6
2755 echo "$as_me:$LINENO: result: $with_exempt" >&5
2756 echo "${ECHO_T}$with_exempt" >&6
2761 echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
2762 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6
2764 # Check whether --with-editor or --without-editor was given.
2765 if test "${with_editor+set}" = set; then
2766 withval="$with_editor"
2767 case $with_editor in
2768 yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
2769 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
2770 { (exit 1); exit 1; }; }
2772 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
2773 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2774 { (exit 1); exit 1; }; }
2777 cat >>confdefs.h <<_ACEOF
2778 #define EDITOR "$with_editor"
2781 echo "$as_me:$LINENO: result: $with_editor" >&5
2782 echo "${ECHO_T}$with_editor" >&6
2786 cat >>confdefs.h <<\_ACEOF
2787 #define EDITOR _PATH_VI
2789 echo "$as_me:$LINENO: result: vi" >&5
2790 echo "${ECHO_T}vi" >&6
2793 echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
2794 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6
2796 # Check whether --with-env-editor or --without-env-editor was given.
2797 if test "${with_env_editor+set}" = set; then
2798 withval="$with_env_editor"
2799 case $with_env_editor in
2804 *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
2805 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
2806 { (exit 1); exit 1; }; }
2810 if test "$env_editor" = "on"; then
2811 cat >>confdefs.h <<\_ACEOF
2812 #define ENV_EDITOR 1
2815 echo "$as_me:$LINENO: result: yes" >&5
2816 echo "${ECHO_T}yes" >&6
2818 echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6
2822 echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
2823 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6
2825 # Check whether --with-passwd-tries or --without-passwd-tries was given.
2826 if test "${with_passwd_tries+set}" = set; then
2827 withval="$with_passwd_tries"
2828 case $with_passwd_tries in
2830 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
2831 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2832 { (exit 1); exit 1; }; }
2834 [1-9]*) passwd_tries=$with_passwd_tries
2836 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
2837 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
2838 { (exit 1); exit 1; }; }
2843 cat >>confdefs.h <<_ACEOF
2844 #define TRIES_FOR_PASSWORD $passwd_tries
2847 echo "$as_me:$LINENO: result: $passwd_tries" >&5
2848 echo "${ECHO_T}$passwd_tries" >&6
2850 echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
2851 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6
2853 # Check whether --with-timeout or --without-timeout was given.
2854 if test "${with_timeout+set}" = set; then
2855 withval="$with_timeout"
2856 case $with_timeout in
2860 [0-9]*) timeout=$with_timeout
2862 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
2863 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2864 { (exit 1); exit 1; }; }
2869 cat >>confdefs.h <<_ACEOF
2870 #define TIMEOUT $timeout
2873 echo "$as_me:$LINENO: result: $timeout" >&5
2874 echo "${ECHO_T}$timeout" >&6
2876 echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
2877 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6
2879 # Check whether --with-password-timeout or --without-password-timeout was given.
2880 if test "${with_password_timeout+set}" = set; then
2881 withval="$with_password_timeout"
2882 case $with_password_timeout in
2884 no) password_timeout=0
2886 [0-9]*) password_timeout=$with_password_timeout
2888 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
2889 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2890 { (exit 1); exit 1; }; }
2895 cat >>confdefs.h <<_ACEOF
2896 #define PASSWORD_TIMEOUT $password_timeout
2899 echo "$as_me:$LINENO: result: $password_timeout" >&5
2900 echo "${ECHO_T}$password_timeout" >&6
2903 # Check whether --with-execv or --without-execv was given.
2904 if test "${with_execv+set}" = set; then
2905 withval="$with_execv"
2907 yes) echo "$as_me:$LINENO: checking whether to use execvp or execv" >&5
2908 echo $ECHO_N "checking whether to use execvp or execv... $ECHO_C" >&6
2909 echo "$as_me:$LINENO: result: execv" >&5
2910 echo "${ECHO_T}execv" >&6
2911 cat >>confdefs.h <<\_ACEOF
2917 *) { { echo "$as_me:$LINENO: error: \"--with-execv does not take an argument.\"" >&5
2918 echo "$as_me: error: \"--with-execv does not take an argument.\"" >&2;}
2919 { (exit 1); exit 1; }; }
2924 echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
2925 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6
2927 # Check whether --with-tty-tickets or --without-tty-tickets was given.
2928 if test "${with_tty_tickets+set}" = set; then
2929 withval="$with_tty_tickets"
2930 case $with_tty_tickets in
2935 *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
2936 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
2937 { (exit 1); exit 1; }; }
2941 if test "$tty_tickets" = "on"; then
2942 cat >>confdefs.h <<\_ACEOF
2943 #define USE_TTY_TICKETS 1
2946 echo "$as_me:$LINENO: result: yes" >&5
2947 echo "${ECHO_T}yes" >&6
2949 echo "$as_me:$LINENO: result: no" >&5
2950 echo "${ECHO_T}no" >&6
2953 echo "$as_me:$LINENO: checking whether to include insults" >&5
2954 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6
2956 # Check whether --with-insults or --without-insults was given.
2957 if test "${with_insults+set}" = set; then
2958 withval="$with_insults"
2959 case $with_insults in
2961 with_classic_insults=yes
2962 with_csops_insults=yes
2966 *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
2967 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
2968 { (exit 1); exit 1; }; }
2972 if test "$insults" = "on"; then
2973 cat >>confdefs.h <<\_ACEOF
2974 #define USE_INSULTS 1
2977 echo "$as_me:$LINENO: result: yes" >&5
2978 echo "${ECHO_T}yes" >&6
2980 echo "$as_me:$LINENO: result: no" >&5
2981 echo "${ECHO_T}no" >&6
2985 # Check whether --with-all-insults or --without-all-insults was given.
2986 if test "${with_all_insults+set}" = set; then
2987 withval="$with_all_insults"
2988 case $with_all_insults in
2989 yes) with_classic_insults=yes
2990 with_csops_insults=yes
2991 with_hal_insults=yes
2992 with_goons_insults=yes
2995 *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
2996 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
2997 { (exit 1); exit 1; }; }
3003 # Check whether --with-classic-insults or --without-classic-insults was given.
3004 if test "${with_classic_insults+set}" = set; then
3005 withval="$with_classic_insults"
3006 case $with_classic_insults in
3007 yes) cat >>confdefs.h <<\_ACEOF
3008 #define CLASSIC_INSULTS 1
3013 *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3014 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3015 { (exit 1); exit 1; }; }
3021 # Check whether --with-csops-insults or --without-csops-insults was given.
3022 if test "${with_csops_insults+set}" = set; then
3023 withval="$with_csops_insults"
3024 case $with_csops_insults in
3025 yes) cat >>confdefs.h <<\_ACEOF
3026 #define CSOPS_INSULTS 1
3031 *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3032 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3033 { (exit 1); exit 1; }; }
3039 # Check whether --with-hal-insults or --without-hal-insults was given.
3040 if test "${with_hal_insults+set}" = set; then
3041 withval="$with_hal_insults"
3042 case $with_hal_insults in
3043 yes) cat >>confdefs.h <<\_ACEOF
3044 #define HAL_INSULTS 1
3049 *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3050 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3051 { (exit 1); exit 1; }; }
3057 # Check whether --with-goons-insults or --without-goons-insults was given.
3058 if test "${with_goons_insults+set}" = set; then
3059 withval="$with_goons_insults"
3060 case $with_goons_insults in
3061 yes) cat >>confdefs.h <<\_ACEOF
3062 #define GOONS_INSULTS 1
3067 *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3068 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3069 { (exit 1); exit 1; }; }
3075 # Check whether --with-ldap or --without-ldap was given.
3076 if test "${with_ldap+set}" = set; then
3077 withval="$with_ldap"
3080 *) cat >>confdefs.h <<\_ACEOF
3084 echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3085 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6
3086 echo "$as_me:$LINENO: result: yes" >&5
3087 echo "${ECHO_T}yes" >&6
3092 # Check whether --with-ldap-conf-file or --without-ldap-conf-file was given.
3093 if test "${with_ldap_conf_file+set}" = set; then
3094 withval="$with_ldap_conf_file"
3096 cat >>confdefs.h <<_ACEOF
3097 #define _PATH_LDAP_CONF "$with_ldap_conf_file"
3103 # Check whether --with-pc-insults or --without-pc-insults was given.
3104 if test "${with_pc_insults+set}" = set; then
3105 withval="$with_pc_insults"
3106 case $with_pc_insults in
3107 yes) cat >>confdefs.h <<\_ACEOF
3108 #define PC_INSULTS 1
3113 *) { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3114 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3115 { (exit 1); exit 1; }; }
3120 if test "$insults" = "on"; then
3121 echo "$as_me:$LINENO: checking which insult sets to include" >&5
3122 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6
3124 test "$with_goons_insults" = "yes" && i="goons ${i}"
3125 test "$with_hal_insults" = "yes" && i="hal ${i}"
3126 test "$with_csops_insults" = "yes" && i="csops ${i}"
3127 test "$with_classic_insults" = "yes" && i="classic ${i}"
3128 echo "$as_me:$LINENO: result: $i" >&5
3129 echo "${ECHO_T}$i" >&6
3132 echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3133 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6
3135 # Check whether --with-secure-path or --without-secure-path was given.
3136 if test "${with_secure_path+set}" = set; then
3137 withval="$with_secure_path"
3138 case $with_secure_path in
3139 yes) cat >>confdefs.h <<_ACEOF
3140 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3143 echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3144 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6
3146 no) echo "$as_me:$LINENO: result: no" >&5
3147 echo "${ECHO_T}no" >&6
3149 *) cat >>confdefs.h <<_ACEOF
3150 #define SECURE_PATH "$with_secure_path"
3153 echo "$as_me:$LINENO: result: $with_secure_path" >&5
3154 echo "${ECHO_T}$with_secure_path" >&6
3158 echo "$as_me:$LINENO: result: no" >&5
3159 echo "${ECHO_T}no" >&6
3162 echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3163 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6
3165 # Check whether --with-interfaces or --without-interfaces was given.
3166 if test "${with_interfaces+set}" = set; then
3167 withval="$with_interfaces"
3168 case $with_interfaces in
3169 yes) echo "$as_me:$LINENO: result: yes" >&5
3170 echo "${ECHO_T}yes" >&6
3172 no) cat >>confdefs.h <<\_ACEOF
3173 #define STUB_LOAD_INTERFACES 1
3176 echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3179 *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3180 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3181 { (exit 1); exit 1; }; }
3185 echo "$as_me:$LINENO: result: yes" >&5
3186 echo "${ECHO_T}yes" >&6
3189 echo "$as_me:$LINENO: checking whether stow should be used" >&5
3190 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6
3192 # Check whether --with-stow or --without-stow was given.
3193 if test "${with_stow+set}" = set; then
3194 withval="$with_stow"
3196 yes) echo "$as_me:$LINENO: result: yes" >&5
3197 echo "${ECHO_T}yes" >&6
3198 cat >>confdefs.h <<\_ACEOF
3203 no) echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3206 *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3207 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3208 { (exit 1); exit 1; }; }
3212 echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6
3217 echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3218 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6
3219 # Check whether --enable-authentication or --disable-authentication was given.
3220 if test "${enable_authentication+set}" = set; then
3221 enableval="$enable_authentication"
3222 case "$enableval" in
3223 yes) echo "$as_me:$LINENO: result: yes" >&5
3224 echo "${ECHO_T}yes" >&6
3226 no) echo "$as_me:$LINENO: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3228 cat >>confdefs.h <<\_ACEOF
3229 #define NO_AUTHENTICATION 1
3233 *) echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3235 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3236 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3241 echo "$as_me:$LINENO: result: yes" >&5
3242 echo "${ECHO_T}yes" >&6
3245 echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3246 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6
3247 # Check whether --enable-root-mailer or --disable-root-mailer was given.
3248 if test "${enable_root_mailer+set}" = set; then
3249 enableval="$enable_root_mailer"
3250 case "$enableval" in
3251 yes) echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3254 no) echo "$as_me:$LINENO: result: yes" >&5
3255 echo "${ECHO_T}yes" >&6
3256 cat >>confdefs.h <<\_ACEOF
3257 #define NO_ROOT_MAILER 1
3261 *) echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3263 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3264 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3269 echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3273 # Check whether --enable-setreuid or --disable-setreuid was given.
3274 if test "${enable_setreuid+set}" = set; then
3275 enableval="$enable_setreuid"
3276 case "$enableval" in
3277 no) SKIP_SETREUID=yes
3284 # Check whether --enable-setresuid or --disable-setresuid was given.
3285 if test "${enable_setresuid+set}" = set; then
3286 enableval="$enable_setresuid"
3287 case "$enableval" in
3288 no) SKIP_SETRESUID=yes
3295 echo "$as_me:$LINENO: checking whether to disable use of POSIX saved ids" >&5
3296 echo $ECHO_N "checking whether to disable use of POSIX saved ids... $ECHO_C" >&6
3297 # Check whether --enable-saved-ids or --disable-saved-ids was given.
3298 if test "${enable_saved_ids+set}" = set; then
3299 enableval="$enable_saved_ids"
3300 case "$enableval" in
3301 yes) echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3304 no) echo "$as_me:$LINENO: result: yes" >&5
3305 echo "${ECHO_T}yes" >&6
3306 cat >>confdefs.h <<\_ACEOF
3307 #define NO_SAVED_IDS 1
3311 *) echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6
3313 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-saved-ids: $enableval" >&5
3314 echo "$as_me: WARNING: Ignoring unknown argument to --enable-saved-ids: $enableval" >&2;}
3319 echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3323 echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3324 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6
3325 # Check whether --enable-shadow or --disable-shadow was given.
3326 if test "${enable_shadow+set}" = set; then
3327 enableval="$enable_shadow"
3328 case "$enableval" in
3329 yes) echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3332 no) echo "$as_me:$LINENO: result: yes" >&5
3333 echo "${ECHO_T}yes" >&6
3336 *) echo "$as_me:$LINENO: result: no" >&5
3337 echo "${ECHO_T}no" >&6
3338 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3339 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3348 echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3349 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6
3350 # Check whether --enable-root-sudo or --disable-root-sudo was given.
3351 if test "${enable_root_sudo+set}" = set; then
3352 enableval="$enable_root_sudo"
3353 case "$enableval" in
3354 yes) echo "$as_me:$LINENO: result: yes" >&5
3355 echo "${ECHO_T}yes" >&6
3357 no) cat >>confdefs.h <<\_ACEOF
3358 #define NO_ROOT_SUDO 1
3361 echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3365 *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3366 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3367 { (exit 1); exit 1; }; }
3372 echo "$as_me:$LINENO: result: yes" >&5
3373 echo "${ECHO_T}yes" >&6
3376 echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3377 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6
3378 # Check whether --enable-log-host or --disable-log-host was given.
3379 if test "${enable_log_host+set}" = set; then
3380 enableval="$enable_log_host"
3381 case "$enableval" in
3382 yes) echo "$as_me:$LINENO: result: yes" >&5
3383 echo "${ECHO_T}yes" >&6
3384 cat >>confdefs.h <<\_ACEOF
3385 #define HOST_IN_LOG 1
3389 no) echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6
3392 *) echo "$as_me:$LINENO: result: no" >&5
3393 echo "${ECHO_T}no" >&6
3394 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3395 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3400 echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3404 echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3405 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6
3406 # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
3407 if test "${enable_noargs_shell+set}" = set; then
3408 enableval="$enable_noargs_shell"
3409 case "$enableval" in
3410 yes) echo "$as_me:$LINENO: result: yes" >&5
3411 echo "${ECHO_T}yes" >&6
3412 cat >>confdefs.h <<\_ACEOF
3413 #define SHELL_IF_NO_ARGS 1
3417 no) echo "$as_me:$LINENO: result: no" >&5
3418 echo "${ECHO_T}no" >&6
3420 *) echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3423 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
3428 echo "$as_me:$LINENO: result: no" >&5
3429 echo "${ECHO_T}no" >&6
3432 echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
3433 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6
3434 # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
3435 if test "${enable_shell_sets_home+set}" = set; then
3436 enableval="$enable_shell_sets_home"
3437 case "$enableval" in
3438 yes) echo "$as_me:$LINENO: result: yes" >&5
3439 echo "${ECHO_T}yes" >&6
3440 cat >>confdefs.h <<\_ACEOF
3441 #define SHELL_SETS_HOME 1
3445 no) echo "$as_me:$LINENO: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3448 *) echo "$as_me:$LINENO: result: no" >&5
3449 echo "${ECHO_T}no" >&6
3450 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3451 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
3456 echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3460 echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
3461 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6
3462 # Check whether --enable-path_info or --disable-path_info was given.
3463 if test "${enable_path_info+set}" = set; then
3464 enableval="$enable_path_info"
3465 case "$enableval" in
3466 yes) echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3469 no) echo "$as_me:$LINENO: result: yes" >&5
3470 echo "${ECHO_T}yes" >&6
3471 cat >>confdefs.h <<\_ACEOF
3472 #define DONT_LEAK_PATH_INFO 1
3476 *) echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3478 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3479 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
3484 echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3488 # Extract the first word of "egrep", so it can be a program name with args.
3489 set dummy egrep; ac_word=$2
3490 echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 if test -n "$EGREPPROG"; then
3496 ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_EGREPPROG="egrep"
3506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 EGREPPROG=$ac_cv_prog_EGREPPROG
3515 if test -n "$EGREPPROG"; then
3516 echo "$as_me:$LINENO: result: $EGREPPROG" >&5
3517 echo "${ECHO_T}$EGREPPROG" >&6
3519 echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3523 if test -z "$EGREPPROG"; then
3524 { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
3525 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
3526 { (exit 1); exit 1; }; }
3529 if test "$with_devel" != "yes"; then
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_CC+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if test -n "$CC"; then
3547 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 if test -n "$CC"; then
3567 echo "$as_me:$LINENO: result: $CC" >&5
3568 echo "${ECHO_T}$CC" >&6
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3575 if test -z "$ac_cv_prog_CC"; then
3577 # Extract the first word of "gcc", so it can be a program name with args.
3578 set dummy gcc; ac_word=$2
3579 echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 if test -n "$ac_ct_CC"; then
3585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_ac_ct_CC="gcc"
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3604 if test -n "$ac_ct_CC"; then
3605 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3606 echo "${ECHO_T}$ac_ct_CC" >&6
3608 echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6
3617 if test -z "$CC"; then
3618 if test -n "$ac_tool_prefix"; then
3619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3620 set dummy ${ac_tool_prefix}cc; ac_word=$2
3621 echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623 if test "${ac_cv_prog_CC+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 if test -n "$CC"; then
3627 ac_cv_prog_CC="$CC" # Let the user override the test.
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 test -z "$as_dir" && as_dir=.
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_CC="${ac_tool_prefix}cc"
3637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 if test -n "$CC"; then
3647 echo "$as_me:$LINENO: result: $CC" >&5
3648 echo "${ECHO_T}$CC" >&6
3650 echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3655 if test -z "$ac_cv_prog_CC"; then
3657 # Extract the first word of "cc", so it can be a program name with args.
3658 set dummy cc; ac_word=$2
3659 echo "$as_me:$LINENO: checking for $ac_word" >&5
3660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 if test -n "$ac_ct_CC"; then
3665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674 ac_cv_prog_ac_ct_CC="cc"
3675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684 if test -n "$ac_ct_CC"; then
3685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3686 echo "${ECHO_T}$ac_ct_CC" >&6
3688 echo "$as_me:$LINENO: result: no" >&5
3689 echo "${ECHO_T}no" >&6
3698 if test -z "$CC"; then
3699 # Extract the first word of "cc", so it can be a program name with args.
3700 set dummy cc; ac_word=$2
3701 echo "$as_me:$LINENO: checking for $ac_word" >&5
3702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3703 if test "${ac_cv_prog_CC+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 if test -n "$CC"; then
3707 ac_cv_prog_CC="$CC" # Let the user override the test.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3718 ac_prog_rejected=yes
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 if test $ac_prog_rejected = yes; then
3729 # We found a bogon in the path, so make sure we never use it.
3730 set dummy $ac_cv_prog_CC
3732 if test $# != 0; then
3733 # We chose a different compiler from the bogus one.
3734 # However, it has the same basename, so the bogon will be chosen
3735 # first if we set CC to just the basename; use the full file name.
3737 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3743 if test -n "$CC"; then
3744 echo "$as_me:$LINENO: result: $CC" >&5
3745 echo "${ECHO_T}$CC" >&6
3747 echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6
3752 if test -z "$CC"; then
3753 if test -n "$ac_tool_prefix"; then
3756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3758 echo "$as_me:$LINENO: checking for $ac_word" >&5
3759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3760 if test "${ac_cv_prog_CC+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 if test -n "$CC"; then
3764 ac_cv_prog_CC="$CC" # Let the user override the test.
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 if test -n "$CC"; then
3784 echo "$as_me:$LINENO: result: $CC" >&5
3785 echo "${ECHO_T}$CC" >&6
3787 echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6
3791 test -n "$CC" && break
3794 if test -z "$CC"; then
3798 # Extract the first word of "$ac_prog", so it can be a program name with args.
3799 set dummy $ac_prog; ac_word=$2
3800 echo "$as_me:$LINENO: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 if test -n "$ac_ct_CC"; then
3806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815 ac_cv_prog_ac_ct_CC="$ac_prog"
3816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3825 if test -n "$ac_ct_CC"; then
3826 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3827 echo "${ECHO_T}$ac_ct_CC" >&6
3829 echo "$as_me:$LINENO: result: no" >&5
3830 echo "${ECHO_T}no" >&6
3833 test -n "$ac_ct_CC" && break
3842 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3843 See \`config.log' for more details." >&5
3844 echo "$as_me: error: no acceptable C compiler found in \$PATH
3845 See \`config.log' for more details." >&2;}
3846 { (exit 1); exit 1; }; }
3848 # Provide some information about the compiler.
3849 echo "$as_me:$LINENO:" \
3850 "checking for C compiler version" >&5
3851 ac_compiler=`set X $ac_compile; echo $2`
3852 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3853 (eval $ac_compiler --version </dev/null >&5) 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }
3857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3858 (eval $ac_compiler -v </dev/null >&5) 2>&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }
3862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3863 (eval $ac_compiler -V </dev/null >&5) 2>&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }
3868 cat >conftest.$ac_ext <<_ACEOF
3869 #line $LINENO "configure"
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3884 ac_clean_files_save=$ac_clean_files
3885 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3886 # Try to create an executable without -o first, disregard a.out.
3887 # It will help us diagnose broken compilers, and finding out an intuition
3889 echo "$as_me:$LINENO: checking for C compiler default output" >&5
3890 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3891 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3892 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3893 (eval $ac_link_default) 2>&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; then
3897 # Find the output, starting from the most likely. This scheme is
3898 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3901 # Be careful to initialize this variable, since it used to be cached.
3902 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3904 # b.out is created by i960 compilers.
3905 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3907 test -f "$ac_file" || continue
3909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3912 # This is the source file.
3915 # We found the default executable, but exeext='' is most
3919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920 # FIXME: I believe we export ac_cv_exeext for Libtool,
3921 # but it would be cool to find out if it's true. Does anybody
3922 # maintain Libtool? --akim.
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3934 See \`config.log' for more details." >&5
3935 echo "$as_me: error: C compiler cannot create executables
3936 See \`config.log' for more details." >&2;}
3937 { (exit 77); exit 77; }; }
3940 ac_exeext=$ac_cv_exeext
3941 echo "$as_me:$LINENO: result: $ac_file" >&5
3942 echo "${ECHO_T}$ac_file" >&6
3944 # Check the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3947 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3948 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3949 # If not cross compiling, check that we can run a simple program.
3950 if test "$cross_compiling" != yes; then
3951 if { ac_try='./$ac_file'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; }; then
3959 if test "$cross_compiling" = maybe; then
3962 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3963 If you meant to cross compile, use \`--host'.
3964 See \`config.log' for more details." >&5
3965 echo "$as_me: error: cannot run C compiled programs.
3966 If you meant to cross compile, use \`--host'.
3967 See \`config.log' for more details." >&2;}
3968 { (exit 1); exit 1; }; }
3972 echo "$as_me:$LINENO: result: yes" >&5
3973 echo "${ECHO_T}yes" >&6
3975 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3976 ac_clean_files=$ac_clean_files_save
3977 # Check the compiler produces executables we can run. If not, either
3978 # the compiler is broken, or we cross compile.
3979 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3980 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3981 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3982 echo "${ECHO_T}$cross_compiling" >&6
3984 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3985 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3987 (eval $ac_link) 2>&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; then
3991 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3992 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3993 # work properly (i.e., refer to `conftest.exe'), while it won't with
3995 for ac_file in conftest.exe conftest conftest.*; do
3996 test -f "$ac_file" || continue
3998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3999 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4006 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4007 See \`config.log' for more details." >&5
4008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4009 See \`config.log' for more details." >&2;}
4010 { (exit 1); exit 1; }; }
4013 rm -f conftest$ac_cv_exeext
4014 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4015 echo "${ECHO_T}$ac_cv_exeext" >&6
4017 rm -f conftest.$ac_ext
4018 EXEEXT=$ac_cv_exeext
4020 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4021 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4022 if test "${ac_cv_objext+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 cat >conftest.$ac_ext <<_ACEOF
4026 #line $LINENO "configure"
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4041 rm -f conftest.o conftest.obj
4042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4043 (eval $ac_compile) 2>&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; then
4047 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4055 echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4058 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4059 See \`config.log' for more details." >&5
4060 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4061 See \`config.log' for more details." >&2;}
4062 { (exit 1); exit 1; }; }
4065 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4067 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4068 echo "${ECHO_T}$ac_cv_objext" >&6
4069 OBJEXT=$ac_cv_objext
4071 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4072 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4073 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 cat >conftest.$ac_ext <<_ACEOF
4077 #line $LINENO "configure"
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4114 rm -f conftest.$ac_objext conftest.$ac_ext
4115 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4118 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4119 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4120 GCC=`test $ac_compiler_gnu = yes && echo yes`
4121 ac_test_CFLAGS=${CFLAGS+set}
4122 ac_save_CFLAGS=$CFLAGS
4124 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4125 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4126 if test "${ac_cv_prog_cc_g+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 cat >conftest.$ac_ext <<_ACEOF
4130 #line $LINENO "configure"
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4164 rm -f conftest.$ac_objext conftest.$ac_ext
4166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4168 if test "$ac_test_CFLAGS" = set; then
4169 CFLAGS=$ac_save_CFLAGS
4170 elif test $ac_cv_prog_cc_g = yes; then
4171 if test "$GCC" = yes; then
4177 if test "$GCC" = yes; then
4183 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4184 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4185 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 ac_cv_prog_cc_stdc=no
4190 cat >conftest.$ac_ext <<_ACEOF
4191 #line $LINENO "configure"
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4199 #include <sys/types.h>
4200 #include <sys/stat.h>
4201 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4202 struct buf { int x; };
4203 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4204 static char *e (p, i)
4210 static char *f (char * (*g) (char **, int), char **p, ...)
4215 s = g (p, va_arg (v,int));
4219 int test (int i, double x);
4220 struct s1 {int (*f) (int a);};
4221 struct s2 {int (*f) (double a);};
4222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4233 # Don't try gcc -ansi; that turns off useful extensions and
4234 # breaks some systems' header files.
4235 # AIX -qlanglvl=ansi
4236 # Ultrix and OSF/1 -std1
4237 # HP-UX 10.20 and later -Ae
4238 # HP-UX older versions -Aa -D_HPUX_SOURCE
4239 # SVR4 -Xc -D__EXTENSIONS__
4240 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4242 CC="$ac_save_CC $ac_arg"
4243 rm -f conftest.$ac_objext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4245 (eval $ac_compile) 2>&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -s conftest.$ac_objext'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 ac_cv_prog_cc_stdc=$ac_arg
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4262 rm -f conftest.$ac_objext
4264 rm -f conftest.$ac_ext conftest.$ac_objext
4269 case "x$ac_cv_prog_cc_stdc" in
4271 echo "$as_me:$LINENO: result: none needed" >&5
4272 echo "${ECHO_T}none needed" >&6 ;;
4274 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4275 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4276 CC="$CC $ac_cv_prog_cc_stdc" ;;
4279 # Some people use a C++ compiler to compile C. Since we use `exit',
4280 # in C++ we need to declare it. In case someone uses the same compiler
4281 # for both compiling C and C++ we need to have the C++ compiler decide
4282 # the declaration of exit, since it's the most demanding environment.
4283 cat >conftest.$ac_ext <<_ACEOF
4288 rm -f conftest.$ac_objext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 for ac_declaration in \
4302 '#include <stdlib.h>' \
4303 'extern "C" void std::exit (int) throw (); using std::exit;' \
4304 'extern "C" void std::exit (int); using std::exit;' \
4305 'extern "C" void exit (int) throw ();' \
4306 'extern "C" void exit (int);' \
4309 cat >conftest.$ac_ext <<_ACEOF
4310 #line $LINENO "configure"
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
4332 { ac_try='test -s conftest.$ac_objext'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4345 rm -f conftest.$ac_objext conftest.$ac_ext
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4380 rm -f conftest.$ac_objext conftest.$ac_ext
4383 if test -n "$ac_declaration"; then
4384 echo '#ifdef __cplusplus' >>confdefs.h
4385 echo $ac_declaration >>confdefs.h
4386 echo '#endif' >>confdefs.h
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4394 rm -f conftest.$ac_objext conftest.$ac_ext
4396 ac_cpp='$CPP $CPPFLAGS'
4397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402 echo "$as_me:$LINENO: checking for library containing strerror" >&5
4403 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4404 if test "${ac_cv_search_strerror+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 ac_func_search_save_LIBS=$LIBS
4408 ac_cv_search_strerror=no
4409 cat >conftest.$ac_ext <<_ACEOF
4410 #line $LINENO "configure"
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4417 /* Override any gcc2 internal prototype to avoid an error. */
4421 /* We use char because int might match the return type of a gcc2
4422 builtin and then its argument prototype would still apply. */
4432 rm -f conftest.$ac_objext conftest$ac_exeext
4433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4434 (eval $ac_link) 2>&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } &&
4438 { ac_try='test -s conftest$ac_exeext'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; }; then
4444 ac_cv_search_strerror="none required"
4446 echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4451 if test "$ac_cv_search_strerror" = no; then
4452 for ac_lib in cposix; do
4453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4454 cat >conftest.$ac_ext <<_ACEOF
4455 #line $LINENO "configure"
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4462 /* Override any gcc2 internal prototype to avoid an error. */
4466 /* We use char because int might match the return type of a gcc2
4467 builtin and then its argument prototype would still apply. */
4477 rm -f conftest.$ac_objext conftest$ac_exeext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4479 (eval $ac_link) 2>&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -s conftest$ac_exeext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 ac_cv_search_strerror="-l$ac_lib"
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_func_search_save_LIBS
4501 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4502 echo "${ECHO_T}$ac_cv_search_strerror" >&6
4503 if test "$ac_cv_search_strerror" != no; then
4504 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4515 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4516 # On Suns, sometimes $CPP names a directory.
4517 if test -n "$CPP" && test -d "$CPP"; then
4520 if test -z "$CPP"; then
4521 if test "${ac_cv_prog_CPP+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 # Double quotes because CPP needs to be expanded
4525 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4528 for ac_c_preproc_warn_flag in '' yes
4530 # Use a header file that comes with gcc, so configuring glibc
4531 # with a fresh cross-compiler works.
4532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533 # <limits.h> exists even on freestanding compilers.
4534 # On the NeXT, cc -E runs the code through the compiler's parser,
4535 # not just through cpp. "Syntax error" is here to catch this case.
4536 cat >conftest.$ac_ext <<_ACEOF
4537 #line $LINENO "configure"
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4544 # include <limits.h>
4546 # include <assert.h>
4550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4553 grep -v '^ *+' conftest.er1 >conftest.err
4555 cat conftest.err >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } >/dev/null; then
4558 if test -s conftest.err; then
4559 ac_cpp_err=$ac_c_preproc_warn_flag
4566 if test -z "$ac_cpp_err"; then
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4572 # Broken: fails on valid input.
4575 rm -f conftest.err conftest.$ac_ext
4577 # OK, works on sane cases. Now check whether non-existent headers
4578 # can be detected and how.
4579 cat >conftest.$ac_ext <<_ACEOF
4580 #line $LINENO "configure"
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 #include <ac_nonexistent.h>
4588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4591 grep -v '^ *+' conftest.er1 >conftest.err
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } >/dev/null; then
4596 if test -s conftest.err; then
4597 ac_cpp_err=$ac_c_preproc_warn_flag
4604 if test -z "$ac_cpp_err"; then
4605 # Broken: success on invalid input.
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 # Passes both tests.
4615 rm -f conftest.err conftest.$ac_ext
4618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4619 rm -f conftest.err conftest.$ac_ext
4620 if $ac_preproc_ok; then
4632 echo "$as_me:$LINENO: result: $CPP" >&5
4633 echo "${ECHO_T}$CPP" >&6
4635 for ac_c_preproc_warn_flag in '' yes
4637 # Use a header file that comes with gcc, so configuring glibc
4638 # with a fresh cross-compiler works.
4639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4640 # <limits.h> exists even on freestanding compilers.
4641 # On the NeXT, cc -E runs the code through the compiler's parser,
4642 # not just through cpp. "Syntax error" is here to catch this case.
4643 cat >conftest.$ac_ext <<_ACEOF
4644 #line $LINENO "configure"
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4651 # include <limits.h>
4653 # include <assert.h>
4657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4660 grep -v '^ *+' conftest.er1 >conftest.err
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } >/dev/null; then
4665 if test -s conftest.err; then
4666 ac_cpp_err=$ac_c_preproc_warn_flag
4673 if test -z "$ac_cpp_err"; then
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 # Broken: fails on valid input.
4682 rm -f conftest.err conftest.$ac_ext
4684 # OK, works on sane cases. Now check whether non-existent headers
4685 # can be detected and how.
4686 cat >conftest.$ac_ext <<_ACEOF
4687 #line $LINENO "configure"
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693 #include <ac_nonexistent.h>
4695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4698 grep -v '^ *+' conftest.er1 >conftest.err
4700 cat conftest.err >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } >/dev/null; then
4703 if test -s conftest.err; then
4704 ac_cpp_err=$ac_c_preproc_warn_flag
4711 if test -z "$ac_cpp_err"; then
4712 # Broken: success on invalid input.
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4718 # Passes both tests.
4722 rm -f conftest.err conftest.$ac_ext
4725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4726 rm -f conftest.err conftest.$ac_ext
4727 if $ac_preproc_ok; then
4730 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4731 See \`config.log' for more details." >&5
4732 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4733 See \`config.log' for more details." >&2;}
4734 { (exit 1); exit 1; }; }
4738 ac_cpp='$CPP $CPPFLAGS'
4739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4746 if test -f $ac_dir/install-sh; then
4748 ac_install_sh="$ac_aux_dir/install-sh -c"
4750 elif test -f $ac_dir/install.sh; then
4752 ac_install_sh="$ac_aux_dir/install.sh -c"
4754 elif test -f $ac_dir/shtool; then
4756 ac_install_sh="$ac_aux_dir/shtool install -c"
4760 if test -z "$ac_aux_dir"; then
4761 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4762 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4763 { (exit 1); exit 1; }; }
4765 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4766 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4767 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4769 # Make sure we can run config.sub.
4770 $ac_config_sub sun4 >/dev/null 2>&1 ||
4771 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4772 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4773 { (exit 1); exit 1; }; }
4775 echo "$as_me:$LINENO: checking build system type" >&5
4776 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4777 if test "${ac_cv_build+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 ac_cv_build_alias=$build_alias
4781 test -z "$ac_cv_build_alias" &&
4782 ac_cv_build_alias=`$ac_config_guess`
4783 test -z "$ac_cv_build_alias" &&
4784 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4785 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4786 { (exit 1); exit 1; }; }
4787 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4788 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4789 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4790 { (exit 1); exit 1; }; }
4793 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4794 echo "${ECHO_T}$ac_cv_build" >&6
4796 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4797 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4798 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4801 echo "$as_me:$LINENO: checking host system type" >&5
4802 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4803 if test "${ac_cv_host+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 ac_cv_host_alias=$host_alias
4807 test -z "$ac_cv_host_alias" &&
4808 ac_cv_host_alias=$ac_cv_build_alias
4809 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4810 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4811 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4812 { (exit 1); exit 1; }; }
4815 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4816 echo "${ECHO_T}$ac_cv_host" >&6
4818 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4819 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4820 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4823 echo "$as_me:$LINENO: checking target system type" >&5
4824 echo $ECHO_N "checking target system type... $ECHO_C" >&6
4825 if test "${ac_cv_target+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 ac_cv_target_alias=$target_alias
4829 test "x$ac_cv_target_alias" = "x" &&
4830 ac_cv_target_alias=$ac_cv_host_alias
4831 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
4832 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
4833 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
4834 { (exit 1); exit 1; }; }
4837 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4838 echo "${ECHO_T}$ac_cv_target" >&6
4839 target=$ac_cv_target
4840 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4841 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4842 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4845 # The aliases save the names the user supplied, while $host etc.
4846 # will get canonicalized.
4847 test -n "$target_alias" &&
4848 test "$program_prefix$program_suffix$program_transform_name" = \
4850 program_prefix=${target_alias}-
4851 # Check whether --enable-shared or --disable-shared was given.
4852 if test "${enable_shared+set}" = set; then
4853 enableval="$enable_shared"
4854 p=${PACKAGE-default}
4856 yes) enable_shared=yes ;;
4857 no) enable_shared=no ;;
4860 # Look at the argument we got. We use all the common list separators.
4861 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4862 for pkg in $enableval; do
4864 if test "X$pkg" = "X$p"; then
4875 # Check whether --enable-static or --disable-static was given.
4876 if test "${enable_static+set}" = set; then
4877 enableval="$enable_static"
4878 p=${PACKAGE-default}
4880 yes) enable_static=yes ;;
4881 no) enable_static=no ;;
4884 # Look at the argument we got. We use all the common list separators.
4885 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4886 for pkg in $enableval; do
4888 if test "X$pkg" = "X$p"; then
4900 # Check whether --enable-fast-install or --disable-fast-install was given.
4901 if test "${enable_fast_install+set}" = set; then
4902 enableval="$enable_fast_install"
4903 p=${PACKAGE-default}
4905 yes) enable_fast_install=yes ;;
4906 no) enable_fast_install=no ;;
4908 enable_fast_install=no
4909 # Look at the argument we got. We use all the common list separators.
4910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4911 for pkg in $enableval; do
4913 if test "X$pkg" = "X$p"; then
4914 enable_fast_install=yes
4921 enable_fast_install=yes
4924 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4925 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4926 if test "${lt_cv_path_SED+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 # Loop through the user's path and test for sed and gsed.
4930 # Then use that list of sed's as ones to test for truncation.
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 test -z "$as_dir" && as_dir=.
4936 for lt_ac_prog in sed gsed; do
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4939 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4946 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4947 # along with /bin/sed that truncates output.
4948 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4949 test ! -f $lt_ac_sed && break
4950 cat /dev/null > conftest.in
4952 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4953 # Check for GNU sed and select it if it is found.
4954 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4955 lt_cv_path_SED=$lt_ac_sed
4959 cat conftest.in conftest.in >conftest.tmp
4960 mv conftest.tmp conftest.in
4961 cp conftest.in conftest.nl
4963 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4964 cmp -s conftest.out conftest.nl || break
4965 # 10000 chars as input seems more than enough
4966 test $lt_ac_count -gt 10 && break
4967 lt_ac_count=`expr $lt_ac_count + 1`
4968 if test $lt_ac_count -gt $lt_ac_max; then
4969 lt_ac_max=$lt_ac_count
4970 lt_cv_path_SED=$lt_ac_sed
4978 echo "$as_me:$LINENO: result: $SED" >&5
4979 echo "${ECHO_T}$SED" >&6
4981 echo "$as_me:$LINENO: checking for egrep" >&5
4982 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4983 if test "${ac_cv_prog_egrep+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4987 then ac_cv_prog_egrep='grep -E'
4988 else ac_cv_prog_egrep='egrep'
4991 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4992 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4993 EGREP=$ac_cv_prog_egrep
4997 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4998 if test "${with_gnu_ld+set}" = set; then
4999 withval="$with_gnu_ld"
5000 test "$withval" = no || with_gnu_ld=yes
5005 if test "$GCC" = yes; then
5006 # Check if gcc -print-prog-name=ld gives a path.
5007 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5008 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5011 # gcc leaves a trailing carriage return which upsets mingw
5012 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5014 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5017 # Accept absolute paths.
5019 re_direlt='/[^/][^/]*/\.\./'
5020 # Canonicalize the path of ld
5021 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5022 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5023 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5025 test -z "$LD" && LD="$ac_prog"
5028 # If it fails, then pretend we aren't using GCC.
5032 # If it is relative, then search for the first ld in PATH.
5036 elif test "$with_gnu_ld" = yes; then
5037 echo "$as_me:$LINENO: checking for GNU ld" >&5
5038 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5040 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5041 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5043 if test "${lt_cv_path_LD+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 if test -z "$LD"; then
5047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5048 for ac_dir in $PATH; do
5050 test -z "$ac_dir" && ac_dir=.
5051 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5052 lt_cv_path_LD="$ac_dir/$ac_prog"
5053 # Check to see if the program is GNU ld. I'd rather use --version,
5054 # but apparently some GNU ld's only accept -v.
5055 # Break only if it was the GNU/non-GNU ld that we prefer.
5056 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5057 *GNU* | *'with BFD'*)
5058 test "$with_gnu_ld" != no && break
5061 test "$with_gnu_ld" != yes && break
5068 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5073 if test -n "$LD"; then
5074 echo "$as_me:$LINENO: result: $LD" >&5
5075 echo "${ECHO_T}$LD" >&6
5077 echo "$as_me:$LINENO: result: no" >&5
5078 echo "${ECHO_T}no" >&6
5080 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5081 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5082 { (exit 1); exit 1; }; }
5083 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5084 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5085 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5089 case `"$LD" -v 2>&1 </dev/null` in
5090 *GNU* | *'with BFD'*)
5091 lt_cv_prog_gnu_ld=yes
5094 lt_cv_prog_gnu_ld=no
5098 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5099 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5100 with_gnu_ld=$lt_cv_prog_gnu_ld
5103 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5104 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5105 if test "${lt_cv_ld_reload_flag+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 lt_cv_ld_reload_flag='-r'
5110 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5111 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5112 reload_flag=$lt_cv_ld_reload_flag
5113 case $reload_flag in
5115 *) reload_flag=" $reload_flag" ;;
5117 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5119 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5120 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5121 if test "${lt_cv_path_NM+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 if test -n "$NM"; then
5125 # Let the user override the test.
5128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5129 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5131 test -z "$ac_dir" && ac_dir=.
5132 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5133 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5134 # Check to see if the nm accepts a BSD-compat flag.
5135 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5136 # nm: unknown option "B" ignored
5137 # Tru64's nm complains that /dev/null is an invalid object file
5138 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5139 */dev/null* | *'Invalid file or object type'*)
5140 lt_cv_path_NM="$tmp_nm -B"
5144 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5146 lt_cv_path_NM="$tmp_nm -p"
5150 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5151 continue # so that we can try to find one that supports BSD flags
5158 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5161 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5162 echo "${ECHO_T}$lt_cv_path_NM" >&6
5165 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5166 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5168 if test "$LN_S" = "ln -s"; then
5169 echo "$as_me:$LINENO: result: yes" >&5
5170 echo "${ECHO_T}yes" >&6
5172 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5173 echo "${ECHO_T}no, using $LN_S" >&6
5176 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5177 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5178 if test "${lt_cv_deplibs_check_method+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 lt_cv_file_magic_cmd='$MAGIC_CMD'
5182 lt_cv_file_magic_test_file=
5183 lt_cv_deplibs_check_method='unknown'
5184 # Need to set the preceding variable on all platforms that support
5185 # interlibrary dependencies.
5186 # 'none' -- dependencies not supported.
5187 # `unknown' -- same as none, but documents that we really don't know.
5188 # 'pass_all' -- all dependencies passed with no checks.
5189 # 'test_compile' -- check by making test program.
5190 # 'file_magic [[regex]]' -- check by looking for files in library path
5191 # which responds to the $file_magic_cmd with a given extended regex.
5192 # If you have `file' or equivalent on your system and you're not sure
5193 # whether `pass_all' will *always* work, you probably want this one.
5197 lt_cv_deplibs_check_method=pass_all
5201 lt_cv_deplibs_check_method=pass_all
5205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5206 lt_cv_file_magic_cmd='/usr/bin/file -L'
5207 lt_cv_file_magic_test_file=/shlib/libc.so
5210 cygwin* | mingw* | pw32*)
5211 # win32_libid is a shell function defined in ltmain.sh
5212 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5213 lt_cv_file_magic_cmd='win32_libid'
5216 darwin* | rhapsody*)
5217 # this will be overwritten by pass_all, but leave it in just in case
5218 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5219 lt_cv_file_magic_cmd='/usr/bin/file -L'
5221 rhapsody* | darwin1.[012])
5222 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
5225 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5228 lt_cv_deplibs_check_method=pass_all
5232 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5235 # Not sure whether the presence of OpenBSD here was a mistake.
5236 # Let's accept both of them until this is cleared up.
5237 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5238 lt_cv_file_magic_cmd=/usr/bin/file
5239 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5243 lt_cv_deplibs_check_method=pass_all
5248 lt_cv_deplibs_check_method=pass_all
5251 hpux10.20* | hpux11*)
5252 lt_cv_file_magic_cmd=/usr/bin/file
5255 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5256 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5259 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5260 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5263 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5264 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5269 irix5* | irix6* | nonstopux*)
5271 irix5* | nonstopux*)
5272 # this will be overridden with pass_all, but let us keep it just in case
5273 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5277 *-32|*"-32 ") libmagic=32-bit;;
5278 *-n32|*"-n32 ") libmagic=N32;;
5279 *-64|*"-64 ") libmagic=64-bit;;
5280 *) libmagic=never-match;;
5282 # this will be overridden with pass_all, but let us keep it just in case
5283 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5286 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5287 lt_cv_deplibs_check_method=pass_all
5290 # This must be Linux ELF.
5293 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
5294 lt_cv_deplibs_check_method=pass_all ;;
5296 # glibc up to 2.1.1 does not perform some relocations on ARM
5297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5299 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5303 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5312 lt_cv_file_magic_cmd=/usr/bin/file
5313 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5317 lt_cv_deplibs_check_method=unknown
5321 lt_cv_file_magic_cmd=/usr/bin/file
5322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5326 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5330 osf3* | osf4* | osf5*)
5331 # this will be overridden with pass_all, but let us keep it just in case
5332 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5333 lt_cv_file_magic_test_file=/shlib/libc.so
5334 lt_cv_deplibs_check_method=pass_all
5338 lt_cv_deplibs_check_method=pass_all
5342 lt_cv_deplibs_check_method=pass_all
5343 lt_cv_file_magic_test_file=/lib/libc.so
5346 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5347 case $host_vendor in
5349 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]'
5350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5353 lt_cv_deplibs_check_method=pass_all
5356 lt_cv_file_magic_cmd='/bin/file'
5357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5360 lt_cv_file_magic_cmd='/bin/file'
5361 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5362 lt_cv_file_magic_test_file=/lib/libc.so
5365 lt_cv_deplibs_check_method=pass_all
5370 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5371 lt_cv_deplibs_check_method=pass_all
5376 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5377 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5378 file_magic_cmd=$lt_cv_file_magic_cmd
5379 deplibs_check_method=$lt_cv_deplibs_check_method
5380 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5385 # If no C compiler was specified, use CC.
5388 # Allow CC to be a program name with arguments.
5391 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5392 if test "${enable_libtool_lock+set}" = set; then
5393 enableval="$enable_libtool_lock"
5396 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5398 # Some flags need to be propagated to the compiler or linker for good
5402 # Find out which ABI we are using.
5403 echo 'int i;' > conftest.$ac_ext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; then
5409 case `/usr/bin/file conftest.$ac_objext` in
5421 # Find out which ABI we are using.
5422 echo '#line 5422 "configure"' > conftest.$ac_ext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; then
5428 if test "$lt_cv_prog_gnu_ld" = yes; then
5429 case `/usr/bin/file conftest.$ac_objext` in
5431 LD="${LD-ld} -melf32bsmip"
5434 LD="${LD-ld} -melf32bmipn32"
5437 LD="${LD-ld} -melf64bmip"
5441 case `/usr/bin/file conftest.$ac_objext` in
5457 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5458 # Find out which ABI we are using.
5459 echo 'int i;' > conftest.$ac_ext
5460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5461 (eval $ac_compile) 2>&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; then
5465 case "`/usr/bin/file conftest.o`" in
5469 LD="${LD-ld} -m elf_i386"
5472 LD="${LD-ld} -m elf32ppclinux"
5475 LD="${LD-ld} -m elf_s390"
5478 LD="${LD-ld} -m elf32_sparc"
5485 LD="${LD-ld} -m elf_x86_64"
5487 ppc*-*linux*|powerpc*-*linux*)
5488 LD="${LD-ld} -m elf64ppc"
5491 LD="${LD-ld} -m elf64_s390"
5494 LD="${LD-ld} -m elf64_sparc"
5504 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5505 SAVE_CFLAGS="$CFLAGS"
5506 CFLAGS="$CFLAGS -belf"
5507 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5508 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5509 if test "${lt_cv_cc_needs_belf+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 ac_cpp='$CPP $CPPFLAGS'
5514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5534 rm -f conftest.$ac_objext conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } &&
5540 { ac_try='test -s conftest$ac_exeext'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
5546 lt_cv_cc_needs_belf=yes
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5551 lt_cv_cc_needs_belf=no
5553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5562 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5563 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5564 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5565 CFLAGS="$SAVE_CFLAGS"
5571 need_locks="$enable_libtool_lock"
5575 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5576 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5577 if test "${ac_cv_header_stdc+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 cat >conftest.$ac_ext <<_ACEOF
5581 #line $LINENO "configure"
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } &&
5606 { ac_try='test -s conftest.$ac_objext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_header_stdc=yes
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 ac_cv_header_stdc=no
5619 rm -f conftest.$ac_objext conftest.$ac_ext
5621 if test $ac_cv_header_stdc = yes; then
5622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5623 cat >conftest.$ac_ext <<_ACEOF
5624 #line $LINENO "configure"
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5634 $EGREP "memchr" >/dev/null 2>&1; then
5637 ac_cv_header_stdc=no
5643 if test $ac_cv_header_stdc = yes; then
5644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5645 cat >conftest.$ac_ext <<_ACEOF
5646 #line $LINENO "configure"
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656 $EGREP "free" >/dev/null 2>&1; then
5659 ac_cv_header_stdc=no
5665 if test $ac_cv_header_stdc = yes; then
5666 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5667 if test "$cross_compiling" = yes; then
5670 cat >conftest.$ac_ext <<_ACEOF
5671 #line $LINENO "configure"
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5678 #if ((' ' & 0x0FF) == 0x020)
5679 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5680 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5682 # define ISLOWER(c) \
5683 (('a' <= (c) && (c) <= 'i') \
5684 || ('j' <= (c) && (c) <= 'r') \
5685 || ('s' <= (c) && (c) <= 'z'))
5686 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5689 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5694 for (i = 0; i < 256; i++)
5695 if (XOR (islower (i), ISLOWER (i))
5696 || toupper (i) != TOUPPER (i))
5701 rm -f conftest$ac_exeext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703 (eval $ac_link) 2>&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; }; then
5714 echo "$as_me: program exited with status $ac_status" >&5
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5719 ac_cv_header_stdc=no
5721 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5725 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5726 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5727 if test $ac_cv_header_stdc = yes; then
5729 cat >>confdefs.h <<\_ACEOF
5730 #define STDC_HEADERS 1
5735 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5745 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5746 inttypes.h stdint.h unistd.h
5748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5749 echo "$as_me:$LINENO: checking for $ac_header" >&5
5750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 cat >conftest.$ac_ext <<_ACEOF
5755 #line $LINENO "configure"
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 $ac_includes_default
5763 #include <$ac_header>
5765 rm -f conftest.$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -s conftest.$ac_objext'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 eval "$as_ac_Header=yes"
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 eval "$as_ac_Header=no"
5784 rm -f conftest.$ac_objext conftest.$ac_ext
5786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5789 cat >>confdefs.h <<_ACEOF
5790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5799 for ac_header in dlfcn.h
5801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5803 echo "$as_me:$LINENO: checking for $ac_header" >&5
5804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5811 # Is the header compilable?
5812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5814 cat >conftest.$ac_ext <<_ACEOF
5815 #line $LINENO "configure"
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 $ac_includes_default
5822 #include <$ac_header>
5824 rm -f conftest.$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_header_compiler=yes
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 ac_header_compiler=no
5843 rm -f conftest.$ac_objext conftest.$ac_ext
5844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5845 echo "${ECHO_T}$ac_header_compiler" >&6
5847 # Is the header present?
5848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5850 cat >conftest.$ac_ext <<_ACEOF
5851 #line $LINENO "configure"
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <$ac_header>
5859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } >/dev/null; then
5867 if test -s conftest.err; then
5868 ac_cpp_err=$ac_c_preproc_warn_flag
5875 if test -z "$ac_cpp_err"; then
5876 ac_header_preproc=yes
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 ac_header_preproc=no
5883 rm -f conftest.err conftest.$ac_ext
5884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5885 echo "${ECHO_T}$ac_header_preproc" >&6
5887 # So? What about this header?
5888 case $ac_header_compiler:$ac_header_preproc in
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5896 ## ------------------------------------ ##
5897 ## Report this to bug-autoconf@gnu.org. ##
5898 ## ------------------------------------ ##
5901 sed "s/^/$as_me: WARNING: /" >&2
5904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5912 ## ------------------------------------ ##
5913 ## Report this to bug-autoconf@gnu.org. ##
5914 ## ------------------------------------ ##
5917 sed "s/^/$as_me: WARNING: /" >&2
5920 echo "$as_me:$LINENO: checking for $ac_header" >&5
5921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 eval "$as_ac_Header=$ac_header_preproc"
5927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5932 cat >>confdefs.h <<_ACEOF
5933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5941 ac_cpp='$CXXCPP $CPPFLAGS'
5942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5945 if test -n "$ac_tool_prefix"; then
5946 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5950 echo "$as_me:$LINENO: checking for $ac_word" >&5
5951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5952 if test "${ac_cv_prog_CXX+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 if test -n "$CXX"; then
5956 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 if test -n "$CXX"; then
5976 echo "$as_me:$LINENO: result: $CXX" >&5
5977 echo "${ECHO_T}$CXX" >&6
5979 echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6
5983 test -n "$CXX" && break
5986 if test -z "$CXX"; then
5988 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5990 # Extract the first word of "$ac_prog", so it can be a program name with args.
5991 set dummy $ac_prog; ac_word=$2
5992 echo "$as_me:$LINENO: checking for $ac_word" >&5
5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5994 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 if test -n "$ac_ct_CXX"; then
5998 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007 ac_cv_prog_ac_ct_CXX="$ac_prog"
6008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6017 if test -n "$ac_ct_CXX"; then
6018 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6019 echo "${ECHO_T}$ac_ct_CXX" >&6
6021 echo "$as_me:$LINENO: result: no" >&5
6022 echo "${ECHO_T}no" >&6
6025 test -n "$ac_ct_CXX" && break
6027 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6033 # Provide some information about the compiler.
6034 echo "$as_me:$LINENO:" \
6035 "checking for C++ compiler version" >&5
6036 ac_compiler=`set X $ac_compile; echo $2`
6037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6038 (eval $ac_compiler --version </dev/null >&5) 2>&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }
6042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6043 (eval $ac_compiler -v </dev/null >&5) 2>&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }
6047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6048 (eval $ac_compiler -V </dev/null >&5) 2>&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }
6053 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6054 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6055 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 cat >conftest.$ac_ext <<_ACEOF
6059 #line $LINENO "configure"
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6077 rm -f conftest.$ac_objext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079 (eval $ac_compile) 2>&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -s conftest.$ac_objext'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6096 rm -f conftest.$ac_objext conftest.$ac_ext
6097 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6100 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6101 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6102 GXX=`test $ac_compiler_gnu = yes && echo yes`
6103 ac_test_CXXFLAGS=${CXXFLAGS+set}
6104 ac_save_CXXFLAGS=$CXXFLAGS
6106 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6107 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6108 if test "${ac_cv_prog_cxx_g+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6112 #line $LINENO "configure"
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_prog_cxx_g=yes
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6146 rm -f conftest.$ac_objext conftest.$ac_ext
6148 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6149 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6150 if test "$ac_test_CXXFLAGS" = set; then
6151 CXXFLAGS=$ac_save_CXXFLAGS
6152 elif test $ac_cv_prog_cxx_g = yes; then
6153 if test "$GXX" = yes; then
6159 if test "$GXX" = yes; then
6165 for ac_declaration in \
6167 '#include <stdlib.h>' \
6168 'extern "C" void std::exit (int) throw (); using std::exit;' \
6169 'extern "C" void std::exit (int); using std::exit;' \
6170 'extern "C" void exit (int) throw ();' \
6171 'extern "C" void exit (int);' \
6174 cat >conftest.$ac_ext <<_ACEOF
6175 #line $LINENO "configure"
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6191 rm -f conftest.$ac_objext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193 (eval $ac_compile) 2>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try='test -s conftest.$ac_objext'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; }; then
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6210 rm -f conftest.$ac_objext conftest.$ac_ext
6211 cat >conftest.$ac_ext <<_ACEOF
6212 #line $LINENO "configure"
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6227 rm -f conftest.$ac_objext
6228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6229 (eval $ac_compile) 2>&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6245 rm -f conftest.$ac_objext conftest.$ac_ext
6248 if test -n "$ac_declaration"; then
6249 echo '#ifdef __cplusplus' >>confdefs.h
6250 echo $ac_declaration >>confdefs.h
6251 echo '#endif' >>confdefs.h
6255 ac_cpp='$CXXCPP $CPPFLAGS'
6256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6261 ac_cpp='$CXXCPP $CPPFLAGS'
6262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6265 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6266 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6267 if test -z "$CXXCPP"; then
6268 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 # Double quotes because CXXCPP needs to be expanded
6272 for CXXCPP in "$CXX -E" "/lib/cpp"
6275 for ac_cxx_preproc_warn_flag in '' yes
6277 # Use a header file that comes with gcc, so configuring glibc
6278 # with a fresh cross-compiler works.
6279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6280 # <limits.h> exists even on freestanding compilers.
6281 # On the NeXT, cc -E runs the code through the compiler's parser,
6282 # not just through cpp. "Syntax error" is here to catch this case.
6283 cat >conftest.$ac_ext <<_ACEOF
6284 #line $LINENO "configure"
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6291 # include <limits.h>
6293 # include <assert.h>
6297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6300 grep -v '^ *+' conftest.er1 >conftest.err
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } >/dev/null; then
6305 if test -s conftest.err; then
6306 ac_cpp_err=$ac_cxx_preproc_warn_flag
6313 if test -z "$ac_cpp_err"; then
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6319 # Broken: fails on valid input.
6322 rm -f conftest.err conftest.$ac_ext
6324 # OK, works on sane cases. Now check whether non-existent headers
6325 # can be detected and how.
6326 cat >conftest.$ac_ext <<_ACEOF
6327 #line $LINENO "configure"
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6333 #include <ac_nonexistent.h>
6335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6338 grep -v '^ *+' conftest.er1 >conftest.err
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } >/dev/null; then
6343 if test -s conftest.err; then
6344 ac_cpp_err=$ac_cxx_preproc_warn_flag
6351 if test -z "$ac_cpp_err"; then
6352 # Broken: success on invalid input.
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6358 # Passes both tests.
6362 rm -f conftest.err conftest.$ac_ext
6365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6366 rm -f conftest.err conftest.$ac_ext
6367 if $ac_preproc_ok; then
6372 ac_cv_prog_CXXCPP=$CXXCPP
6375 CXXCPP=$ac_cv_prog_CXXCPP
6377 ac_cv_prog_CXXCPP=$CXXCPP
6379 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6380 echo "${ECHO_T}$CXXCPP" >&6
6382 for ac_cxx_preproc_warn_flag in '' yes
6384 # Use a header file that comes with gcc, so configuring glibc
6385 # with a fresh cross-compiler works.
6386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6387 # <limits.h> exists even on freestanding compilers.
6388 # On the NeXT, cc -E runs the code through the compiler's parser,
6389 # not just through cpp. "Syntax error" is here to catch this case.
6390 cat >conftest.$ac_ext <<_ACEOF
6391 #line $LINENO "configure"
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6398 # include <limits.h>
6400 # include <assert.h>
6404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } >/dev/null; then
6412 if test -s conftest.err; then
6413 ac_cpp_err=$ac_cxx_preproc_warn_flag
6420 if test -z "$ac_cpp_err"; then
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 # Broken: fails on valid input.
6429 rm -f conftest.err conftest.$ac_ext
6431 # OK, works on sane cases. Now check whether non-existent headers
6432 # can be detected and how.
6433 cat >conftest.$ac_ext <<_ACEOF
6434 #line $LINENO "configure"
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 #include <ac_nonexistent.h>
6442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6445 grep -v '^ *+' conftest.er1 >conftest.err
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } >/dev/null; then
6450 if test -s conftest.err; then
6451 ac_cpp_err=$ac_cxx_preproc_warn_flag
6458 if test -z "$ac_cpp_err"; then
6459 # Broken: success on invalid input.
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6465 # Passes both tests.
6469 rm -f conftest.err conftest.$ac_ext
6472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6473 rm -f conftest.err conftest.$ac_ext
6474 if $ac_preproc_ok; then
6477 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6478 See \`config.log' for more details." >&5
6479 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6480 See \`config.log' for more details." >&2;}
6481 { (exit 1); exit 1; }; }
6485 ac_cpp='$CXXCPP $CPPFLAGS'
6486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6492 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6493 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6494 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6495 if test -n "$ac_tool_prefix"; then
6496 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
6498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6500 echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6502 if test "${ac_cv_prog_F77+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 if test -n "$F77"; then
6506 ac_cv_prog_F77="$F77" # Let the user override the test.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 if test -n "$F77"; then
6526 echo "$as_me:$LINENO: result: $F77" >&5
6527 echo "${ECHO_T}$F77" >&6
6529 echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6
6533 test -n "$F77" && break
6536 if test -z "$F77"; then
6538 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
6540 # Extract the first word of "$ac_prog", so it can be a program name with args.
6541 set dummy $ac_prog; ac_word=$2
6542 echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6544 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 if test -n "$ac_ct_F77"; then
6548 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557 ac_cv_prog_ac_ct_F77="$ac_prog"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6567 if test -n "$ac_ct_F77"; then
6568 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6569 echo "${ECHO_T}$ac_ct_F77" >&6
6571 echo "$as_me:$LINENO: result: no" >&5
6572 echo "${ECHO_T}no" >&6
6575 test -n "$ac_ct_F77" && break
6582 # Provide some information about the compiler.
6583 echo "$as_me:6583:" \
6584 "checking for Fortran 77 compiler version" >&5
6585 ac_compiler=`set X $ac_compile; echo $2`
6586 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6587 (eval $ac_compiler --version </dev/null >&5) 2>&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }
6591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6592 (eval $ac_compiler -v </dev/null >&5) 2>&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }
6596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6597 (eval $ac_compiler -V </dev/null >&5) 2>&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }
6602 # If we don't use `.F' as extension, the preprocessor is not run on the
6606 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6607 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6608 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 cat >conftest.$ac_ext <<_ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 (eval $ac_compile) 2>&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 { ac_try='test -s conftest.$ac_objext'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; }; then
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6638 rm -f conftest.$ac_objext conftest.$ac_ext
6639 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6642 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6643 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6645 G77=`test $ac_compiler_gnu = yes && echo yes`
6646 ac_test_FFLAGS=${FFLAGS+set}
6647 ac_save_FFLAGS=$FFLAGS
6649 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6650 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6651 if test "${ac_cv_prog_f77_g+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6660 rm -f conftest.$ac_objext
6661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662 (eval $ac_compile) 2>&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } &&
6666 { ac_try='test -s conftest.$ac_objext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 ac_cv_prog_f77_g=yes
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6679 rm -f conftest.$ac_objext conftest.$ac_ext
6682 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6683 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6684 if test "$ac_test_FFLAGS" = set; then
6685 FFLAGS=$ac_save_FFLAGS
6686 elif test $ac_cv_prog_f77_g = yes; then
6687 if test "$G77" = yes; then
6693 if test "$G77" = yes; then
6700 ac_cpp='$CPP $CPPFLAGS'
6701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6707 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6709 # find the maximum length of command line arguments
6710 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6711 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6712 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 # On DJGPP, this test can blow up pretty badly due to problems in libc
6721 # (any single argument exceeding 2000 bytes causes a buffer overrun
6722 # during glob expansion). Even if it were fixed, the result of this
6723 # check would be larger than it should be.
6724 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6728 # Under GNU Hurd, this test is not required because there is
6729 # no limit to the length of command line arguments.
6730 # Libtool will interpret -1 as no limit whatsoever
6731 lt_cv_sys_max_cmd_len=-1;
6735 # On Win9x/ME, this test blows up -- it succeeds, but takes
6736 # about 5 minutes as the teststring grows exponentially.
6737 # Worse, since 9x/ME are not pre-emptively multitasking,
6738 # you end up with a "frozen" computer, even though with patience
6739 # the test eventually succeeds (with a max line length of 256k).
6740 # Instead, let's just punt: use the minimum linelength reported by
6741 # all of the supported platforms: 8192 (on NT/2K/XP).
6742 lt_cv_sys_max_cmd_len=8192;
6746 # If test is not a shell built-in, we'll probably end up computing a
6747 # maximum length that is only half of the actual maximum length, but
6749 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
6750 = "XX$testring") >/dev/null 2>&1 &&
6751 new_result=`expr "X$testring" : ".*" 2>&1` &&
6752 lt_cv_sys_max_cmd_len=$new_result &&
6753 test $i != 17 # 1/2 MB should be enough
6756 testring=$testring$testring
6759 # Add a significant safety factor because C++ compilers can tack on massive
6760 # amounts of additional arguments before passing them to the linker.
6761 # It appears as though 1/2 is a usable value.
6762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6768 if test -n $lt_cv_sys_max_cmd_len ; then
6769 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6770 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6772 echo "$as_me:$LINENO: result: none" >&5
6773 echo "${ECHO_T}none" >&6
6779 # Check for command to grab the raw symbol name followed by C symbol from nm.
6780 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6781 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6782 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 # These are sane defaults that work on at least a few old systems.
6787 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6789 # Character class describing NM global symbol codes.
6790 symcode='[BCDEGRST]'
6792 # Regexp to match symbols that can be accessed directly from C.
6793 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6795 # Transform the above into a raw symbol and a C symbol.
6796 symxfrm='\1 \2\3 \3'
6798 # Transform an extracted symbol line into a proper C declaration
6799 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6801 # Transform an extracted symbol line into symbol name and symbol address
6802 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6804 # Define system-specific variables.
6809 cygwin* | mingw* | pw32*)
6810 symcode='[ABCDGISTW]'
6812 hpux*) # Its linker distinguishes data from code symbols
6813 if test "$host_cpu" = ia64; then
6814 symcode='[ABCDEGRST]'
6816 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6817 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6820 symcode='[BCDEGRST]'
6823 symcode='[BCDEGQRST]'
6833 # Handle CRLF in mingw tool chain
6837 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6841 # If we're using GNU nm, then use its standard symbol codes.
6842 case `$NM -V 2>&1` in
6843 *GNU* | *'with BFD'*)
6844 symcode='[ABCDGISTW]' ;;
6847 # Try without a prefix undercore, then with it.
6848 for ac_symprfx in "" "_"; do
6850 # Write the raw and C identifiers.
6851 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6853 # Check to see that the pipe works correctly.
6857 cat > conftest.$ac_ext <<EOF
6862 void nm_test_func(){}
6866 int main(){nm_test_var='a';nm_test_func();return(0);}
6869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6870 (eval $ac_compile) 2>&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; then
6874 # Now try to grab the symbols.
6876 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6877 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && test -s "$nlist"; then
6881 # Try sorting and uniquifying the output.
6882 if sort "$nlist" | uniq > "$nlist"T; then
6883 mv -f "$nlist"T "$nlist"
6888 # Make sure that we snagged all the symbols we need.
6889 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6890 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6891 cat <<EOF > conftest.$ac_ext
6897 # Now generate the symbol file.
6898 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6900 cat <<EOF >> conftest.$ac_ext
6901 #if defined (__STDC__) && __STDC__
6902 # define lt_ptr_t void *
6904 # define lt_ptr_t char *
6908 /* The mapping between symbol names and symbols. */
6913 lt_preloaded_symbols[] =
6916 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6917 cat <<\EOF >> conftest.$ac_ext
6925 # Now try linking the two files.
6926 mv conftest.$ac_objext conftstm.$ac_objext
6927 lt_save_LIBS="$LIBS"
6928 lt_save_CFLAGS="$CFLAGS"
6929 LIBS="conftstm.$ac_objext"
6930 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932 (eval $ac_link) 2>&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6938 LIBS="$lt_save_LIBS"
6939 CFLAGS="$lt_save_CFLAGS"
6941 echo "cannot find nm_test_func in $nlist" >&5
6944 echo "cannot find nm_test_var in $nlist" >&5
6947 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6950 echo "$progname: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6953 rm -f conftest* conftst*
6955 # Do not use the global_symbol_pipe unless it works.
6956 if test "$pipe_works" = yes; then
6959 lt_cv_sys_global_symbol_pipe=
6965 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6966 lt_cv_sys_global_symbol_to_cdecl=
6968 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6969 echo "$as_me:$LINENO: result: failed" >&5
6970 echo "${ECHO_T}failed" >&6
6972 echo "$as_me:$LINENO: result: ok" >&5
6973 echo "${ECHO_T}ok" >&6
6976 echo "$as_me:$LINENO: checking for objdir" >&5
6977 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6978 if test "${lt_cv_objdir+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 rm -f .libs 2>/dev/null
6982 mkdir .libs 2>/dev/null
6983 if test -d .libs; then
6986 # MS-DOS does not allow filenames that begin with a dot.
6989 rmdir .libs 2>/dev/null
6991 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6992 echo "${ECHO_T}$lt_cv_objdir" >&6
6993 objdir=$lt_cv_objdir
7001 # AIX sometimes has problems with the GCC collect2 program. For some
7002 # reason, if we set the COLLECT_NAMES environment variable, the problems
7003 # vanish in a puff of smoke.
7004 if test "X${COLLECT_NAMES+set}" != Xset; then
7006 export COLLECT_NAMES
7011 # Sed substitution that helps us do robust quoting. It backslashifies
7012 # metacharacters that are still active within double-quoted strings.
7013 Xsed='sed -e s/^X//'
7014 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7016 # Same as above, but do not quote variable references.
7017 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7019 # Sed substitution to delay expansion of an escaped shell variable in a
7020 # double_quote_subst'ed string.
7021 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7023 # Sed substitution to avoid accidental globbing in evaled expressions
7024 no_glob_subst='s/\*/\\\*/g'
7030 default_ofile=libtool
7031 can_build_shared=yes
7033 # All known linkers require a `.a' archive for static linking (except M$VC,
7034 # which needs '.lib').
7036 ltmain="$ac_aux_dir/ltmain.sh"
7037 ofile="$default_ofile"
7038 with_gnu_ld="$lt_cv_prog_gnu_ld"
7040 if test -n "$ac_tool_prefix"; then
7041 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7042 set dummy ${ac_tool_prefix}ar; ac_word=$2
7043 echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7045 if test "${ac_cv_prog_AR+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 if test -n "$AR"; then
7049 ac_cv_prog_AR="$AR" # Let the user override the test.
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7058 ac_cv_prog_AR="${ac_tool_prefix}ar"
7059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 if test -n "$AR"; then
7069 echo "$as_me:$LINENO: result: $AR" >&5
7070 echo "${ECHO_T}$AR" >&6
7072 echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6
7077 if test -z "$ac_cv_prog_AR"; then
7079 # Extract the first word of "ar", so it can be a program name with args.
7080 set dummy ar; ac_word=$2
7081 echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7083 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 if test -n "$ac_ct_AR"; then
7087 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_ac_ct_AR="ar"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7106 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7107 if test -n "$ac_ct_AR"; then
7108 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7109 echo "${ECHO_T}$ac_ct_AR" >&6
7111 echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6
7120 if test -n "$ac_tool_prefix"; then
7121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7123 echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7125 if test "${ac_cv_prog_RANLIB+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 if test -n "$RANLIB"; then
7129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 RANLIB=$ac_cv_prog_RANLIB
7148 if test -n "$RANLIB"; then
7149 echo "$as_me:$LINENO: result: $RANLIB" >&5
7150 echo "${ECHO_T}$RANLIB" >&6
7152 echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6
7157 if test -z "$ac_cv_prog_RANLIB"; then
7158 ac_ct_RANLIB=$RANLIB
7159 # Extract the first word of "ranlib", so it can be a program name with args.
7160 set dummy ranlib; ac_word=$2
7161 echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7163 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 if test -n "$ac_ct_RANLIB"; then
7167 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_ac_ct_RANLIB="ranlib"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7186 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7187 if test -n "$ac_ct_RANLIB"; then
7188 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7189 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7191 echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7195 RANLIB=$ac_ct_RANLIB
7197 RANLIB="$ac_cv_prog_RANLIB"
7200 if test -n "$ac_tool_prefix"; then
7201 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7202 set dummy ${ac_tool_prefix}strip; ac_word=$2
7203 echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7205 if test "${ac_cv_prog_STRIP+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 if test -n "$STRIP"; then
7209 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 STRIP=$ac_cv_prog_STRIP
7228 if test -n "$STRIP"; then
7229 echo "$as_me:$LINENO: result: $STRIP" >&5
7230 echo "${ECHO_T}$STRIP" >&6
7232 echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6
7237 if test -z "$ac_cv_prog_STRIP"; then
7239 # Extract the first word of "strip", so it can be a program name with args.
7240 set dummy strip; ac_word=$2
7241 echo "$as_me:$LINENO: checking for $ac_word" >&5
7242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7243 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 if test -n "$ac_ct_STRIP"; then
7247 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256 ac_cv_prog_ac_ct_STRIP="strip"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7266 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7267 if test -n "$ac_ct_STRIP"; then
7268 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7269 echo "${ECHO_T}$ac_ct_STRIP" >&6
7271 echo "$as_me:$LINENO: result: no" >&5
7272 echo "${ECHO_T}no" >&6
7277 STRIP="$ac_cv_prog_STRIP"
7282 old_CFLAGS="$CFLAGS"
7284 # Set sane defaults for various variables
7285 test -z "$AR" && AR=ar
7286 test -z "$AR_FLAGS" && AR_FLAGS=cru
7287 test -z "$AS" && AS=as
7288 test -z "$CC" && CC=cc
7289 test -z "$LTCC" && LTCC=$CC
7290 test -z "$DLLTOOL" && DLLTOOL=dlltool
7291 test -z "$LD" && LD=ld
7292 test -z "$LN_S" && LN_S="ln -s"
7293 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7294 test -z "$NM" && NM=nm
7295 test -z "$SED" && SED=sed
7296 test -z "$OBJDUMP" && OBJDUMP=objdump
7297 test -z "$RANLIB" && RANLIB=:
7298 test -z "$STRIP" && STRIP=:
7299 test -z "$ac_objext" && ac_objext=o
7301 # Determine commands to create old-style static archives.
7302 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7303 old_postinstall_cmds='chmod 644 $oldlib'
7304 old_postuninstall_cmds=
7306 if test -n "$RANLIB"; then
7309 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7312 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7315 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7318 # Only perform the check for file, if the check method requires it
7319 case $deplibs_check_method in
7321 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7322 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7323 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7324 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7332 lt_save_MAGIC_CMD="$MAGIC_CMD"
7333 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7334 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7335 for ac_dir in $ac_dummy; do
7337 test -z "$ac_dir" && ac_dir=.
7338 if test -f $ac_dir/${ac_tool_prefix}file; then
7339 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7340 if test -n "$file_magic_test_file"; then
7341 case $deplibs_check_method in
7343 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7344 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7345 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7346 $EGREP "$file_magic_regex" > /dev/null; then
7351 *** Warning: the command libtool uses to detect shared libraries,
7352 *** $file_magic_cmd, produces output that libtool cannot recognize.
7353 *** The result is that libtool may fail to recognize shared libraries
7354 *** as such. This will affect the creation of libtool libraries that
7355 *** depend on shared libraries, but programs linked with such libtool
7356 *** libraries will work regardless of this problem. Nevertheless, you
7357 *** may want to report the problem to your system manager and/or to
7358 *** bug-libtool@gnu.org
7368 MAGIC_CMD="$lt_save_MAGIC_CMD"
7373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7374 if test -n "$MAGIC_CMD"; then
7375 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7376 echo "${ECHO_T}$MAGIC_CMD" >&6
7378 echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6
7382 if test -z "$lt_cv_path_MAGIC_CMD"; then
7383 if test -n "$ac_tool_prefix"; then
7384 echo "$as_me:$LINENO: checking for file" >&5
7385 echo $ECHO_N "checking for file... $ECHO_C" >&6
7386 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7394 lt_save_MAGIC_CMD="$MAGIC_CMD"
7395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7396 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7397 for ac_dir in $ac_dummy; do
7399 test -z "$ac_dir" && ac_dir=.
7400 if test -f $ac_dir/file; then
7401 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7402 if test -n "$file_magic_test_file"; then
7403 case $deplibs_check_method in
7405 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7407 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7408 $EGREP "$file_magic_regex" > /dev/null; then
7413 *** Warning: the command libtool uses to detect shared libraries,
7414 *** $file_magic_cmd, produces output that libtool cannot recognize.
7415 *** The result is that libtool may fail to recognize shared libraries
7416 *** as such. This will affect the creation of libtool libraries that
7417 *** depend on shared libraries, but programs linked with such libtool
7418 *** libraries will work regardless of this problem. Nevertheless, you
7419 *** may want to report the problem to your system manager and/or to
7420 *** bug-libtool@gnu.org
7430 MAGIC_CMD="$lt_save_MAGIC_CMD"
7435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7436 if test -n "$MAGIC_CMD"; then
7437 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7438 echo "${ECHO_T}$MAGIC_CMD" >&6
7440 echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6
7456 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7457 if test "${enable_libtool_lock+set}" = set; then
7458 enableval="$enable_libtool_lock"
7461 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7464 # Check whether --with-pic or --without-pic was given.
7465 if test "${with_pic+set}" = set; then
7471 test -z "$pic_mode" && pic_mode=default
7473 # Use C for the default configuration in the libtool script
7477 ac_cpp='$CPP $CPPFLAGS'
7478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7483 # Source file extension for C test sources.
7486 # Object file extension for compiled C test sources.
7490 # Code to be used in simple compile tests
7491 lt_simple_compile_test_code="int some_variable = 0;\n"
7493 # Code to be used in simple link tests
7494 lt_simple_link_test_code='int main(){return(0);}\n'
7497 # If no C compiler was specified, use CC.
7500 # Allow CC to be a program name with arguments.
7505 # Check for any special shared library compilation flags.
7508 if test "$GCC" = no; then
7511 lt_prog_cc_shlib='-belf'
7515 if test -n "$lt_prog_cc_shlib"; then
7516 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7517 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7518 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7520 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7521 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7522 lt_cv_prog_cc_can_build_shared=no
7528 # Check to make sure the static flag actually works.
7530 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7531 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7532 if test "${lt_prog_compiler_static_works+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 lt_prog_compiler_static_works=no
7536 save_LDFLAGS="$LDFLAGS"
7537 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7538 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7540 # The compiler can only warn and ignore the option if not recognized
7541 # So say no if there are warnings
7542 if test -s conftest.err; then
7543 # Append any errors to the config.log.
7544 cat conftest.err 1>&5
7546 lt_prog_compiler_static_works=yes
7550 LDFLAGS="$save_LDFLAGS"
7553 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7554 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7556 if test x"$lt_prog_compiler_static_works" = xyes; then
7559 lt_prog_compiler_static=
7565 ## There is no encapsulation within the following macros, do not change
7566 ## the running order or otherwise move them around unless you know exactly
7567 ## what you are doing...
7569 lt_prog_compiler_no_builtin_flag=
7571 if test "$GCC" = yes; then
7572 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7574 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7575 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7576 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 lt_cv_prog_compiler_rtti_exceptions=no
7580 ac_outfile=conftest.$ac_objext
7581 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7582 lt_compiler_flag="-fno-rtti -fno-exceptions"
7583 # Insert the option either (1) after the last *FLAGS variable, or
7584 # (2) before a word containing "conftest.", or (3) at the end.
7585 # Note that $ac_compile itself does not contain backslashes and begins
7586 # with a dollar sign (not a hyphen), so the echo should work correctly.
7587 # The option is referenced via a variable to avoid confusing sed.
7588 lt_compile=`echo "$ac_compile" | $SED \
7589 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7591 -e 's:$: $lt_compiler_flag:'`
7592 (eval echo "\"\$as_me:7592: $lt_compile\"" >&5)
7593 (eval "$lt_compile" 2>conftest.err)
7595 cat conftest.err >&5
7596 echo "$as_me:7596: \$? = $ac_status" >&5
7597 if (exit $ac_status) && test -s "$ac_outfile"; then
7598 # The compiler can only warn and ignore the option if not recognized
7599 # So say no if there are warnings
7600 if test ! -s conftest.err; then
7601 lt_cv_prog_compiler_rtti_exceptions=yes
7607 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7608 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7610 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7611 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7618 lt_prog_compiler_wl=
7619 lt_prog_compiler_pic=
7620 lt_prog_compiler_static=
7622 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7623 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7625 if test "$GCC" = yes; then
7626 lt_prog_compiler_wl='-Wl,'
7627 lt_prog_compiler_static='-static'
7631 # All AIX code is PIC.
7632 if test "$host_cpu" = ia64; then
7633 # AIX 5 now supports IA64 processor
7634 lt_prog_compiler_static='-Bstatic'
7639 # FIXME: we need at least 68020 code to build shared libraries, but
7640 # adding the `-m68020' flag to GCC prevents building anything better,
7642 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7645 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7646 # PIC is the default for these OSes.
7649 mingw* | pw32* | os2*)
7650 # This hack is so that the source file can tell whether it is being
7651 # built for inclusion in a dll (and should export symbols for example).
7652 lt_prog_compiler_pic='-DDLL_EXPORT'
7655 darwin* | rhapsody*)
7656 # PIC is the default on this platform
7657 # Common symbols not allowed in MH_DYLIB files
7658 lt_prog_compiler_pic='-fno-common'
7662 # Just because we use GCC doesn't mean we suddenly get shared libraries
7663 # on systems that don't support them.
7664 lt_prog_compiler_can_build_shared=no
7669 if test -d /usr/nec; then
7670 lt_prog_compiler_pic=-Kconform_pic
7675 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7682 lt_prog_compiler_pic='-fPIC'
7688 lt_prog_compiler_pic='-fPIC'
7692 # PORTME Check for flag to pass linker flags through the system compiler.
7695 lt_prog_compiler_wl='-Wl,'
7696 if test "$host_cpu" = ia64; then
7697 # AIX 5 now supports IA64 processor
7698 lt_prog_compiler_static='-Bstatic'
7700 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7704 mingw* | pw32* | os2*)
7705 # This hack is so that the source file can tell whether it is being
7706 # built for inclusion in a dll (and should export symbols for example).
7707 lt_prog_compiler_pic='-DDLL_EXPORT'
7710 hpux9* | hpux10* | hpux11*)
7711 lt_prog_compiler_wl='-Wl,'
7712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7719 lt_prog_compiler_pic='+Z'
7722 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7723 lt_prog_compiler_static='${wl}-a ${wl}archive'
7726 irix5* | irix6* | nonstopux*)
7727 lt_prog_compiler_wl='-Wl,'
7728 # PIC (with -KPIC) is the default.
7729 lt_prog_compiler_static='-non_shared'
7733 lt_prog_compiler_pic='-KPIC'
7734 lt_prog_compiler_static='-Bstatic'
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-static'
7745 lt_prog_compiler_wl='-Wl,'
7746 # All Alpha code is PIC.
7747 lt_prog_compiler_static='-non_shared'
7752 osf3* | osf4* | osf5*)
7753 lt_prog_compiler_wl='-Wl,'
7754 # All OSF/1 code is PIC.
7755 lt_prog_compiler_static='-non_shared'
7759 lt_prog_compiler_pic='-Kpic'
7760 lt_prog_compiler_static='-dn'
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_pic='-KPIC'
7766 lt_prog_compiler_static='-Bstatic'
7770 lt_prog_compiler_wl='-Qoption ld '
7771 lt_prog_compiler_pic='-PIC'
7772 lt_prog_compiler_static='-Bstatic'
7775 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7776 lt_prog_compiler_wl='-Wl,'
7777 lt_prog_compiler_pic='-KPIC'
7778 lt_prog_compiler_static='-Bstatic'
7782 if test -d /usr/nec ;then
7783 lt_prog_compiler_pic='-Kconform_pic'
7784 lt_prog_compiler_static='-Bstatic'
7789 lt_prog_compiler_pic='-pic'
7790 lt_prog_compiler_static='-Bstatic'
7794 lt_prog_compiler_can_build_shared=no
7799 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7800 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7803 # Check to make sure the PIC flag actually works.
7805 if test -n "$lt_prog_compiler_pic"; then
7806 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7807 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7808 if test "${lt_prog_compiler_pic_works+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 lt_prog_compiler_pic_works=no
7812 ac_outfile=conftest.$ac_objext
7813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7814 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7815 # Insert the option either (1) after the last *FLAGS variable, or
7816 # (2) before a word containing "conftest.", or (3) at the end.
7817 # Note that $ac_compile itself does not contain backslashes and begins
7818 # with a dollar sign (not a hyphen), so the echo should work correctly.
7819 # The option is referenced via a variable to avoid confusing sed.
7820 lt_compile=`echo "$ac_compile" | $SED \
7821 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7823 -e 's:$: $lt_compiler_flag:'`
7824 (eval echo "\"\$as_me:7824: $lt_compile\"" >&5)
7825 (eval "$lt_compile" 2>conftest.err)
7827 cat conftest.err >&5
7828 echo "$as_me:7828: \$? = $ac_status" >&5
7829 if (exit $ac_status) && test -s "$ac_outfile"; then
7830 # The compiler can only warn and ignore the option if not recognized
7831 # So say no if there are warnings
7832 if test ! -s conftest.err; then
7833 lt_prog_compiler_pic_works=yes
7839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7840 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7842 if test x"$lt_prog_compiler_pic_works" = xyes; then
7843 case $lt_prog_compiler_pic in
7845 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7848 lt_prog_compiler_pic=
7849 lt_prog_compiler_can_build_shared=no
7854 # For platforms which do not support PIC, -DPIC is meaningless:
7856 lt_prog_compiler_pic=
7859 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7863 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7864 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7865 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 lt_cv_prog_compiler_c_o=no
7869 $rm -r conftest 2>/dev/null
7873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7875 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7876 # that will create temporary files in the current directory regardless of
7877 # the output directory. Thus, making CWD read-only will cause this test
7878 # to fail, enabling locking or at least warning the user not to do parallel
7882 lt_compiler_flag="-o out/conftest2.$ac_objext"
7883 # Insert the option either (1) after the last *FLAGS variable, or
7884 # (2) before a word containing "conftest.", or (3) at the end.
7885 # Note that $ac_compile itself does not contain backslashes and begins
7886 # with a dollar sign (not a hyphen), so the echo should work correctly.
7887 lt_compile=`echo "$ac_compile" | $SED \
7888 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7890 -e 's:$: $lt_compiler_flag:'`
7891 (eval echo "\"\$as_me:7891: $lt_compile\"" >&5)
7892 (eval "$lt_compile" 2>out/conftest.err)
7894 cat out/conftest.err >&5
7895 echo "$as_me:7895: \$? = $ac_status" >&5
7896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7898 # The compiler can only warn and ignore the option if not recognized
7899 # So say no if there are warnings
7900 if test ! -s out/conftest.err; then
7901 lt_cv_prog_compiler_c_o=yes
7912 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7913 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7916 hard_links="nottested"
7917 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7918 # do not overwrite the value of need_locks provided by the user
7919 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7920 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7925 ln conftest.a conftest.b 2>&5 || hard_links=no
7926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7927 echo "$as_me:$LINENO: result: $hard_links" >&5
7928 echo "${ECHO_T}$hard_links" >&6
7929 if test "$hard_links" = no; then
7930 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7931 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7938 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7942 allow_undefined_flag=
7943 enable_shared_with_static_runtimes=no
7945 archive_expsym_cmds=
7946 old_archive_From_new_cmds=
7947 old_archive_from_expsyms_cmds=
7948 export_dynamic_flag_spec=
7949 whole_archive_flag_spec=
7950 thread_safe_flag_spec=
7951 hardcode_libdir_flag_spec=
7952 hardcode_libdir_flag_spec_ld=
7953 hardcode_libdir_separator=
7956 hardcode_shlibpath_var=unsupported
7957 link_all_deplibs=unknown
7958 hardcode_automatic=no
7961 always_export_symbols=no
7962 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7963 # include_expsyms should be a list of space-separated symbols to be *always*
7964 # included in the symbol list
7966 # exclude_expsyms can be an extended regexp of symbols to exclude
7967 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7968 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7969 # as well as any symbol that contains `d'.
7970 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7971 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7972 # platforms (ab)use it in PIC code, but their linkers get confused if
7973 # the symbol is explicitly referenced. Since portable code cannot
7974 # rely on this symbol name, it's probably fine to never include it in
7975 # preloaded symbol tables.
7976 extract_expsyms_cmds=
7979 cygwin* | mingw* | pw32*)
7980 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7981 # When not using gcc, we currently assume that we are using
7982 # Microsoft Visual C++.
7983 if test "$GCC" != yes; then
7993 if test "$with_gnu_ld" = yes; then
7994 # If archive_cmds runs LD, not CC, wlarc should be empty
7997 # See if GNU ld supports shared libraries.
7999 aix3* | aix4* | aix5*)
8000 # On AIX/PPC, the GNU linker is very broken
8001 if test "$host_cpu" != ia64; then
8005 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8006 *** to be unable to reliably create shared libraries on AIX.
8007 *** Therefore, libtool is disabling shared libraries support. If you
8008 *** really care for shared libraries, you may want to modify your PATH
8009 *** so that a non-GNU linker is found, and then restart.
8016 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)'
8017 hardcode_libdir_flag_spec='-L$libdir'
8018 hardcode_minus_L=yes
8020 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8021 # that the semantics of dynamic libraries on AmigaOS, at least up
8022 # to version 4, is to share data among multiple programs linked
8023 # with the same dynamic library. Since this doesn't match the
8024 # behavior of shared libraries on other platforms, we can't use
8030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8031 allow_undefined_flag=unsupported
8032 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8033 # support --undefined. This deserves some investigation. FIXME
8034 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8040 cygwin* | mingw* | pw32*)
8041 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8042 # as there is no search path for DLLs.
8043 hardcode_libdir_flag_spec='-L$libdir'
8044 allow_undefined_flag=unsupported
8045 always_export_symbols=no
8046 enable_shared_with_static_runtimes=yes
8047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8049 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8051 # If the export-symbols file already is a .def file (1st line
8052 # is EXPORTS), use it as is; otherwise, prepend...
8053 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8054 cp $export_symbols $output_objdir/$soname.def;
8056 echo EXPORTS > $output_objdir/$soname.def;
8057 cat $export_symbols >> $output_objdir/$soname.def;
8059 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8066 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8067 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8071 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8076 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8080 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8081 *** create shared libraries on Solaris systems. Therefore, libtool
8082 *** is disabling shared libraries support. We urge you to upgrade GNU
8083 *** binutils to release 2.9.1 or newer. Another option is to modify
8084 *** your PATH or compiler configuration so that the native linker is
8085 *** used, and then restart.
8088 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8097 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8100 hardcode_shlibpath_var=no
8104 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8113 if test "$ld_shlibs" = yes; then
8114 runpath_var=LD_RUN_PATH
8115 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8116 export_dynamic_flag_spec='${wl}--export-dynamic'
8117 # ancient GNU ld didn't support --whole-archive et. al.
8118 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8119 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8121 whole_archive_flag_spec=
8125 # PORTME fill in a description of your system's linker (not GNU ld)
8128 allow_undefined_flag=unsupported
8129 always_export_symbols=yes
8130 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'
8131 # Note: this linker hardcodes the directories in LIBPATH if there
8132 # are no directories specified by -L.
8133 hardcode_minus_L=yes
8134 if test "$GCC" = yes && test -z "$link_static_flag"; then
8135 # Neither direct hardcoding nor static linking is supported with a
8137 hardcode_direct=unsupported
8142 if test "$host_cpu" = ia64; then
8143 # On IA64, the linker does run time linking by default, so we don't
8144 # have to do anything special.
8145 aix_use_runtimelinking=no
8146 exp_sym_flag='-Bexport'
8149 # If we're using GNU nm, then we don't want the "-C" option.
8150 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8151 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8152 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8154 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'
8156 aix_use_runtimelinking=no
8158 # Test if we are trying to use run time linking or normal
8159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8160 # need to do runtime linking.
8161 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8162 for ld_flag in $LDFLAGS; do
8163 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8164 aix_use_runtimelinking=yes
8170 exp_sym_flag='-bexport'
8171 no_entry_flag='-bnoentry'
8174 # When large executables or shared objects are built, AIX ld can
8175 # have problems creating the table of contents. If linking a library
8176 # or program results in "error TOC overflow" add -mminimal-toc to
8177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8182 hardcode_libdir_separator=':'
8183 link_all_deplibs=yes
8185 if test "$GCC" = yes; then
8186 case $host_os in aix4.012|aix4.012.*)
8187 # We only want to do this on AIX 4.2 and lower, the check
8188 # below for broken collect2 doesn't work under 4.3+
8189 collect2name=`${CC} -print-prog-name=collect2`
8190 if test -f "$collect2name" && \
8191 strings "$collect2name" | grep resolve_lib_name >/dev/null
8193 # We have reworked collect2
8196 # We have old collect2
8197 hardcode_direct=unsupported
8198 # It fails to find uninstalled libraries when the uninstalled
8199 # path is not listed in the libpath. Setting hardcode_minus_L
8200 # to unsupported forces relinking
8201 hardcode_minus_L=yes
8202 hardcode_libdir_flag_spec='-L$libdir'
8203 hardcode_libdir_separator=
8206 shared_flag='-shared'
8209 if test "$host_cpu" = ia64; then
8210 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8211 # chokes on -Wl,-G. The following line is correct:
8214 if test "$aix_use_runtimelinking" = yes; then
8215 shared_flag='${wl}-G'
8217 shared_flag='${wl}-bM:SRE'
8222 # It seems that -bexpall does not export symbols beginning with
8223 # underscore (_), so it is better to generate a list of symbols to export.
8224 always_export_symbols=yes
8225 if test "$aix_use_runtimelinking" = yes; then
8226 # Warning - without using the other runtime loading flags (-brtl),
8227 # -berok will link without error, but may produce a broken library.
8228 allow_undefined_flag='-berok'
8229 # Determine the default libpath from the value encoded in an empty executable.
8230 cat >conftest.$ac_ext <<_ACEOF
8231 #line $LINENO "configure"
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8246 rm -f conftest.$ac_objext conftest$ac_exeext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8248 (eval $ac_link) 2>&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -s conftest$ac_exeext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8261 # Check for a 64-bit object if we didn't find anything.
8262 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8270 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8272 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8273 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8275 if test "$host_cpu" = ia64; then
8276 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8277 allow_undefined_flag="-z nodefs"
8278 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8280 # Determine the default libpath from the value encoded in an empty executable.
8281 cat >conftest.$ac_ext <<_ACEOF
8282 #line $LINENO "configure"
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8297 rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299 (eval $ac_link) 2>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -s conftest$ac_exeext'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8310 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8312 # Check for a 64-bit object if we didn't find anything.
8313 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8323 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8324 # Warning - without using the other run time loading flags,
8325 # -berok will link without error, but may produce a broken library.
8326 no_undefined_flag=' ${wl}-bernotok'
8327 allow_undefined_flag=' ${wl}-berok'
8328 # -bexpall does not export symbols beginning with underscore (_)
8329 always_export_symbols=yes
8330 # Exported symbols can be pulled into shared objects from archives
8331 whole_archive_flag_spec=' '
8332 archive_cmds_need_lc=yes
8333 # This is similar to how AIX traditionally builds it's shared libraries.
8334 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8340 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)'
8341 hardcode_libdir_flag_spec='-L$libdir'
8342 hardcode_minus_L=yes
8343 # see comment about different semantics on the GNU ld section
8348 export_dynamic_flag_spec=-rdynamic
8351 cygwin* | mingw* | pw32*)
8352 # When not using gcc, we currently assume that we are using
8353 # Microsoft Visual C++.
8354 # hardcode_libdir_flag_spec is actually meaningless, as there is
8355 # no search path for DLLs.
8356 hardcode_libdir_flag_spec=' '
8357 allow_undefined_flag=unsupported
8358 # Tell ltmain to make .lib files, not .a files.
8360 # Tell ltmain to make .dll files, not .so files.
8362 # FIXME: Setting linknames here is a bad hack.
8363 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8364 # The linker will automatically build a .lib file if we build a DLL.
8365 old_archive_From_new_cmds='true'
8366 # FIXME: Should let the user specify the lib program.
8367 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8368 fix_srcfile_path='`cygpath -w "$srcfile"`'
8369 enable_shared_with_static_runtimes=yes
8372 darwin* | rhapsody*)
8373 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8374 archive_cmds_need_lc=no
8376 rhapsody* | darwin1.[012])
8377 allow_undefined_flag='-undefined suppress'
8380 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8383 # FIXME: Relying on posixy $() will cause problems for
8384 # cross-compilation, but unfortunately the echo tests do not
8385 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8386 # `"' quotes if we put them in here... so don't!
8387 lt_int_apple_cc_single_mod=no
8388 output_verbose_link_cmd='echo'
8389 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8390 lt_int_apple_cc_single_mod=yes
8392 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8393 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8395 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8397 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8398 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8399 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8400 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8402 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8404 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8406 hardcode_automatic=yes
8407 hardcode_shlibpath_var=unsupported
8408 whole_archive_flag_spec='-all_load $convenience'
8409 link_all_deplibs=yes
8414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8415 hardcode_libdir_flag_spec='-L$libdir'
8416 hardcode_shlibpath_var=no
8423 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8424 # support. Future versions do this automatically, but an explicit c++rt0.o
8425 # does not break anything, and helps significantly (at the cost of a little
8428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8429 hardcode_libdir_flag_spec='-R$libdir'
8431 hardcode_shlibpath_var=no
8434 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8436 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8438 hardcode_minus_L=yes
8439 hardcode_shlibpath_var=no
8442 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8444 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8445 hardcode_libdir_flag_spec='-R$libdir'
8447 hardcode_shlibpath_var=no
8451 if test "$GCC" = yes; then
8452 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8454 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'
8456 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8457 hardcode_libdir_separator=:
8460 # hardcode_minus_L: Not really in the search PATH,
8461 # but as the default location of the library.
8462 hardcode_minus_L=yes
8463 export_dynamic_flag_spec='${wl}-E'
8467 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8470 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8473 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8479 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8482 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8486 if test "$with_gnu_ld" = no; then
8489 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8490 hardcode_libdir_flag_spec_ld='+b $libdir'
8491 hardcode_libdir_separator=:
8493 hardcode_shlibpath_var=no
8496 hardcode_libdir_flag_spec='-L$libdir'
8498 hardcode_shlibpath_var=no
8500 # hardcode_minus_L: Not really in the search PATH,
8501 # but as the default location of the library.
8502 hardcode_minus_L=yes
8505 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8506 hardcode_libdir_separator=:
8508 export_dynamic_flag_spec='${wl}-E'
8510 # hardcode_minus_L: Not really in the search PATH,
8511 # but as the default location of the library.
8512 hardcode_minus_L=yes
8518 irix5* | irix6* | nonstopux*)
8519 if test "$GCC" = yes; then
8520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8522 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8523 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8526 hardcode_libdir_separator=:
8527 link_all_deplibs=yes
8531 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8534 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8536 hardcode_libdir_flag_spec='-R$libdir'
8538 hardcode_shlibpath_var=no
8542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545 hardcode_libdir_separator=:
8546 hardcode_shlibpath_var=no
8556 hardcode_shlibpath_var=no
8557 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8559 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8560 export_dynamic_flag_spec='${wl}-E'
8563 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8565 hardcode_libdir_flag_spec='-R$libdir'
8568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8578 hardcode_libdir_flag_spec='-L$libdir'
8579 hardcode_minus_L=yes
8580 allow_undefined_flag=unsupported
8581 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'
8582 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8586 if test "$GCC" = yes; then
8587 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8588 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8590 allow_undefined_flag=' -expect_unresolved \*'
8591 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8594 hardcode_libdir_separator=:
8597 osf4* | osf5*) # as osf3* with the addition of -msym flag
8598 if test "$GCC" = yes; then
8599 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8600 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8603 allow_undefined_flag=' -expect_unresolved \*'
8604 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8605 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8606 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8608 # Both c and cxx compiler support -rpath directly
8609 hardcode_libdir_flag_spec='-rpath $libdir'
8611 hardcode_libdir_separator=:
8615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8616 hardcode_shlibpath_var=no
8617 export_dynamic_flag_spec='${wl}-Bexport'
8618 runpath_var=LD_RUN_PATH
8619 hardcode_runpath_var=yes
8623 no_undefined_flag=' -z text'
8624 if test "$GCC" = yes; then
8625 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8626 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8627 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8629 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8630 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8631 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8633 hardcode_libdir_flag_spec='-R$libdir'
8634 hardcode_shlibpath_var=no
8636 solaris2.[0-5] | solaris2.[0-5].*) ;;
8637 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8638 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8640 link_all_deplibs=yes
8644 if test "x$host_vendor" = xsequent; then
8645 # Use $CC to link under sequent, because it throws in some extra .o
8646 # files that make .init and .fini sections work.
8647 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8649 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8651 hardcode_libdir_flag_spec='-L$libdir'
8653 hardcode_minus_L=yes
8654 hardcode_shlibpath_var=no
8658 case $host_vendor in
8660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_direct=yes # is this really true???
8664 ## LD is ld it makes a PLAMLIB
8665 ## CC just makes a GrossModule.
8666 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8667 reload_cmds='$CC -r -o $output$reload_objs'
8671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8672 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8675 runpath_var='LD_RUN_PATH'
8676 hardcode_shlibpath_var=no
8680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8681 hardcode_shlibpath_var=no
8682 export_dynamic_flag_spec='-Bexport'
8686 if test -d /usr/nec; then
8687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8688 hardcode_shlibpath_var=no
8689 runpath_var=LD_RUN_PATH
8690 hardcode_runpath_var=yes
8696 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8699 hardcode_shlibpath_var=no
8700 hardcode_runpath_var=yes
8701 runpath_var=LD_RUN_PATH
8704 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8705 no_undefined_flag='${wl}-z ${wl}text'
8706 if test "$GCC" = yes; then
8707 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8709 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8711 runpath_var='LD_RUN_PATH'
8712 hardcode_shlibpath_var=no
8716 no_undefined_flag=' -z text'
8717 # $CC -shared without GNU ld will not create a library from C++
8718 # object files and a static libstdc++, better avoid it by now
8719 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8721 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8722 hardcode_libdir_flag_spec=
8723 hardcode_shlibpath_var=no
8724 runpath_var='LD_RUN_PATH'
8728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729 hardcode_libdir_flag_spec='-L$libdir'
8730 hardcode_shlibpath_var=no
8739 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8740 echo "${ECHO_T}$ld_shlibs" >&6
8741 test "$ld_shlibs" = no && can_build_shared=no
8743 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8744 if test "$GCC" = yes; then
8745 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8749 # Do we need to explicitly link libc?
8751 case "x$archive_cmds_need_lc" in
8753 # Assume -lc should be added
8754 archive_cmds_need_lc=yes
8756 if test "$enable_shared" = yes && test "$GCC" = yes; then
8757 case $archive_cmds in
8759 # FIXME: we may have to deal with multi-command sequences.
8762 # Test whether the compiler implicitly links with -lc since on some
8763 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8764 # to ld, don't add -lc before -lgcc.
8765 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8766 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8771 (eval $ac_compile) 2>&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } 2>conftest.err; then
8777 libobjs=conftest.$ac_objext
8779 wl=$lt_prog_compiler_wl
8785 lt_save_allow_undefined_flag=$allow_undefined_flag
8786 allow_undefined_flag=
8787 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8788 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }
8793 archive_cmds_need_lc=no
8795 archive_cmds_need_lc=yes
8797 allow_undefined_flag=$lt_save_allow_undefined_flag
8799 cat conftest.err 1>&5
8802 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8803 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8810 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8811 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8813 if test -n "$hardcode_libdir_flag_spec" || \
8814 test -n "$runpath_var " || \
8815 test "X$hardcode_automatic"="Xyes" ; then
8817 # We can hardcode non-existant directories.
8818 if test "$hardcode_direct" != no &&
8819 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8820 # have to relink, otherwise we might link with an installed library
8821 # when we should be linking with a yet-to-be-installed one
8822 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8823 test "$hardcode_minus_L" != no; then
8824 # Linking always hardcodes the temporary library directory.
8825 hardcode_action=relink
8827 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8828 hardcode_action=immediate
8831 # We cannot hardcode anything, or else we can only hardcode existing
8833 hardcode_action=unsupported
8835 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8836 echo "${ECHO_T}$hardcode_action" >&6
8838 if test "$hardcode_action" = relink; then
8839 # Fast installation is not supported
8840 enable_fast_install=no
8841 elif test "$shlibpath_overrides_runpath" = yes ||
8842 test "$enable_shared" = no; then
8843 # Fast installation is not necessary
8844 enable_fast_install=needless
8849 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8850 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8851 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8852 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8853 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8854 echo "$as_me:$LINENO: result: yes" >&5
8855 echo "${ECHO_T}yes" >&6
8857 # FIXME - insert some real tests, host_os isn't really good enough
8860 if test -n "$STRIP" ; then
8861 striplib="$STRIP -x"
8862 echo "$as_me:$LINENO: result: yes" >&5
8863 echo "${ECHO_T}yes" >&6
8865 echo "$as_me:$LINENO: result: no" >&5
8866 echo "${ECHO_T}no" >&6
8870 echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6
8876 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8877 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8879 libname_spec='lib$name'
8887 shlibpath_overrides_runpath=unknown
8889 dynamic_linker="$host_os ld.so"
8890 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8891 if test "$GCC" = yes; then
8892 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8893 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8894 # if the path contains ";" then we assume it to be the separator
8895 # otherwise default to the standard path separator (i.e. ":") - it is
8896 # assumed that no part of a normal pathname contains ";" but that should
8897 # okay in the real world where ";" in dirpaths is itself problematic.
8898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8903 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8906 hardcode_into_libs=no
8908 # when you set need_version to no, make sure it does not cause -set_version
8909 # flags to be left without arguments
8915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8916 shlibpath_var=LIBPATH
8918 # AIX 3 has no versioning support, so we append a major version to the name.
8919 soname_spec='${libname}${release}${shared_ext}$major'
8924 hardcode_into_libs=yes
8925 if test "$host_cpu" = ia64; then
8926 # AIX 5 supports IA64
8927 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8928 shlibpath_var=LD_LIBRARY_PATH
8930 # With GCC up to 2.95.x, collect2 would create an import file
8931 # for dependence libraries. The import file would start with
8932 # the line `#! .'. This would cause the generated library to
8933 # depend on `.', always an invalid library. This was fixed in
8934 # development snapshots of GCC prior to 3.0.
8936 aix4 | aix4.[01] | aix4.[01].*)
8937 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8939 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8946 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8947 # soname into executable. Probably we can add versioning support to
8948 # collect2, so additional links can be useful in future.
8949 if test "$aix_use_runtimelinking" = yes; then
8950 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8951 # instead of lib<name>.a to let people know that these are not
8952 # typical AIX shared libraries.
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955 # We preserve .a as extension for shared libraries through AIX4.2
8956 # and later when we are not doing run time linking.
8957 library_names_spec='${libname}${release}.a $libname.a'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8960 shlibpath_var=LIBPATH
8965 library_names_spec='$libname.ixlibrary $libname.a'
8966 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8967 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
8971 library_names_spec='${libname}${shared_ext}'
8972 dynamic_linker="$host_os ld.so"
8973 shlibpath_var=LIBRARY_PATH
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 #finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8983 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8984 # the default ld.so.conf also contains /usr/contrib/lib and
8985 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8986 # libtool to hard-code these into programs
8989 cygwin* | mingw* | pw32*)
8990 version_type=windows
8993 case $GCC,$host_os in
8994 yes,cygwin* | yes,mingw* | yes,pw32*)
8995 library_names_spec='$libname.dll.a'
8996 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8997 postinstall_cmds='base_file=`basename \${file}`~
8998 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8999 dldir=$destdir/`dirname \$dlpath`~
9000 test -d \$dldir || mkdir -p \$dldir~
9001 $install_prog $dir/$dlname \$dldir/$dlname'
9002 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9003 dlpath=$dir/\$dldll~
9005 shlibpath_overrides_runpath=yes
9009 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9010 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9011 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
9014 # MinGW DLLs use traditional 'lib' prefix
9015 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9016 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9017 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9018 # It is most probably a Windows format PATH printed by
9019 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9020 # path with ; separators, and with drive letters. We can handle the
9021 # drive letters (cygwin fileutils understands them), so leave them,
9022 # especially as we might pass files found there to a mingw objdump,
9023 # which wouldn't understand a cygwinified path. Ahh.
9024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9026 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9030 # pw32 DLLs use 'pw' prefix rather than 'lib'
9031 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9037 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9040 dynamic_linker='Win32 ld.exe'
9041 # FIXME: first we should search . and the directory the executable is in
9045 darwin* | rhapsody*)
9046 dynamic_linker="$host_os dyld"
9048 # FIXME: Relying on posixy $() will cause problems for
9049 # cross-compilation, but unfortunately the echo tests do not
9050 # yet detect zsh echo's removal of \ escapes.
9051 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9052 soname_spec='${libname}${release}${major}$shared_ext'
9053 shlibpath_overrides_runpath=yes
9054 shlibpath_var=DYLD_LIBRARY_PATH
9055 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
9056 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9057 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9058 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9060 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9066 soname_spec='${libname}${release}${shared_ext}$major'
9067 shlibpath_var=LD_LIBRARY_PATH
9075 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9076 version_type=freebsd-$objformat
9077 case $version_type in
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9085 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=yes
9090 freebsd3.01* | freebsdelf3.01*)
9091 shlibpath_overrides_runpath=yes
9092 hardcode_into_libs=yes
9095 shlibpath_overrides_runpath=no
9096 hardcode_into_libs=yes
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 hardcode_into_libs=yes
9109 hpux9* | hpux10* | hpux11*)
9110 # Give a soname corresponding to the major version so that dld.sl refuses to
9111 # link against other versions.
9116 hardcode_into_libs=yes
9117 dynamic_linker="$host_os dld.so"
9118 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 if test "X$HPUX_IA64_MODE" = X32; then
9123 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9125 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9131 hardcode_into_libs=yes
9132 dynamic_linker="$host_os dld.sl"
9133 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136 soname_spec='${libname}${release}${shared_ext}$major'
9137 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9142 dynamic_linker="$host_os dld.sl"
9143 shlibpath_var=SHLIB_PATH
9144 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9149 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9150 postinstall_cmds='chmod 555 $lib'
9153 irix5* | irix6* | nonstopux*)
9155 nonstopux*) version_type=nonstopux ;;
9157 if test "$lt_cv_prog_gnu_ld" = yes; then
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9166 irix5* | nonstopux*)
9170 case $LD in # libtool.m4 will add one of these switches to LD
9171 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9172 libsuff= shlibsuff= libmagic=32-bit;;
9173 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9174 libsuff=32 shlibsuff=N32 libmagic=N32;;
9175 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9176 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9177 *) libsuff= shlibsuff= libmagic=never-match;;
9181 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9182 shlibpath_overrides_runpath=no
9183 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9184 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9185 hardcode_into_libs=yes
9188 # No shared lib support for Linux oldld, aout, or coff.
9189 linux*oldld* | linux*aout* | linux*coff*)
9193 # This must be Linux ELF.
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 #finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=no
9201 # This implies no fast_install, which is unacceptable.
9202 # Some rework will be needed to allow for fast_install
9203 # before this can be enabled.
9204 hardcode_into_libs=yes
9206 # We used to test for /lib/ld.so.1 and disable shared libraries on
9207 # powerpc, because MkLinux only supported shared libraries with the
9208 # GNU dynamic linker. Since this was broken with cross compilers,
9209 # most powerpc-linux boxes support dynamic linking these days and
9210 # people can always --disable-shared, the test was removed, and we
9211 # assume the GNU/Linux dynamic linker is in use.
9212 dynamic_linker='GNU/Linux ld.so'
9217 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9219 #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9220 dynamic_linker='NetBSD (a.out) ld.so'
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 dynamic_linker='NetBSD ld.elf_so'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 shlibpath_overrides_runpath=yes
9228 hardcode_into_libs=yes
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 shlibpath_overrides_runpath=yes
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241 soname_spec='${libname}${release}${shared_ext}$major'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 shlibpath_overrides_runpath=yes
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9249 #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9252 dynamic_linker='OpenBSD (ELF) ld.so'
9254 openbsd2.[89] | openbsd2.[89].*)
9255 shlibpath_overrides_runpath=no
9258 shlibpath_overrides_runpath=yes
9262 dynamic_linker='OpenBSD (a.out) ld.so'
9263 shlibpath_overrides_runpath=yes
9268 libname_spec='$name'
9270 library_names_spec='$libname${shared_ext} $libname.a'
9271 dynamic_linker='OS/2 ld.exe'
9272 shlibpath_var=LIBPATH
9275 osf3* | osf4* | osf5*)
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9279 shlibpath_var=LD_LIBRARY_PATH
9280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288 shlibpath_var=LD_LIBRARY_PATH
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 shlibpath_overrides_runpath=yes
9297 hardcode_into_libs=yes
9298 # ldd complains unless libraries are executable
9299 postinstall_cmds='chmod +x $lib'
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9305 #finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9306 shlibpath_var=LD_LIBRARY_PATH
9307 shlibpath_overrides_runpath=yes
9310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 soname_spec='${libname}${release}${shared_ext}$major'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 case $host_vendor in
9317 shlibpath_overrides_runpath=no
9318 export_dynamic_flag_spec='${wl}-Blargedynsym'
9319 runpath_var=LD_RUN_PATH
9322 shlibpath_overrides_runpath=no
9323 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9329 if test -d /usr/nec ;then
9331 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9332 soname_spec='$libname${shared_ext}.$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 shlibpath_var=LD_LIBRARY_PATH
9348 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9349 echo "${ECHO_T}$dynamic_linker" >&6
9350 test "$dynamic_linker" = no && can_build_shared=no
9352 if test "x$enable_dlopen" != xyes; then
9353 enable_dlopen=unknown
9354 enable_dlopen_self=unknown
9355 enable_dlopen_self_static=unknown
9362 lt_cv_dlopen="load_add_on"
9364 lt_cv_dlopen_self=yes
9368 lt_cv_dlopen="LoadLibrary"
9373 lt_cv_dlopen="dlopen"
9378 # if libdl is installed we need to link against it
9379 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9380 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9381 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 ac_check_lib_save_LIBS=$LIBS
9386 cat >conftest.$ac_ext <<_ACEOF
9387 #line $LINENO "configure"
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9394 /* Override any gcc2 internal prototype to avoid an error. */
9398 /* We use char because int might match the return type of a gcc2
9399 builtin and then its argument prototype would still apply. */
9409 rm -f conftest.$ac_objext conftest$ac_exeext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9411 (eval $ac_link) 2>&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } &&
9415 { ac_try='test -s conftest$ac_exeext'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; }; then
9421 ac_cv_lib_dl_dlopen=yes
9423 echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.$ac_ext >&5
9426 ac_cv_lib_dl_dlopen=no
9428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9429 LIBS=$ac_check_lib_save_LIBS
9431 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9432 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9433 if test $ac_cv_lib_dl_dlopen = yes; then
9434 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9439 lt_cv_dlopen_self=yes
9446 echo "$as_me:$LINENO: checking for shl_load" >&5
9447 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9448 if test "${ac_cv_func_shl_load+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 cat >conftest.$ac_ext <<_ACEOF
9452 #line $LINENO "configure"
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 /* System header to define __stub macros and hopefully few prototypes,
9459 which can conflict with char shl_load (); below.
9460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9461 <limits.h> exists even on freestanding compilers. */
9463 # include <limits.h>
9465 # include <assert.h>
9467 /* Override any gcc2 internal prototype to avoid an error. */
9472 /* We use char because int might match the return type of a gcc2
9473 builtin and then its argument prototype would still apply. */
9475 /* The GNU C library defines this for functions which it implements
9476 to always fail with ENOSYS. Some functions are actually named
9477 something starting with __ and the normal name is an alias. */
9478 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9481 char (*f) () = shl_load;
9490 return f != shl_load;
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497 (eval $ac_link) 2>&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -s conftest$ac_exeext'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 ac_cv_func_shl_load=yes
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9512 ac_cv_func_shl_load=no
9514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9516 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9517 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9518 if test $ac_cv_func_shl_load = yes; then
9519 lt_cv_dlopen="shl_load"
9521 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9522 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9523 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 ac_check_lib_save_LIBS=$LIBS
9528 cat >conftest.$ac_ext <<_ACEOF
9529 #line $LINENO "configure"
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9536 /* Override any gcc2 internal prototype to avoid an error. */
9540 /* We use char because int might match the return type of a gcc2
9541 builtin and then its argument prototype would still apply. */
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9553 (eval $ac_link) 2>&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -s conftest$ac_exeext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_cv_lib_dld_shl_load=yes
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 ac_cv_lib_dld_shl_load=no
9570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9571 LIBS=$ac_check_lib_save_LIBS
9573 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9574 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9575 if test $ac_cv_lib_dld_shl_load = yes; then
9576 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9578 echo "$as_me:$LINENO: checking for dlopen" >&5
9579 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9580 if test "${ac_cv_func_dlopen+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 cat >conftest.$ac_ext <<_ACEOF
9584 #line $LINENO "configure"
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 /* System header to define __stub macros and hopefully few prototypes,
9591 which can conflict with char dlopen (); below.
9592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9593 <limits.h> exists even on freestanding compilers. */
9595 # include <limits.h>
9597 # include <assert.h>
9599 /* Override any gcc2 internal prototype to avoid an error. */
9604 /* We use char because int might match the return type of a gcc2
9605 builtin and then its argument prototype would still apply. */
9607 /* The GNU C library defines this for functions which it implements
9608 to always fail with ENOSYS. Some functions are actually named
9609 something starting with __ and the normal name is an alias. */
9610 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9613 char (*f) () = dlopen;
9627 rm -f conftest.$ac_objext conftest$ac_exeext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629 (eval $ac_link) 2>&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try='test -s conftest$ac_exeext'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; }; then
9639 ac_cv_func_dlopen=yes
9641 echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9644 ac_cv_func_dlopen=no
9646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9648 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9649 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9650 if test $ac_cv_func_dlopen = yes; then
9651 lt_cv_dlopen="dlopen"
9653 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9654 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9655 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 ac_check_lib_save_LIBS=$LIBS
9660 cat >conftest.$ac_ext <<_ACEOF
9661 #line $LINENO "configure"
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9668 /* Override any gcc2 internal prototype to avoid an error. */
9672 /* We use char because int might match the return type of a gcc2
9673 builtin and then its argument prototype would still apply. */
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685 (eval $ac_link) 2>&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -s conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_lib_dl_dlopen=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_cv_lib_dl_dlopen=no
9702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9703 LIBS=$ac_check_lib_save_LIBS
9705 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9706 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9707 if test $ac_cv_lib_dl_dlopen = yes; then
9708 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9710 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9711 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9712 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 ac_check_lib_save_LIBS=$LIBS
9717 cat >conftest.$ac_ext <<_ACEOF
9718 #line $LINENO "configure"
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9725 /* Override any gcc2 internal prototype to avoid an error. */
9729 /* We use char because int might match the return type of a gcc2
9730 builtin and then its argument prototype would still apply. */
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742 (eval $ac_link) 2>&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -s conftest$ac_exeext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 ac_cv_lib_svld_dlopen=yes
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_cv_lib_svld_dlopen=no
9759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9760 LIBS=$ac_check_lib_save_LIBS
9762 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9763 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9764 if test $ac_cv_lib_svld_dlopen = yes; then
9765 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9767 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9768 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9769 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 ac_check_lib_save_LIBS=$LIBS
9774 cat >conftest.$ac_ext <<_ACEOF
9775 #line $LINENO "configure"
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9782 /* Override any gcc2 internal prototype to avoid an error. */
9786 /* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9799 (eval $ac_link) 2>&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_lib_dld_dld_link=yes
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 ac_cv_lib_dld_dld_link=no
9816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9817 LIBS=$ac_check_lib_save_LIBS
9819 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9820 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9821 if test $ac_cv_lib_dld_dld_link = yes; then
9822 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9843 if test "x$lt_cv_dlopen" != xno; then
9849 case $lt_cv_dlopen in
9851 save_CPPFLAGS="$CPPFLAGS"
9852 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9854 save_LDFLAGS="$LDFLAGS"
9855 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9858 LIBS="$lt_cv_dlopen_libs $LIBS"
9860 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9861 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9862 if test "${lt_cv_dlopen_self+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 if test "$cross_compiling" = yes; then :
9866 lt_cv_dlopen_self=cross
9868 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9869 lt_status=$lt_dlunknown
9870 cat > conftest.$ac_ext <<EOF
9871 #line 9871 "configure"
9872 #include "confdefs.h"
9881 # define LT_DLGLOBAL RTLD_GLOBAL
9884 # define LT_DLGLOBAL DL_GLOBAL
9886 # define LT_DLGLOBAL 0
9890 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9891 find out it does not work in some platform. */
9892 #ifndef LT_DLLAZY_OR_NOW
9894 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9897 # define LT_DLLAZY_OR_NOW DL_LAZY
9900 # define LT_DLLAZY_OR_NOW RTLD_NOW
9903 # define LT_DLLAZY_OR_NOW DL_NOW
9905 # define LT_DLLAZY_OR_NOW 0
9913 extern "C" void exit (int);
9916 void fnord() { int i=42;}
9919 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9920 int status = $lt_dlunknown;
9924 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9925 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9926 /* dlclose (self); */
9932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933 (eval $ac_link) 2>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9937 (./conftest; exit; ) 2>/dev/null
9940 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9941 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9942 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9945 # compilation failed
9946 lt_cv_dlopen_self=no
9953 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9954 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9956 if test "x$lt_cv_dlopen_self" = xyes; then
9957 LDFLAGS="$LDFLAGS $link_static_flag"
9958 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9959 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9960 if test "${lt_cv_dlopen_self_static+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 if test "$cross_compiling" = yes; then :
9964 lt_cv_dlopen_self_static=cross
9966 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9967 lt_status=$lt_dlunknown
9968 cat > conftest.$ac_ext <<EOF
9969 #line 9969 "configure"
9970 #include "confdefs.h"
9979 # define LT_DLGLOBAL RTLD_GLOBAL
9982 # define LT_DLGLOBAL DL_GLOBAL
9984 # define LT_DLGLOBAL 0
9988 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9989 find out it does not work in some platform. */
9990 #ifndef LT_DLLAZY_OR_NOW
9992 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9995 # define LT_DLLAZY_OR_NOW DL_LAZY
9998 # define LT_DLLAZY_OR_NOW RTLD_NOW
10001 # define LT_DLLAZY_OR_NOW DL_NOW
10003 # define LT_DLLAZY_OR_NOW 0
10011 extern "C" void exit (int);
10014 void fnord() { int i=42;}
10017 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10018 int status = $lt_dlunknown;
10022 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10023 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10024 /* dlclose (self); */
10030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10031 (eval $ac_link) 2>&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10035 (./conftest; exit; ) 2>/dev/null
10037 case x$lt_status in
10038 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10039 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10040 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10043 # compilation failed
10044 lt_cv_dlopen_self_static=no
10051 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10052 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10055 CPPFLAGS="$save_CPPFLAGS"
10056 LDFLAGS="$save_LDFLAGS"
10061 case $lt_cv_dlopen_self in
10062 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10063 *) enable_dlopen_self=unknown ;;
10066 case $lt_cv_dlopen_self_static in
10067 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10068 *) enable_dlopen_self_static=unknown ;;
10073 # Report which librarie types wil actually be built
10074 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10075 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10076 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10077 echo "${ECHO_T}$can_build_shared" >&6
10079 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10080 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10081 test "$can_build_shared" = "no" && enable_shared=no
10083 # On AIX, shared libraries and static libraries use the same namespace, and
10084 # are all built from PIC.
10087 test "$enable_shared" = yes && enable_static=no
10088 if test -n "$RANLIB"; then
10089 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10090 postinstall_cmds='$RANLIB $lib'
10095 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10096 test "$enable_shared" = yes && enable_static=no
10099 darwin* | rhapsody*)
10100 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10101 archive_cmds_need_lc=no
10103 rhapsody* | darwin1.[012])
10104 allow_undefined_flag='-undefined suppress'
10107 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
10110 # FIXME: Relying on posixy $() will cause problems for
10111 # cross-compilation, but unfortunately the echo tests do not
10112 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
10113 # `"' quotes if we put them in here... so don't!
10114 output_verbose_link_cmd='echo'
10115 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10116 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10117 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10118 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10119 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10121 hardcode_automatic=yes
10122 hardcode_shlibpath_var=unsupported
10123 whole_archive_flag_spec='-all_load $convenience'
10124 link_all_deplibs=yes
10128 echo "$as_me:$LINENO: result: $enable_shared" >&5
10129 echo "${ECHO_T}$enable_shared" >&6
10131 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10132 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10133 # Make sure either enable_shared or enable_static is yes.
10134 test "$enable_shared" = yes || enable_static=yes
10135 echo "$as_me:$LINENO: result: $enable_static" >&5
10136 echo "${ECHO_T}$enable_static" >&6
10138 # The else clause should only fire when bootstrapping the
10139 # libtool distribution, otherwise you forgot to ship ltmain.sh
10140 # with your package, and you will get complaints that there are
10141 # no rules to generate ltmain.sh.
10142 if test -f "$ltmain"; then
10143 # See if we are running on zsh, and set the options which allow our commands through
10144 # without removal of \ escapes.
10145 if test -n "${ZSH_VERSION+set}" ; then
10146 setopt NO_GLOB_SUBST
10148 # Now quote all the things that may contain metacharacters while being
10149 # careful not to overquote the AC_SUBSTed values. We take copies of the
10150 # variables and quote the copies for generation of the libtool script.
10151 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
10152 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10153 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10154 deplibs_check_method reload_flag reload_cmds need_locks \
10155 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10156 lt_cv_sys_global_symbol_to_c_name_address \
10157 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10158 old_postinstall_cmds old_postuninstall_cmds \
10162 lt_prog_compiler_wl \
10163 lt_prog_compiler_pic \
10164 lt_prog_compiler_static \
10165 lt_prog_compiler_no_builtin_flag \
10166 export_dynamic_flag_spec \
10167 thread_safe_flag_spec \
10168 whole_archive_flag_spec \
10169 enable_shared_with_static_runtimes \
10171 old_archive_from_new_cmds \
10176 compiler_lib_search_path \
10178 archive_expsym_cmds \
10180 postuninstall_cmds \
10181 old_archive_from_expsyms_cmds \
10182 allow_undefined_flag \
10183 no_undefined_flag \
10184 export_symbols_cmds \
10185 hardcode_libdir_flag_spec \
10186 hardcode_libdir_flag_spec_ld \
10187 hardcode_libdir_separator \
10188 hardcode_automatic \
10190 module_expsym_cmds \
10191 lt_cv_prog_compiler_c_o \
10193 include_expsyms; do
10196 old_archive_cmds | \
10197 old_archive_from_new_cmds | \
10199 archive_expsym_cmds | \
10201 module_expsym_cmds | \
10202 old_archive_from_expsyms_cmds | \
10203 export_symbols_cmds | \
10204 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10205 postinstall_cmds | postuninstall_cmds | \
10206 old_postinstall_cmds | old_postuninstall_cmds | \
10207 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10208 # Double-quote double-evaled strings.
10209 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10212 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10218 *'\$0 --fallback-echo"')
10219 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10223 cfgfile="${ofile}T"
10224 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10226 { echo "$as_me:$LINENO: creating $ofile" >&5
10227 echo "$as_me: creating $ofile" >&6;}
10229 cat <<__EOF__ >> "$cfgfile"
10232 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10233 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10234 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10236 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10237 # Free Software Foundation, Inc.
10239 # This file is part of GNU Libtool:
10240 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10242 # This program is free software; you can redistribute it and/or modify
10243 # it under the terms of the GNU General Public License as published by
10244 # the Free Software Foundation; either version 2 of the License, or
10245 # (at your option) any later version.
10247 # This program is distributed in the hope that it will be useful, but
10248 # WITHOUT ANY WARRANTY; without even the implied warranty of
10249 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10250 # General Public License for more details.
10252 # You should have received a copy of the GNU General Public License
10253 # along with this program; if not, write to the Free Software
10254 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10256 # As a special exception to the GNU General Public License, if you
10257 # distribute this file as part of a program that contains a
10258 # configuration script generated by Autoconf, you may include it under
10259 # the same distribution terms that you use for the rest of that program.
10261 # A sed program that does not truncate output.
10264 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10265 Xsed="$SED -e s/^X//"
10267 # The HP-UX ksh and POSIX shell print the target directory to stdout
10268 # if CDPATH is set.
10269 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10271 # The names of the tagged configurations supported by this script.
10274 # ### BEGIN LIBTOOL CONFIG
10276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10278 # Shell to use when invoking shell scripts.
10281 # Whether or not to build shared libraries.
10282 build_libtool_libs=$enable_shared
10284 # Whether or not to build static libraries.
10285 build_old_libs=$enable_static
10287 # Whether or not to add -lc for building shared libraries.
10288 build_libtool_need_lc=$archive_cmds_need_lc
10290 # Whether or not to disallow shared libs when runtime libs are static
10291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10293 # Whether or not to optimize for fast installation.
10294 fast_install=$enable_fast_install
10297 host_alias=$host_alias
10300 # An echo program that does not interpret backslashes.
10305 AR_FLAGS=$lt_AR_FLAGS
10310 # A language-specific compiler.
10313 # Is the compiler the GNU C compiler?
10319 # The linker used to build libraries.
10322 # Whether we need hard or soft links.
10325 # A BSD-compatible nm program.
10328 # A symbol stripping program
10331 # Used to examine libraries when file_magic_cmd begins "file"
10332 MAGIC_CMD=$MAGIC_CMD
10334 # Used on cygwin: DLL creation program.
10337 # Used on cygwin: object dumper.
10340 # Used on cygwin: assembler.
10343 # The name of the directory that contains temporary libtool files.
10346 # How to create reloadable object files.
10347 reload_flag=$lt_reload_flag
10348 reload_cmds=$lt_reload_cmds
10350 # How to pass a linker flag through the compiler.
10351 wl=$lt_lt_prog_compiler_wl
10353 # Object file suffix (normally "o").
10354 objext="$ac_objext"
10356 # Old archive suffix (normally "a").
10359 # Shared library suffix (normally ".so").
10362 # Executable file suffix (normally "").
10365 # Additional compiler flags for building library objects.
10366 pic_flag=$lt_lt_prog_compiler_pic
10369 # What is the maximum length of a command?
10370 max_cmd_len=$lt_cv_sys_max_cmd_len
10372 # Does compiler simultaneously support -c and -o options?
10373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10375 # Must we lock files when doing compilation ?
10376 need_locks=$lt_need_locks
10378 # Do we need the lib prefix for modules?
10379 need_lib_prefix=$need_lib_prefix
10381 # Do we need a version for libraries?
10382 need_version=$need_version
10384 # Whether dlopen is supported.
10385 dlopen_support=$enable_dlopen
10387 # Whether dlopen of programs is supported.
10388 dlopen_self=$enable_dlopen_self
10390 # Whether dlopen of statically linked programs is supported.
10391 dlopen_self_static=$enable_dlopen_self_static
10393 # Compiler flag to prevent dynamic linking.
10394 link_static_flag=$lt_lt_prog_compiler_static
10396 # Compiler flag to turn off builtin functions.
10397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10399 # Compiler flag to allow reflexive dlopens.
10400 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10402 # Compiler flag to generate shared objects directly from archives.
10403 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10405 # Compiler flag to generate thread-safe objects.
10406 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10408 # Library versioning type.
10409 version_type=$version_type
10411 # Format of library name prefix.
10412 libname_spec=$lt_libname_spec
10414 # List of archive names. First name is the real one, the rest are links.
10415 # The last name is the one that the linker finds with -lNAME.
10416 library_names_spec=$lt_library_names_spec
10418 # The coded name of the library, if different from the real name.
10419 soname_spec=$lt_soname_spec
10421 # Commands used to build and install an old-style archive.
10423 old_archive_cmds=$lt_old_archive_cmds
10424 old_postinstall_cmds=$lt_old_postinstall_cmds
10425 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10427 # Create an old-style archive from a shared archive.
10428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10430 # Create a temporary old-style archive to link instead of a shared archive.
10431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10433 # Commands used to build and install a shared archive.
10434 archive_cmds=$lt_archive_cmds
10435 archive_expsym_cmds=$lt_archive_expsym_cmds
10436 postinstall_cmds=$lt_postinstall_cmds
10437 postuninstall_cmds=$lt_postuninstall_cmds
10439 # Commands used to build a loadable module (assumed same as above if empty)
10440 module_cmds=$lt_module_cmds
10441 module_expsym_cmds=$lt_module_expsym_cmds
10443 # Commands to strip libraries.
10444 old_striplib=$lt_old_striplib
10445 striplib=$lt_striplib
10447 # Dependencies to place before the objects being linked to create a
10449 predep_objects=$lt_predep_objects
10451 # Dependencies to place after the objects being linked to create a
10453 postdep_objects=$lt_postdep_objects
10455 # Dependencies to place before the objects being linked to create a
10457 predeps=$lt_predeps
10459 # Dependencies to place after the objects being linked to create a
10461 postdeps=$lt_postdeps
10463 # The library search path used internally by the compiler when linking
10464 # a shared library.
10465 compiler_lib_search_path=$lt_compiler_lib_search_path
10467 # Method to check whether dependent libraries are shared objects.
10468 deplibs_check_method=$lt_deplibs_check_method
10470 # Command to use when deplibs_check_method == file_magic.
10471 file_magic_cmd=$lt_file_magic_cmd
10473 # Flag that allows shared libraries with undefined symbols to be built.
10474 allow_undefined_flag=$lt_allow_undefined_flag
10476 # Flag that forces no undefined symbols.
10477 no_undefined_flag=$lt_no_undefined_flag
10479 # Commands used to finish a libtool library installation in a directory.
10480 finish_cmds=$lt_finish_cmds
10482 # Same as above, but a single script fragment to be evaled but not shown.
10483 finish_eval=$lt_finish_eval
10485 # Take the output of nm and produce a listing of raw symbols and C names.
10486 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10488 # Transform the output of nm in a proper C declaration
10489 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10491 # Transform the output of nm in a C name address pair
10492 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10494 # This is the shared library runtime path variable.
10495 runpath_var=$runpath_var
10497 # This is the shared library path variable.
10498 shlibpath_var=$shlibpath_var
10500 # Is shlibpath searched before the hard-coded library search path?
10501 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10503 # How to hardcode a shared library path into an executable.
10504 hardcode_action=$hardcode_action
10506 # Whether we should hardcode library paths into libraries.
10507 hardcode_into_libs=$hardcode_into_libs
10509 # Flag to hardcode \$libdir into a binary during linking.
10510 # This must work even if \$libdir does not exist.
10511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10513 # If ld is used when linking, flag to hardcode \$libdir into
10514 # a binary during linking. This must work even if \$libdir does
10516 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10518 # Whether we need a single -rpath flag with a separated argument.
10519 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10521 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10522 # resulting binary.
10523 hardcode_direct=$hardcode_direct
10525 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10526 # resulting binary.
10527 hardcode_minus_L=$hardcode_minus_L
10529 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10530 # the resulting binary.
10531 hardcode_shlibpath_var=$hardcode_shlibpath_var
10533 # Set to yes if building a shared library automatically hardcodes DIR into the library
10534 # and all subsequent libraries and executables linked against it.
10535 hardcode_automatic=$hardcode_automatic
10537 # Variables whose values should be saved in libtool wrapper scripts and
10538 # restored at relink time.
10539 variables_saved_for_relink="$variables_saved_for_relink"
10541 # Whether libtool must link a program against all its dependency libraries.
10542 link_all_deplibs=$link_all_deplibs
10544 # Compile-time system search path for libraries
10545 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10547 # Run-time system search path for libraries
10548 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10550 # Fix the shell variable \$srcfile for the compiler.
10551 fix_srcfile_path="$fix_srcfile_path"
10553 # Set to yes if exported symbols are required.
10554 always_export_symbols=$always_export_symbols
10556 # The commands to list exported symbols.
10557 export_symbols_cmds=$lt_export_symbols_cmds
10559 # The commands to extract the exported symbol list from a shared archive.
10560 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10562 # Symbols that should not be listed in the preloaded symbols.
10563 exclude_expsyms=$lt_exclude_expsyms
10565 # Symbols that must always be exported.
10566 include_expsyms=$lt_include_expsyms
10568 # ### END LIBTOOL CONFIG
10575 cat <<\EOF >> "$cfgfile"
10577 # AIX sometimes has problems with the GCC collect2 program. For some
10578 # reason, if we set the COLLECT_NAMES environment variable, the problems
10579 # vanish in a puff of smoke.
10580 if test "X${COLLECT_NAMES+set}" != Xset; then
10582 export COLLECT_NAMES
10588 # We use sed instead of cat because bash on DJGPP gets confused if
10589 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10590 # text mode, it properly converts lines to CR/LF. This bash problem
10591 # is reportedly fixed, but why not run on old versions too?
10592 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10594 mv -f "$cfgfile" "$ofile" || \
10595 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10599 # If there is no Makefile yet, we rely on a make rule to execute
10600 # `config.status --recheck' to rerun these tests and create the
10601 # libtool script then.
10602 test -f Makefile && make "$ltmain"
10607 ac_cpp='$CPP $CPPFLAGS'
10608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10615 # Check whether --with-tags or --without-tags was given.
10616 if test "${with_tags+set}" = set; then
10617 withval="$with_tags"
10618 tagnames="$withval"
10621 if test -f "$ltmain" && test -n "$tagnames"; then
10622 if test ! -f "${ofile}"; then
10623 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10624 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10627 if test -z "$LTCC"; then
10628 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10629 if test -z "$LTCC"; then
10630 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10631 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10633 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10634 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10638 # Extract list of available tagged configurations in $ofile.
10639 # Note that this assumes the entire list is on one line.
10640 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10643 for tagname in $tagnames; do
10645 # Check whether tagname contains only valid characters
10646 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10648 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10649 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10650 { (exit 1); exit 1; }; }
10654 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10656 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10657 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10658 { (exit 1); exit 1; }; }
10661 # Update the list of available tags.
10662 if test -n "$tagname"; then
10663 echo appending configuration tag \"$tagname\" to $ofile
10667 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10669 ac_cpp='$CXXCPP $CPPFLAGS'
10670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10677 archive_cmds_need_lc_CXX=no
10678 allow_undefined_flag_CXX=
10679 always_export_symbols_CXX=no
10680 archive_expsym_cmds_CXX=
10681 export_dynamic_flag_spec_CXX=
10682 hardcode_direct_CXX=no
10683 hardcode_libdir_flag_spec_CXX=
10684 hardcode_libdir_flag_spec_ld_CXX=
10685 hardcode_libdir_separator_CXX=
10686 hardcode_minus_L_CXX=no
10687 hardcode_automatic_CXX=no
10689 module_expsym_cmds_CXX=
10690 link_all_deplibs_CXX=unknown
10691 old_archive_cmds_CXX=$old_archive_cmds
10692 no_undefined_flag_CXX=
10693 whole_archive_flag_spec_CXX=
10694 enable_shared_with_static_runtimes_CXX=no
10696 # Dependencies to place before and after the object being linked:
10697 predep_objects_CXX=
10698 postdep_objects_CXX=
10701 compiler_lib_search_path_CXX=
10703 # Source file extension for C++ test sources.
10706 # Object file extension for compiled C++ test sources.
10710 # Code to be used in simple compile tests
10711 lt_simple_compile_test_code="int some_variable = 0;\n"
10713 # Code to be used in simple link tests
10714 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10716 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10718 # If no C compiler was specified, use CC.
10721 # Allow CC to be a program name with arguments.
10725 # Allow CC to be a program name with arguments.
10730 lt_save_with_gnu_ld=$with_gnu_ld
10731 lt_save_path_LD=$lt_cv_path_LD
10732 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10733 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10735 unset lt_cv_prog_gnu_ld
10737 if test -n "${lt_cv_path_LDCXX+set}"; then
10738 lt_cv_path_LD=$lt_cv_path_LDCXX
10740 unset lt_cv_path_LD
10742 test -z "${LDCXX+set}" || LD=$LDCXX
10746 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10748 # We don't want -fno-exception wen compiling C++ code, so set the
10749 # no_builtin_flag separately
10750 if test "$GXX" = yes; then
10751 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10753 lt_prog_compiler_no_builtin_flag_CXX=
10756 if test "$GXX" = yes; then
10757 # Set up default GNU C++ configuration
10760 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10761 if test "${with_gnu_ld+set}" = set; then
10762 withval="$with_gnu_ld"
10763 test "$withval" = no || with_gnu_ld=yes
10768 if test "$GCC" = yes; then
10769 # Check if gcc -print-prog-name=ld gives a path.
10770 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10771 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10774 # gcc leaves a trailing carriage return which upsets mingw
10775 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10777 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10780 # Accept absolute paths.
10782 re_direlt='/[^/][^/]*/\.\./'
10783 # Canonicalize the path of ld
10784 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10785 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10786 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10788 test -z "$LD" && LD="$ac_prog"
10791 # If it fails, then pretend we aren't using GCC.
10795 # If it is relative, then search for the first ld in PATH.
10796 with_gnu_ld=unknown
10799 elif test "$with_gnu_ld" = yes; then
10800 echo "$as_me:$LINENO: checking for GNU ld" >&5
10801 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10803 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10804 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10806 if test "${lt_cv_path_LD+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 if test -z "$LD"; then
10810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10811 for ac_dir in $PATH; do
10813 test -z "$ac_dir" && ac_dir=.
10814 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10815 lt_cv_path_LD="$ac_dir/$ac_prog"
10816 # Check to see if the program is GNU ld. I'd rather use --version,
10817 # but apparently some GNU ld's only accept -v.
10818 # Break only if it was the GNU/non-GNU ld that we prefer.
10819 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10820 *GNU* | *'with BFD'*)
10821 test "$with_gnu_ld" != no && break
10824 test "$with_gnu_ld" != yes && break
10831 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10835 LD="$lt_cv_path_LD"
10836 if test -n "$LD"; then
10837 echo "$as_me:$LINENO: result: $LD" >&5
10838 echo "${ECHO_T}$LD" >&6
10840 echo "$as_me:$LINENO: result: no" >&5
10841 echo "${ECHO_T}no" >&6
10843 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10844 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10845 { (exit 1); exit 1; }; }
10846 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10847 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10848 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10852 case `"$LD" -v 2>&1 </dev/null` in
10853 *GNU* | *'with BFD'*)
10854 lt_cv_prog_gnu_ld=yes
10857 lt_cv_prog_gnu_ld=no
10861 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10862 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10863 with_gnu_ld=$lt_cv_prog_gnu_ld
10867 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10868 # archiving commands below assume that GNU ld is being used.
10869 if test "$with_gnu_ld" = yes; then
10870 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10871 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10873 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10874 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10876 # If archive_cmds runs LD, not CC, wlarc should be empty
10877 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10878 # investigate it a little bit more. (MM)
10881 # ancient GNU ld didn't support --whole-archive et. al.
10882 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10883 grep 'no-whole-archive' > /dev/null; then
10884 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10886 whole_archive_flag_spec_CXX=
10892 # A generic and very simple default shared library creation
10893 # command for GNU C++ for the case where it uses the native
10894 # linker, instead of GNU ld. If possible, this setting should
10895 # overridden to take advantage of the native linker features on
10896 # the platform it is being used on.
10897 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10900 # Commands to make compiler produce verbose output that lists
10901 # what "hidden" libraries, object files and flags are used when
10902 # linking a shared library.
10903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10911 # PORTME: fill in a description of your system's C++ link characteristics
10912 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10917 # FIXME: insert proper C++ library support
10921 if test "$host_cpu" = ia64; then
10922 # On IA64, the linker does run time linking by default, so we don't
10923 # have to do anything special.
10924 aix_use_runtimelinking=no
10925 exp_sym_flag='-Bexport'
10928 aix_use_runtimelinking=no
10930 # Test if we are trying to use run time linking or normal
10931 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10932 # need to do runtime linking.
10933 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10934 for ld_flag in $LDFLAGS; do
10937 aix_use_runtimelinking=yes
10944 exp_sym_flag='-bexport'
10945 no_entry_flag='-bnoentry'
10948 # When large executables or shared objects are built, AIX ld can
10949 # have problems creating the table of contents. If linking a library
10950 # or program results in "error TOC overflow" add -mminimal-toc to
10951 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10952 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10954 archive_cmds_CXX=''
10955 hardcode_direct_CXX=yes
10956 hardcode_libdir_separator_CXX=':'
10957 link_all_deplibs_CXX=yes
10959 if test "$GXX" = yes; then
10960 case $host_os in aix4.012|aix4.012.*)
10961 # We only want to do this on AIX 4.2 and lower, the check
10962 # below for broken collect2 doesn't work under 4.3+
10963 collect2name=`${CC} -print-prog-name=collect2`
10964 if test -f "$collect2name" && \
10965 strings "$collect2name" | grep resolve_lib_name >/dev/null
10967 # We have reworked collect2
10968 hardcode_direct_CXX=yes
10970 # We have old collect2
10971 hardcode_direct_CXX=unsupported
10972 # It fails to find uninstalled libraries when the uninstalled
10973 # path is not listed in the libpath. Setting hardcode_minus_L
10974 # to unsupported forces relinking
10975 hardcode_minus_L_CXX=yes
10976 hardcode_libdir_flag_spec_CXX='-L$libdir'
10977 hardcode_libdir_separator_CXX=
10980 shared_flag='-shared'
10983 if test "$host_cpu" = ia64; then
10984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10985 # chokes on -Wl,-G. The following line is correct:
10988 if test "$aix_use_runtimelinking" = yes; then
10989 shared_flag='${wl}-G'
10991 shared_flag='${wl}-bM:SRE'
10996 # It seems that -bexpall does not export symbols beginning with
10997 # underscore (_), so it is better to generate a list of symbols to export.
10998 always_export_symbols_CXX=yes
10999 if test "$aix_use_runtimelinking" = yes; then
11000 # Warning - without using the other runtime loading flags (-brtl),
11001 # -berok will link without error, but may produce a broken library.
11002 allow_undefined_flag_CXX='-berok'
11003 # Determine the default libpath from the value encoded in an empty executable.
11004 cat >conftest.$ac_ext <<_ACEOF
11005 #line $LINENO "configure"
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11022 (eval $ac_link) 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try='test -s conftest$ac_exeext'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11035 # Check for a 64-bit object if we didn't find anything.
11036 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11039 echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11044 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11046 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11048 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11050 if test "$host_cpu" = ia64; then
11051 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11052 allow_undefined_flag_CXX="-z nodefs"
11053 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11055 # Determine the default libpath from the value encoded in an empty executable.
11056 cat >conftest.$ac_ext <<_ACEOF
11057 #line $LINENO "configure"
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11074 (eval $ac_link) 2>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try='test -s conftest$ac_exeext'
11079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080 (eval $ac_try) 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; }; then
11085 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11087 # Check for a 64-bit object if we didn't find anything.
11088 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11098 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11099 # Warning - without using the other run time loading flags,
11100 # -berok will link without error, but may produce a broken library.
11101 no_undefined_flag_CXX=' ${wl}-bernotok'
11102 allow_undefined_flag_CXX=' ${wl}-berok'
11103 # -bexpall does not export symbols beginning with underscore (_)
11104 always_export_symbols_CXX=yes
11105 # Exported symbols can be pulled into shared objects from archives
11106 whole_archive_flag_spec_CXX=' '
11107 archive_cmds_need_lc_CXX=yes
11108 # This is similar to how AIX traditionally builds it's shared libraries.
11109 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11114 case $cc_basename in
11116 # FIXME: insert proper C++ library support
11122 cygwin* | mingw* | pw32*)
11123 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11124 # as there is no search path for DLLs.
11125 hardcode_libdir_flag_spec_CXX='-L$libdir'
11126 allow_undefined_flag_CXX=unsupported
11127 always_export_symbols_CXX=no
11128 enable_shared_with_static_runtimes_CXX=yes
11130 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11131 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11132 # If the export-symbols file already is a .def file (1st line
11133 # is EXPORTS), use it as is; otherwise, prepend...
11134 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11135 cp $export_symbols $output_objdir/$soname.def;
11137 echo EXPORTS > $output_objdir/$soname.def;
11138 cat $export_symbols >> $output_objdir/$soname.def;
11140 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11146 darwin* | rhapsody*)
11147 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11148 archive_cmds_need_lc_CXX=no
11150 rhapsody* | darwin1.[012])
11151 allow_undefined_flag_CXX='-undefined suppress'
11154 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11157 lt_int_apple_cc_single_mod=no
11158 output_verbose_link_cmd='echo'
11159 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11160 lt_int_apple_cc_single_mod=yes
11162 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11163 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11165 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11167 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
11169 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11170 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11171 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11173 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11175 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11176 hardcode_direct_CXX=no
11177 hardcode_automatic_CXX=yes
11178 hardcode_shlibpath_var_CXX=unsupported
11179 whole_archive_flag_spec_CXX='-all_load $convenience'
11180 link_all_deplibs_CXX=yes
11185 case $cc_basename in
11187 # FIXME: insert proper C++ library support
11191 # Green Hills C++ Compiler
11192 # FIXME: insert proper C++ library support
11196 # FIXME: insert proper C++ library support
11202 # C++ shared libraries reported to be fairly broken before switch to ELF
11206 archive_cmds_need_lc_CXX=no
11209 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11216 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11217 hardcode_libdir_separator_CXX=:
11218 export_dynamic_flag_spec_CXX='${wl}-E'
11219 hardcode_direct_CXX=yes
11220 hardcode_minus_L_CXX=yes # Not in the search PATH,
11221 # but as the default
11222 # location of the library.
11224 case $cc_basename in
11226 # FIXME: insert proper C++ library support
11230 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11231 # Commands to make compiler produce verbose output that lists
11232 # what "hidden" libraries, object files and flags are used when
11233 # linking a shared library.
11235 # There doesn't appear to be a way to prevent this compiler from
11236 # explicitly linking system object files so we need to strip them
11237 # from the output so that they don't get included in the library
11239 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11242 if test "$GXX" = yes; then
11243 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11245 # FIXME: insert proper C++ library support
11252 if test $with_gnu_ld = no; then
11253 case "$host_cpu" in
11255 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11256 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11257 hardcode_libdir_separator_CXX=:
11260 hardcode_libdir_flag_spec_CXX='-L$libdir'
11263 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11264 hardcode_libdir_separator_CXX=:
11265 export_dynamic_flag_spec_CXX='${wl}-E'
11269 case "$host_cpu" in
11271 hardcode_direct_CXX=no
11272 hardcode_shlibpath_var_CXX=no
11275 hardcode_direct_CXX=no
11276 hardcode_shlibpath_var_CXX=no
11277 hardcode_minus_L_CXX=yes # Not in the search PATH,
11278 # but as the default
11279 # location of the library.
11282 hardcode_direct_CXX=yes
11283 hardcode_minus_L_CXX=yes # Not in the search PATH,
11284 # but as the default
11285 # location of the library.
11289 case $cc_basename in
11291 # FIXME: insert proper C++ library support
11295 case "$host_cpu" in
11297 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11300 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11303 # Commands to make compiler produce verbose output that lists
11304 # what "hidden" libraries, object files and flags are used when
11305 # linking a shared library.
11307 # There doesn't appear to be a way to prevent this compiler from
11308 # explicitly linking system object files so we need to strip them
11309 # from the output so that they don't get included in the library
11311 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11314 if test "$GXX" = yes; then
11315 if test $with_gnu_ld = no; then
11316 case "$host_cpu" in
11318 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11321 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11326 # FIXME: insert proper C++ library support
11333 case $cc_basename in
11336 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11338 # Archives containing C++ object files must be created using
11339 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11340 # necessary to make sure instantiated templates are included
11342 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11345 if test "$GXX" = yes; then
11346 if test "$with_gnu_ld" = no; then
11347 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11349 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11352 link_all_deplibs_CXX=yes
11355 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11356 hardcode_libdir_separator_CXX=:
11359 case $cc_basename in
11361 # Kuck and Associates, Inc. (KAI) C++ Compiler
11363 # KCC will only create a shared library if the output file
11364 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11365 # to its proper name (with version) after linking.
11366 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11367 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11368 # Commands to make compiler produce verbose output that lists
11369 # what "hidden" libraries, object files and flags are used when
11370 # linking a shared library.
11372 # There doesn't appear to be a way to prevent this compiler from
11373 # explicitly linking system object files so we need to strip them
11374 # from the output so that they don't get included in the library
11376 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11378 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11379 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11381 # Archives containing C++ object files must be created using
11382 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11383 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11388 archive_cmds_need_lc_CXX=no
11389 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11390 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11391 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11392 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11393 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11397 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11398 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11400 runpath_var=LD_RUN_PATH
11401 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11402 hardcode_libdir_separator_CXX=:
11404 # Commands to make compiler produce verbose output that lists
11405 # what "hidden" libraries, object files and flags are used when
11406 # linking a shared library.
11408 # There doesn't appear to be a way to prevent this compiler from
11409 # explicitly linking system object files so we need to strip them
11410 # from the output so that they don't get included in the library
11412 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11417 # FIXME: insert proper C++ library support
11421 # FIXME: insert proper C++ library support
11425 case $cc_basename in
11427 # FIXME: insert proper C++ library support
11431 # FIXME: insert proper C++ library support
11437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11438 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11440 hardcode_libdir_flag_spec_CXX='-R$libdir'
11441 hardcode_direct_CXX=yes
11442 hardcode_shlibpath_var_CXX=no
11444 # Workaround some broken pre-1.5 toolchains
11445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11448 case $cc_basename in
11450 # Kuck and Associates, Inc. (KAI) C++ Compiler
11452 # KCC will only create a shared library if the output file
11453 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11454 # to its proper name (with version) after linking.
11455 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11457 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11458 hardcode_libdir_separator_CXX=:
11460 # Archives containing C++ object files must be created using
11461 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11462 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11466 # Rational C++ 2.4.1
11467 # FIXME: insert proper C++ library support
11471 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11472 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11474 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11475 hardcode_libdir_separator_CXX=:
11477 # Commands to make compiler produce verbose output that lists
11478 # what "hidden" libraries, object files and flags are used when
11479 # linking a shared library.
11481 # There doesn't appear to be a way to prevent this compiler from
11482 # explicitly linking system object files so we need to strip them
11483 # from the output so that they don't get included in the library
11485 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11488 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11489 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11490 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11492 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11493 hardcode_libdir_separator_CXX=:
11495 # Commands to make compiler produce verbose output that lists
11496 # what "hidden" libraries, object files and flags are used when
11497 # linking a shared library.
11498 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11501 # FIXME: insert proper C++ library support
11508 case $cc_basename in
11510 # Kuck and Associates, Inc. (KAI) C++ Compiler
11512 # KCC will only create a shared library if the output file
11513 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11514 # to its proper name (with version) after linking.
11515 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11517 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11518 hardcode_libdir_separator_CXX=:
11520 # Archives containing C++ object files must be created using
11521 # the KAI C++ compiler.
11522 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11525 # Rational C++ 2.4.1
11526 # FIXME: insert proper C++ library support
11530 allow_undefined_flag_CXX=' -expect_unresolved \*'
11531 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11532 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11533 echo "-hidden">> $lib.exp~
11534 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11537 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11538 hardcode_libdir_separator_CXX=:
11540 # Commands to make compiler produce verbose output that lists
11541 # what "hidden" libraries, object files and flags are used when
11542 # linking a shared library.
11544 # There doesn't appear to be a way to prevent this compiler from
11545 # explicitly linking system object files so we need to strip them
11546 # from the output so that they don't get included in the library
11548 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11551 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11552 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11553 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11556 hardcode_libdir_separator_CXX=:
11558 # Commands to make compiler produce verbose output that lists
11559 # what "hidden" libraries, object files and flags are used when
11560 # linking a shared library.
11561 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11564 # FIXME: insert proper C++ library support
11571 # FIXME: insert proper C++ library support
11575 archive_cmds_need_lc_CXX=no
11576 case $cc_basename in
11578 # FIXME: insert proper C++ library support
11582 # FIXME: insert proper C++ library support
11588 case $cc_basename in
11591 # FIXME: insert proper C++ library support
11596 # FIXME: insert proper C++ library support
11600 # FIXME: insert proper C++ library support
11606 case $cc_basename in
11608 # Sun C++ 4.2, 5.x and Centerline C++
11609 no_undefined_flag_CXX=' -zdefs'
11610 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11611 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11612 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11614 hardcode_libdir_flag_spec_CXX='-R$libdir'
11615 hardcode_shlibpath_var_CXX=no
11617 solaris2.0-5 | solaris2.0-5.*) ;;
11619 # The C++ compiler is used as linker so we must use $wl
11620 # flag to pass the commands to the underlying system
11622 # Supported since Solaris 2.6 (maybe 2.5.1?)
11623 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11626 link_all_deplibs_CXX=yes
11628 # Commands to make compiler produce verbose output that lists
11629 # what "hidden" libraries, object files and flags are used when
11630 # linking a shared library.
11632 # There doesn't appear to be a way to prevent this compiler from
11633 # explicitly linking system object files so we need to strip them
11634 # from the output so that they don't get included in the library
11636 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11638 # Archives containing C++ object files must be created using
11639 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11640 # necessary to make sure instantiated templates are included
11642 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11645 # Green Hills C++ Compiler
11646 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11648 # The C++ compiler must be used to create the archive.
11649 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11652 # GNU C++ compiler with Solaris linker
11653 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11654 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11655 if $CC --version | grep -v '^2\.7' > /dev/null; then
11656 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11657 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11658 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11660 # Commands to make compiler produce verbose output that lists
11661 # what "hidden" libraries, object files and flags are used when
11662 # linking a shared library.
11663 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11665 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11667 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11668 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11669 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11671 # Commands to make compiler produce verbose output that lists
11672 # what "hidden" libraries, object files and flags are used when
11673 # linking a shared library.
11674 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11677 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11682 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11683 archive_cmds_need_lc_CXX=no
11686 case $cc_basename in
11688 # NonStop-UX NCC 3.20
11689 # FIXME: insert proper C++ library support
11693 # FIXME: insert proper C++ library support
11699 # FIXME: insert proper C++ library support
11703 # FIXME: insert proper C++ library support
11707 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11708 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11709 test "$ld_shlibs_CXX" = no && can_build_shared=no
11715 ## There is no encapsulation within the following macros, do not change
11716 ## the running order or otherwise move them around unless you know exactly
11717 ## what you are doing...
11719 cat > conftest.$ac_ext <<EOF
11723 Foo (void) { a = 0; }
11729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11730 (eval $ac_compile) 2>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; then
11734 # Parse the compiler output and extract the necessary
11735 # objects, libraries and library flags.
11737 # Sentinel used to keep track of whether or not we are before
11738 # the conftest object file.
11739 pre_test_object_deps_done=no
11741 # The `*' in the case matches for architectures that use `case' in
11742 # $output_verbose_cmd can trigger glob expansion during the loop
11743 # eval without this substitution.
11744 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11746 for p in `eval $output_verbose_link_cmd`; do
11750 # Some compilers place space between "-{L,R}" and the path.
11751 # Remove the space.
11752 if test $p = "-L" \
11753 || test $p = "-R"; then
11760 if test "$pre_test_object_deps_done" = no; then
11763 # Internal compiler library paths should come after those
11764 # provided the user. The postdeps already come after the
11765 # user supplied libs so there is no need to process them.
11766 if test -z "$compiler_lib_search_path_CXX"; then
11767 compiler_lib_search_path_CXX="${prev}${p}"
11769 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11772 # The "-l" case would never come before the object being
11773 # linked, so don't bother handling this case.
11776 if test -z "$postdeps_CXX"; then
11777 postdeps_CXX="${prev}${p}"
11779 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11785 # This assumes that the test object file only shows up
11786 # once in the compiler output.
11787 if test "$p" = "conftest.$objext"; then
11788 pre_test_object_deps_done=yes
11792 if test "$pre_test_object_deps_done" = no; then
11793 if test -z "$predep_objects_CXX"; then
11794 predep_objects_CXX="$p"
11796 predep_objects_CXX="$predep_objects_CXX $p"
11799 if test -z "$postdep_objects_CXX"; then
11800 postdep_objects_CXX="$p"
11802 postdep_objects_CXX="$postdep_objects_CXX $p"
11807 *) ;; # Ignore the rest.
11815 echo "libtool.m4: error: problem compiling CXX test program"
11818 $rm -f confest.$objext
11820 case " $postdeps_CXX " in
11821 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11824 lt_prog_compiler_wl_CXX=
11825 lt_prog_compiler_pic_CXX=
11826 lt_prog_compiler_static_CXX=
11828 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11829 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11831 # C++ specific cases for pic, static, wl, etc.
11832 if test "$GXX" = yes; then
11833 lt_prog_compiler_wl_CXX='-Wl,'
11834 lt_prog_compiler_static_CXX='-static'
11838 # All AIX code is PIC.
11839 if test "$host_cpu" = ia64; then
11840 # AIX 5 now supports IA64 processor
11841 lt_prog_compiler_static_CXX='-Bstatic'
11845 # FIXME: we need at least 68020 code to build shared libraries, but
11846 # adding the `-m68020' flag to GCC prevents building anything better,
11848 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11850 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11851 # PIC is the default for these OSes.
11853 mingw* | os2* | pw32*)
11854 # This hack is so that the source file can tell whether it is being
11855 # built for inclusion in a dll (and should export symbols for example).
11856 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11858 darwin* | rhapsody*)
11859 # PIC is the default on this platform
11860 # Common symbols not allowed in MH_DYLIB files
11861 lt_prog_compiler_pic_CXX='-fno-common'
11864 # DJGPP does not support shared libraries at all
11865 lt_prog_compiler_pic_CXX=
11868 if test -d /usr/nec; then
11869 lt_prog_compiler_pic_CXX=-Kconform_pic
11873 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11874 # not for PA HP-UX.
11875 case "$host_cpu" in
11879 lt_prog_compiler_pic_CXX='-fPIC'
11884 lt_prog_compiler_pic_CXX='-fPIC'
11890 # All AIX code is PIC.
11891 if test "$host_cpu" = ia64; then
11892 # AIX 5 now supports IA64 processor
11893 lt_prog_compiler_static_CXX='-Bstatic'
11895 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11899 case $cc_basename in
11901 # Green Hills C++ Compiler
11902 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11907 case $cc_basename in
11909 lt_prog_compiler_pic_CXX='-KPIC'
11912 # Green Hills C++ Compiler
11913 lt_prog_compiler_pic_CXX='-pic'
11920 # FreeBSD uses GNU C++
11922 hpux9* | hpux10* | hpux11*)
11923 case $cc_basename in
11925 lt_prog_compiler_wl_CXX='-Wl,'
11926 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11927 if test "$host_cpu" != ia64; then
11928 lt_prog_compiler_pic_CXX='+Z'
11932 lt_prog_compiler_wl_CXX='-Wl,'
11933 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11934 case "$host_cpu" in
11939 lt_prog_compiler_pic_CXX='+Z'
11947 irix5* | irix6* | nonstopux*)
11948 case $cc_basename in
11950 lt_prog_compiler_wl_CXX='-Wl,'
11951 lt_prog_compiler_static_CXX='-non_shared'
11952 # CC pic flag -KPIC is the default.
11959 case $cc_basename in
11962 lt_prog_compiler_wl_CXX='--backend -Wl,'
11963 lt_prog_compiler_pic_CXX='-fPIC'
11967 lt_prog_compiler_wl_CXX='-Wl,'
11968 lt_prog_compiler_pic_CXX='-KPIC'
11969 lt_prog_compiler_static_CXX='-static'
11973 # Make sure the PIC flag is empty. It appears that all Alpha
11974 # Linux and Compaq Tru64 Unix objects are PIC.
11975 lt_prog_compiler_pic_CXX=
11976 lt_prog_compiler_static_CXX='-non_shared'
11987 case $cc_basename in
11989 lt_prog_compiler_pic_CXX='-W c,exportall'
11997 osf3* | osf4* | osf5*)
11998 case $cc_basename in
12000 lt_prog_compiler_wl_CXX='--backend -Wl,'
12003 # Rational C++ 2.4.1
12004 lt_prog_compiler_pic_CXX='-pic'
12007 # Digital/Compaq C++
12008 lt_prog_compiler_wl_CXX='-Wl,'
12009 # Make sure the PIC flag is empty. It appears that all Alpha
12010 # Linux and Compaq Tru64 Unix objects are PIC.
12011 lt_prog_compiler_pic_CXX=
12012 lt_prog_compiler_static_CXX='-non_shared'
12021 case $cc_basename in
12023 lt_prog_compiler_pic_CXX='-fPIC'
12030 case $cc_basename in
12032 # Sun C++ 4.2, 5.x and Centerline C++
12033 lt_prog_compiler_pic_CXX='-KPIC'
12034 lt_prog_compiler_static_CXX='-Bstatic'
12035 lt_prog_compiler_wl_CXX='-Qoption ld '
12038 # Green Hills C++ Compiler
12039 lt_prog_compiler_pic_CXX='-PIC'
12046 case $cc_basename in
12049 lt_prog_compiler_pic_CXX='-pic'
12050 lt_prog_compiler_static_CXX='-Bstatic'
12054 lt_prog_compiler_pic_CXX='-pic'
12061 case $cc_basename in
12063 # NonStop-UX NCC 3.20
12064 lt_prog_compiler_pic_CXX='-KPIC'
12075 lt_prog_compiler_can_build_shared_CXX=no
12080 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12081 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12084 # Check to make sure the PIC flag actually works.
12086 if test -n "$lt_prog_compiler_pic_CXX"; then
12087 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12089 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 lt_prog_compiler_pic_works_CXX=no
12093 ac_outfile=conftest.$ac_objext
12094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12095 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12096 # Insert the option either (1) after the last *FLAGS variable, or
12097 # (2) before a word containing "conftest.", or (3) at the end.
12098 # Note that $ac_compile itself does not contain backslashes and begins
12099 # with a dollar sign (not a hyphen), so the echo should work correctly.
12100 # The option is referenced via a variable to avoid confusing sed.
12101 lt_compile=`echo "$ac_compile" | $SED \
12102 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12104 -e 's:$: $lt_compiler_flag:'`
12105 (eval echo "\"\$as_me:12105: $lt_compile\"" >&5)
12106 (eval "$lt_compile" 2>conftest.err)
12108 cat conftest.err >&5
12109 echo "$as_me:12109: \$? = $ac_status" >&5
12110 if (exit $ac_status) && test -s "$ac_outfile"; then
12111 # The compiler can only warn and ignore the option if not recognized
12112 # So say no if there are warnings
12113 if test ! -s conftest.err; then
12114 lt_prog_compiler_pic_works_CXX=yes
12120 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12121 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12123 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12124 case $lt_prog_compiler_pic_CXX in
12126 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12129 lt_prog_compiler_pic_CXX=
12130 lt_prog_compiler_can_build_shared_CXX=no
12135 # For platforms which do not support PIC, -DPIC is meaningless:
12137 lt_prog_compiler_pic_CXX=
12140 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12144 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12145 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12146 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 lt_cv_prog_compiler_c_o_CXX=no
12150 $rm -r conftest 2>/dev/null
12154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12156 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12157 # that will create temporary files in the current directory regardless of
12158 # the output directory. Thus, making CWD read-only will cause this test
12159 # to fail, enabling locking or at least warning the user not to do parallel
12163 lt_compiler_flag="-o out/conftest2.$ac_objext"
12164 # Insert the option either (1) after the last *FLAGS variable, or
12165 # (2) before a word containing "conftest.", or (3) at the end.
12166 # Note that $ac_compile itself does not contain backslashes and begins
12167 # with a dollar sign (not a hyphen), so the echo should work correctly.
12168 lt_compile=`echo "$ac_compile" | $SED \
12169 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12171 -e 's:$: $lt_compiler_flag:'`
12172 (eval echo "\"\$as_me:12172: $lt_compile\"" >&5)
12173 (eval "$lt_compile" 2>out/conftest.err)
12175 cat out/conftest.err >&5
12176 echo "$as_me:12176: \$? = $ac_status" >&5
12177 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12179 # The compiler can only warn and ignore the option if not recognized
12180 # So say no if there are warnings
12181 if test ! -s out/conftest.err; then
12182 lt_cv_prog_compiler_c_o_CXX=yes
12186 $rm conftest* out/*
12193 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12194 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12197 hard_links="nottested"
12198 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12199 # do not overwrite the value of need_locks provided by the user
12200 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12201 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12206 ln conftest.a conftest.b 2>&5 || hard_links=no
12207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12208 echo "$as_me:$LINENO: result: $hard_links" >&5
12209 echo "${ECHO_T}$hard_links" >&6
12210 if test "$hard_links" = no; then
12211 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12212 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12219 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12220 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12222 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12225 # If we're using GNU nm, then we don't want the "-C" option.
12226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12227 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12228 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12230 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12234 export_symbols_cmds_CXX="$ltdll_cmds"
12237 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12240 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12244 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12245 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12246 test "$ld_shlibs_CXX" = no && can_build_shared=no
12248 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12249 if test "$GCC" = yes; then
12250 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12254 # Do we need to explicitly link libc?
12256 case "x$archive_cmds_need_lc_CXX" in
12258 # Assume -lc should be added
12259 archive_cmds_need_lc_CXX=yes
12261 if test "$enable_shared" = yes && test "$GCC" = yes; then
12262 case $archive_cmds_CXX in
12264 # FIXME: we may have to deal with multi-command sequences.
12267 # Test whether the compiler implicitly links with -lc since on some
12268 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12269 # to ld, don't add -lc before -lgcc.
12270 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12271 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12273 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276 (eval $ac_compile) 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } 2>conftest.err; then
12282 libobjs=conftest.$ac_objext
12284 wl=$lt_prog_compiler_wl_CXX
12290 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12291 allow_undefined_flag_CXX=
12292 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12293 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }
12298 archive_cmds_need_lc_CXX=no
12300 archive_cmds_need_lc_CXX=yes
12302 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12304 cat conftest.err 1>&5
12307 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12308 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12315 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12316 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12317 hardcode_action_CXX=
12318 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12319 test -n "$runpath_var CXX" || \
12320 test "X$hardcode_automatic_CXX"="Xyes" ; then
12322 # We can hardcode non-existant directories.
12323 if test "$hardcode_direct_CXX" != no &&
12324 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12325 # have to relink, otherwise we might link with an installed library
12326 # when we should be linking with a yet-to-be-installed one
12327 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12328 test "$hardcode_minus_L_CXX" != no; then
12329 # Linking always hardcodes the temporary library directory.
12330 hardcode_action_CXX=relink
12332 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12333 hardcode_action_CXX=immediate
12336 # We cannot hardcode anything, or else we can only hardcode existing
12338 hardcode_action_CXX=unsupported
12340 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12341 echo "${ECHO_T}$hardcode_action_CXX" >&6
12343 if test "$hardcode_action_CXX" = relink; then
12344 # Fast installation is not supported
12345 enable_fast_install=no
12346 elif test "$shlibpath_overrides_runpath" = yes ||
12347 test "$enable_shared" = no; then
12348 # Fast installation is not necessary
12349 enable_fast_install=needless
12354 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12355 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12356 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12357 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12358 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12359 echo "$as_me:$LINENO: result: yes" >&5
12360 echo "${ECHO_T}yes" >&6
12362 # FIXME - insert some real tests, host_os isn't really good enough
12365 if test -n "$STRIP" ; then
12366 striplib="$STRIP -x"
12367 echo "$as_me:$LINENO: result: yes" >&5
12368 echo "${ECHO_T}yes" >&6
12370 echo "$as_me:$LINENO: result: no" >&5
12371 echo "${ECHO_T}no" >&6
12375 echo "$as_me:$LINENO: result: no" >&5
12376 echo "${ECHO_T}no" >&6
12381 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12382 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12383 library_names_spec=
12384 libname_spec='lib$name'
12388 postuninstall_cmds=
12392 shlibpath_overrides_runpath=unknown
12394 dynamic_linker="$host_os ld.so"
12395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12396 if test "$GCC" = yes; then
12397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12398 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12399 # if the path contains ";" then we assume it to be the separator
12400 # otherwise default to the standard path separator (i.e. ":") - it is
12401 # assumed that no part of a normal pathname contains ";" but that should
12402 # okay in the real world where ";" in dirpaths is itself problematic.
12403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12408 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12411 hardcode_into_libs=no
12413 # when you set need_version to no, make sure it does not cause -set_version
12414 # flags to be left without arguments
12420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12421 shlibpath_var=LIBPATH
12423 # AIX 3 has no versioning support, so we append a major version to the name.
12424 soname_spec='${libname}${release}${shared_ext}$major'
12429 hardcode_into_libs=yes
12430 if test "$host_cpu" = ia64; then
12431 # AIX 5 supports IA64
12432 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12433 shlibpath_var=LD_LIBRARY_PATH
12435 # With GCC up to 2.95.x, collect2 would create an import file
12436 # for dependence libraries. The import file would start with
12437 # the line `#! .'. This would cause the generated library to
12438 # depend on `.', always an invalid library. This was fixed in
12439 # development snapshots of GCC prior to 3.0.
12441 aix4 | aix4.[01] | aix4.[01].*)
12442 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12444 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12447 can_build_shared=no
12451 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12452 # soname into executable. Probably we can add versioning support to
12453 # collect2, so additional links can be useful in future.
12454 if test "$aix_use_runtimelinking" = yes; then
12455 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12456 # instead of lib<name>.a to let people know that these are not
12457 # typical AIX shared libraries.
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12460 # We preserve .a as extension for shared libraries through AIX4.2
12461 # and later when we are not doing run time linking.
12462 library_names_spec='${libname}${release}.a $libname.a'
12463 soname_spec='${libname}${release}${shared_ext}$major'
12465 shlibpath_var=LIBPATH
12470 library_names_spec='$libname.ixlibrary $libname.a'
12471 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12472 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
12476 library_names_spec='${libname}${shared_ext}'
12477 dynamic_linker="$host_os ld.so"
12478 shlibpath_var=LIBRARY_PATH
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484 soname_spec='${libname}${release}${shared_ext}$major'
12485 #finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12486 shlibpath_var=LD_LIBRARY_PATH
12487 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12488 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12489 # the default ld.so.conf also contains /usr/contrib/lib and
12490 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12491 # libtool to hard-code these into programs
12494 cygwin* | mingw* | pw32*)
12495 version_type=windows
12498 case $GCC,$host_os in
12499 yes,cygwin* | yes,mingw* | yes,pw32*)
12500 library_names_spec='$libname.dll.a'
12501 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12502 postinstall_cmds='base_file=`basename \${file}`~
12503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12504 dldir=$destdir/`dirname \$dlpath`~
12505 test -d \$dldir || mkdir -p \$dldir~
12506 $install_prog $dir/$dlname \$dldir/$dlname'
12507 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12508 dlpath=$dir/\$dldll~
12510 shlibpath_overrides_runpath=yes
12514 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12515 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12516 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
12519 # MinGW DLLs use traditional 'lib' prefix
12520 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12521 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12522 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12523 # It is most probably a Windows format PATH printed by
12524 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12525 # path with ; separators, and with drive letters. We can handle the
12526 # drive letters (cygwin fileutils understands them), so leave them,
12527 # especially as we might pass files found there to a mingw objdump,
12528 # which wouldn't understand a cygwinified path. Ahh.
12529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12535 # pw32 DLLs use 'pw' prefix rather than 'lib'
12536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12545 dynamic_linker='Win32 ld.exe'
12546 # FIXME: first we should search . and the directory the executable is in
12550 darwin* | rhapsody*)
12551 dynamic_linker="$host_os dyld"
12552 version_type=darwin
12553 # FIXME: Relying on posixy $() will cause problems for
12554 # cross-compilation, but unfortunately the echo tests do not
12555 # yet detect zsh echo's removal of \ escapes.
12556 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12557 soname_spec='${libname}${release}${major}$shared_ext'
12558 shlibpath_overrides_runpath=yes
12559 shlibpath_var=DYLD_LIBRARY_PATH
12560 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
12561 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12562 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
12563 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12565 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12571 soname_spec='${libname}${release}${shared_ext}$major'
12572 shlibpath_var=LD_LIBRARY_PATH
12580 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12581 version_type=freebsd-$objformat
12582 case $version_type in
12584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12590 shlibpath_var=LD_LIBRARY_PATH
12593 shlibpath_overrides_runpath=yes
12595 freebsd3.01* | freebsdelf3.01*)
12596 shlibpath_overrides_runpath=yes
12597 hardcode_into_libs=yes
12600 shlibpath_overrides_runpath=no
12601 hardcode_into_libs=yes
12608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12609 soname_spec='${libname}${release}${shared_ext}$major'
12610 shlibpath_var=LD_LIBRARY_PATH
12611 hardcode_into_libs=yes
12614 hpux9* | hpux10* | hpux11*)
12615 # Give a soname corresponding to the major version so that dld.sl refuses to
12616 # link against other versions.
12618 case "$host_cpu" in
12621 hardcode_into_libs=yes
12622 dynamic_linker="$host_os dld.so"
12623 shlibpath_var=LD_LIBRARY_PATH
12624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12626 soname_spec='${libname}${release}${shared_ext}$major'
12627 if test "X$HPUX_IA64_MODE" = X32; then
12628 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12630 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12636 hardcode_into_libs=yes
12637 dynamic_linker="$host_os dld.sl"
12638 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12641 soname_spec='${libname}${release}${shared_ext}$major'
12642 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12647 dynamic_linker="$host_os dld.sl"
12648 shlibpath_var=SHLIB_PATH
12649 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12651 soname_spec='${libname}${release}${shared_ext}$major'
12654 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12655 postinstall_cmds='chmod 555 $lib'
12658 irix5* | irix6* | nonstopux*)
12660 nonstopux*) version_type=nonstopux ;;
12662 if test "$lt_cv_prog_gnu_ld" = yes; then
12668 soname_spec='${libname}${release}${shared_ext}$major'
12669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12671 irix5* | nonstopux*)
12672 libsuff= shlibsuff=
12675 case $LD in # libtool.m4 will add one of these switches to LD
12676 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12677 libsuff= shlibsuff= libmagic=32-bit;;
12678 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12679 libsuff=32 shlibsuff=N32 libmagic=N32;;
12680 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12681 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12682 *) libsuff= shlibsuff= libmagic=never-match;;
12686 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12687 shlibpath_overrides_runpath=no
12688 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12689 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12690 hardcode_into_libs=yes
12693 # No shared lib support for Linux oldld, aout, or coff.
12694 linux*oldld* | linux*aout* | linux*coff*)
12698 # This must be Linux ELF.
12701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12702 soname_spec='${libname}${release}${shared_ext}$major'
12703 #finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12704 shlibpath_var=LD_LIBRARY_PATH
12705 shlibpath_overrides_runpath=no
12706 # This implies no fast_install, which is unacceptable.
12707 # Some rework will be needed to allow for fast_install
12708 # before this can be enabled.
12709 hardcode_into_libs=yes
12711 # We used to test for /lib/ld.so.1 and disable shared libraries on
12712 # powerpc, because MkLinux only supported shared libraries with the
12713 # GNU dynamic linker. Since this was broken with cross compilers,
12714 # most powerpc-linux boxes support dynamic linking these days and
12715 # people can always --disable-shared, the test was removed, and we
12716 # assume the GNU/Linux dynamic linker is in use.
12717 dynamic_linker='GNU/Linux ld.so'
12722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12724 #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12725 dynamic_linker='NetBSD (a.out) ld.so'
12727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
12728 soname_spec='${libname}${release}${shared_ext}$major'
12729 dynamic_linker='NetBSD ld.elf_so'
12731 shlibpath_var=LD_LIBRARY_PATH
12732 shlibpath_overrides_runpath=yes
12733 hardcode_into_libs=yes
12738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739 shlibpath_var=LD_LIBRARY_PATH
12740 shlibpath_overrides_runpath=yes
12745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12746 soname_spec='${libname}${release}${shared_ext}$major'
12747 shlibpath_var=LD_LIBRARY_PATH
12748 shlibpath_overrides_runpath=yes
12753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12754 #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12755 shlibpath_var=LD_LIBRARY_PATH
12756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12757 dynamic_linker='OpenBSD (ELF) ld.so'
12759 openbsd2.[89] | openbsd2.[89].*)
12760 shlibpath_overrides_runpath=no
12763 shlibpath_overrides_runpath=yes
12767 dynamic_linker='OpenBSD (a.out) ld.so'
12768 shlibpath_overrides_runpath=yes
12773 libname_spec='$name'
12775 library_names_spec='$libname${shared_ext} $libname.a'
12776 dynamic_linker='OS/2 ld.exe'
12777 shlibpath_var=LIBPATH
12780 osf3* | osf4* | osf5*)
12782 soname_spec='${libname}${release}${shared_ext}$major'
12783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12784 shlibpath_var=LD_LIBRARY_PATH
12785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12786 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12791 soname_spec='${libname}${release}${shared_ext}$major'
12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793 shlibpath_var=LD_LIBRARY_PATH
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12799 soname_spec='${libname}${release}${shared_ext}$major'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 shlibpath_overrides_runpath=yes
12802 hardcode_into_libs=yes
12803 # ldd complains unless libraries are executable
12804 postinstall_cmds='chmod +x $lib'
12809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12810 #finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12811 shlibpath_var=LD_LIBRARY_PATH
12812 shlibpath_overrides_runpath=yes
12815 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12818 soname_spec='${libname}${release}${shared_ext}$major'
12819 shlibpath_var=LD_LIBRARY_PATH
12820 case $host_vendor in
12822 shlibpath_overrides_runpath=no
12823 export_dynamic_flag_spec='${wl}-Blargedynsym'
12824 runpath_var=LD_RUN_PATH
12827 shlibpath_overrides_runpath=no
12828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12834 if test -d /usr/nec ;then
12836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12837 soname_spec='$libname${shared_ext}.$major'
12838 shlibpath_var=LD_LIBRARY_PATH
12844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12845 soname_spec='${libname}${release}${shared_ext}$major'
12846 shlibpath_var=LD_LIBRARY_PATH
12853 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12854 echo "${ECHO_T}$dynamic_linker" >&6
12855 test "$dynamic_linker" = no && can_build_shared=no
12857 if test "x$enable_dlopen" != xyes; then
12858 enable_dlopen=unknown
12859 enable_dlopen_self=unknown
12860 enable_dlopen_self_static=unknown
12867 lt_cv_dlopen="load_add_on"
12869 lt_cv_dlopen_self=yes
12873 lt_cv_dlopen="LoadLibrary"
12878 lt_cv_dlopen="dlopen"
12883 # if libdl is installed we need to link against it
12884 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12885 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12886 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12889 ac_check_lib_save_LIBS=$LIBS
12891 cat >conftest.$ac_ext <<_ACEOF
12892 #line $LINENO "configure"
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12899 /* Override any gcc2 internal prototype to avoid an error. */
12903 /* We use char because int might match the return type of a gcc2
12904 builtin and then its argument prototype would still apply. */
12914 rm -f conftest.$ac_objext conftest$ac_exeext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916 (eval $ac_link) 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } &&
12920 { ac_try='test -s conftest$ac_exeext'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
12926 ac_cv_lib_dl_dlopen=yes
12928 echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12931 ac_cv_lib_dl_dlopen=no
12933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12934 LIBS=$ac_check_lib_save_LIBS
12936 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12937 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12938 if test $ac_cv_lib_dl_dlopen = yes; then
12939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12942 lt_cv_dlopen="dyld"
12944 lt_cv_dlopen_self=yes
12951 echo "$as_me:$LINENO: checking for shl_load" >&5
12952 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12953 if test "${ac_cv_func_shl_load+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 cat >conftest.$ac_ext <<_ACEOF
12957 #line $LINENO "configure"
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 /* System header to define __stub macros and hopefully few prototypes,
12964 which can conflict with char shl_load (); below.
12965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12966 <limits.h> exists even on freestanding compilers. */
12968 # include <limits.h>
12970 # include <assert.h>
12972 /* Override any gcc2 internal prototype to avoid an error. */
12977 /* We use char because int might match the return type of a gcc2
12978 builtin and then its argument prototype would still apply. */
12980 /* The GNU C library defines this for functions which it implements
12981 to always fail with ENOSYS. Some functions are actually named
12982 something starting with __ and the normal name is an alias. */
12983 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12986 char (*f) () = shl_load;
12995 return f != shl_load;
13000 rm -f conftest.$ac_objext conftest$ac_exeext
13001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13002 (eval $ac_link) 2>&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try='test -s conftest$ac_exeext'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13012 ac_cv_func_shl_load=yes
13014 echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13017 ac_cv_func_shl_load=no
13019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13021 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13022 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13023 if test $ac_cv_func_shl_load = yes; then
13024 lt_cv_dlopen="shl_load"
13026 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13027 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13028 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13031 ac_check_lib_save_LIBS=$LIBS
13033 cat >conftest.$ac_ext <<_ACEOF
13034 #line $LINENO "configure"
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13041 /* Override any gcc2 internal prototype to avoid an error. */
13045 /* We use char because int might match the return type of a gcc2
13046 builtin and then its argument prototype would still apply. */
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058 (eval $ac_link) 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
13062 { ac_try='test -s conftest$ac_exeext'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 ac_cv_lib_dld_shl_load=yes
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 ac_cv_lib_dld_shl_load=no
13075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13076 LIBS=$ac_check_lib_save_LIBS
13078 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13079 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13080 if test $ac_cv_lib_dld_shl_load = yes; then
13081 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13083 echo "$as_me:$LINENO: checking for dlopen" >&5
13084 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13085 if test "${ac_cv_func_dlopen+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 cat >conftest.$ac_ext <<_ACEOF
13089 #line $LINENO "configure"
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13095 /* System header to define __stub macros and hopefully few prototypes,
13096 which can conflict with char dlopen (); below.
13097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13098 <limits.h> exists even on freestanding compilers. */
13100 # include <limits.h>
13102 # include <assert.h>
13104 /* Override any gcc2 internal prototype to avoid an error. */
13109 /* We use char because int might match the return type of a gcc2
13110 builtin and then its argument prototype would still apply. */
13112 /* The GNU C library defines this for functions which it implements
13113 to always fail with ENOSYS. Some functions are actually named
13114 something starting with __ and the normal name is an alias. */
13115 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13118 char (*f) () = dlopen;
13127 return f != dlopen;
13132 rm -f conftest.$ac_objext conftest$ac_exeext
13133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13134 (eval $ac_link) 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } &&
13138 { ac_try='test -s conftest$ac_exeext'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
13144 ac_cv_func_dlopen=yes
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13149 ac_cv_func_dlopen=no
13151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13153 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13154 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13155 if test $ac_cv_func_dlopen = yes; then
13156 lt_cv_dlopen="dlopen"
13158 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13159 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13160 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 ac_check_lib_save_LIBS=$LIBS
13165 cat >conftest.$ac_ext <<_ACEOF
13166 #line $LINENO "configure"
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13173 /* Override any gcc2 internal prototype to avoid an error. */
13177 /* We use char because int might match the return type of a gcc2
13178 builtin and then its argument prototype would still apply. */
13188 rm -f conftest.$ac_objext conftest$ac_exeext
13189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13190 (eval $ac_link) 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } &&
13194 { ac_try='test -s conftest$ac_exeext'
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 ac_cv_lib_dl_dlopen=yes
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 ac_cv_lib_dl_dlopen=no
13207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13208 LIBS=$ac_check_lib_save_LIBS
13210 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13211 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13212 if test $ac_cv_lib_dl_dlopen = yes; then
13213 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13215 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13216 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13217 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 ac_check_lib_save_LIBS=$LIBS
13221 LIBS="-lsvld $LIBS"
13222 cat >conftest.$ac_ext <<_ACEOF
13223 #line $LINENO "configure"
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13230 /* Override any gcc2 internal prototype to avoid an error. */
13234 /* We use char because int might match the return type of a gcc2
13235 builtin and then its argument prototype would still apply. */
13245 rm -f conftest.$ac_objext conftest$ac_exeext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13247 (eval $ac_link) 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } &&
13251 { ac_try='test -s conftest$ac_exeext'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13257 ac_cv_lib_svld_dlopen=yes
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13262 ac_cv_lib_svld_dlopen=no
13264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13265 LIBS=$ac_check_lib_save_LIBS
13267 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13268 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13269 if test $ac_cv_lib_svld_dlopen = yes; then
13270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13272 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13273 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13274 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 ac_check_lib_save_LIBS=$LIBS
13279 cat >conftest.$ac_ext <<_ACEOF
13280 #line $LINENO "configure"
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13287 /* Override any gcc2 internal prototype to avoid an error. */
13291 /* We use char because int might match the return type of a gcc2
13292 builtin and then its argument prototype would still apply. */
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13304 (eval $ac_link) 2>&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -s conftest$ac_exeext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 ac_cv_lib_dld_dld_link=yes
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13319 ac_cv_lib_dld_dld_link=no
13321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13324 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13325 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13326 if test $ac_cv_lib_dld_dld_link = yes; then
13327 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13348 if test "x$lt_cv_dlopen" != xno; then
13354 case $lt_cv_dlopen in
13356 save_CPPFLAGS="$CPPFLAGS"
13357 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13359 save_LDFLAGS="$LDFLAGS"
13360 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13363 LIBS="$lt_cv_dlopen_libs $LIBS"
13365 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13366 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13367 if test "${lt_cv_dlopen_self+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 if test "$cross_compiling" = yes; then :
13371 lt_cv_dlopen_self=cross
13373 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13374 lt_status=$lt_dlunknown
13375 cat > conftest.$ac_ext <<EOF
13376 #line 13376 "configure"
13377 #include "confdefs.h"
13386 # define LT_DLGLOBAL RTLD_GLOBAL
13389 # define LT_DLGLOBAL DL_GLOBAL
13391 # define LT_DLGLOBAL 0
13395 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13396 find out it does not work in some platform. */
13397 #ifndef LT_DLLAZY_OR_NOW
13399 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13402 # define LT_DLLAZY_OR_NOW DL_LAZY
13405 # define LT_DLLAZY_OR_NOW RTLD_NOW
13408 # define LT_DLLAZY_OR_NOW DL_NOW
13410 # define LT_DLLAZY_OR_NOW 0
13418 extern "C" void exit (int);
13421 void fnord() { int i=42;}
13424 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13425 int status = $lt_dlunknown;
13429 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13430 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13431 /* dlclose (self); */
13437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13438 (eval $ac_link) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13442 (./conftest; exit; ) 2>/dev/null
13444 case x$lt_status in
13445 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13446 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13447 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13450 # compilation failed
13451 lt_cv_dlopen_self=no
13458 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13459 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13461 if test "x$lt_cv_dlopen_self" = xyes; then
13462 LDFLAGS="$LDFLAGS $link_static_flag"
13463 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13464 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13465 if test "${lt_cv_dlopen_self_static+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 if test "$cross_compiling" = yes; then :
13469 lt_cv_dlopen_self_static=cross
13471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13472 lt_status=$lt_dlunknown
13473 cat > conftest.$ac_ext <<EOF
13474 #line 13474 "configure"
13475 #include "confdefs.h"
13484 # define LT_DLGLOBAL RTLD_GLOBAL
13487 # define LT_DLGLOBAL DL_GLOBAL
13489 # define LT_DLGLOBAL 0
13493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13494 find out it does not work in some platform. */
13495 #ifndef LT_DLLAZY_OR_NOW
13497 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13500 # define LT_DLLAZY_OR_NOW DL_LAZY
13503 # define LT_DLLAZY_OR_NOW RTLD_NOW
13506 # define LT_DLLAZY_OR_NOW DL_NOW
13508 # define LT_DLLAZY_OR_NOW 0
13516 extern "C" void exit (int);
13519 void fnord() { int i=42;}
13522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13523 int status = $lt_dlunknown;
13527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13528 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13529 /* dlclose (self); */
13535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13536 (eval $ac_link) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13540 (./conftest; exit; ) 2>/dev/null
13542 case x$lt_status in
13543 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13544 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13545 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13548 # compilation failed
13549 lt_cv_dlopen_self_static=no
13556 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13557 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13560 CPPFLAGS="$save_CPPFLAGS"
13561 LDFLAGS="$save_LDFLAGS"
13566 case $lt_cv_dlopen_self in
13567 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13568 *) enable_dlopen_self=unknown ;;
13571 case $lt_cv_dlopen_self_static in
13572 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13573 *) enable_dlopen_self_static=unknown ;;
13578 # The else clause should only fire when bootstrapping the
13579 # libtool distribution, otherwise you forgot to ship ltmain.sh
13580 # with your package, and you will get complaints that there are
13581 # no rules to generate ltmain.sh.
13582 if test -f "$ltmain"; then
13583 # See if we are running on zsh, and set the options which allow our commands through
13584 # without removal of \ escapes.
13585 if test -n "${ZSH_VERSION+set}" ; then
13586 setopt NO_GLOB_SUBST
13588 # Now quote all the things that may contain metacharacters while being
13589 # careful not to overquote the AC_SUBSTed values. We take copies of the
13590 # variables and quote the copies for generation of the libtool script.
13591 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13592 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13593 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13594 deplibs_check_method reload_flag reload_cmds need_locks \
13595 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13596 lt_cv_sys_global_symbol_to_c_name_address \
13597 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13598 old_postinstall_cmds old_postuninstall_cmds \
13602 lt_prog_compiler_wl_CXX \
13603 lt_prog_compiler_pic_CXX \
13604 lt_prog_compiler_static_CXX \
13605 lt_prog_compiler_no_builtin_flag_CXX \
13606 export_dynamic_flag_spec_CXX \
13607 thread_safe_flag_spec_CXX \
13608 whole_archive_flag_spec_CXX \
13609 enable_shared_with_static_runtimes_CXX \
13610 old_archive_cmds_CXX \
13611 old_archive_from_new_cmds_CXX \
13612 predep_objects_CXX \
13613 postdep_objects_CXX \
13616 compiler_lib_search_path_CXX \
13618 archive_expsym_cmds_CXX \
13619 postinstall_cmds_CXX \
13620 postuninstall_cmds_CXX \
13621 old_archive_from_expsyms_cmds_CXX \
13622 allow_undefined_flag_CXX \
13623 no_undefined_flag_CXX \
13624 export_symbols_cmds_CXX \
13625 hardcode_libdir_flag_spec_CXX \
13626 hardcode_libdir_flag_spec_ld_CXX \
13627 hardcode_libdir_separator_CXX \
13628 hardcode_automatic_CXX \
13630 module_expsym_cmds_CXX \
13631 lt_cv_prog_compiler_c_o_CXX \
13632 exclude_expsyms_CXX \
13633 include_expsyms_CXX; do
13636 old_archive_cmds_CXX | \
13637 old_archive_from_new_cmds_CXX | \
13638 archive_cmds_CXX | \
13639 archive_expsym_cmds_CXX | \
13640 module_cmds_CXX | \
13641 module_expsym_cmds_CXX | \
13642 old_archive_from_expsyms_cmds_CXX | \
13643 export_symbols_cmds_CXX | \
13644 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13645 postinstall_cmds | postuninstall_cmds | \
13646 old_postinstall_cmds | old_postuninstall_cmds | \
13647 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13648 # Double-quote double-evaled strings.
13649 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13658 *'\$0 --fallback-echo"')
13659 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13665 cat <<__EOF__ >> "$cfgfile"
13666 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13668 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13670 # Shell to use when invoking shell scripts.
13673 # Whether or not to build shared libraries.
13674 build_libtool_libs=$enable_shared
13676 # Whether or not to build static libraries.
13677 build_old_libs=$enable_static
13679 # Whether or not to add -lc for building shared libraries.
13680 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13682 # Whether or not to disallow shared libs when runtime libs are static
13683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13685 # Whether or not to optimize for fast installation.
13686 fast_install=$enable_fast_install
13689 host_alias=$host_alias
13692 # An echo program that does not interpret backslashes.
13697 AR_FLAGS=$lt_AR_FLAGS
13702 # A language-specific compiler.
13703 CC=$lt_compiler_CXX
13705 # Is the compiler the GNU C compiler?
13711 # The linker used to build libraries.
13714 # Whether we need hard or soft links.
13717 # A BSD-compatible nm program.
13720 # A symbol stripping program
13723 # Used to examine libraries when file_magic_cmd begins "file"
13724 MAGIC_CMD=$MAGIC_CMD
13726 # Used on cygwin: DLL creation program.
13729 # Used on cygwin: object dumper.
13732 # Used on cygwin: assembler.
13735 # The name of the directory that contains temporary libtool files.
13738 # How to create reloadable object files.
13739 reload_flag=$lt_reload_flag
13740 reload_cmds=$lt_reload_cmds
13742 # How to pass a linker flag through the compiler.
13743 wl=$lt_lt_prog_compiler_wl_CXX
13745 # Object file suffix (normally "o").
13746 objext="$ac_objext"
13748 # Old archive suffix (normally "a").
13751 # Shared library suffix (normally ".so").
13754 # Executable file suffix (normally "").
13757 # Additional compiler flags for building library objects.
13758 pic_flag=$lt_lt_prog_compiler_pic_CXX
13761 # What is the maximum length of a command?
13762 max_cmd_len=$lt_cv_sys_max_cmd_len
13764 # Does compiler simultaneously support -c and -o options?
13765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13767 # Must we lock files when doing compilation ?
13768 need_locks=$lt_need_locks
13770 # Do we need the lib prefix for modules?
13771 need_lib_prefix=$need_lib_prefix
13773 # Do we need a version for libraries?
13774 need_version=$need_version
13776 # Whether dlopen is supported.
13777 dlopen_support=$enable_dlopen
13779 # Whether dlopen of programs is supported.
13780 dlopen_self=$enable_dlopen_self
13782 # Whether dlopen of statically linked programs is supported.
13783 dlopen_self_static=$enable_dlopen_self_static
13785 # Compiler flag to prevent dynamic linking.
13786 link_static_flag=$lt_lt_prog_compiler_static_CXX
13788 # Compiler flag to turn off builtin functions.
13789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13791 # Compiler flag to allow reflexive dlopens.
13792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13794 # Compiler flag to generate shared objects directly from archives.
13795 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13797 # Compiler flag to generate thread-safe objects.
13798 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13800 # Library versioning type.
13801 version_type=$version_type
13803 # Format of library name prefix.
13804 libname_spec=$lt_libname_spec
13806 # List of archive names. First name is the real one, the rest are links.
13807 # The last name is the one that the linker finds with -lNAME.
13808 library_names_spec=$lt_library_names_spec
13810 # The coded name of the library, if different from the real name.
13811 soname_spec=$lt_soname_spec
13813 # Commands used to build and install an old-style archive.
13815 old_archive_cmds=$lt_old_archive_cmds_CXX
13816 old_postinstall_cmds=$lt_old_postinstall_cmds
13817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13819 # Create an old-style archive from a shared archive.
13820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13822 # Create a temporary old-style archive to link instead of a shared archive.
13823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13825 # Commands used to build and install a shared archive.
13826 archive_cmds=$lt_archive_cmds_CXX
13827 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13828 postinstall_cmds=$lt_postinstall_cmds
13829 postuninstall_cmds=$lt_postuninstall_cmds
13831 # Commands used to build a loadable module (assumed same as above if empty)
13832 module_cmds=$lt_module_cmds_CXX
13833 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13835 # Commands to strip libraries.
13836 old_striplib=$lt_old_striplib
13837 striplib=$lt_striplib
13839 # Dependencies to place before the objects being linked to create a
13841 predep_objects=$lt_predep_objects_CXX
13843 # Dependencies to place after the objects being linked to create a
13845 postdep_objects=$lt_postdep_objects_CXX
13847 # Dependencies to place before the objects being linked to create a
13849 predeps=$lt_predeps_CXX
13851 # Dependencies to place after the objects being linked to create a
13853 postdeps=$lt_postdeps_CXX
13855 # The library search path used internally by the compiler when linking
13856 # a shared library.
13857 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13859 # Method to check whether dependent libraries are shared objects.
13860 deplibs_check_method=$lt_deplibs_check_method
13862 # Command to use when deplibs_check_method == file_magic.
13863 file_magic_cmd=$lt_file_magic_cmd
13865 # Flag that allows shared libraries with undefined symbols to be built.
13866 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13868 # Flag that forces no undefined symbols.
13869 no_undefined_flag=$lt_no_undefined_flag_CXX
13871 # Commands used to finish a libtool library installation in a directory.
13872 finish_cmds=$lt_finish_cmds
13874 # Same as above, but a single script fragment to be evaled but not shown.
13875 finish_eval=$lt_finish_eval
13877 # Take the output of nm and produce a listing of raw symbols and C names.
13878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13880 # Transform the output of nm in a proper C declaration
13881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13883 # Transform the output of nm in a C name address pair
13884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13886 # This is the shared library runtime path variable.
13887 runpath_var=$runpath_var
13889 # This is the shared library path variable.
13890 shlibpath_var=$shlibpath_var
13892 # Is shlibpath searched before the hard-coded library search path?
13893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13895 # How to hardcode a shared library path into an executable.
13896 hardcode_action=$hardcode_action_CXX
13898 # Whether we should hardcode library paths into libraries.
13899 hardcode_into_libs=$hardcode_into_libs
13901 # Flag to hardcode \$libdir into a binary during linking.
13902 # This must work even if \$libdir does not exist.
13903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13905 # If ld is used when linking, flag to hardcode \$libdir into
13906 # a binary during linking. This must work even if \$libdir does
13908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13910 # Whether we need a single -rpath flag with a separated argument.
13911 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13913 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13914 # resulting binary.
13915 hardcode_direct=$hardcode_direct_CXX
13917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13918 # resulting binary.
13919 hardcode_minus_L=$hardcode_minus_L_CXX
13921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13922 # the resulting binary.
13923 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13925 # Set to yes if building a shared library automatically hardcodes DIR into the library
13926 # and all subsequent libraries and executables linked against it.
13927 hardcode_automatic=$hardcode_automatic_CXX
13929 # Variables whose values should be saved in libtool wrapper scripts and
13930 # restored at relink time.
13931 variables_saved_for_relink="$variables_saved_for_relink"
13933 # Whether libtool must link a program against all its dependency libraries.
13934 link_all_deplibs=$link_all_deplibs_CXX
13936 # Compile-time system search path for libraries
13937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13939 # Run-time system search path for libraries
13940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13942 # Fix the shell variable \$srcfile for the compiler.
13943 fix_srcfile_path="$fix_srcfile_path_CXX"
13945 # Set to yes if exported symbols are required.
13946 always_export_symbols=$always_export_symbols_CXX
13948 # The commands to list exported symbols.
13949 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13951 # The commands to extract the exported symbol list from a shared archive.
13952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13954 # Symbols that should not be listed in the preloaded symbols.
13955 exclude_expsyms=$lt_exclude_expsyms_CXX
13957 # Symbols that must always be exported.
13958 include_expsyms=$lt_include_expsyms_CXX
13960 # ### END LIBTOOL TAG CONFIG: $tagname
13966 # If there is no Makefile yet, we rely on a make rule to execute
13967 # `config.status --recheck' to rerun these tests and create the
13968 # libtool script then.
13969 test -f Makefile && make "$ltmain"
13974 ac_cpp='$CPP $CPPFLAGS'
13975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13983 with_gnu_ldcxx=$with_gnu_ld
13984 with_gnu_ld=$lt_save_with_gnu_ld
13985 lt_cv_path_LDCXX=$lt_cv_path_LD
13986 lt_cv_path_LD=$lt_save_path_LD
13987 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13988 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13996 if test -n "$F77" && test "X$F77" != "Xno"; then
13999 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14000 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14001 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14004 archive_cmds_need_lc_F77=no
14005 allow_undefined_flag_F77=
14006 always_export_symbols_F77=no
14007 archive_expsym_cmds_F77=
14008 export_dynamic_flag_spec_F77=
14009 hardcode_direct_F77=no
14010 hardcode_libdir_flag_spec_F77=
14011 hardcode_libdir_flag_spec_ld_F77=
14012 hardcode_libdir_separator_F77=
14013 hardcode_minus_L_F77=no
14014 hardcode_automatic_F77=no
14016 module_expsym_cmds_F77=
14017 link_all_deplibs_F77=unknown
14018 old_archive_cmds_F77=$old_archive_cmds
14019 no_undefined_flag_F77=
14020 whole_archive_flag_spec_F77=
14021 enable_shared_with_static_runtimes_F77=no
14023 # Source file extension for f77 test sources.
14026 # Object file extension for compiled f77 test sources.
14030 # Code to be used in simple compile tests
14031 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14033 # Code to be used in simple link tests
14034 lt_simple_link_test_code=" program t\n end\n"
14036 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14038 # If no C compiler was specified, use CC.
14041 # Allow CC to be a program name with arguments.
14045 # Allow CC to be a program name with arguments.
14050 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14052 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14053 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14054 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14055 echo "${ECHO_T}$can_build_shared" >&6
14057 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14058 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14059 test "$can_build_shared" = "no" && enable_shared=no
14061 # On AIX, shared libraries and static libraries use the same namespace, and
14062 # are all built from PIC.
14065 test "$enable_shared" = yes && enable_static=no
14066 if test -n "$RANLIB"; then
14067 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14068 postinstall_cmds='$RANLIB $lib'
14072 test "$enable_shared" = yes && enable_static=no
14075 echo "$as_me:$LINENO: result: $enable_shared" >&5
14076 echo "${ECHO_T}$enable_shared" >&6
14078 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14079 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14080 # Make sure either enable_shared or enable_static is yes.
14081 test "$enable_shared" = yes || enable_static=yes
14082 echo "$as_me:$LINENO: result: $enable_static" >&5
14083 echo "${ECHO_T}$enable_static" >&6
14085 test "$ld_shlibs_F77" = no && can_build_shared=no
14090 lt_prog_compiler_wl_F77=
14091 lt_prog_compiler_pic_F77=
14092 lt_prog_compiler_static_F77=
14094 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14095 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14097 if test "$GCC" = yes; then
14098 lt_prog_compiler_wl_F77='-Wl,'
14099 lt_prog_compiler_static_F77='-static'
14103 # All AIX code is PIC.
14104 if test "$host_cpu" = ia64; then
14105 # AIX 5 now supports IA64 processor
14106 lt_prog_compiler_static_F77='-Bstatic'
14111 # FIXME: we need at least 68020 code to build shared libraries, but
14112 # adding the `-m68020' flag to GCC prevents building anything better,
14114 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14117 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14118 # PIC is the default for these OSes.
14121 mingw* | pw32* | os2*)
14122 # This hack is so that the source file can tell whether it is being
14123 # built for inclusion in a dll (and should export symbols for example).
14124 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14127 darwin* | rhapsody*)
14128 # PIC is the default on this platform
14129 # Common symbols not allowed in MH_DYLIB files
14130 lt_prog_compiler_pic_F77='-fno-common'
14134 # Just because we use GCC doesn't mean we suddenly get shared libraries
14135 # on systems that don't support them.
14136 lt_prog_compiler_can_build_shared_F77=no
14141 if test -d /usr/nec; then
14142 lt_prog_compiler_pic_F77=-Kconform_pic
14147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14148 # not for PA HP-UX.
14149 case "$host_cpu" in
14154 lt_prog_compiler_pic_F77='-fPIC'
14160 lt_prog_compiler_pic_F77='-fPIC'
14164 # PORTME Check for flag to pass linker flags through the system compiler.
14167 lt_prog_compiler_wl_F77='-Wl,'
14168 if test "$host_cpu" = ia64; then
14169 # AIX 5 now supports IA64 processor
14170 lt_prog_compiler_static_F77='-Bstatic'
14172 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14176 mingw* | pw32* | os2*)
14177 # This hack is so that the source file can tell whether it is being
14178 # built for inclusion in a dll (and should export symbols for example).
14179 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14182 hpux9* | hpux10* | hpux11*)
14183 lt_prog_compiler_wl_F77='-Wl,'
14184 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14185 # not for PA HP-UX.
14186 case "$host_cpu" in
14191 lt_prog_compiler_pic_F77='+Z'
14194 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14195 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14198 irix5* | irix6* | nonstopux*)
14199 lt_prog_compiler_wl_F77='-Wl,'
14200 # PIC (with -KPIC) is the default.
14201 lt_prog_compiler_static_F77='-non_shared'
14205 lt_prog_compiler_pic_F77='-KPIC'
14206 lt_prog_compiler_static_F77='-Bstatic'
14212 lt_prog_compiler_wl_F77='-Wl,'
14213 lt_prog_compiler_pic_F77='-KPIC'
14214 lt_prog_compiler_static_F77='-static'
14217 lt_prog_compiler_wl_F77='-Wl,'
14218 # All Alpha code is PIC.
14219 lt_prog_compiler_static_F77='-non_shared'
14224 osf3* | osf4* | osf5*)
14225 lt_prog_compiler_wl_F77='-Wl,'
14226 # All OSF/1 code is PIC.
14227 lt_prog_compiler_static_F77='-non_shared'
14231 lt_prog_compiler_pic_F77='-Kpic'
14232 lt_prog_compiler_static_F77='-dn'
14236 lt_prog_compiler_wl_F77='-Wl,'
14237 lt_prog_compiler_pic_F77='-KPIC'
14238 lt_prog_compiler_static_F77='-Bstatic'
14242 lt_prog_compiler_wl_F77='-Qoption ld '
14243 lt_prog_compiler_pic_F77='-PIC'
14244 lt_prog_compiler_static_F77='-Bstatic'
14247 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14248 lt_prog_compiler_wl_F77='-Wl,'
14249 lt_prog_compiler_pic_F77='-KPIC'
14250 lt_prog_compiler_static_F77='-Bstatic'
14254 if test -d /usr/nec ;then
14255 lt_prog_compiler_pic_F77='-Kconform_pic'
14256 lt_prog_compiler_static_F77='-Bstatic'
14261 lt_prog_compiler_pic_F77='-pic'
14262 lt_prog_compiler_static_F77='-Bstatic'
14266 lt_prog_compiler_can_build_shared_F77=no
14271 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14272 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14275 # Check to make sure the PIC flag actually works.
14277 if test -n "$lt_prog_compiler_pic_F77"; then
14278 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14279 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14280 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14283 lt_prog_compiler_pic_works_F77=no
14284 ac_outfile=conftest.$ac_objext
14285 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14286 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14287 # Insert the option either (1) after the last *FLAGS variable, or
14288 # (2) before a word containing "conftest.", or (3) at the end.
14289 # Note that $ac_compile itself does not contain backslashes and begins
14290 # with a dollar sign (not a hyphen), so the echo should work correctly.
14291 # The option is referenced via a variable to avoid confusing sed.
14292 lt_compile=`echo "$ac_compile" | $SED \
14293 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14295 -e 's:$: $lt_compiler_flag:'`
14296 (eval echo "\"\$as_me:14296: $lt_compile\"" >&5)
14297 (eval "$lt_compile" 2>conftest.err)
14299 cat conftest.err >&5
14300 echo "$as_me:14300: \$? = $ac_status" >&5
14301 if (exit $ac_status) && test -s "$ac_outfile"; then
14302 # The compiler can only warn and ignore the option if not recognized
14303 # So say no if there are warnings
14304 if test ! -s conftest.err; then
14305 lt_prog_compiler_pic_works_F77=yes
14311 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14312 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14314 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14315 case $lt_prog_compiler_pic_F77 in
14317 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14320 lt_prog_compiler_pic_F77=
14321 lt_prog_compiler_can_build_shared_F77=no
14326 # For platforms which do not support PIC, -DPIC is meaningless:
14328 lt_prog_compiler_pic_F77=
14331 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14335 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14337 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 lt_cv_prog_compiler_c_o_F77=no
14341 $rm -r conftest 2>/dev/null
14345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14347 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14348 # that will create temporary files in the current directory regardless of
14349 # the output directory. Thus, making CWD read-only will cause this test
14350 # to fail, enabling locking or at least warning the user not to do parallel
14354 lt_compiler_flag="-o out/conftest2.$ac_objext"
14355 # Insert the option either (1) after the last *FLAGS variable, or
14356 # (2) before a word containing "conftest.", or (3) at the end.
14357 # Note that $ac_compile itself does not contain backslashes and begins
14358 # with a dollar sign (not a hyphen), so the echo should work correctly.
14359 lt_compile=`echo "$ac_compile" | $SED \
14360 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14362 -e 's:$: $lt_compiler_flag:'`
14363 (eval echo "\"\$as_me:14363: $lt_compile\"" >&5)
14364 (eval "$lt_compile" 2>out/conftest.err)
14366 cat out/conftest.err >&5
14367 echo "$as_me:14367: \$? = $ac_status" >&5
14368 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14370 # The compiler can only warn and ignore the option if not recognized
14371 # So say no if there are warnings
14372 if test ! -s out/conftest.err; then
14373 lt_cv_prog_compiler_c_o_F77=yes
14377 $rm conftest* out/*
14384 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14385 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14388 hard_links="nottested"
14389 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14390 # do not overwrite the value of need_locks provided by the user
14391 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14392 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14397 ln conftest.a conftest.b 2>&5 || hard_links=no
14398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14399 echo "$as_me:$LINENO: result: $hard_links" >&5
14400 echo "${ECHO_T}$hard_links" >&6
14401 if test "$hard_links" = no; then
14402 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14403 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14410 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14411 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14414 allow_undefined_flag_F77=
14415 enable_shared_with_static_runtimes_F77=no
14417 archive_expsym_cmds_F77=
14418 old_archive_From_new_cmds_F77=
14419 old_archive_from_expsyms_cmds_F77=
14420 export_dynamic_flag_spec_F77=
14421 whole_archive_flag_spec_F77=
14422 thread_safe_flag_spec_F77=
14423 hardcode_libdir_flag_spec_F77=
14424 hardcode_libdir_flag_spec_ld_F77=
14425 hardcode_libdir_separator_F77=
14426 hardcode_direct_F77=no
14427 hardcode_minus_L_F77=no
14428 hardcode_shlibpath_var_F77=unsupported
14429 link_all_deplibs_F77=unknown
14430 hardcode_automatic_F77=no
14432 module_expsym_cmds_F77=
14433 always_export_symbols_F77=no
14434 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14435 # include_expsyms should be a list of space-separated symbols to be *always*
14436 # included in the symbol list
14437 include_expsyms_F77=
14438 # exclude_expsyms can be an extended regexp of symbols to exclude
14439 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14440 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14441 # as well as any symbol that contains `d'.
14442 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14443 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14444 # platforms (ab)use it in PIC code, but their linkers get confused if
14445 # the symbol is explicitly referenced. Since portable code cannot
14446 # rely on this symbol name, it's probably fine to never include it in
14447 # preloaded symbol tables.
14448 extract_expsyms_cmds=
14451 cygwin* | mingw* | pw32*)
14452 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14453 # When not using gcc, we currently assume that we are using
14454 # Microsoft Visual C++.
14455 if test "$GCC" != yes; then
14465 if test "$with_gnu_ld" = yes; then
14466 # If archive_cmds runs LD, not CC, wlarc should be empty
14469 # See if GNU ld supports shared libraries.
14471 aix3* | aix4* | aix5*)
14472 # On AIX/PPC, the GNU linker is very broken
14473 if test "$host_cpu" != ia64; then
14477 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14478 *** to be unable to reliably create shared libraries on AIX.
14479 *** Therefore, libtool is disabling shared libraries support. If you
14480 *** really care for shared libraries, you may want to modify your PATH
14481 *** so that a non-GNU linker is found, and then restart.
14488 archive_cmds_F77='$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)'
14489 hardcode_libdir_flag_spec_F77='-L$libdir'
14490 hardcode_minus_L_F77=yes
14492 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14493 # that the semantics of dynamic libraries on AmigaOS, at least up
14494 # to version 4, is to share data among multiple programs linked
14495 # with the same dynamic library. Since this doesn't match the
14496 # behavior of shared libraries on other platforms, we can't use
14502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14503 allow_undefined_flag_F77=unsupported
14504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14505 # support --undefined. This deserves some investigation. FIXME
14506 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14512 cygwin* | mingw* | pw32*)
14513 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14514 # as there is no search path for DLLs.
14515 hardcode_libdir_flag_spec_F77='-L$libdir'
14516 allow_undefined_flag_F77=unsupported
14517 always_export_symbols_F77=no
14518 enable_shared_with_static_runtimes_F77=yes
14519 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14521 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14522 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14523 # If the export-symbols file already is a .def file (1st line
14524 # is EXPORTS), use it as is; otherwise, prepend...
14525 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14526 cp $export_symbols $output_objdir/$soname.def;
14528 echo EXPORTS > $output_objdir/$soname.def;
14529 cat $export_symbols >> $output_objdir/$soname.def;
14531 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14539 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14542 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14543 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14548 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14552 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14553 *** create shared libraries on Solaris systems. Therefore, libtool
14554 *** is disabling shared libraries support. We urge you to upgrade GNU
14555 *** binutils to release 2.9.1 or newer. Another option is to modify
14556 *** your PATH or compiler configuration so that the native linker is
14557 *** used, and then restart.
14560 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14561 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14562 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14569 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14571 hardcode_direct_F77=yes
14572 hardcode_shlibpath_var_F77=no
14576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14577 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14578 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14585 if test "$ld_shlibs_F77" = yes; then
14586 runpath_var=LD_RUN_PATH
14587 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14588 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14589 # ancient GNU ld didn't support --whole-archive et. al.
14590 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14591 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14593 whole_archive_flag_spec_F77=
14597 # PORTME fill in a description of your system's linker (not GNU ld)
14600 allow_undefined_flag_F77=unsupported
14601 always_export_symbols_F77=yes
14602 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14603 # Note: this linker hardcodes the directories in LIBPATH if there
14604 # are no directories specified by -L.
14605 hardcode_minus_L_F77=yes
14606 if test "$GCC" = yes && test -z "$link_static_flag"; then
14607 # Neither direct hardcoding nor static linking is supported with a
14609 hardcode_direct_F77=unsupported
14614 if test "$host_cpu" = ia64; then
14615 # On IA64, the linker does run time linking by default, so we don't
14616 # have to do anything special.
14617 aix_use_runtimelinking=no
14618 exp_sym_flag='-Bexport'
14621 # If we're using GNU nm, then we don't want the "-C" option.
14622 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14623 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14624 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14626 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14628 aix_use_runtimelinking=no
14630 # Test if we are trying to use run time linking or normal
14631 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14632 # need to do runtime linking.
14633 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14634 for ld_flag in $LDFLAGS; do
14635 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14636 aix_use_runtimelinking=yes
14642 exp_sym_flag='-bexport'
14643 no_entry_flag='-bnoentry'
14646 # When large executables or shared objects are built, AIX ld can
14647 # have problems creating the table of contents. If linking a library
14648 # or program results in "error TOC overflow" add -mminimal-toc to
14649 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14650 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14652 archive_cmds_F77=''
14653 hardcode_direct_F77=yes
14654 hardcode_libdir_separator_F77=':'
14655 link_all_deplibs_F77=yes
14657 if test "$GCC" = yes; then
14658 case $host_os in aix4.012|aix4.012.*)
14659 # We only want to do this on AIX 4.2 and lower, the check
14660 # below for broken collect2 doesn't work under 4.3+
14661 collect2name=`${CC} -print-prog-name=collect2`
14662 if test -f "$collect2name" && \
14663 strings "$collect2name" | grep resolve_lib_name >/dev/null
14665 # We have reworked collect2
14666 hardcode_direct_F77=yes
14668 # We have old collect2
14669 hardcode_direct_F77=unsupported
14670 # It fails to find uninstalled libraries when the uninstalled
14671 # path is not listed in the libpath. Setting hardcode_minus_L
14672 # to unsupported forces relinking
14673 hardcode_minus_L_F77=yes
14674 hardcode_libdir_flag_spec_F77='-L$libdir'
14675 hardcode_libdir_separator_F77=
14678 shared_flag='-shared'
14681 if test "$host_cpu" = ia64; then
14682 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14683 # chokes on -Wl,-G. The following line is correct:
14686 if test "$aix_use_runtimelinking" = yes; then
14687 shared_flag='${wl}-G'
14689 shared_flag='${wl}-bM:SRE'
14694 # It seems that -bexpall does not export symbols beginning with
14695 # underscore (_), so it is better to generate a list of symbols to export.
14696 always_export_symbols_F77=yes
14697 if test "$aix_use_runtimelinking" = yes; then
14698 # Warning - without using the other runtime loading flags (-brtl),
14699 # -berok will link without error, but may produce a broken library.
14700 allow_undefined_flag_F77='-berok'
14701 # Determine the default libpath from the value encoded in an empty executable.
14702 cat >conftest.$ac_ext <<_ACEOF
14707 rm -f conftest.$ac_objext conftest$ac_exeext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14709 (eval $ac_link) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -s conftest$ac_exeext'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
14720 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14722 # Check for a 64-bit object if we didn't find anything.
14723 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14733 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14734 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14736 if test "$host_cpu" = ia64; then
14737 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14738 allow_undefined_flag_F77="-z nodefs"
14739 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14741 # Determine the default libpath from the value encoded in an empty executable.
14742 cat >conftest.$ac_ext <<_ACEOF
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14749 (eval $ac_link) 2>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } &&
14753 { ac_try='test -s conftest$ac_exeext'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14762 # Check for a 64-bit object if we didn't find anything.
14763 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14773 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14774 # Warning - without using the other run time loading flags,
14775 # -berok will link without error, but may produce a broken library.
14776 no_undefined_flag_F77=' ${wl}-bernotok'
14777 allow_undefined_flag_F77=' ${wl}-berok'
14778 # -bexpall does not export symbols beginning with underscore (_)
14779 always_export_symbols_F77=yes
14780 # Exported symbols can be pulled into shared objects from archives
14781 whole_archive_flag_spec_F77=' '
14782 archive_cmds_need_lc_F77=yes
14783 # This is similar to how AIX traditionally builds it's shared libraries.
14784 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14790 archive_cmds_F77='$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)'
14791 hardcode_libdir_flag_spec_F77='-L$libdir'
14792 hardcode_minus_L_F77=yes
14793 # see comment about different semantics on the GNU ld section
14798 export_dynamic_flag_spec_F77=-rdynamic
14801 cygwin* | mingw* | pw32*)
14802 # When not using gcc, we currently assume that we are using
14803 # Microsoft Visual C++.
14804 # hardcode_libdir_flag_spec is actually meaningless, as there is
14805 # no search path for DLLs.
14806 hardcode_libdir_flag_spec_F77=' '
14807 allow_undefined_flag_F77=unsupported
14808 # Tell ltmain to make .lib files, not .a files.
14810 # Tell ltmain to make .dll files, not .so files.
14812 # FIXME: Setting linknames here is a bad hack.
14813 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14814 # The linker will automatically build a .lib file if we build a DLL.
14815 old_archive_From_new_cmds_F77='true'
14816 # FIXME: Should let the user specify the lib program.
14817 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14818 fix_srcfile_path='`cygpath -w "$srcfile"`'
14819 enable_shared_with_static_runtimes_F77=yes
14822 darwin* | rhapsody*)
14823 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14824 archive_cmds_need_lc_F77=no
14826 rhapsody* | darwin1.[012])
14827 allow_undefined_flag_F77='-undefined suppress'
14830 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14833 # FIXME: Relying on posixy $() will cause problems for
14834 # cross-compilation, but unfortunately the echo tests do not
14835 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
14836 # `"' quotes if we put them in here... so don't!
14837 lt_int_apple_cc_single_mod=no
14838 output_verbose_link_cmd='echo'
14839 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14840 lt_int_apple_cc_single_mod=yes
14842 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14843 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14845 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14847 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14848 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14849 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14850 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14852 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14854 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14855 hardcode_direct_F77=no
14856 hardcode_automatic_F77=yes
14857 hardcode_shlibpath_var_F77=unsupported
14858 whole_archive_flag_spec_F77='-all_load $convenience'
14859 link_all_deplibs_F77=yes
14864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14865 hardcode_libdir_flag_spec_F77='-L$libdir'
14866 hardcode_shlibpath_var_F77=no
14873 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14874 # support. Future versions do this automatically, but an explicit c++rt0.o
14875 # does not break anything, and helps significantly (at the cost of a little
14878 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14879 hardcode_libdir_flag_spec_F77='-R$libdir'
14880 hardcode_direct_F77=yes
14881 hardcode_shlibpath_var_F77=no
14884 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14886 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14887 hardcode_direct_F77=yes
14888 hardcode_minus_L_F77=yes
14889 hardcode_shlibpath_var_F77=no
14892 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14894 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14895 hardcode_libdir_flag_spec_F77='-R$libdir'
14896 hardcode_direct_F77=yes
14897 hardcode_shlibpath_var_F77=no
14901 if test "$GCC" = yes; then
14902 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14904 archive_cmds_F77='$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'
14906 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14907 hardcode_libdir_separator_F77=:
14908 hardcode_direct_F77=yes
14910 # hardcode_minus_L: Not really in the search PATH,
14911 # but as the default location of the library.
14912 hardcode_minus_L_F77=yes
14913 export_dynamic_flag_spec_F77='${wl}-E'
14917 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14918 case "$host_cpu" in
14920 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14923 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14927 case "$host_cpu" in
14929 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14932 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14936 if test "$with_gnu_ld" = no; then
14937 case "$host_cpu" in
14939 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14940 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14941 hardcode_libdir_separator_F77=:
14942 hardcode_direct_F77=no
14943 hardcode_shlibpath_var_F77=no
14946 hardcode_libdir_flag_spec_F77='-L$libdir'
14947 hardcode_direct_F77=no
14948 hardcode_shlibpath_var_F77=no
14950 # hardcode_minus_L: Not really in the search PATH,
14951 # but as the default location of the library.
14952 hardcode_minus_L_F77=yes
14955 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14956 hardcode_libdir_separator_F77=:
14957 hardcode_direct_F77=yes
14958 export_dynamic_flag_spec_F77='${wl}-E'
14960 # hardcode_minus_L: Not really in the search PATH,
14961 # but as the default location of the library.
14962 hardcode_minus_L_F77=yes
14968 irix5* | irix6* | nonstopux*)
14969 if test "$GCC" = yes; then
14970 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14972 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14973 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14975 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14976 hardcode_libdir_separator_F77=:
14977 link_all_deplibs_F77=yes
14981 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14982 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14984 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14986 hardcode_libdir_flag_spec_F77='-R$libdir'
14987 hardcode_direct_F77=yes
14988 hardcode_shlibpath_var_F77=no
14992 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14993 hardcode_direct_F77=yes
14994 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14995 hardcode_libdir_separator_F77=:
14996 hardcode_shlibpath_var_F77=no
15000 case "$host_cpu" in
15005 hardcode_direct_F77=yes
15006 hardcode_shlibpath_var_F77=no
15007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15008 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15009 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15010 export_dynamic_flag_spec_F77='${wl}-E'
15013 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15014 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15015 hardcode_libdir_flag_spec_F77='-R$libdir'
15018 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15019 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15028 hardcode_libdir_flag_spec_F77='-L$libdir'
15029 hardcode_minus_L_F77=yes
15030 allow_undefined_flag_F77=unsupported
15031 archive_cmds_F77='$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'
15032 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15036 if test "$GCC" = yes; then
15037 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15038 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15040 allow_undefined_flag_F77=' -expect_unresolved \*'
15041 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15043 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15044 hardcode_libdir_separator_F77=:
15047 osf4* | osf5*) # as osf3* with the addition of -msym flag
15048 if test "$GCC" = yes; then
15049 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15050 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15051 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15053 allow_undefined_flag_F77=' -expect_unresolved \*'
15054 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15055 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15056 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15058 # Both c and cxx compiler support -rpath directly
15059 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15061 hardcode_libdir_separator_F77=:
15065 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15066 hardcode_shlibpath_var_F77=no
15067 export_dynamic_flag_spec_F77='${wl}-Bexport'
15068 runpath_var=LD_RUN_PATH
15069 hardcode_runpath_var=yes
15073 no_undefined_flag_F77=' -z text'
15074 if test "$GCC" = yes; then
15075 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15076 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15077 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15079 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15080 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15081 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15083 hardcode_libdir_flag_spec_F77='-R$libdir'
15084 hardcode_shlibpath_var_F77=no
15086 solaris2.[0-5] | solaris2.[0-5].*) ;;
15087 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15088 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15090 link_all_deplibs_F77=yes
15094 if test "x$host_vendor" = xsequent; then
15095 # Use $CC to link under sequent, because it throws in some extra .o
15096 # files that make .init and .fini sections work.
15097 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15099 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15101 hardcode_libdir_flag_spec_F77='-L$libdir'
15102 hardcode_direct_F77=yes
15103 hardcode_minus_L_F77=yes
15104 hardcode_shlibpath_var_F77=no
15108 case $host_vendor in
15110 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15111 hardcode_direct_F77=yes # is this really true???
15114 ## LD is ld it makes a PLAMLIB
15115 ## CC just makes a GrossModule.
15116 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15117 reload_cmds_F77='$CC -r -o $output$reload_objs'
15118 hardcode_direct_F77=no
15121 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15122 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15125 runpath_var='LD_RUN_PATH'
15126 hardcode_shlibpath_var_F77=no
15130 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15131 hardcode_shlibpath_var_F77=no
15132 export_dynamic_flag_spec_F77='-Bexport'
15136 if test -d /usr/nec; then
15137 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15138 hardcode_shlibpath_var_F77=no
15139 runpath_var=LD_RUN_PATH
15140 hardcode_runpath_var=yes
15146 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15147 hardcode_direct_F77=yes
15148 hardcode_minus_L_F77=no
15149 hardcode_shlibpath_var_F77=no
15150 hardcode_runpath_var=yes
15151 runpath_var=LD_RUN_PATH
15154 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15155 no_undefined_flag_F77='${wl}-z ${wl}text'
15156 if test "$GCC" = yes; then
15157 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15159 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15161 runpath_var='LD_RUN_PATH'
15162 hardcode_shlibpath_var_F77=no
15166 no_undefined_flag_F77=' -z text'
15167 # $CC -shared without GNU ld will not create a library from C++
15168 # object files and a static libstdc++, better avoid it by now
15169 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15170 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15171 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15172 hardcode_libdir_flag_spec_F77=
15173 hardcode_shlibpath_var_F77=no
15174 runpath_var='LD_RUN_PATH'
15178 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15179 hardcode_libdir_flag_spec_F77='-L$libdir'
15180 hardcode_shlibpath_var_F77=no
15189 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15190 echo "${ECHO_T}$ld_shlibs_F77" >&6
15191 test "$ld_shlibs_F77" = no && can_build_shared=no
15193 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15194 if test "$GCC" = yes; then
15195 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15199 # Do we need to explicitly link libc?
15201 case "x$archive_cmds_need_lc_F77" in
15203 # Assume -lc should be added
15204 archive_cmds_need_lc_F77=yes
15206 if test "$enable_shared" = yes && test "$GCC" = yes; then
15207 case $archive_cmds_F77 in
15209 # FIXME: we may have to deal with multi-command sequences.
15212 # Test whether the compiler implicitly links with -lc since on some
15213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15214 # to ld, don't add -lc before -lgcc.
15215 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15216 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15221 (eval $ac_compile) 2>&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } 2>conftest.err; then
15227 libobjs=conftest.$ac_objext
15229 wl=$lt_prog_compiler_wl_F77
15235 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15236 allow_undefined_flag_F77=
15237 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15238 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }
15243 archive_cmds_need_lc_F77=no
15245 archive_cmds_need_lc_F77=yes
15247 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15249 cat conftest.err 1>&5
15252 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15253 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15260 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15261 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15262 hardcode_action_F77=
15263 if test -n "$hardcode_libdir_flag_spec_F77" || \
15264 test -n "$runpath_var F77" || \
15265 test "X$hardcode_automatic_F77"="Xyes" ; then
15267 # We can hardcode non-existant directories.
15268 if test "$hardcode_direct_F77" != no &&
15269 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15270 # have to relink, otherwise we might link with an installed library
15271 # when we should be linking with a yet-to-be-installed one
15272 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15273 test "$hardcode_minus_L_F77" != no; then
15274 # Linking always hardcodes the temporary library directory.
15275 hardcode_action_F77=relink
15277 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15278 hardcode_action_F77=immediate
15281 # We cannot hardcode anything, or else we can only hardcode existing
15283 hardcode_action_F77=unsupported
15285 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15286 echo "${ECHO_T}$hardcode_action_F77" >&6
15288 if test "$hardcode_action_F77" = relink; then
15289 # Fast installation is not supported
15290 enable_fast_install=no
15291 elif test "$shlibpath_overrides_runpath" = yes ||
15292 test "$enable_shared" = no; then
15293 # Fast installation is not necessary
15294 enable_fast_install=needless
15299 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15300 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15301 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15302 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15303 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15304 echo "$as_me:$LINENO: result: yes" >&5
15305 echo "${ECHO_T}yes" >&6
15307 # FIXME - insert some real tests, host_os isn't really good enough
15310 if test -n "$STRIP" ; then
15311 striplib="$STRIP -x"
15312 echo "$as_me:$LINENO: result: yes" >&5
15313 echo "${ECHO_T}yes" >&6
15315 echo "$as_me:$LINENO: result: no" >&5
15316 echo "${ECHO_T}no" >&6
15320 echo "$as_me:$LINENO: result: no" >&5
15321 echo "${ECHO_T}no" >&6
15326 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15327 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15328 library_names_spec=
15329 libname_spec='lib$name'
15333 postuninstall_cmds=
15337 shlibpath_overrides_runpath=unknown
15339 dynamic_linker="$host_os ld.so"
15340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15341 if test "$GCC" = yes; then
15342 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15343 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15344 # if the path contains ";" then we assume it to be the separator
15345 # otherwise default to the standard path separator (i.e. ":") - it is
15346 # assumed that no part of a normal pathname contains ";" but that should
15347 # okay in the real world where ";" in dirpaths is itself problematic.
15348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15356 hardcode_into_libs=no
15358 # when you set need_version to no, make sure it does not cause -set_version
15359 # flags to be left without arguments
15365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15366 shlibpath_var=LIBPATH
15368 # AIX 3 has no versioning support, so we append a major version to the name.
15369 soname_spec='${libname}${release}${shared_ext}$major'
15374 hardcode_into_libs=yes
15375 if test "$host_cpu" = ia64; then
15376 # AIX 5 supports IA64
15377 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15378 shlibpath_var=LD_LIBRARY_PATH
15380 # With GCC up to 2.95.x, collect2 would create an import file
15381 # for dependence libraries. The import file would start with
15382 # the line `#! .'. This would cause the generated library to
15383 # depend on `.', always an invalid library. This was fixed in
15384 # development snapshots of GCC prior to 3.0.
15386 aix4 | aix4.[01] | aix4.[01].*)
15387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15389 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15392 can_build_shared=no
15396 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15397 # soname into executable. Probably we can add versioning support to
15398 # collect2, so additional links can be useful in future.
15399 if test "$aix_use_runtimelinking" = yes; then
15400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15401 # instead of lib<name>.a to let people know that these are not
15402 # typical AIX shared libraries.
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405 # We preserve .a as extension for shared libraries through AIX4.2
15406 # and later when we are not doing run time linking.
15407 library_names_spec='${libname}${release}.a $libname.a'
15408 soname_spec='${libname}${release}${shared_ext}$major'
15410 shlibpath_var=LIBPATH
15415 library_names_spec='$libname.ixlibrary $libname.a'
15416 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15417 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
15421 library_names_spec='${libname}${shared_ext}'
15422 dynamic_linker="$host_os ld.so"
15423 shlibpath_var=LIBRARY_PATH
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 #finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15431 shlibpath_var=LD_LIBRARY_PATH
15432 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15433 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15434 # the default ld.so.conf also contains /usr/contrib/lib and
15435 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15436 # libtool to hard-code these into programs
15439 cygwin* | mingw* | pw32*)
15440 version_type=windows
15443 case $GCC,$host_os in
15444 yes,cygwin* | yes,mingw* | yes,pw32*)
15445 library_names_spec='$libname.dll.a'
15446 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15447 postinstall_cmds='base_file=`basename \${file}`~
15448 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15449 dldir=$destdir/`dirname \$dlpath`~
15450 test -d \$dldir || mkdir -p \$dldir~
15451 $install_prog $dir/$dlname \$dldir/$dlname'
15452 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15453 dlpath=$dir/\$dldll~
15455 shlibpath_overrides_runpath=yes
15459 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15460 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15461 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15464 # MinGW DLLs use traditional 'lib' prefix
15465 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15466 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15467 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15468 # It is most probably a Windows format PATH printed by
15469 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15470 # path with ; separators, and with drive letters. We can handle the
15471 # drive letters (cygwin fileutils understands them), so leave them,
15472 # especially as we might pass files found there to a mingw objdump,
15473 # which wouldn't understand a cygwinified path. Ahh.
15474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15476 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15480 # pw32 DLLs use 'pw' prefix rather than 'lib'
15481 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15487 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15490 dynamic_linker='Win32 ld.exe'
15491 # FIXME: first we should search . and the directory the executable is in
15495 darwin* | rhapsody*)
15496 dynamic_linker="$host_os dyld"
15497 version_type=darwin
15498 # FIXME: Relying on posixy $() will cause problems for
15499 # cross-compilation, but unfortunately the echo tests do not
15500 # yet detect zsh echo's removal of \ escapes.
15501 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15502 soname_spec='${libname}${release}${major}$shared_ext'
15503 shlibpath_overrides_runpath=yes
15504 shlibpath_var=DYLD_LIBRARY_PATH
15505 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15506 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15507 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15508 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15516 soname_spec='${libname}${release}${shared_ext}$major'
15517 shlibpath_var=LD_LIBRARY_PATH
15525 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15526 version_type=freebsd-$objformat
15527 case $version_type in
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15535 shlibpath_var=LD_LIBRARY_PATH
15538 shlibpath_overrides_runpath=yes
15540 freebsd3.01* | freebsdelf3.01*)
15541 shlibpath_overrides_runpath=yes
15542 hardcode_into_libs=yes
15545 shlibpath_overrides_runpath=no
15546 hardcode_into_libs=yes
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 shlibpath_var=LD_LIBRARY_PATH
15556 hardcode_into_libs=yes
15559 hpux9* | hpux10* | hpux11*)
15560 # Give a soname corresponding to the major version so that dld.sl refuses to
15561 # link against other versions.
15563 case "$host_cpu" in
15566 hardcode_into_libs=yes
15567 dynamic_linker="$host_os dld.so"
15568 shlibpath_var=LD_LIBRARY_PATH
15569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571 soname_spec='${libname}${release}${shared_ext}$major'
15572 if test "X$HPUX_IA64_MODE" = X32; then
15573 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15575 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15581 hardcode_into_libs=yes
15582 dynamic_linker="$host_os dld.sl"
15583 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586 soname_spec='${libname}${release}${shared_ext}$major'
15587 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15588 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15592 dynamic_linker="$host_os dld.sl"
15593 shlibpath_var=SHLIB_PATH
15594 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15596 soname_spec='${libname}${release}${shared_ext}$major'
15599 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15600 postinstall_cmds='chmod 555 $lib'
15603 irix5* | irix6* | nonstopux*)
15605 nonstopux*) version_type=nonstopux ;;
15607 if test "$lt_cv_prog_gnu_ld" = yes; then
15613 soname_spec='${libname}${release}${shared_ext}$major'
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15616 irix5* | nonstopux*)
15617 libsuff= shlibsuff=
15620 case $LD in # libtool.m4 will add one of these switches to LD
15621 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15622 libsuff= shlibsuff= libmagic=32-bit;;
15623 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15624 libsuff=32 shlibsuff=N32 libmagic=N32;;
15625 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15626 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15627 *) libsuff= shlibsuff= libmagic=never-match;;
15631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15632 shlibpath_overrides_runpath=no
15633 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15634 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15635 hardcode_into_libs=yes
15638 # No shared lib support for Linux oldld, aout, or coff.
15639 linux*oldld* | linux*aout* | linux*coff*)
15643 # This must be Linux ELF.
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 soname_spec='${libname}${release}${shared_ext}$major'
15648 #finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15649 shlibpath_var=LD_LIBRARY_PATH
15650 shlibpath_overrides_runpath=no
15651 # This implies no fast_install, which is unacceptable.
15652 # Some rework will be needed to allow for fast_install
15653 # before this can be enabled.
15654 hardcode_into_libs=yes
15656 # We used to test for /lib/ld.so.1 and disable shared libraries on
15657 # powerpc, because MkLinux only supported shared libraries with the
15658 # GNU dynamic linker. Since this was broken with cross compilers,
15659 # most powerpc-linux boxes support dynamic linking these days and
15660 # people can always --disable-shared, the test was removed, and we
15661 # assume the GNU/Linux dynamic linker is in use.
15662 dynamic_linker='GNU/Linux ld.so'
15667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15669 #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15670 dynamic_linker='NetBSD (a.out) ld.so'
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15673 soname_spec='${libname}${release}${shared_ext}$major'
15674 dynamic_linker='NetBSD ld.elf_so'
15676 shlibpath_var=LD_LIBRARY_PATH
15677 shlibpath_overrides_runpath=yes
15678 hardcode_into_libs=yes
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=yes
15690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691 soname_spec='${libname}${release}${shared_ext}$major'
15692 shlibpath_var=LD_LIBRARY_PATH
15693 shlibpath_overrides_runpath=yes
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15699 #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15700 shlibpath_var=LD_LIBRARY_PATH
15701 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15702 dynamic_linker='OpenBSD (ELF) ld.so'
15704 openbsd2.[89] | openbsd2.[89].*)
15705 shlibpath_overrides_runpath=no
15708 shlibpath_overrides_runpath=yes
15712 dynamic_linker='OpenBSD (a.out) ld.so'
15713 shlibpath_overrides_runpath=yes
15718 libname_spec='$name'
15720 library_names_spec='$libname${shared_ext} $libname.a'
15721 dynamic_linker='OS/2 ld.exe'
15722 shlibpath_var=LIBPATH
15725 osf3* | osf4* | osf5*)
15727 soname_spec='${libname}${release}${shared_ext}$major'
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729 shlibpath_var=LD_LIBRARY_PATH
15730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15731 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15736 soname_spec='${libname}${release}${shared_ext}$major'
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15738 shlibpath_var=LD_LIBRARY_PATH
15743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15744 soname_spec='${libname}${release}${shared_ext}$major'
15745 shlibpath_var=LD_LIBRARY_PATH
15746 shlibpath_overrides_runpath=yes
15747 hardcode_into_libs=yes
15748 # ldd complains unless libraries are executable
15749 postinstall_cmds='chmod +x $lib'
15754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15755 #finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15756 shlibpath_var=LD_LIBRARY_PATH
15757 shlibpath_overrides_runpath=yes
15760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15763 soname_spec='${libname}${release}${shared_ext}$major'
15764 shlibpath_var=LD_LIBRARY_PATH
15765 case $host_vendor in
15767 shlibpath_overrides_runpath=no
15768 export_dynamic_flag_spec='${wl}-Blargedynsym'
15769 runpath_var=LD_RUN_PATH
15772 shlibpath_overrides_runpath=no
15773 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15779 if test -d /usr/nec ;then
15781 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15782 soname_spec='$libname${shared_ext}.$major'
15783 shlibpath_var=LD_LIBRARY_PATH
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790 soname_spec='${libname}${release}${shared_ext}$major'
15791 shlibpath_var=LD_LIBRARY_PATH
15798 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15799 echo "${ECHO_T}$dynamic_linker" >&6
15800 test "$dynamic_linker" = no && can_build_shared=no
15803 # The else clause should only fire when bootstrapping the
15804 # libtool distribution, otherwise you forgot to ship ltmain.sh
15805 # with your package, and you will get complaints that there are
15806 # no rules to generate ltmain.sh.
15807 if test -f "$ltmain"; then
15808 # See if we are running on zsh, and set the options which allow our commands through
15809 # without removal of \ escapes.
15810 if test -n "${ZSH_VERSION+set}" ; then
15811 setopt NO_GLOB_SUBST
15813 # Now quote all the things that may contain metacharacters while being
15814 # careful not to overquote the AC_SUBSTed values. We take copies of the
15815 # variables and quote the copies for generation of the libtool script.
15816 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15817 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15818 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15819 deplibs_check_method reload_flag reload_cmds need_locks \
15820 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15821 lt_cv_sys_global_symbol_to_c_name_address \
15822 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15823 old_postinstall_cmds old_postuninstall_cmds \
15827 lt_prog_compiler_wl_F77 \
15828 lt_prog_compiler_pic_F77 \
15829 lt_prog_compiler_static_F77 \
15830 lt_prog_compiler_no_builtin_flag_F77 \
15831 export_dynamic_flag_spec_F77 \
15832 thread_safe_flag_spec_F77 \
15833 whole_archive_flag_spec_F77 \
15834 enable_shared_with_static_runtimes_F77 \
15835 old_archive_cmds_F77 \
15836 old_archive_from_new_cmds_F77 \
15837 predep_objects_F77 \
15838 postdep_objects_F77 \
15841 compiler_lib_search_path_F77 \
15843 archive_expsym_cmds_F77 \
15844 postinstall_cmds_F77 \
15845 postuninstall_cmds_F77 \
15846 old_archive_from_expsyms_cmds_F77 \
15847 allow_undefined_flag_F77 \
15848 no_undefined_flag_F77 \
15849 export_symbols_cmds_F77 \
15850 hardcode_libdir_flag_spec_F77 \
15851 hardcode_libdir_flag_spec_ld_F77 \
15852 hardcode_libdir_separator_F77 \
15853 hardcode_automatic_F77 \
15855 module_expsym_cmds_F77 \
15856 lt_cv_prog_compiler_c_o_F77 \
15857 exclude_expsyms_F77 \
15858 include_expsyms_F77; do
15861 old_archive_cmds_F77 | \
15862 old_archive_from_new_cmds_F77 | \
15863 archive_cmds_F77 | \
15864 archive_expsym_cmds_F77 | \
15865 module_cmds_F77 | \
15866 module_expsym_cmds_F77 | \
15867 old_archive_from_expsyms_cmds_F77 | \
15868 export_symbols_cmds_F77 | \
15869 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15870 postinstall_cmds | postuninstall_cmds | \
15871 old_postinstall_cmds | old_postuninstall_cmds | \
15872 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15873 # Double-quote double-evaled strings.
15874 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15877 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15883 *'\$0 --fallback-echo"')
15884 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15890 cat <<__EOF__ >> "$cfgfile"
15891 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15893 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15895 # Shell to use when invoking shell scripts.
15898 # Whether or not to build shared libraries.
15899 build_libtool_libs=$enable_shared
15901 # Whether or not to build static libraries.
15902 build_old_libs=$enable_static
15904 # Whether or not to add -lc for building shared libraries.
15905 build_libtool_need_lc=$archive_cmds_need_lc_F77
15907 # Whether or not to disallow shared libs when runtime libs are static
15908 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15910 # Whether or not to optimize for fast installation.
15911 fast_install=$enable_fast_install
15914 host_alias=$host_alias
15917 # An echo program that does not interpret backslashes.
15922 AR_FLAGS=$lt_AR_FLAGS
15927 # A language-specific compiler.
15928 CC=$lt_compiler_F77
15930 # Is the compiler the GNU C compiler?
15936 # The linker used to build libraries.
15939 # Whether we need hard or soft links.
15942 # A BSD-compatible nm program.
15945 # A symbol stripping program
15948 # Used to examine libraries when file_magic_cmd begins "file"
15949 MAGIC_CMD=$MAGIC_CMD
15951 # Used on cygwin: DLL creation program.
15954 # Used on cygwin: object dumper.
15957 # Used on cygwin: assembler.
15960 # The name of the directory that contains temporary libtool files.
15963 # How to create reloadable object files.
15964 reload_flag=$lt_reload_flag
15965 reload_cmds=$lt_reload_cmds
15967 # How to pass a linker flag through the compiler.
15968 wl=$lt_lt_prog_compiler_wl_F77
15970 # Object file suffix (normally "o").
15971 objext="$ac_objext"
15973 # Old archive suffix (normally "a").
15976 # Shared library suffix (normally ".so").
15979 # Executable file suffix (normally "").
15982 # Additional compiler flags for building library objects.
15983 pic_flag=$lt_lt_prog_compiler_pic_F77
15986 # What is the maximum length of a command?
15987 max_cmd_len=$lt_cv_sys_max_cmd_len
15989 # Does compiler simultaneously support -c and -o options?
15990 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15992 # Must we lock files when doing compilation ?
15993 need_locks=$lt_need_locks
15995 # Do we need the lib prefix for modules?
15996 need_lib_prefix=$need_lib_prefix
15998 # Do we need a version for libraries?
15999 need_version=$need_version
16001 # Whether dlopen is supported.
16002 dlopen_support=$enable_dlopen
16004 # Whether dlopen of programs is supported.
16005 dlopen_self=$enable_dlopen_self
16007 # Whether dlopen of statically linked programs is supported.
16008 dlopen_self_static=$enable_dlopen_self_static
16010 # Compiler flag to prevent dynamic linking.
16011 link_static_flag=$lt_lt_prog_compiler_static_F77
16013 # Compiler flag to turn off builtin functions.
16014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16016 # Compiler flag to allow reflexive dlopens.
16017 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16019 # Compiler flag to generate shared objects directly from archives.
16020 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16022 # Compiler flag to generate thread-safe objects.
16023 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16025 # Library versioning type.
16026 version_type=$version_type
16028 # Format of library name prefix.
16029 libname_spec=$lt_libname_spec
16031 # List of archive names. First name is the real one, the rest are links.
16032 # The last name is the one that the linker finds with -lNAME.
16033 library_names_spec=$lt_library_names_spec
16035 # The coded name of the library, if different from the real name.
16036 soname_spec=$lt_soname_spec
16038 # Commands used to build and install an old-style archive.
16040 old_archive_cmds=$lt_old_archive_cmds_F77
16041 old_postinstall_cmds=$lt_old_postinstall_cmds
16042 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16044 # Create an old-style archive from a shared archive.
16045 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16047 # Create a temporary old-style archive to link instead of a shared archive.
16048 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16050 # Commands used to build and install a shared archive.
16051 archive_cmds=$lt_archive_cmds_F77
16052 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16053 postinstall_cmds=$lt_postinstall_cmds
16054 postuninstall_cmds=$lt_postuninstall_cmds
16056 # Commands used to build a loadable module (assumed same as above if empty)
16057 module_cmds=$lt_module_cmds_F77
16058 module_expsym_cmds=$lt_module_expsym_cmds_F77
16060 # Commands to strip libraries.
16061 old_striplib=$lt_old_striplib
16062 striplib=$lt_striplib
16064 # Dependencies to place before the objects being linked to create a
16066 predep_objects=$lt_predep_objects_F77
16068 # Dependencies to place after the objects being linked to create a
16070 postdep_objects=$lt_postdep_objects_F77
16072 # Dependencies to place before the objects being linked to create a
16074 predeps=$lt_predeps_F77
16076 # Dependencies to place after the objects being linked to create a
16078 postdeps=$lt_postdeps_F77
16080 # The library search path used internally by the compiler when linking
16081 # a shared library.
16082 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16084 # Method to check whether dependent libraries are shared objects.
16085 deplibs_check_method=$lt_deplibs_check_method
16087 # Command to use when deplibs_check_method == file_magic.
16088 file_magic_cmd=$lt_file_magic_cmd
16090 # Flag that allows shared libraries with undefined symbols to be built.
16091 allow_undefined_flag=$lt_allow_undefined_flag_F77
16093 # Flag that forces no undefined symbols.
16094 no_undefined_flag=$lt_no_undefined_flag_F77
16096 # Commands used to finish a libtool library installation in a directory.
16097 finish_cmds=$lt_finish_cmds
16099 # Same as above, but a single script fragment to be evaled but not shown.
16100 finish_eval=$lt_finish_eval
16102 # Take the output of nm and produce a listing of raw symbols and C names.
16103 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16105 # Transform the output of nm in a proper C declaration
16106 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16108 # Transform the output of nm in a C name address pair
16109 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16111 # This is the shared library runtime path variable.
16112 runpath_var=$runpath_var
16114 # This is the shared library path variable.
16115 shlibpath_var=$shlibpath_var
16117 # Is shlibpath searched before the hard-coded library search path?
16118 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16120 # How to hardcode a shared library path into an executable.
16121 hardcode_action=$hardcode_action_F77
16123 # Whether we should hardcode library paths into libraries.
16124 hardcode_into_libs=$hardcode_into_libs
16126 # Flag to hardcode \$libdir into a binary during linking.
16127 # This must work even if \$libdir does not exist.
16128 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16130 # If ld is used when linking, flag to hardcode \$libdir into
16131 # a binary during linking. This must work even if \$libdir does
16133 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16135 # Whether we need a single -rpath flag with a separated argument.
16136 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16138 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16139 # resulting binary.
16140 hardcode_direct=$hardcode_direct_F77
16142 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16143 # resulting binary.
16144 hardcode_minus_L=$hardcode_minus_L_F77
16146 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16147 # the resulting binary.
16148 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16150 # Set to yes if building a shared library automatically hardcodes DIR into the library
16151 # and all subsequent libraries and executables linked against it.
16152 hardcode_automatic=$hardcode_automatic_F77
16154 # Variables whose values should be saved in libtool wrapper scripts and
16155 # restored at relink time.
16156 variables_saved_for_relink="$variables_saved_for_relink"
16158 # Whether libtool must link a program against all its dependency libraries.
16159 link_all_deplibs=$link_all_deplibs_F77
16161 # Compile-time system search path for libraries
16162 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16164 # Run-time system search path for libraries
16165 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16167 # Fix the shell variable \$srcfile for the compiler.
16168 fix_srcfile_path="$fix_srcfile_path_F77"
16170 # Set to yes if exported symbols are required.
16171 always_export_symbols=$always_export_symbols_F77
16173 # The commands to list exported symbols.
16174 export_symbols_cmds=$lt_export_symbols_cmds_F77
16176 # The commands to extract the exported symbol list from a shared archive.
16177 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16179 # Symbols that should not be listed in the preloaded symbols.
16180 exclude_expsyms=$lt_exclude_expsyms_F77
16182 # Symbols that must always be exported.
16183 include_expsyms=$lt_include_expsyms_F77
16185 # ### END LIBTOOL TAG CONFIG: $tagname
16191 # If there is no Makefile yet, we rely on a make rule to execute
16192 # `config.status --recheck' to rerun these tests and create the
16193 # libtool script then.
16194 test -f Makefile && make "$ltmain"
16199 ac_cpp='$CPP $CPPFLAGS'
16200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16212 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16216 # Source file extension for Java test sources.
16219 # Object file extension for compiled Java test sources.
16223 # Code to be used in simple compile tests
16224 lt_simple_compile_test_code="class foo {}\n"
16226 # Code to be used in simple link tests
16227 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16229 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16231 # If no C compiler was specified, use CC.
16234 # Allow CC to be a program name with arguments.
16238 # Allow CC to be a program name with arguments.
16244 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16245 archive_cmds_need_lc_GCJ=no
16248 ## There is no encapsulation within the following macros, do not change
16249 ## the running order or otherwise move them around unless you know exactly
16250 ## what you are doing...
16252 lt_prog_compiler_no_builtin_flag_GCJ=
16254 if test "$GCC" = yes; then
16255 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16257 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16258 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16259 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16260 echo $ECHO_N "(cached) $ECHO_C" >&6
16262 lt_cv_prog_compiler_rtti_exceptions=no
16263 ac_outfile=conftest.$ac_objext
16264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16265 lt_compiler_flag="-fno-rtti -fno-exceptions"
16266 # Insert the option either (1) after the last *FLAGS variable, or
16267 # (2) before a word containing "conftest.", or (3) at the end.
16268 # Note that $ac_compile itself does not contain backslashes and begins
16269 # with a dollar sign (not a hyphen), so the echo should work correctly.
16270 # The option is referenced via a variable to avoid confusing sed.
16271 lt_compile=`echo "$ac_compile" | $SED \
16272 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16274 -e 's:$: $lt_compiler_flag:'`
16275 (eval echo "\"\$as_me:16275: $lt_compile\"" >&5)
16276 (eval "$lt_compile" 2>conftest.err)
16278 cat conftest.err >&5
16279 echo "$as_me:16279: \$? = $ac_status" >&5
16280 if (exit $ac_status) && test -s "$ac_outfile"; then
16281 # The compiler can only warn and ignore the option if not recognized
16282 # So say no if there are warnings
16283 if test ! -s conftest.err; then
16284 lt_cv_prog_compiler_rtti_exceptions=yes
16290 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16291 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16293 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16294 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16301 lt_prog_compiler_wl_GCJ=
16302 lt_prog_compiler_pic_GCJ=
16303 lt_prog_compiler_static_GCJ=
16305 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16306 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16308 if test "$GCC" = yes; then
16309 lt_prog_compiler_wl_GCJ='-Wl,'
16310 lt_prog_compiler_static_GCJ='-static'
16314 # All AIX code is PIC.
16315 if test "$host_cpu" = ia64; then
16316 # AIX 5 now supports IA64 processor
16317 lt_prog_compiler_static_GCJ='-Bstatic'
16322 # FIXME: we need at least 68020 code to build shared libraries, but
16323 # adding the `-m68020' flag to GCC prevents building anything better,
16325 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16328 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16329 # PIC is the default for these OSes.
16332 mingw* | pw32* | os2*)
16333 # This hack is so that the source file can tell whether it is being
16334 # built for inclusion in a dll (and should export symbols for example).
16335 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16338 darwin* | rhapsody*)
16339 # PIC is the default on this platform
16340 # Common symbols not allowed in MH_DYLIB files
16341 lt_prog_compiler_pic_GCJ='-fno-common'
16345 # Just because we use GCC doesn't mean we suddenly get shared libraries
16346 # on systems that don't support them.
16347 lt_prog_compiler_can_build_shared_GCJ=no
16352 if test -d /usr/nec; then
16353 lt_prog_compiler_pic_GCJ=-Kconform_pic
16358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16359 # not for PA HP-UX.
16360 case "$host_cpu" in
16365 lt_prog_compiler_pic_GCJ='-fPIC'
16371 lt_prog_compiler_pic_GCJ='-fPIC'
16375 # PORTME Check for flag to pass linker flags through the system compiler.
16378 lt_prog_compiler_wl_GCJ='-Wl,'
16379 if test "$host_cpu" = ia64; then
16380 # AIX 5 now supports IA64 processor
16381 lt_prog_compiler_static_GCJ='-Bstatic'
16383 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16387 mingw* | pw32* | os2*)
16388 # This hack is so that the source file can tell whether it is being
16389 # built for inclusion in a dll (and should export symbols for example).
16390 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16393 hpux9* | hpux10* | hpux11*)
16394 lt_prog_compiler_wl_GCJ='-Wl,'
16395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16396 # not for PA HP-UX.
16397 case "$host_cpu" in
16402 lt_prog_compiler_pic_GCJ='+Z'
16405 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16406 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16409 irix5* | irix6* | nonstopux*)
16410 lt_prog_compiler_wl_GCJ='-Wl,'
16411 # PIC (with -KPIC) is the default.
16412 lt_prog_compiler_static_GCJ='-non_shared'
16416 lt_prog_compiler_pic_GCJ='-KPIC'
16417 lt_prog_compiler_static_GCJ='-Bstatic'
16423 lt_prog_compiler_wl_GCJ='-Wl,'
16424 lt_prog_compiler_pic_GCJ='-KPIC'
16425 lt_prog_compiler_static_GCJ='-static'
16428 lt_prog_compiler_wl_GCJ='-Wl,'
16429 # All Alpha code is PIC.
16430 lt_prog_compiler_static_GCJ='-non_shared'
16435 osf3* | osf4* | osf5*)
16436 lt_prog_compiler_wl_GCJ='-Wl,'
16437 # All OSF/1 code is PIC.
16438 lt_prog_compiler_static_GCJ='-non_shared'
16442 lt_prog_compiler_pic_GCJ='-Kpic'
16443 lt_prog_compiler_static_GCJ='-dn'
16447 lt_prog_compiler_wl_GCJ='-Wl,'
16448 lt_prog_compiler_pic_GCJ='-KPIC'
16449 lt_prog_compiler_static_GCJ='-Bstatic'
16453 lt_prog_compiler_wl_GCJ='-Qoption ld '
16454 lt_prog_compiler_pic_GCJ='-PIC'
16455 lt_prog_compiler_static_GCJ='-Bstatic'
16458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16459 lt_prog_compiler_wl_GCJ='-Wl,'
16460 lt_prog_compiler_pic_GCJ='-KPIC'
16461 lt_prog_compiler_static_GCJ='-Bstatic'
16465 if test -d /usr/nec ;then
16466 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16467 lt_prog_compiler_static_GCJ='-Bstatic'
16472 lt_prog_compiler_pic_GCJ='-pic'
16473 lt_prog_compiler_static_GCJ='-Bstatic'
16477 lt_prog_compiler_can_build_shared_GCJ=no
16482 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16483 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16486 # Check to make sure the PIC flag actually works.
16488 if test -n "$lt_prog_compiler_pic_GCJ"; then
16489 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16490 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16491 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16492 echo $ECHO_N "(cached) $ECHO_C" >&6
16494 lt_prog_compiler_pic_works_GCJ=no
16495 ac_outfile=conftest.$ac_objext
16496 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16497 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16498 # Insert the option either (1) after the last *FLAGS variable, or
16499 # (2) before a word containing "conftest.", or (3) at the end.
16500 # Note that $ac_compile itself does not contain backslashes and begins
16501 # with a dollar sign (not a hyphen), so the echo should work correctly.
16502 # The option is referenced via a variable to avoid confusing sed.
16503 lt_compile=`echo "$ac_compile" | $SED \
16504 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16506 -e 's:$: $lt_compiler_flag:'`
16507 (eval echo "\"\$as_me:16507: $lt_compile\"" >&5)
16508 (eval "$lt_compile" 2>conftest.err)
16510 cat conftest.err >&5
16511 echo "$as_me:16511: \$? = $ac_status" >&5
16512 if (exit $ac_status) && test -s "$ac_outfile"; then
16513 # The compiler can only warn and ignore the option if not recognized
16514 # So say no if there are warnings
16515 if test ! -s conftest.err; then
16516 lt_prog_compiler_pic_works_GCJ=yes
16522 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16523 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16525 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16526 case $lt_prog_compiler_pic_GCJ in
16528 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16531 lt_prog_compiler_pic_GCJ=
16532 lt_prog_compiler_can_build_shared_GCJ=no
16537 # For platforms which do not support PIC, -DPIC is meaningless:
16539 lt_prog_compiler_pic_GCJ=
16542 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16546 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16547 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16548 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16549 echo $ECHO_N "(cached) $ECHO_C" >&6
16551 lt_cv_prog_compiler_c_o_GCJ=no
16552 $rm -r conftest 2>/dev/null
16556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16558 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16559 # that will create temporary files in the current directory regardless of
16560 # the output directory. Thus, making CWD read-only will cause this test
16561 # to fail, enabling locking or at least warning the user not to do parallel
16565 lt_compiler_flag="-o out/conftest2.$ac_objext"
16566 # Insert the option either (1) after the last *FLAGS variable, or
16567 # (2) before a word containing "conftest.", or (3) at the end.
16568 # Note that $ac_compile itself does not contain backslashes and begins
16569 # with a dollar sign (not a hyphen), so the echo should work correctly.
16570 lt_compile=`echo "$ac_compile" | $SED \
16571 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16573 -e 's:$: $lt_compiler_flag:'`
16574 (eval echo "\"\$as_me:16574: $lt_compile\"" >&5)
16575 (eval "$lt_compile" 2>out/conftest.err)
16577 cat out/conftest.err >&5
16578 echo "$as_me:16578: \$? = $ac_status" >&5
16579 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16581 # The compiler can only warn and ignore the option if not recognized
16582 # So say no if there are warnings
16583 if test ! -s out/conftest.err; then
16584 lt_cv_prog_compiler_c_o_GCJ=yes
16588 $rm conftest* out/*
16595 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16599 hard_links="nottested"
16600 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16601 # do not overwrite the value of need_locks provided by the user
16602 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16608 ln conftest.a conftest.b 2>&5 || hard_links=no
16609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16610 echo "$as_me:$LINENO: result: $hard_links" >&5
16611 echo "${ECHO_T}$hard_links" >&6
16612 if test "$hard_links" = no; then
16613 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16621 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16625 allow_undefined_flag_GCJ=
16626 enable_shared_with_static_runtimes_GCJ=no
16628 archive_expsym_cmds_GCJ=
16629 old_archive_From_new_cmds_GCJ=
16630 old_archive_from_expsyms_cmds_GCJ=
16631 export_dynamic_flag_spec_GCJ=
16632 whole_archive_flag_spec_GCJ=
16633 thread_safe_flag_spec_GCJ=
16634 hardcode_libdir_flag_spec_GCJ=
16635 hardcode_libdir_flag_spec_ld_GCJ=
16636 hardcode_libdir_separator_GCJ=
16637 hardcode_direct_GCJ=no
16638 hardcode_minus_L_GCJ=no
16639 hardcode_shlibpath_var_GCJ=unsupported
16640 link_all_deplibs_GCJ=unknown
16641 hardcode_automatic_GCJ=no
16643 module_expsym_cmds_GCJ=
16644 always_export_symbols_GCJ=no
16645 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16646 # include_expsyms should be a list of space-separated symbols to be *always*
16647 # included in the symbol list
16648 include_expsyms_GCJ=
16649 # exclude_expsyms can be an extended regexp of symbols to exclude
16650 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16651 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16652 # as well as any symbol that contains `d'.
16653 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16654 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16655 # platforms (ab)use it in PIC code, but their linkers get confused if
16656 # the symbol is explicitly referenced. Since portable code cannot
16657 # rely on this symbol name, it's probably fine to never include it in
16658 # preloaded symbol tables.
16659 extract_expsyms_cmds=
16662 cygwin* | mingw* | pw32*)
16663 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16664 # When not using gcc, we currently assume that we are using
16665 # Microsoft Visual C++.
16666 if test "$GCC" != yes; then
16676 if test "$with_gnu_ld" = yes; then
16677 # If archive_cmds runs LD, not CC, wlarc should be empty
16680 # See if GNU ld supports shared libraries.
16682 aix3* | aix4* | aix5*)
16683 # On AIX/PPC, the GNU linker is very broken
16684 if test "$host_cpu" != ia64; then
16688 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16689 *** to be unable to reliably create shared libraries on AIX.
16690 *** Therefore, libtool is disabling shared libraries support. If you
16691 *** really care for shared libraries, you may want to modify your PATH
16692 *** so that a non-GNU linker is found, and then restart.
16699 archive_cmds_GCJ='$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)'
16700 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16701 hardcode_minus_L_GCJ=yes
16703 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16704 # that the semantics of dynamic libraries on AmigaOS, at least up
16705 # to version 4, is to share data among multiple programs linked
16706 # with the same dynamic library. Since this doesn't match the
16707 # behavior of shared libraries on other platforms, we can't use
16713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16714 allow_undefined_flag_GCJ=unsupported
16715 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16716 # support --undefined. This deserves some investigation. FIXME
16717 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16723 cygwin* | mingw* | pw32*)
16724 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16725 # as there is no search path for DLLs.
16726 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16727 allow_undefined_flag_GCJ=unsupported
16728 always_export_symbols_GCJ=no
16729 enable_shared_with_static_runtimes_GCJ=yes
16730 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16732 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16733 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16734 # If the export-symbols file already is a .def file (1st line
16735 # is EXPORTS), use it as is; otherwise, prepend...
16736 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16737 cp $export_symbols $output_objdir/$soname.def;
16739 echo EXPORTS > $output_objdir/$soname.def;
16740 cat $export_symbols >> $output_objdir/$soname.def;
16742 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16750 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16753 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16754 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16759 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16763 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16764 *** create shared libraries on Solaris systems. Therefore, libtool
16765 *** is disabling shared libraries support. We urge you to upgrade GNU
16766 *** binutils to release 2.9.1 or newer. Another option is to modify
16767 *** your PATH or compiler configuration so that the native linker is
16768 *** used, and then restart.
16771 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16772 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16773 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16780 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16782 hardcode_direct_GCJ=yes
16783 hardcode_shlibpath_var_GCJ=no
16787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16788 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16789 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16796 if test "$ld_shlibs_GCJ" = yes; then
16797 runpath_var=LD_RUN_PATH
16798 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16799 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16800 # ancient GNU ld didn't support --whole-archive et. al.
16801 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16802 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16804 whole_archive_flag_spec_GCJ=
16808 # PORTME fill in a description of your system's linker (not GNU ld)
16811 allow_undefined_flag_GCJ=unsupported
16812 always_export_symbols_GCJ=yes
16813 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16814 # Note: this linker hardcodes the directories in LIBPATH if there
16815 # are no directories specified by -L.
16816 hardcode_minus_L_GCJ=yes
16817 if test "$GCC" = yes && test -z "$link_static_flag"; then
16818 # Neither direct hardcoding nor static linking is supported with a
16820 hardcode_direct_GCJ=unsupported
16825 if test "$host_cpu" = ia64; then
16826 # On IA64, the linker does run time linking by default, so we don't
16827 # have to do anything special.
16828 aix_use_runtimelinking=no
16829 exp_sym_flag='-Bexport'
16832 # If we're using GNU nm, then we don't want the "-C" option.
16833 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16834 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16835 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16837 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16839 aix_use_runtimelinking=no
16841 # Test if we are trying to use run time linking or normal
16842 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16843 # need to do runtime linking.
16844 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16845 for ld_flag in $LDFLAGS; do
16846 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16847 aix_use_runtimelinking=yes
16853 exp_sym_flag='-bexport'
16854 no_entry_flag='-bnoentry'
16857 # When large executables or shared objects are built, AIX ld can
16858 # have problems creating the table of contents. If linking a library
16859 # or program results in "error TOC overflow" add -mminimal-toc to
16860 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16861 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16863 archive_cmds_GCJ=''
16864 hardcode_direct_GCJ=yes
16865 hardcode_libdir_separator_GCJ=':'
16866 link_all_deplibs_GCJ=yes
16868 if test "$GCC" = yes; then
16869 case $host_os in aix4.012|aix4.012.*)
16870 # We only want to do this on AIX 4.2 and lower, the check
16871 # below for broken collect2 doesn't work under 4.3+
16872 collect2name=`${CC} -print-prog-name=collect2`
16873 if test -f "$collect2name" && \
16874 strings "$collect2name" | grep resolve_lib_name >/dev/null
16876 # We have reworked collect2
16877 hardcode_direct_GCJ=yes
16879 # We have old collect2
16880 hardcode_direct_GCJ=unsupported
16881 # It fails to find uninstalled libraries when the uninstalled
16882 # path is not listed in the libpath. Setting hardcode_minus_L
16883 # to unsupported forces relinking
16884 hardcode_minus_L_GCJ=yes
16885 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16886 hardcode_libdir_separator_GCJ=
16889 shared_flag='-shared'
16892 if test "$host_cpu" = ia64; then
16893 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16894 # chokes on -Wl,-G. The following line is correct:
16897 if test "$aix_use_runtimelinking" = yes; then
16898 shared_flag='${wl}-G'
16900 shared_flag='${wl}-bM:SRE'
16905 # It seems that -bexpall does not export symbols beginning with
16906 # underscore (_), so it is better to generate a list of symbols to export.
16907 always_export_symbols_GCJ=yes
16908 if test "$aix_use_runtimelinking" = yes; then
16909 # Warning - without using the other runtime loading flags (-brtl),
16910 # -berok will link without error, but may produce a broken library.
16911 allow_undefined_flag_GCJ='-berok'
16912 # Determine the default libpath from the value encoded in an empty executable.
16913 cat >conftest.$ac_ext <<_ACEOF
16914 #line $LINENO "configure"
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16931 (eval $ac_link) 2>&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } &&
16935 { ac_try='test -s conftest$ac_exeext'
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16944 # Check for a 64-bit object if we didn't find anything.
16945 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16948 echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16953 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16955 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16956 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16958 if test "$host_cpu" = ia64; then
16959 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16960 allow_undefined_flag_GCJ="-z nodefs"
16961 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16963 # Determine the default libpath from the value encoded in an empty executable.
16964 cat >conftest.$ac_ext <<_ACEOF
16965 #line $LINENO "configure"
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16980 rm -f conftest.$ac_objext conftest$ac_exeext
16981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16982 (eval $ac_link) 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } &&
16986 { ac_try='test -s conftest$ac_exeext'
16987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988 (eval $ac_try) 2>&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; }; then
16993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16995 # Check for a 64-bit object if we didn't find anything.
16996 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16999 echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17006 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17007 # Warning - without using the other run time loading flags,
17008 # -berok will link without error, but may produce a broken library.
17009 no_undefined_flag_GCJ=' ${wl}-bernotok'
17010 allow_undefined_flag_GCJ=' ${wl}-berok'
17011 # -bexpall does not export symbols beginning with underscore (_)
17012 always_export_symbols_GCJ=yes
17013 # Exported symbols can be pulled into shared objects from archives
17014 whole_archive_flag_spec_GCJ=' '
17015 archive_cmds_need_lc_GCJ=yes
17016 # This is similar to how AIX traditionally builds it's shared libraries.
17017 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17023 archive_cmds_GCJ='$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)'
17024 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17025 hardcode_minus_L_GCJ=yes
17026 # see comment about different semantics on the GNU ld section
17031 export_dynamic_flag_spec_GCJ=-rdynamic
17034 cygwin* | mingw* | pw32*)
17035 # When not using gcc, we currently assume that we are using
17036 # Microsoft Visual C++.
17037 # hardcode_libdir_flag_spec is actually meaningless, as there is
17038 # no search path for DLLs.
17039 hardcode_libdir_flag_spec_GCJ=' '
17040 allow_undefined_flag_GCJ=unsupported
17041 # Tell ltmain to make .lib files, not .a files.
17043 # Tell ltmain to make .dll files, not .so files.
17045 # FIXME: Setting linknames here is a bad hack.
17046 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17047 # The linker will automatically build a .lib file if we build a DLL.
17048 old_archive_From_new_cmds_GCJ='true'
17049 # FIXME: Should let the user specify the lib program.
17050 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17051 fix_srcfile_path='`cygpath -w "$srcfile"`'
17052 enable_shared_with_static_runtimes_GCJ=yes
17055 darwin* | rhapsody*)
17056 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
17057 archive_cmds_need_lc_GCJ=no
17059 rhapsody* | darwin1.[012])
17060 allow_undefined_flag_GCJ='-undefined suppress'
17063 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17066 # FIXME: Relying on posixy $() will cause problems for
17067 # cross-compilation, but unfortunately the echo tests do not
17068 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
17069 # `"' quotes if we put them in here... so don't!
17070 lt_int_apple_cc_single_mod=no
17071 output_verbose_link_cmd='echo'
17072 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17073 lt_int_apple_cc_single_mod=yes
17075 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17076 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17078 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17080 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
17081 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17082 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17083 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17085 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17087 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17088 hardcode_direct_GCJ=no
17089 hardcode_automatic_GCJ=yes
17090 hardcode_shlibpath_var_GCJ=unsupported
17091 whole_archive_flag_spec_GCJ='-all_load $convenience'
17092 link_all_deplibs_GCJ=yes
17097 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17098 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17099 hardcode_shlibpath_var_GCJ=no
17106 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17107 # support. Future versions do this automatically, but an explicit c++rt0.o
17108 # does not break anything, and helps significantly (at the cost of a little
17111 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17112 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17113 hardcode_direct_GCJ=yes
17114 hardcode_shlibpath_var_GCJ=no
17117 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17119 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17120 hardcode_direct_GCJ=yes
17121 hardcode_minus_L_GCJ=yes
17122 hardcode_shlibpath_var_GCJ=no
17125 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17127 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17128 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17129 hardcode_direct_GCJ=yes
17130 hardcode_shlibpath_var_GCJ=no
17134 if test "$GCC" = yes; then
17135 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17137 archive_cmds_GCJ='$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'
17139 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17140 hardcode_libdir_separator_GCJ=:
17141 hardcode_direct_GCJ=yes
17143 # hardcode_minus_L: Not really in the search PATH,
17144 # but as the default location of the library.
17145 hardcode_minus_L_GCJ=yes
17146 export_dynamic_flag_spec_GCJ='${wl}-E'
17150 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17151 case "$host_cpu" in
17153 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17156 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17160 case "$host_cpu" in
17162 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17165 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17169 if test "$with_gnu_ld" = no; then
17170 case "$host_cpu" in
17172 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17173 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17174 hardcode_libdir_separator_GCJ=:
17175 hardcode_direct_GCJ=no
17176 hardcode_shlibpath_var_GCJ=no
17179 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17180 hardcode_direct_GCJ=no
17181 hardcode_shlibpath_var_GCJ=no
17183 # hardcode_minus_L: Not really in the search PATH,
17184 # but as the default location of the library.
17185 hardcode_minus_L_GCJ=yes
17188 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17189 hardcode_libdir_separator_GCJ=:
17190 hardcode_direct_GCJ=yes
17191 export_dynamic_flag_spec_GCJ='${wl}-E'
17193 # hardcode_minus_L: Not really in the search PATH,
17194 # but as the default location of the library.
17195 hardcode_minus_L_GCJ=yes
17201 irix5* | irix6* | nonstopux*)
17202 if test "$GCC" = yes; then
17203 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17205 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17206 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17208 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17209 hardcode_libdir_separator_GCJ=:
17210 link_all_deplibs_GCJ=yes
17214 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17215 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17217 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17219 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17220 hardcode_direct_GCJ=yes
17221 hardcode_shlibpath_var_GCJ=no
17225 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17226 hardcode_direct_GCJ=yes
17227 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17228 hardcode_libdir_separator_GCJ=:
17229 hardcode_shlibpath_var_GCJ=no
17233 case "$host_cpu" in
17238 hardcode_direct_GCJ=yes
17239 hardcode_shlibpath_var_GCJ=no
17240 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17241 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17242 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17243 export_dynamic_flag_spec_GCJ='${wl}-E'
17246 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17247 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17248 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17251 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17252 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17261 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17262 hardcode_minus_L_GCJ=yes
17263 allow_undefined_flag_GCJ=unsupported
17264 archive_cmds_GCJ='$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'
17265 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17269 if test "$GCC" = yes; then
17270 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17271 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17273 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17274 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17276 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17277 hardcode_libdir_separator_GCJ=:
17280 osf4* | osf5*) # as osf3* with the addition of -msym flag
17281 if test "$GCC" = yes; then
17282 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17283 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17284 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17286 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17287 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17288 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17289 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17291 # Both c and cxx compiler support -rpath directly
17292 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17294 hardcode_libdir_separator_GCJ=:
17298 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17299 hardcode_shlibpath_var_GCJ=no
17300 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17301 runpath_var=LD_RUN_PATH
17302 hardcode_runpath_var=yes
17306 no_undefined_flag_GCJ=' -z text'
17307 if test "$GCC" = yes; then
17308 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17309 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17310 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17312 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17313 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17314 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17316 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17317 hardcode_shlibpath_var_GCJ=no
17319 solaris2.[0-5] | solaris2.[0-5].*) ;;
17320 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17321 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17323 link_all_deplibs_GCJ=yes
17327 if test "x$host_vendor" = xsequent; then
17328 # Use $CC to link under sequent, because it throws in some extra .o
17329 # files that make .init and .fini sections work.
17330 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17332 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17334 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17335 hardcode_direct_GCJ=yes
17336 hardcode_minus_L_GCJ=yes
17337 hardcode_shlibpath_var_GCJ=no
17341 case $host_vendor in
17343 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17344 hardcode_direct_GCJ=yes # is this really true???
17347 ## LD is ld it makes a PLAMLIB
17348 ## CC just makes a GrossModule.
17349 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17350 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17351 hardcode_direct_GCJ=no
17354 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17355 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17358 runpath_var='LD_RUN_PATH'
17359 hardcode_shlibpath_var_GCJ=no
17363 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17364 hardcode_shlibpath_var_GCJ=no
17365 export_dynamic_flag_spec_GCJ='-Bexport'
17369 if test -d /usr/nec; then
17370 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17371 hardcode_shlibpath_var_GCJ=no
17372 runpath_var=LD_RUN_PATH
17373 hardcode_runpath_var=yes
17379 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17380 hardcode_direct_GCJ=yes
17381 hardcode_minus_L_GCJ=no
17382 hardcode_shlibpath_var_GCJ=no
17383 hardcode_runpath_var=yes
17384 runpath_var=LD_RUN_PATH
17387 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17388 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17389 if test "$GCC" = yes; then
17390 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17392 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17394 runpath_var='LD_RUN_PATH'
17395 hardcode_shlibpath_var_GCJ=no
17399 no_undefined_flag_GCJ=' -z text'
17400 # $CC -shared without GNU ld will not create a library from C++
17401 # object files and a static libstdc++, better avoid it by now
17402 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17405 hardcode_libdir_flag_spec_GCJ=
17406 hardcode_shlibpath_var_GCJ=no
17407 runpath_var='LD_RUN_PATH'
17411 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17412 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17413 hardcode_shlibpath_var_GCJ=no
17422 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17423 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17424 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17426 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17427 if test "$GCC" = yes; then
17428 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17432 # Do we need to explicitly link libc?
17434 case "x$archive_cmds_need_lc_GCJ" in
17436 # Assume -lc should be added
17437 archive_cmds_need_lc_GCJ=yes
17439 if test "$enable_shared" = yes && test "$GCC" = yes; then
17440 case $archive_cmds_GCJ in
17442 # FIXME: we may have to deal with multi-command sequences.
17445 # Test whether the compiler implicitly links with -lc since on some
17446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17447 # to ld, don't add -lc before -lgcc.
17448 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17449 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17454 (eval $ac_compile) 2>&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } 2>conftest.err; then
17460 libobjs=conftest.$ac_objext
17462 wl=$lt_prog_compiler_wl_GCJ
17468 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17469 allow_undefined_flag_GCJ=
17470 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17471 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }
17476 archive_cmds_need_lc_GCJ=no
17478 archive_cmds_need_lc_GCJ=yes
17480 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17482 cat conftest.err 1>&5
17485 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17486 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17493 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17494 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17495 hardcode_action_GCJ=
17496 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17497 test -n "$runpath_var GCJ" || \
17498 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17500 # We can hardcode non-existant directories.
17501 if test "$hardcode_direct_GCJ" != no &&
17502 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17503 # have to relink, otherwise we might link with an installed library
17504 # when we should be linking with a yet-to-be-installed one
17505 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17506 test "$hardcode_minus_L_GCJ" != no; then
17507 # Linking always hardcodes the temporary library directory.
17508 hardcode_action_GCJ=relink
17510 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17511 hardcode_action_GCJ=immediate
17514 # We cannot hardcode anything, or else we can only hardcode existing
17516 hardcode_action_GCJ=unsupported
17518 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17519 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17521 if test "$hardcode_action_GCJ" = relink; then
17522 # Fast installation is not supported
17523 enable_fast_install=no
17524 elif test "$shlibpath_overrides_runpath" = yes ||
17525 test "$enable_shared" = no; then
17526 # Fast installation is not necessary
17527 enable_fast_install=needless
17532 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17533 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17534 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17535 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17536 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17537 echo "$as_me:$LINENO: result: yes" >&5
17538 echo "${ECHO_T}yes" >&6
17540 # FIXME - insert some real tests, host_os isn't really good enough
17543 if test -n "$STRIP" ; then
17544 striplib="$STRIP -x"
17545 echo "$as_me:$LINENO: result: yes" >&5
17546 echo "${ECHO_T}yes" >&6
17548 echo "$as_me:$LINENO: result: no" >&5
17549 echo "${ECHO_T}no" >&6
17553 echo "$as_me:$LINENO: result: no" >&5
17554 echo "${ECHO_T}no" >&6
17559 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17560 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17561 library_names_spec=
17562 libname_spec='lib$name'
17566 postuninstall_cmds=
17570 shlibpath_overrides_runpath=unknown
17572 dynamic_linker="$host_os ld.so"
17573 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17574 if test "$GCC" = yes; then
17575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17576 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17577 # if the path contains ";" then we assume it to be the separator
17578 # otherwise default to the standard path separator (i.e. ":") - it is
17579 # assumed that no part of a normal pathname contains ";" but that should
17580 # okay in the real world where ";" in dirpaths is itself problematic.
17581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17586 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17589 hardcode_into_libs=no
17591 # when you set need_version to no, make sure it does not cause -set_version
17592 # flags to be left without arguments
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17599 shlibpath_var=LIBPATH
17601 # AIX 3 has no versioning support, so we append a major version to the name.
17602 soname_spec='${libname}${release}${shared_ext}$major'
17607 hardcode_into_libs=yes
17608 if test "$host_cpu" = ia64; then
17609 # AIX 5 supports IA64
17610 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17611 shlibpath_var=LD_LIBRARY_PATH
17613 # With GCC up to 2.95.x, collect2 would create an import file
17614 # for dependence libraries. The import file would start with
17615 # the line `#! .'. This would cause the generated library to
17616 # depend on `.', always an invalid library. This was fixed in
17617 # development snapshots of GCC prior to 3.0.
17619 aix4 | aix4.[01] | aix4.[01].*)
17620 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17622 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17625 can_build_shared=no
17629 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17630 # soname into executable. Probably we can add versioning support to
17631 # collect2, so additional links can be useful in future.
17632 if test "$aix_use_runtimelinking" = yes; then
17633 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17634 # instead of lib<name>.a to let people know that these are not
17635 # typical AIX shared libraries.
17636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17638 # We preserve .a as extension for shared libraries through AIX4.2
17639 # and later when we are not doing run time linking.
17640 library_names_spec='${libname}${release}.a $libname.a'
17641 soname_spec='${libname}${release}${shared_ext}$major'
17643 shlibpath_var=LIBPATH
17648 library_names_spec='$libname.ixlibrary $libname.a'
17649 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17650 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
17654 library_names_spec='${libname}${shared_ext}'
17655 dynamic_linker="$host_os ld.so"
17656 shlibpath_var=LIBRARY_PATH
17661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17662 soname_spec='${libname}${release}${shared_ext}$major'
17663 #finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17664 shlibpath_var=LD_LIBRARY_PATH
17665 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17666 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17667 # the default ld.so.conf also contains /usr/contrib/lib and
17668 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17669 # libtool to hard-code these into programs
17672 cygwin* | mingw* | pw32*)
17673 version_type=windows
17676 case $GCC,$host_os in
17677 yes,cygwin* | yes,mingw* | yes,pw32*)
17678 library_names_spec='$libname.dll.a'
17679 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17680 postinstall_cmds='base_file=`basename \${file}`~
17681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17682 dldir=$destdir/`dirname \$dlpath`~
17683 test -d \$dldir || mkdir -p \$dldir~
17684 $install_prog $dir/$dlname \$dldir/$dlname'
17685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17686 dlpath=$dir/\$dldll~
17688 shlibpath_overrides_runpath=yes
17692 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17693 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17694 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
17697 # MinGW DLLs use traditional 'lib' prefix
17698 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17700 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17701 # It is most probably a Windows format PATH printed by
17702 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17703 # path with ; separators, and with drive letters. We can handle the
17704 # drive letters (cygwin fileutils understands them), so leave them,
17705 # especially as we might pass files found there to a mingw objdump,
17706 # which wouldn't understand a cygwinified path. Ahh.
17707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17713 # pw32 DLLs use 'pw' prefix rather than 'lib'
17714 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17720 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17723 dynamic_linker='Win32 ld.exe'
17724 # FIXME: first we should search . and the directory the executable is in
17728 darwin* | rhapsody*)
17729 dynamic_linker="$host_os dyld"
17730 version_type=darwin
17731 # FIXME: Relying on posixy $() will cause problems for
17732 # cross-compilation, but unfortunately the echo tests do not
17733 # yet detect zsh echo's removal of \ escapes.
17734 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17735 soname_spec='${libname}${release}${major}$shared_ext'
17736 shlibpath_overrides_runpath=yes
17737 shlibpath_var=DYLD_LIBRARY_PATH
17738 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17739 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17740 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
17741 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17743 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17749 soname_spec='${libname}${release}${shared_ext}$major'
17750 shlibpath_var=LD_LIBRARY_PATH
17758 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17759 version_type=freebsd-$objformat
17760 case $version_type in
17762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17768 shlibpath_var=LD_LIBRARY_PATH
17771 shlibpath_overrides_runpath=yes
17773 freebsd3.01* | freebsdelf3.01*)
17774 shlibpath_overrides_runpath=yes
17775 hardcode_into_libs=yes
17778 shlibpath_overrides_runpath=no
17779 hardcode_into_libs=yes
17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17787 soname_spec='${libname}${release}${shared_ext}$major'
17788 shlibpath_var=LD_LIBRARY_PATH
17789 hardcode_into_libs=yes
17792 hpux9* | hpux10* | hpux11*)
17793 # Give a soname corresponding to the major version so that dld.sl refuses to
17794 # link against other versions.
17796 case "$host_cpu" in
17799 hardcode_into_libs=yes
17800 dynamic_linker="$host_os dld.so"
17801 shlibpath_var=LD_LIBRARY_PATH
17802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17804 soname_spec='${libname}${release}${shared_ext}$major'
17805 if test "X$HPUX_IA64_MODE" = X32; then
17806 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17808 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17814 hardcode_into_libs=yes
17815 dynamic_linker="$host_os dld.sl"
17816 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17819 soname_spec='${libname}${release}${shared_ext}$major'
17820 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17825 dynamic_linker="$host_os dld.sl"
17826 shlibpath_var=SHLIB_PATH
17827 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17829 soname_spec='${libname}${release}${shared_ext}$major'
17832 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17833 postinstall_cmds='chmod 555 $lib'
17836 irix5* | irix6* | nonstopux*)
17838 nonstopux*) version_type=nonstopux ;;
17840 if test "$lt_cv_prog_gnu_ld" = yes; then
17846 soname_spec='${libname}${release}${shared_ext}$major'
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17849 irix5* | nonstopux*)
17850 libsuff= shlibsuff=
17853 case $LD in # libtool.m4 will add one of these switches to LD
17854 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17855 libsuff= shlibsuff= libmagic=32-bit;;
17856 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17857 libsuff=32 shlibsuff=N32 libmagic=N32;;
17858 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17859 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17860 *) libsuff= shlibsuff= libmagic=never-match;;
17864 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17865 shlibpath_overrides_runpath=no
17866 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17867 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17868 hardcode_into_libs=yes
17871 # No shared lib support for Linux oldld, aout, or coff.
17872 linux*oldld* | linux*aout* | linux*coff*)
17876 # This must be Linux ELF.
17879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17880 soname_spec='${libname}${release}${shared_ext}$major'
17881 #finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17882 shlibpath_var=LD_LIBRARY_PATH
17883 shlibpath_overrides_runpath=no
17884 # This implies no fast_install, which is unacceptable.
17885 # Some rework will be needed to allow for fast_install
17886 # before this can be enabled.
17887 hardcode_into_libs=yes
17889 # We used to test for /lib/ld.so.1 and disable shared libraries on
17890 # powerpc, because MkLinux only supported shared libraries with the
17891 # GNU dynamic linker. Since this was broken with cross compilers,
17892 # most powerpc-linux boxes support dynamic linking these days and
17893 # people can always --disable-shared, the test was removed, and we
17894 # assume the GNU/Linux dynamic linker is in use.
17895 dynamic_linker='GNU/Linux ld.so'
17900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17902 #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17903 dynamic_linker='NetBSD (a.out) ld.so'
17905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17906 soname_spec='${libname}${release}${shared_ext}$major'
17907 dynamic_linker='NetBSD ld.elf_so'
17909 shlibpath_var=LD_LIBRARY_PATH
17910 shlibpath_overrides_runpath=yes
17911 hardcode_into_libs=yes
17916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17917 shlibpath_var=LD_LIBRARY_PATH
17918 shlibpath_overrides_runpath=yes
17923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17924 soname_spec='${libname}${release}${shared_ext}$major'
17925 shlibpath_var=LD_LIBRARY_PATH
17926 shlibpath_overrides_runpath=yes
17931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17932 #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17933 shlibpath_var=LD_LIBRARY_PATH
17934 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17935 dynamic_linker='OpenBSD (ELF) ld.so'
17937 openbsd2.[89] | openbsd2.[89].*)
17938 shlibpath_overrides_runpath=no
17941 shlibpath_overrides_runpath=yes
17945 dynamic_linker='OpenBSD (a.out) ld.so'
17946 shlibpath_overrides_runpath=yes
17951 libname_spec='$name'
17953 library_names_spec='$libname${shared_ext} $libname.a'
17954 dynamic_linker='OS/2 ld.exe'
17955 shlibpath_var=LIBPATH
17958 osf3* | osf4* | osf5*)
17960 soname_spec='${libname}${release}${shared_ext}$major'
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17962 shlibpath_var=LD_LIBRARY_PATH
17963 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17964 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17969 soname_spec='${libname}${release}${shared_ext}$major'
17970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17971 shlibpath_var=LD_LIBRARY_PATH
17976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17977 soname_spec='${libname}${release}${shared_ext}$major'
17978 shlibpath_var=LD_LIBRARY_PATH
17979 shlibpath_overrides_runpath=yes
17980 hardcode_into_libs=yes
17981 # ldd complains unless libraries are executable
17982 postinstall_cmds='chmod +x $lib'
17987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17988 #finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17989 shlibpath_var=LD_LIBRARY_PATH
17990 shlibpath_overrides_runpath=yes
17993 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17996 soname_spec='${libname}${release}${shared_ext}$major'
17997 shlibpath_var=LD_LIBRARY_PATH
17998 case $host_vendor in
18000 shlibpath_overrides_runpath=no
18001 export_dynamic_flag_spec='${wl}-Blargedynsym'
18002 runpath_var=LD_RUN_PATH
18005 shlibpath_overrides_runpath=no
18006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18012 if test -d /usr/nec ;then
18014 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18015 soname_spec='$libname${shared_ext}.$major'
18016 shlibpath_var=LD_LIBRARY_PATH
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18023 soname_spec='${libname}${release}${shared_ext}$major'
18024 shlibpath_var=LD_LIBRARY_PATH
18031 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18032 echo "${ECHO_T}$dynamic_linker" >&6
18033 test "$dynamic_linker" = no && can_build_shared=no
18035 if test "x$enable_dlopen" != xyes; then
18036 enable_dlopen=unknown
18037 enable_dlopen_self=unknown
18038 enable_dlopen_self_static=unknown
18045 lt_cv_dlopen="load_add_on"
18047 lt_cv_dlopen_self=yes
18051 lt_cv_dlopen="LoadLibrary"
18056 lt_cv_dlopen="dlopen"
18061 # if libdl is installed we need to link against it
18062 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18063 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18064 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 ac_check_lib_save_LIBS=$LIBS
18069 cat >conftest.$ac_ext <<_ACEOF
18070 #line $LINENO "configure"
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18077 /* Override any gcc2 internal prototype to avoid an error. */
18081 /* We use char because int might match the return type of a gcc2
18082 builtin and then its argument prototype would still apply. */
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094 (eval $ac_link) 2>&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } &&
18098 { ac_try='test -s conftest$ac_exeext'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 ac_cv_lib_dl_dlopen=yes
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ac_cv_lib_dl_dlopen=no
18111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18112 LIBS=$ac_check_lib_save_LIBS
18114 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18115 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18116 if test $ac_cv_lib_dl_dlopen = yes; then
18117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18120 lt_cv_dlopen="dyld"
18122 lt_cv_dlopen_self=yes
18129 echo "$as_me:$LINENO: checking for shl_load" >&5
18130 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18131 if test "${ac_cv_func_shl_load+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18134 cat >conftest.$ac_ext <<_ACEOF
18135 #line $LINENO "configure"
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h. */
18141 /* System header to define __stub macros and hopefully few prototypes,
18142 which can conflict with char shl_load (); below.
18143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18144 <limits.h> exists even on freestanding compilers. */
18146 # include <limits.h>
18148 # include <assert.h>
18150 /* Override any gcc2 internal prototype to avoid an error. */
18155 /* We use char because int might match the return type of a gcc2
18156 builtin and then its argument prototype would still apply. */
18158 /* The GNU C library defines this for functions which it implements
18159 to always fail with ENOSYS. Some functions are actually named
18160 something starting with __ and the normal name is an alias. */
18161 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18164 char (*f) () = shl_load;
18173 return f != shl_load;
18178 rm -f conftest.$ac_objext conftest$ac_exeext
18179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180 (eval $ac_link) 2>&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
18184 { ac_try='test -s conftest$ac_exeext'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
18190 ac_cv_func_shl_load=yes
18192 echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18195 ac_cv_func_shl_load=no
18197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18199 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18200 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18201 if test $ac_cv_func_shl_load = yes; then
18202 lt_cv_dlopen="shl_load"
18204 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18205 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18206 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 ac_check_lib_save_LIBS=$LIBS
18211 cat >conftest.$ac_ext <<_ACEOF
18212 #line $LINENO "configure"
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h. */
18219 /* Override any gcc2 internal prototype to avoid an error. */
18223 /* We use char because int might match the return type of a gcc2
18224 builtin and then its argument prototype would still apply. */
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236 (eval $ac_link) 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
18240 { ac_try='test -s conftest$ac_exeext'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; }; then
18246 ac_cv_lib_dld_shl_load=yes
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18251 ac_cv_lib_dld_shl_load=no
18253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18254 LIBS=$ac_check_lib_save_LIBS
18256 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18257 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18258 if test $ac_cv_lib_dld_shl_load = yes; then
18259 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18261 echo "$as_me:$LINENO: checking for dlopen" >&5
18262 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18263 if test "${ac_cv_func_dlopen+set}" = set; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 cat >conftest.$ac_ext <<_ACEOF
18267 #line $LINENO "configure"
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h. */
18273 /* System header to define __stub macros and hopefully few prototypes,
18274 which can conflict with char dlopen (); below.
18275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18276 <limits.h> exists even on freestanding compilers. */
18278 # include <limits.h>
18280 # include <assert.h>
18282 /* Override any gcc2 internal prototype to avoid an error. */
18287 /* We use char because int might match the return type of a gcc2
18288 builtin and then its argument prototype would still apply. */
18290 /* The GNU C library defines this for functions which it implements
18291 to always fail with ENOSYS. Some functions are actually named
18292 something starting with __ and the normal name is an alias. */
18293 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18296 char (*f) () = dlopen;
18305 return f != dlopen;
18310 rm -f conftest.$ac_objext conftest$ac_exeext
18311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18312 (eval $ac_link) 2>&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
18316 { ac_try='test -s conftest$ac_exeext'
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 ac_cv_func_dlopen=yes
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18327 ac_cv_func_dlopen=no
18329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18331 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18332 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18333 if test $ac_cv_func_dlopen = yes; then
18334 lt_cv_dlopen="dlopen"
18336 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18337 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18338 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18341 ac_check_lib_save_LIBS=$LIBS
18343 cat >conftest.$ac_ext <<_ACEOF
18344 #line $LINENO "configure"
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18351 /* Override any gcc2 internal prototype to avoid an error. */
18355 /* We use char because int might match the return type of a gcc2
18356 builtin and then its argument prototype would still apply. */
18366 rm -f conftest.$ac_objext conftest$ac_exeext
18367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18368 (eval $ac_link) 2>&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); } &&
18372 { ac_try='test -s conftest$ac_exeext'
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; }; then
18378 ac_cv_lib_dl_dlopen=yes
18380 echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18383 ac_cv_lib_dl_dlopen=no
18385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18388 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18389 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18390 if test $ac_cv_lib_dl_dlopen = yes; then
18391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18393 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18394 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18395 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18396 echo $ECHO_N "(cached) $ECHO_C" >&6
18398 ac_check_lib_save_LIBS=$LIBS
18399 LIBS="-lsvld $LIBS"
18400 cat >conftest.$ac_ext <<_ACEOF
18401 #line $LINENO "configure"
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h. */
18408 /* Override any gcc2 internal prototype to avoid an error. */
18412 /* We use char because int might match the return type of a gcc2
18413 builtin and then its argument prototype would still apply. */
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18425 (eval $ac_link) 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
18429 { ac_try='test -s conftest$ac_exeext'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18435 ac_cv_lib_svld_dlopen=yes
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18440 ac_cv_lib_svld_dlopen=no
18442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18443 LIBS=$ac_check_lib_save_LIBS
18445 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18446 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18447 if test $ac_cv_lib_svld_dlopen = yes; then
18448 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18450 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18451 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18452 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18453 echo $ECHO_N "(cached) $ECHO_C" >&6
18455 ac_check_lib_save_LIBS=$LIBS
18457 cat >conftest.$ac_ext <<_ACEOF
18458 #line $LINENO "configure"
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18465 /* Override any gcc2 internal prototype to avoid an error. */
18469 /* We use char because int might match the return type of a gcc2
18470 builtin and then its argument prototype would still apply. */
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18482 (eval $ac_link) 2>&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } &&
18486 { ac_try='test -s conftest$ac_exeext'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; }; then
18492 ac_cv_lib_dld_dld_link=yes
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18497 ac_cv_lib_dld_dld_link=no
18499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18500 LIBS=$ac_check_lib_save_LIBS
18502 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18503 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18504 if test $ac_cv_lib_dld_dld_link = yes; then
18505 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18526 if test "x$lt_cv_dlopen" != xno; then
18532 case $lt_cv_dlopen in
18534 save_CPPFLAGS="$CPPFLAGS"
18535 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18537 save_LDFLAGS="$LDFLAGS"
18538 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18541 LIBS="$lt_cv_dlopen_libs $LIBS"
18543 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18544 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18545 if test "${lt_cv_dlopen_self+set}" = set; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18548 if test "$cross_compiling" = yes; then :
18549 lt_cv_dlopen_self=cross
18551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18552 lt_status=$lt_dlunknown
18553 cat > conftest.$ac_ext <<EOF
18554 #line 18554 "configure"
18555 #include "confdefs.h"
18564 # define LT_DLGLOBAL RTLD_GLOBAL
18567 # define LT_DLGLOBAL DL_GLOBAL
18569 # define LT_DLGLOBAL 0
18573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18574 find out it does not work in some platform. */
18575 #ifndef LT_DLLAZY_OR_NOW
18577 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18580 # define LT_DLLAZY_OR_NOW DL_LAZY
18583 # define LT_DLLAZY_OR_NOW RTLD_NOW
18586 # define LT_DLLAZY_OR_NOW DL_NOW
18588 # define LT_DLLAZY_OR_NOW 0
18596 extern "C" void exit (int);
18599 void fnord() { int i=42;}
18602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18603 int status = $lt_dlunknown;
18607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18608 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18609 /* dlclose (self); */
18615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18616 (eval $ac_link) 2>&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18620 (./conftest; exit; ) 2>/dev/null
18622 case x$lt_status in
18623 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18624 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18625 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18628 # compilation failed
18629 lt_cv_dlopen_self=no
18636 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18637 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18639 if test "x$lt_cv_dlopen_self" = xyes; then
18640 LDFLAGS="$LDFLAGS $link_static_flag"
18641 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18642 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18643 if test "${lt_cv_dlopen_self_static+set}" = set; then
18644 echo $ECHO_N "(cached) $ECHO_C" >&6
18646 if test "$cross_compiling" = yes; then :
18647 lt_cv_dlopen_self_static=cross
18649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18650 lt_status=$lt_dlunknown
18651 cat > conftest.$ac_ext <<EOF
18652 #line 18652 "configure"
18653 #include "confdefs.h"
18662 # define LT_DLGLOBAL RTLD_GLOBAL
18665 # define LT_DLGLOBAL DL_GLOBAL
18667 # define LT_DLGLOBAL 0
18671 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18672 find out it does not work in some platform. */
18673 #ifndef LT_DLLAZY_OR_NOW
18675 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18678 # define LT_DLLAZY_OR_NOW DL_LAZY
18681 # define LT_DLLAZY_OR_NOW RTLD_NOW
18684 # define LT_DLLAZY_OR_NOW DL_NOW
18686 # define LT_DLLAZY_OR_NOW 0
18694 extern "C" void exit (int);
18697 void fnord() { int i=42;}
18700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18701 int status = $lt_dlunknown;
18705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18706 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18707 /* dlclose (self); */
18713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18714 (eval $ac_link) 2>&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18718 (./conftest; exit; ) 2>/dev/null
18720 case x$lt_status in
18721 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18722 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18723 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18726 # compilation failed
18727 lt_cv_dlopen_self_static=no
18734 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18735 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18738 CPPFLAGS="$save_CPPFLAGS"
18739 LDFLAGS="$save_LDFLAGS"
18744 case $lt_cv_dlopen_self in
18745 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18746 *) enable_dlopen_self=unknown ;;
18749 case $lt_cv_dlopen_self_static in
18750 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18751 *) enable_dlopen_self_static=unknown ;;
18756 # The else clause should only fire when bootstrapping the
18757 # libtool distribution, otherwise you forgot to ship ltmain.sh
18758 # with your package, and you will get complaints that there are
18759 # no rules to generate ltmain.sh.
18760 if test -f "$ltmain"; then
18761 # See if we are running on zsh, and set the options which allow our commands through
18762 # without removal of \ escapes.
18763 if test -n "${ZSH_VERSION+set}" ; then
18764 setopt NO_GLOB_SUBST
18766 # Now quote all the things that may contain metacharacters while being
18767 # careful not to overquote the AC_SUBSTed values. We take copies of the
18768 # variables and quote the copies for generation of the libtool script.
18769 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18770 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18771 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18772 deplibs_check_method reload_flag reload_cmds need_locks \
18773 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18774 lt_cv_sys_global_symbol_to_c_name_address \
18775 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18776 old_postinstall_cmds old_postuninstall_cmds \
18780 lt_prog_compiler_wl_GCJ \
18781 lt_prog_compiler_pic_GCJ \
18782 lt_prog_compiler_static_GCJ \
18783 lt_prog_compiler_no_builtin_flag_GCJ \
18784 export_dynamic_flag_spec_GCJ \
18785 thread_safe_flag_spec_GCJ \
18786 whole_archive_flag_spec_GCJ \
18787 enable_shared_with_static_runtimes_GCJ \
18788 old_archive_cmds_GCJ \
18789 old_archive_from_new_cmds_GCJ \
18790 predep_objects_GCJ \
18791 postdep_objects_GCJ \
18794 compiler_lib_search_path_GCJ \
18796 archive_expsym_cmds_GCJ \
18797 postinstall_cmds_GCJ \
18798 postuninstall_cmds_GCJ \
18799 old_archive_from_expsyms_cmds_GCJ \
18800 allow_undefined_flag_GCJ \
18801 no_undefined_flag_GCJ \
18802 export_symbols_cmds_GCJ \
18803 hardcode_libdir_flag_spec_GCJ \
18804 hardcode_libdir_flag_spec_ld_GCJ \
18805 hardcode_libdir_separator_GCJ \
18806 hardcode_automatic_GCJ \
18808 module_expsym_cmds_GCJ \
18809 lt_cv_prog_compiler_c_o_GCJ \
18810 exclude_expsyms_GCJ \
18811 include_expsyms_GCJ; do
18814 old_archive_cmds_GCJ | \
18815 old_archive_from_new_cmds_GCJ | \
18816 archive_cmds_GCJ | \
18817 archive_expsym_cmds_GCJ | \
18818 module_cmds_GCJ | \
18819 module_expsym_cmds_GCJ | \
18820 old_archive_from_expsyms_cmds_GCJ | \
18821 export_symbols_cmds_GCJ | \
18822 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18823 postinstall_cmds | postuninstall_cmds | \
18824 old_postinstall_cmds | old_postuninstall_cmds | \
18825 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18826 # Double-quote double-evaled strings.
18827 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18830 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18836 *'\$0 --fallback-echo"')
18837 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18843 cat <<__EOF__ >> "$cfgfile"
18844 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18846 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18848 # Shell to use when invoking shell scripts.
18851 # Whether or not to build shared libraries.
18852 build_libtool_libs=$enable_shared
18854 # Whether or not to build static libraries.
18855 build_old_libs=$enable_static
18857 # Whether or not to add -lc for building shared libraries.
18858 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18860 # Whether or not to disallow shared libs when runtime libs are static
18861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18863 # Whether or not to optimize for fast installation.
18864 fast_install=$enable_fast_install
18867 host_alias=$host_alias
18870 # An echo program that does not interpret backslashes.
18875 AR_FLAGS=$lt_AR_FLAGS
18880 # A language-specific compiler.
18881 CC=$lt_compiler_GCJ
18883 # Is the compiler the GNU C compiler?
18889 # The linker used to build libraries.
18892 # Whether we need hard or soft links.
18895 # A BSD-compatible nm program.
18898 # A symbol stripping program
18901 # Used to examine libraries when file_magic_cmd begins "file"
18902 MAGIC_CMD=$MAGIC_CMD
18904 # Used on cygwin: DLL creation program.
18907 # Used on cygwin: object dumper.
18910 # Used on cygwin: assembler.
18913 # The name of the directory that contains temporary libtool files.
18916 # How to create reloadable object files.
18917 reload_flag=$lt_reload_flag
18918 reload_cmds=$lt_reload_cmds
18920 # How to pass a linker flag through the compiler.
18921 wl=$lt_lt_prog_compiler_wl_GCJ
18923 # Object file suffix (normally "o").
18924 objext="$ac_objext"
18926 # Old archive suffix (normally "a").
18929 # Shared library suffix (normally ".so").
18932 # Executable file suffix (normally "").
18935 # Additional compiler flags for building library objects.
18936 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18939 # What is the maximum length of a command?
18940 max_cmd_len=$lt_cv_sys_max_cmd_len
18942 # Does compiler simultaneously support -c and -o options?
18943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18945 # Must we lock files when doing compilation ?
18946 need_locks=$lt_need_locks
18948 # Do we need the lib prefix for modules?
18949 need_lib_prefix=$need_lib_prefix
18951 # Do we need a version for libraries?
18952 need_version=$need_version
18954 # Whether dlopen is supported.
18955 dlopen_support=$enable_dlopen
18957 # Whether dlopen of programs is supported.
18958 dlopen_self=$enable_dlopen_self
18960 # Whether dlopen of statically linked programs is supported.
18961 dlopen_self_static=$enable_dlopen_self_static
18963 # Compiler flag to prevent dynamic linking.
18964 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18966 # Compiler flag to turn off builtin functions.
18967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18969 # Compiler flag to allow reflexive dlopens.
18970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18972 # Compiler flag to generate shared objects directly from archives.
18973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18975 # Compiler flag to generate thread-safe objects.
18976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18978 # Library versioning type.
18979 version_type=$version_type
18981 # Format of library name prefix.
18982 libname_spec=$lt_libname_spec
18984 # List of archive names. First name is the real one, the rest are links.
18985 # The last name is the one that the linker finds with -lNAME.
18986 library_names_spec=$lt_library_names_spec
18988 # The coded name of the library, if different from the real name.
18989 soname_spec=$lt_soname_spec
18991 # Commands used to build and install an old-style archive.
18993 old_archive_cmds=$lt_old_archive_cmds_GCJ
18994 old_postinstall_cmds=$lt_old_postinstall_cmds
18995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18997 # Create an old-style archive from a shared archive.
18998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19000 # Create a temporary old-style archive to link instead of a shared archive.
19001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19003 # Commands used to build and install a shared archive.
19004 archive_cmds=$lt_archive_cmds_GCJ
19005 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19006 postinstall_cmds=$lt_postinstall_cmds
19007 postuninstall_cmds=$lt_postuninstall_cmds
19009 # Commands used to build a loadable module (assumed same as above if empty)
19010 module_cmds=$lt_module_cmds_GCJ
19011 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19013 # Commands to strip libraries.
19014 old_striplib=$lt_old_striplib
19015 striplib=$lt_striplib
19017 # Dependencies to place before the objects being linked to create a
19019 predep_objects=$lt_predep_objects_GCJ
19021 # Dependencies to place after the objects being linked to create a
19023 postdep_objects=$lt_postdep_objects_GCJ
19025 # Dependencies to place before the objects being linked to create a
19027 predeps=$lt_predeps_GCJ
19029 # Dependencies to place after the objects being linked to create a
19031 postdeps=$lt_postdeps_GCJ
19033 # The library search path used internally by the compiler when linking
19034 # a shared library.
19035 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19037 # Method to check whether dependent libraries are shared objects.
19038 deplibs_check_method=$lt_deplibs_check_method
19040 # Command to use when deplibs_check_method == file_magic.
19041 file_magic_cmd=$lt_file_magic_cmd
19043 # Flag that allows shared libraries with undefined symbols to be built.
19044 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19046 # Flag that forces no undefined symbols.
19047 no_undefined_flag=$lt_no_undefined_flag_GCJ
19049 # Commands used to finish a libtool library installation in a directory.
19050 finish_cmds=$lt_finish_cmds
19052 # Same as above, but a single script fragment to be evaled but not shown.
19053 finish_eval=$lt_finish_eval
19055 # Take the output of nm and produce a listing of raw symbols and C names.
19056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19058 # Transform the output of nm in a proper C declaration
19059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19061 # Transform the output of nm in a C name address pair
19062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19064 # This is the shared library runtime path variable.
19065 runpath_var=$runpath_var
19067 # This is the shared library path variable.
19068 shlibpath_var=$shlibpath_var
19070 # Is shlibpath searched before the hard-coded library search path?
19071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19073 # How to hardcode a shared library path into an executable.
19074 hardcode_action=$hardcode_action_GCJ
19076 # Whether we should hardcode library paths into libraries.
19077 hardcode_into_libs=$hardcode_into_libs
19079 # Flag to hardcode \$libdir into a binary during linking.
19080 # This must work even if \$libdir does not exist.
19081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19083 # If ld is used when linking, flag to hardcode \$libdir into
19084 # a binary during linking. This must work even if \$libdir does
19086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19088 # Whether we need a single -rpath flag with a separated argument.
19089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19092 # resulting binary.
19093 hardcode_direct=$hardcode_direct_GCJ
19095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19096 # resulting binary.
19097 hardcode_minus_L=$hardcode_minus_L_GCJ
19099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19100 # the resulting binary.
19101 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19103 # Set to yes if building a shared library automatically hardcodes DIR into the library
19104 # and all subsequent libraries and executables linked against it.
19105 hardcode_automatic=$hardcode_automatic_GCJ
19107 # Variables whose values should be saved in libtool wrapper scripts and
19108 # restored at relink time.
19109 variables_saved_for_relink="$variables_saved_for_relink"
19111 # Whether libtool must link a program against all its dependency libraries.
19112 link_all_deplibs=$link_all_deplibs_GCJ
19114 # Compile-time system search path for libraries
19115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19117 # Run-time system search path for libraries
19118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19120 # Fix the shell variable \$srcfile for the compiler.
19121 fix_srcfile_path="$fix_srcfile_path_GCJ"
19123 # Set to yes if exported symbols are required.
19124 always_export_symbols=$always_export_symbols_GCJ
19126 # The commands to list exported symbols.
19127 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19129 # The commands to extract the exported symbol list from a shared archive.
19130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19132 # Symbols that should not be listed in the preloaded symbols.
19133 exclude_expsyms=$lt_exclude_expsyms_GCJ
19135 # Symbols that must always be exported.
19136 include_expsyms=$lt_include_expsyms_GCJ
19138 # ### END LIBTOOL TAG CONFIG: $tagname
19144 # If there is no Makefile yet, we rely on a make rule to execute
19145 # `config.status --recheck' to rerun these tests and create the
19146 # libtool script then.
19147 test -f Makefile && make "$ltmain"
19152 ac_cpp='$CPP $CPPFLAGS'
19153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19168 # Source file extension for RC test sources.
19171 # Object file extension for compiled RC test sources.
19175 # Code to be used in simple compile tests
19176 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19178 # Code to be used in simple link tests
19179 lt_simple_link_test_code="$lt_simple_compile_test_code"
19181 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19183 # If no C compiler was specified, use CC.
19186 # Allow CC to be a program name with arguments.
19190 # Allow CC to be a program name with arguments.
19195 lt_cv_prog_compiler_c_o_RC=yes
19197 # The else clause should only fire when bootstrapping the
19198 # libtool distribution, otherwise you forgot to ship ltmain.sh
19199 # with your package, and you will get complaints that there are
19200 # no rules to generate ltmain.sh.
19201 if test -f "$ltmain"; then
19202 # See if we are running on zsh, and set the options which allow our commands through
19203 # without removal of \ escapes.
19204 if test -n "${ZSH_VERSION+set}" ; then
19205 setopt NO_GLOB_SUBST
19207 # Now quote all the things that may contain metacharacters while being
19208 # careful not to overquote the AC_SUBSTed values. We take copies of the
19209 # variables and quote the copies for generation of the libtool script.
19210 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
19211 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19212 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19213 deplibs_check_method reload_flag reload_cmds need_locks \
19214 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19215 lt_cv_sys_global_symbol_to_c_name_address \
19216 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19217 old_postinstall_cmds old_postuninstall_cmds \
19221 lt_prog_compiler_wl_RC \
19222 lt_prog_compiler_pic_RC \
19223 lt_prog_compiler_static_RC \
19224 lt_prog_compiler_no_builtin_flag_RC \
19225 export_dynamic_flag_spec_RC \
19226 thread_safe_flag_spec_RC \
19227 whole_archive_flag_spec_RC \
19228 enable_shared_with_static_runtimes_RC \
19229 old_archive_cmds_RC \
19230 old_archive_from_new_cmds_RC \
19231 predep_objects_RC \
19232 postdep_objects_RC \
19235 compiler_lib_search_path_RC \
19237 archive_expsym_cmds_RC \
19238 postinstall_cmds_RC \
19239 postuninstall_cmds_RC \
19240 old_archive_from_expsyms_cmds_RC \
19241 allow_undefined_flag_RC \
19242 no_undefined_flag_RC \
19243 export_symbols_cmds_RC \
19244 hardcode_libdir_flag_spec_RC \
19245 hardcode_libdir_flag_spec_ld_RC \
19246 hardcode_libdir_separator_RC \
19247 hardcode_automatic_RC \
19249 module_expsym_cmds_RC \
19250 lt_cv_prog_compiler_c_o_RC \
19251 exclude_expsyms_RC \
19252 include_expsyms_RC; do
19255 old_archive_cmds_RC | \
19256 old_archive_from_new_cmds_RC | \
19257 archive_cmds_RC | \
19258 archive_expsym_cmds_RC | \
19260 module_expsym_cmds_RC | \
19261 old_archive_from_expsyms_cmds_RC | \
19262 export_symbols_cmds_RC | \
19263 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19264 postinstall_cmds | postuninstall_cmds | \
19265 old_postinstall_cmds | old_postuninstall_cmds | \
19266 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19267 # Double-quote double-evaled strings.
19268 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19271 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19277 *'\$0 --fallback-echo"')
19278 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19284 cat <<__EOF__ >> "$cfgfile"
19285 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19287 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19289 # Shell to use when invoking shell scripts.
19292 # Whether or not to build shared libraries.
19293 build_libtool_libs=$enable_shared
19295 # Whether or not to build static libraries.
19296 build_old_libs=$enable_static
19298 # Whether or not to add -lc for building shared libraries.
19299 build_libtool_need_lc=$archive_cmds_need_lc_RC
19301 # Whether or not to disallow shared libs when runtime libs are static
19302 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19304 # Whether or not to optimize for fast installation.
19305 fast_install=$enable_fast_install
19308 host_alias=$host_alias
19311 # An echo program that does not interpret backslashes.
19316 AR_FLAGS=$lt_AR_FLAGS
19321 # A language-specific compiler.
19324 # Is the compiler the GNU C compiler?
19330 # The linker used to build libraries.
19333 # Whether we need hard or soft links.
19336 # A BSD-compatible nm program.
19339 # A symbol stripping program
19342 # Used to examine libraries when file_magic_cmd begins "file"
19343 MAGIC_CMD=$MAGIC_CMD
19345 # Used on cygwin: DLL creation program.
19348 # Used on cygwin: object dumper.
19351 # Used on cygwin: assembler.
19354 # The name of the directory that contains temporary libtool files.
19357 # How to create reloadable object files.
19358 reload_flag=$lt_reload_flag
19359 reload_cmds=$lt_reload_cmds
19361 # How to pass a linker flag through the compiler.
19362 wl=$lt_lt_prog_compiler_wl_RC
19364 # Object file suffix (normally "o").
19365 objext="$ac_objext"
19367 # Old archive suffix (normally "a").
19370 # Shared library suffix (normally ".so").
19373 # Executable file suffix (normally "").
19376 # Additional compiler flags for building library objects.
19377 pic_flag=$lt_lt_prog_compiler_pic_RC
19380 # What is the maximum length of a command?
19381 max_cmd_len=$lt_cv_sys_max_cmd_len
19383 # Does compiler simultaneously support -c and -o options?
19384 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19386 # Must we lock files when doing compilation ?
19387 need_locks=$lt_need_locks
19389 # Do we need the lib prefix for modules?
19390 need_lib_prefix=$need_lib_prefix
19392 # Do we need a version for libraries?
19393 need_version=$need_version
19395 # Whether dlopen is supported.
19396 dlopen_support=$enable_dlopen
19398 # Whether dlopen of programs is supported.
19399 dlopen_self=$enable_dlopen_self
19401 # Whether dlopen of statically linked programs is supported.
19402 dlopen_self_static=$enable_dlopen_self_static
19404 # Compiler flag to prevent dynamic linking.
19405 link_static_flag=$lt_lt_prog_compiler_static_RC
19407 # Compiler flag to turn off builtin functions.
19408 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19410 # Compiler flag to allow reflexive dlopens.
19411 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19413 # Compiler flag to generate shared objects directly from archives.
19414 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19416 # Compiler flag to generate thread-safe objects.
19417 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19419 # Library versioning type.
19420 version_type=$version_type
19422 # Format of library name prefix.
19423 libname_spec=$lt_libname_spec
19425 # List of archive names. First name is the real one, the rest are links.
19426 # The last name is the one that the linker finds with -lNAME.
19427 library_names_spec=$lt_library_names_spec
19429 # The coded name of the library, if different from the real name.
19430 soname_spec=$lt_soname_spec
19432 # Commands used to build and install an old-style archive.
19434 old_archive_cmds=$lt_old_archive_cmds_RC
19435 old_postinstall_cmds=$lt_old_postinstall_cmds
19436 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19438 # Create an old-style archive from a shared archive.
19439 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19441 # Create a temporary old-style archive to link instead of a shared archive.
19442 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19444 # Commands used to build and install a shared archive.
19445 archive_cmds=$lt_archive_cmds_RC
19446 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19447 postinstall_cmds=$lt_postinstall_cmds
19448 postuninstall_cmds=$lt_postuninstall_cmds
19450 # Commands used to build a loadable module (assumed same as above if empty)
19451 module_cmds=$lt_module_cmds_RC
19452 module_expsym_cmds=$lt_module_expsym_cmds_RC
19454 # Commands to strip libraries.
19455 old_striplib=$lt_old_striplib
19456 striplib=$lt_striplib
19458 # Dependencies to place before the objects being linked to create a
19460 predep_objects=$lt_predep_objects_RC
19462 # Dependencies to place after the objects being linked to create a
19464 postdep_objects=$lt_postdep_objects_RC
19466 # Dependencies to place before the objects being linked to create a
19468 predeps=$lt_predeps_RC
19470 # Dependencies to place after the objects being linked to create a
19472 postdeps=$lt_postdeps_RC
19474 # The library search path used internally by the compiler when linking
19475 # a shared library.
19476 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19478 # Method to check whether dependent libraries are shared objects.
19479 deplibs_check_method=$lt_deplibs_check_method
19481 # Command to use when deplibs_check_method == file_magic.
19482 file_magic_cmd=$lt_file_magic_cmd
19484 # Flag that allows shared libraries with undefined symbols to be built.
19485 allow_undefined_flag=$lt_allow_undefined_flag_RC
19487 # Flag that forces no undefined symbols.
19488 no_undefined_flag=$lt_no_undefined_flag_RC
19490 # Commands used to finish a libtool library installation in a directory.
19491 finish_cmds=$lt_finish_cmds
19493 # Same as above, but a single script fragment to be evaled but not shown.
19494 finish_eval=$lt_finish_eval
19496 # Take the output of nm and produce a listing of raw symbols and C names.
19497 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19499 # Transform the output of nm in a proper C declaration
19500 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19502 # Transform the output of nm in a C name address pair
19503 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19505 # This is the shared library runtime path variable.
19506 runpath_var=$runpath_var
19508 # This is the shared library path variable.
19509 shlibpath_var=$shlibpath_var
19511 # Is shlibpath searched before the hard-coded library search path?
19512 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19514 # How to hardcode a shared library path into an executable.
19515 hardcode_action=$hardcode_action_RC
19517 # Whether we should hardcode library paths into libraries.
19518 hardcode_into_libs=$hardcode_into_libs
19520 # Flag to hardcode \$libdir into a binary during linking.
19521 # This must work even if \$libdir does not exist.
19522 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19524 # If ld is used when linking, flag to hardcode \$libdir into
19525 # a binary during linking. This must work even if \$libdir does
19527 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19529 # Whether we need a single -rpath flag with a separated argument.
19530 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19532 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19533 # resulting binary.
19534 hardcode_direct=$hardcode_direct_RC
19536 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19537 # resulting binary.
19538 hardcode_minus_L=$hardcode_minus_L_RC
19540 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19541 # the resulting binary.
19542 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19544 # Set to yes if building a shared library automatically hardcodes DIR into the library
19545 # and all subsequent libraries and executables linked against it.
19546 hardcode_automatic=$hardcode_automatic_RC
19548 # Variables whose values should be saved in libtool wrapper scripts and
19549 # restored at relink time.
19550 variables_saved_for_relink="$variables_saved_for_relink"
19552 # Whether libtool must link a program against all its dependency libraries.
19553 link_all_deplibs=$link_all_deplibs_RC
19555 # Compile-time system search path for libraries
19556 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19558 # Run-time system search path for libraries
19559 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19561 # Fix the shell variable \$srcfile for the compiler.
19562 fix_srcfile_path="$fix_srcfile_path_RC"
19564 # Set to yes if exported symbols are required.
19565 always_export_symbols=$always_export_symbols_RC
19567 # The commands to list exported symbols.
19568 export_symbols_cmds=$lt_export_symbols_cmds_RC
19570 # The commands to extract the exported symbol list from a shared archive.
19571 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19573 # Symbols that should not be listed in the preloaded symbols.
19574 exclude_expsyms=$lt_exclude_expsyms_RC
19576 # Symbols that must always be exported.
19577 include_expsyms=$lt_include_expsyms_RC
19579 # ### END LIBTOOL TAG CONFIG: $tagname
19585 # If there is no Makefile yet, we rely on a make rule to execute
19586 # `config.status --recheck' to rerun these tests and create the
19587 # libtool script then.
19588 test -f Makefile && make "$ltmain"
19593 ac_cpp='$CPP $CPPFLAGS'
19594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19603 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19604 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19605 { (exit 1); exit 1; }; }
19609 # Append the new tag name to the list of available tags.
19610 if test -n "$tagname" ; then
19611 available_tags="$available_tags $tagname"
19617 # Now substitute the updated list of available tags.
19618 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19619 mv "${ofile}T" "$ofile"
19623 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19624 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19625 { (exit 1); exit 1; }; }
19631 # This can be used to rebuild libtool when needed
19632 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19634 # Always use our own libtool.
19635 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19637 # Prevent multiple expansion
19641 if test "$enable_shared" = "no"; then
19644 eval _shrext="$shrext"
19646 echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
19647 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6
19649 # Check whether --with-noexec or --without-noexec was given.
19650 if test "${with_noexec+set}" = set; then
19651 withval="$with_noexec"
19652 case $with_noexec in
19653 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
19659 with_noexec="$libexecdir/sudo_noexec$_shrext"
19661 echo "$as_me:$LINENO: result: $with_noexec" >&5
19662 echo "${ECHO_T}$with_noexec" >&6
19663 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
19665 if test "$with_devel" = "yes" -a -n "$GCC"; then
19666 CFLAGS="${CFLAGS} -Wall"
19669 # Extract the first word of "uname", so it can be a program name with args.
19670 set dummy uname; ac_word=$2
19671 echo "$as_me:$LINENO: checking for $ac_word" >&5
19672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19673 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19676 if test -n "$UNAMEPROG"; then
19677 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
19679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19680 for as_dir in $PATH
19683 test -z "$as_dir" && as_dir=.
19684 for ac_exec_ext in '' $ac_executable_extensions; do
19685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19686 ac_cv_prog_UNAMEPROG="uname"
19687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19695 UNAMEPROG=$ac_cv_prog_UNAMEPROG
19696 if test -n "$UNAMEPROG"; then
19697 echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
19698 echo "${ECHO_T}$UNAMEPROG" >&6
19700 echo "$as_me:$LINENO: result: no" >&5
19701 echo "${ECHO_T}no" >&6
19704 # Extract the first word of "tr", so it can be a program name with args.
19705 set dummy tr; ac_word=$2
19706 echo "$as_me:$LINENO: checking for $ac_word" >&5
19707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19708 if test "${ac_cv_prog_TRPROG+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 if test -n "$TRPROG"; then
19712 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
19714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19715 for as_dir in $PATH
19718 test -z "$as_dir" && as_dir=.
19719 for ac_exec_ext in '' $ac_executable_extensions; do
19720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19721 ac_cv_prog_TRPROG="tr"
19722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19730 TRPROG=$ac_cv_prog_TRPROG
19731 if test -n "$TRPROG"; then
19732 echo "$as_me:$LINENO: result: $TRPROG" >&5
19733 echo "${ECHO_T}$TRPROG" >&6
19735 echo "$as_me:$LINENO: result: no" >&5
19736 echo "${ECHO_T}no" >&6
19739 # Extract the first word of "nroff", so it can be a program name with args.
19740 set dummy nroff; ac_word=$2
19741 echo "$as_me:$LINENO: checking for $ac_word" >&5
19742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19743 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19746 if test -n "$NROFFPROG"; then
19747 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
19749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19750 for as_dir in $PATH
19753 test -z "$as_dir" && as_dir=.
19754 for ac_exec_ext in '' $ac_executable_extensions; do
19755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19756 ac_cv_prog_NROFFPROG="nroff"
19757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19765 NROFFPROG=$ac_cv_prog_NROFFPROG
19766 if test -n "$NROFFPROG"; then
19767 echo "$as_me:$LINENO: result: $NROFFPROG" >&5
19768 echo "${ECHO_T}$NROFFPROG" >&6
19770 echo "$as_me:$LINENO: result: no" >&5
19771 echo "${ECHO_T}no" >&6
19774 if test -z "$NROFFPROG"; then
19776 mansrcdir='$(srcdir)'
19779 if test -n "$sudo_cv_prev_host"; then
19780 if test "$sudo_cv_prev_host" != "$host"; then
19781 { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
19782 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
19783 { (exit 1); exit 1; }; }
19785 echo "$as_me:$LINENO: checking previous host type" >&5
19786 echo $ECHO_N "checking previous host type... $ECHO_C" >&6
19787 if test "${sudo_cv_prev_host+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19790 sudo_cv_prev_host="$host"
19793 echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
19794 echo "${ECHO_T}$sudo_cv_prev_host" >&6
19797 # this will produce no output since there is no cached value
19798 if test "${sudo_cv_prev_host+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 sudo_cv_prev_host="$host"
19806 if test -n "$host_os"; then
19807 OS=`echo $host_os | sed 's/[0-9].*//'`
19808 OSREV=`echo $host_os | sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'`
19816 # getcwd(3) opens a pipe to getpwd(1)!?!
19819 # system headers lack prototypes but gcc helps...
19820 if test -n "$GCC"; then
19821 CPPFLAGS="${CPPFLAGS} -D__USE_FIXED_PROTOTYPES__"
19824 # check for password adjunct functions (shadow passwords)
19825 if test "$CHECKSHADOW" = "true"; then
19828 for ac_func in getpwanam issecure
19830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19831 echo "$as_me:$LINENO: checking for $ac_func" >&5
19832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19833 if eval "test \"\${$as_ac_var+set}\" = set"; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19836 cat >conftest.$ac_ext <<_ACEOF
19837 #line $LINENO "configure"
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h. */
19843 /* System header to define __stub macros and hopefully few prototypes,
19844 which can conflict with char $ac_func (); below.
19845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19846 <limits.h> exists even on freestanding compilers. */
19848 # include <limits.h>
19850 # include <assert.h>
19852 /* Override any gcc2 internal prototype to avoid an error. */
19857 /* We use char because int might match the return type of a gcc2
19858 builtin and then its argument prototype would still apply. */
19860 /* The GNU C library defines this for functions which it implements
19861 to always fail with ENOSYS. Some functions are actually named
19862 something starting with __ and the normal name is an alias. */
19863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19866 char (*f) () = $ac_func;
19875 return f != $ac_func;
19880 rm -f conftest.$ac_objext conftest$ac_exeext
19881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19882 (eval $ac_link) 2>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
19886 { ac_try='test -s conftest$ac_exeext'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19892 eval "$as_ac_var=yes"
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19897 eval "$as_ac_var=no"
19899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19903 if test `eval echo '${'$as_ac_var'}'` = yes; then
19904 cat >>confdefs.h <<_ACEOF
19905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19913 CHECKSHADOW="false"
19917 # To get the crypt(3) prototype (so we pass -Wall)
19918 CPPFLAGS="${CPPFLAGS} -D__EXTENSIONS__"
19919 # AFS support needs -lucb
19920 if test "$with_AFS" = "yes"; then
19921 AFS_LIBS="-lc -lucb"
19923 test -n "$mansectsu" || mansectsu=1m
19924 test -n "$mansectform" || mansectform=4
19925 test -n "$with_rpath" || with_rpath=yes
19928 # To get all prototypes (so we pass -Wall)
19929 CPPFLAGS="${CPPFLAGS} -D_XOPEN_EXTENDED_SOURCE"
19930 cat >>confdefs.h <<\EOF
19931 #define _ALL_SOURCE 1
19934 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
19935 if test X"$with_blibpath" != X"no"; then
19936 echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
19937 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6
19938 O_LDFLAGS="$LDFLAGS"
19939 LDFLAGS="$LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
19940 cat >conftest.$ac_ext <<_ACEOF
19941 #line $LINENO "configure"
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19956 rm -f conftest.$ac_objext conftest$ac_exeext
19957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19958 (eval $ac_link) 2>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
19962 { ac_try='test -s conftest$ac_exeext'
19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19969 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
19970 blibpath="$with_blibpath"
19971 elif test -n "$GCC"; then
19972 blibpath="/usr/lib:/lib:/usr/local/lib"
19974 blibpath="/usr/lib:/lib"
19976 echo "$as_me:$LINENO: result: yes" >&5
19977 echo "${ECHO_T}yes" >&6
19980 echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19983 echo "$as_me:$LINENO: result: no" >&5
19984 echo "${ECHO_T}no" >&6
19986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19988 LDFLAGS="$O_LDFLAGS"
19991 if test "$CHECKSHADOW" = "true"; then
19992 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
19993 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
19994 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
19995 echo $ECHO_N "(cached) $ECHO_C" >&6
19997 ac_check_lib_save_LIBS=$LIBS
19999 cat >conftest.$ac_ext <<_ACEOF
20000 #line $LINENO "configure"
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20007 /* Override any gcc2 internal prototype to avoid an error. */
20011 /* We use char because int might match the return type of a gcc2
20012 builtin and then its argument prototype would still apply. */
20013 char getprpwnam ();
20022 rm -f conftest.$ac_objext conftest$ac_exeext
20023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20024 (eval $ac_link) 2>&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } &&
20028 { ac_try='test -s conftest$ac_exeext'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; }; then
20034 ac_cv_lib_sec_getprpwnam=yes
20036 echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20039 ac_cv_lib_sec_getprpwnam=no
20041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20042 LIBS=$ac_check_lib_save_LIBS
20044 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
20045 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
20046 if test $ac_cv_lib_sec_getprpwnam = yes; then
20047 cat >>confdefs.h <<\_ACEOF
20048 #define HAVE_GETPRPWNAM 1
20050 SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
20052 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
20053 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
20054 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 ac_check_lib_save_LIBS=$LIBS
20058 LIBS="-lsecurity $LIBS"
20059 cat >conftest.$ac_ext <<_ACEOF
20060 #line $LINENO "configure"
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20067 /* Override any gcc2 internal prototype to avoid an error. */
20071 /* We use char because int might match the return type of a gcc2
20072 builtin and then its argument prototype would still apply. */
20073 char getprpwnam ();
20082 rm -f conftest.$ac_objext conftest$ac_exeext
20083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20084 (eval $ac_link) 2>&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } &&
20088 { ac_try='test -s conftest$ac_exeext'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; }; then
20094 ac_cv_lib_security_getprpwnam=yes
20096 echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20099 ac_cv_lib_security_getprpwnam=no
20101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20102 LIBS=$ac_check_lib_save_LIBS
20104 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
20105 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
20106 if test $ac_cv_lib_security_getprpwnam = yes; then
20107 cat >>confdefs.h <<\_ACEOF
20108 #define HAVE_GETPRPWNAM 1
20110 SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1
20115 CHECKSHADOW="false"
20117 test -n "$mansectsu" || mansectsu=1m
20118 test -n "$mansectform" || mansectform=4
20121 # AFS support needs -lBSD
20122 if test "$with_AFS" = "yes"; then
20123 AFS_LIBS="-lc -lBSD"
20125 test -n "$mansectsu" || mansectsu=1m
20126 test -n "$mansectform" || mansectform=4
20130 cat >>confdefs.h <<\_ACEOF
20131 #define BROKEN_SYSLOG 1
20135 # Not sure if setuid binaries are safe in < 9.x
20136 if test -n "$GCC"; then
20137 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
20139 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
20143 cat >>confdefs.h <<\_ACEOF
20144 #define BROKEN_SYSLOG 1
20148 if test "$CHECKSHADOW" = "true"; then
20150 for ac_func in getspwuid
20152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20153 echo "$as_me:$LINENO: checking for $ac_func" >&5
20154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20155 if eval "test \"\${$as_ac_var+set}\" = set"; then
20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20158 cat >conftest.$ac_ext <<_ACEOF
20159 #line $LINENO "configure"
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20165 /* System header to define __stub macros and hopefully few prototypes,
20166 which can conflict with char $ac_func (); below.
20167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20168 <limits.h> exists even on freestanding compilers. */
20170 # include <limits.h>
20172 # include <assert.h>
20174 /* Override any gcc2 internal prototype to avoid an error. */
20179 /* We use char because int might match the return type of a gcc2
20180 builtin and then its argument prototype would still apply. */
20182 /* The GNU C library defines this for functions which it implements
20183 to always fail with ENOSYS. Some functions are actually named
20184 something starting with __ and the normal name is an alias. */
20185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20188 char (*f) () = $ac_func;
20197 return f != $ac_func;
20202 rm -f conftest.$ac_objext conftest$ac_exeext
20203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20204 (eval $ac_link) 2>&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } &&
20208 { ac_try='test -s conftest$ac_exeext'
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; }; then
20214 eval "$as_ac_var=yes"
20216 echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20219 eval "$as_ac_var=no"
20221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20225 if test `eval echo '${'$as_ac_var'}'` = yes; then
20226 cat >>confdefs.h <<_ACEOF
20227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20233 CHECKSHADOW="false"
20236 # DCE support (requires ANSI C compiler)
20237 if test "$with_DCE" = "yes"; then
20238 # order of libs in 9.X is important. -lc_r must be last
20239 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
20240 LIBS="${LIBS} -ldce -lM -lc_r"
20241 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
20245 if test "$CHECKSHADOW" = "true"; then
20246 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
20247 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
20248 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
20251 ac_check_lib_save_LIBS=$LIBS
20253 cat >conftest.$ac_ext <<_ACEOF
20254 #line $LINENO "configure"
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20261 /* Override any gcc2 internal prototype to avoid an error. */
20265 /* We use char because int might match the return type of a gcc2
20266 builtin and then its argument prototype would still apply. */
20267 char getprpwnam ();
20276 rm -f conftest.$ac_objext conftest$ac_exeext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20278 (eval $ac_link) 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } &&
20282 { ac_try='test -s conftest$ac_exeext'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
20288 ac_cv_lib_sec_getprpwnam=yes
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 ac_cv_lib_sec_getprpwnam=no
20295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20296 LIBS=$ac_check_lib_save_LIBS
20298 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
20299 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
20300 if test $ac_cv_lib_sec_getprpwnam = yes; then
20301 cat >>confdefs.h <<\_ACEOF
20302 #define HAVE_GETPRPWNAM 1
20304 echo "$as_me:$LINENO: checking for iscomsec in -lsec" >&5
20305 echo $ECHO_N "checking for iscomsec in -lsec... $ECHO_C" >&6
20306 if test "${ac_cv_lib_sec_iscomsec+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20309 ac_check_lib_save_LIBS=$LIBS
20311 cat >conftest.$ac_ext <<_ACEOF
20312 #line $LINENO "configure"
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20319 /* Override any gcc2 internal prototype to avoid an error. */
20323 /* We use char because int might match the return type of a gcc2
20324 builtin and then its argument prototype would still apply. */
20334 rm -f conftest.$ac_objext conftest$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336 (eval $ac_link) 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } &&
20340 { ac_try='test -s conftest$ac_exeext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 ac_cv_lib_sec_iscomsec=yes
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 ac_cv_lib_sec_iscomsec=no
20353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20354 LIBS=$ac_check_lib_save_LIBS
20356 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_iscomsec" >&5
20357 echo "${ECHO_T}$ac_cv_lib_sec_iscomsec" >&6
20358 if test $ac_cv_lib_sec_iscomsec = yes; then
20359 cat >>confdefs.h <<\_ACEOF
20360 #define HAVE_ISCOMSEC 1
20364 SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
20367 CHECKSHADOW="false"
20371 if test "$CHECKSHADOW" = "true"; then
20372 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
20373 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
20374 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 ac_check_lib_save_LIBS=$LIBS
20379 cat >conftest.$ac_ext <<_ACEOF
20380 #line $LINENO "configure"
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20387 /* Override any gcc2 internal prototype to avoid an error. */
20391 /* We use char because int might match the return type of a gcc2
20392 builtin and then its argument prototype would still apply. */
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20404 (eval $ac_link) 2>&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } &&
20408 { ac_try='test -s conftest$ac_exeext'
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ac_cv_lib_sec_getspnam=yes
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_cv_lib_sec_getspnam=no
20421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20422 LIBS=$ac_check_lib_save_LIBS
20424 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
20425 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
20426 if test $ac_cv_lib_sec_getspnam = yes; then
20427 cat >>confdefs.h <<\_ACEOF
20428 #define HAVE_GETSPNAM 1
20430 SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
20433 CHECKSHADOW="false"
20439 # ignore envariables wrt dynamic lib path
20440 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
20442 echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
20443 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6
20444 # Check whether --enable-sia or --disable-sia was given.
20445 if test "${enable_sia+set}" = set; then
20446 enableval="$enable_sia"
20447 case "$enableval" in
20448 yes) echo "$as_me:$LINENO: result: no" >&5
20449 echo "${ECHO_T}no" >&6
20451 no) echo "$as_me:$LINENO: result: yes" >&5
20452 echo "${ECHO_T}yes" >&6
20455 *) echo "$as_me:$LINENO: result: no" >&5
20456 echo "${ECHO_T}no" >&6
20457 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
20458 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
20463 echo "$as_me:$LINENO: result: no" >&5
20464 echo "${ECHO_T}no" >&6
20467 # use SIA by default, if we have it, else SecureWare
20468 # unless overridden on the command line
20469 if test "$CHECKSIA" = "true"; then
20470 echo "$as_me:$LINENO: checking for sia_ses_init" >&5
20471 echo $ECHO_N "checking for sia_ses_init... $ECHO_C" >&6
20472 if test "${ac_cv_func_sia_ses_init+set}" = set; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20475 cat >conftest.$ac_ext <<_ACEOF
20476 #line $LINENO "configure"
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20482 /* System header to define __stub macros and hopefully few prototypes,
20483 which can conflict with char sia_ses_init (); below.
20484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20485 <limits.h> exists even on freestanding compilers. */
20487 # include <limits.h>
20489 # include <assert.h>
20491 /* Override any gcc2 internal prototype to avoid an error. */
20496 /* We use char because int might match the return type of a gcc2
20497 builtin and then its argument prototype would still apply. */
20498 char sia_ses_init ();
20499 /* The GNU C library defines this for functions which it implements
20500 to always fail with ENOSYS. Some functions are actually named
20501 something starting with __ and the normal name is an alias. */
20502 #if defined (__stub_sia_ses_init) || defined (__stub___sia_ses_init)
20505 char (*f) () = sia_ses_init;
20514 return f != sia_ses_init;
20519 rm -f conftest.$ac_objext conftest$ac_exeext
20520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20521 (eval $ac_link) 2>&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } &&
20525 { ac_try='test -s conftest$ac_exeext'
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; }; then
20531 ac_cv_func_sia_ses_init=yes
20533 echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20536 ac_cv_func_sia_ses_init=no
20538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20540 echo "$as_me:$LINENO: result: $ac_cv_func_sia_ses_init" >&5
20541 echo "${ECHO_T}$ac_cv_func_sia_ses_init" >&6
20542 if test $ac_cv_func_sia_ses_init = yes; then
20543 cat >>confdefs.h <<\_ACEOF
20547 if test -n "$with_skey" -o -n "$with_opie" -o -n "$with_otp_only" -o -n "$with_long_otp_prompt" -o -n "$with_SecurID" -o -n "$with_fwtk" -o -n "$with_kerb4" -o -n "$with_kerb5" -o -n "$with_pam" -o -n "$with_AFS" -o -n "$with_DCE"; then
20548 { { echo "$as_me:$LINENO: error: \"you cannot mix SIA and other authentication schemes. You can turn off SIA support via the --disable-sia option\"" >&5
20549 echo "$as_me: error: \"you cannot mix SIA and other authentication schemes. You can turn off SIA support via the --disable-sia option\"" >&2;}
20550 { (exit 1); exit 1; }; }
20551 fi; CHECKSHADOW=false
20555 if test "$CHECKSHADOW" = "true"; then
20556 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
20557 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
20558 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 ac_check_lib_save_LIBS=$LIBS
20562 LIBS="-lsecurity $LIBS"
20563 cat >conftest.$ac_ext <<_ACEOF
20564 #line $LINENO "configure"
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20571 /* Override any gcc2 internal prototype to avoid an error. */
20575 /* We use char because int might match the return type of a gcc2
20576 builtin and then its argument prototype would still apply. */
20577 char getprpwnam ();
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20588 (eval $ac_link) 2>&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } &&
20592 { ac_try='test -s conftest$ac_exeext'
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; }; then
20598 ac_cv_lib_security_getprpwnam=yes
20600 echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20603 ac_cv_lib_security_getprpwnam=no
20605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20606 LIBS=$ac_check_lib_save_LIBS
20608 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
20609 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
20610 if test $ac_cv_lib_security_getprpwnam = yes; then
20614 CHECKSHADOW="false"
20617 if test -n "$SECUREWARE"; then
20618 cat >>confdefs.h <<\_ACEOF
20619 #define HAVE_GETPRPWNAM 1
20622 # -ldb includes bogus versions of snprintf/vsnprintf
20624 for ac_func in snprintf
20626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20627 echo "$as_me:$LINENO: checking for $ac_func" >&5
20628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20629 if eval "test \"\${$as_ac_var+set}\" = set"; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20632 cat >conftest.$ac_ext <<_ACEOF
20633 #line $LINENO "configure"
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20639 /* System header to define __stub macros and hopefully few prototypes,
20640 which can conflict with char $ac_func (); below.
20641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20642 <limits.h> exists even on freestanding compilers. */
20644 # include <limits.h>
20646 # include <assert.h>
20648 /* Override any gcc2 internal prototype to avoid an error. */
20653 /* We use char because int might match the return type of a gcc2
20654 builtin and then its argument prototype would still apply. */
20656 /* The GNU C library defines this for functions which it implements
20657 to always fail with ENOSYS. Some functions are actually named
20658 something starting with __ and the normal name is an alias. */
20659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20662 char (*f) () = $ac_func;
20671 return f != $ac_func;
20676 rm -f conftest.$ac_objext conftest$ac_exeext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20678 (eval $ac_link) 2>&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } &&
20682 { ac_try='test -s conftest$ac_exeext'
20683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20684 (eval $ac_try) 2>&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); }; }; then
20688 eval "$as_ac_var=yes"
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20693 eval "$as_ac_var=no"
20695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20699 if test `eval echo '${'$as_ac_var'}'` = yes; then
20700 cat >>confdefs.h <<_ACEOF
20701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20710 for ac_func in vsnprintf
20712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20713 echo "$as_me:$LINENO: checking for $ac_func" >&5
20714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20715 if eval "test \"\${$as_ac_var+set}\" = set"; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20718 cat >conftest.$ac_ext <<_ACEOF
20719 #line $LINENO "configure"
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h. */
20725 /* System header to define __stub macros and hopefully few prototypes,
20726 which can conflict with char $ac_func (); below.
20727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20728 <limits.h> exists even on freestanding compilers. */
20730 # include <limits.h>
20732 # include <assert.h>
20734 /* Override any gcc2 internal prototype to avoid an error. */
20739 /* We use char because int might match the return type of a gcc2
20740 builtin and then its argument prototype would still apply. */
20742 /* The GNU C library defines this for functions which it implements
20743 to always fail with ENOSYS. Some functions are actually named
20744 something starting with __ and the normal name is an alias. */
20745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20748 char (*f) () = $ac_func;
20757 return f != $ac_func;
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20764 (eval $ac_link) 2>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } &&
20768 { ac_try='test -s conftest$ac_exeext'
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; }; then
20774 eval "$as_ac_var=yes"
20776 echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20779 eval "$as_ac_var=no"
20781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20785 if test `eval echo '${'$as_ac_var'}'` = yes; then
20786 cat >>confdefs.h <<_ACEOF
20787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20795 # 4.x and higher need -ldb too...
20796 echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
20797 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6
20798 if test "${ac_cv_lib_db_dbopen+set}" = set; then
20799 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 ac_check_lib_save_LIBS=$LIBS
20803 cat >conftest.$ac_ext <<_ACEOF
20804 #line $LINENO "configure"
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20811 /* Override any gcc2 internal prototype to avoid an error. */
20815 /* We use char because int might match the return type of a gcc2
20816 builtin and then its argument prototype would still apply. */
20826 rm -f conftest.$ac_objext conftest$ac_exeext
20827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20828 (eval $ac_link) 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } &&
20832 { ac_try='test -s conftest$ac_exeext'
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; }; then
20838 ac_cv_lib_db_dbopen=yes
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20843 ac_cv_lib_db_dbopen=no
20845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20846 LIBS=$ac_check_lib_save_LIBS
20848 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
20849 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6
20850 if test $ac_cv_lib_db_dbopen = yes; then
20851 SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
20853 SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
20857 for ac_func in dispcrypt
20859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20860 echo "$as_me:$LINENO: checking for $ac_func" >&5
20861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20862 if eval "test \"\${$as_ac_var+set}\" = set"; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 cat >conftest.$ac_ext <<_ACEOF
20866 #line $LINENO "configure"
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h. */
20872 /* System header to define __stub macros and hopefully few prototypes,
20873 which can conflict with char $ac_func (); below.
20874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20875 <limits.h> exists even on freestanding compilers. */
20877 # include <limits.h>
20879 # include <assert.h>
20881 /* Override any gcc2 internal prototype to avoid an error. */
20886 /* We use char because int might match the return type of a gcc2
20887 builtin and then its argument prototype would still apply. */
20889 /* The GNU C library defines this for functions which it implements
20890 to always fail with ENOSYS. Some functions are actually named
20891 something starting with __ and the normal name is an alias. */
20892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20895 char (*f) () = $ac_func;
20904 return f != $ac_func;
20909 rm -f conftest.$ac_objext conftest$ac_exeext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20911 (eval $ac_link) 2>&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -s conftest$ac_exeext'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; }; then
20921 eval "$as_ac_var=yes"
20923 echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20926 eval "$as_ac_var=no"
20928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20932 if test `eval echo '${'$as_ac_var'}'` = yes; then
20933 cat >>confdefs.h <<_ACEOF
20934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20940 echo "$as_me:$LINENO: checking for broken /usr/include/prot.h" >&5
20941 echo $ECHO_N "checking for broken /usr/include/prot.h... $ECHO_C" >&6
20942 cat >conftest.$ac_ext <<_ACEOF
20943 #line $LINENO "configure"
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h. */
20950 #include <sys/types.h>
20951 #include <sys/security.h>
20962 rm -f conftest.$ac_objext
20963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20964 (eval $ac_compile) 2>&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } &&
20968 { ac_try='test -s conftest.$ac_objext'
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; }; then
20974 echo "$as_me:$LINENO: result: no" >&5
20975 echo "${ECHO_T}no" >&6
20977 echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20980 echo "$as_me:$LINENO: result: yes, fixing locally" >&5
20981 echo "${ECHO_T}yes, fixing locally" >&6
20982 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
20985 rm -f conftest.$ac_objext conftest.$ac_ext
20986 elif test "$CHECKSIA" = "true"; then
20990 test -n "$mansectsu" || mansectsu=8
20991 test -n "$mansectform" || mansectform=4
20994 CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
20995 if test -z "$NROFFPROG"; then
20996 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)'
20997 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
20998 if test -d /usr/share/catman/local; then
20999 mandir="/usr/share/catman/local"
21001 mandir="/usr/catman/local"
21005 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
21006 if test -d "/usr/share/man/local"; then
21007 mandir="/usr/share/man/local"
21009 mandir="/usr/man/local"
21013 # IRIX <= 4 needs -lsun
21014 if test "$OSREV" -le 4; then
21015 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
21016 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
21017 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
21018 echo $ECHO_N "(cached) $ECHO_C" >&6
21020 ac_check_lib_save_LIBS=$LIBS
21022 cat >conftest.$ac_ext <<_ACEOF
21023 #line $LINENO "configure"
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21030 /* Override any gcc2 internal prototype to avoid an error. */
21034 /* We use char because int might match the return type of a gcc2
21035 builtin and then its argument prototype would still apply. */
21045 rm -f conftest.$ac_objext conftest$ac_exeext
21046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21047 (eval $ac_link) 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } &&
21051 { ac_try='test -s conftest$ac_exeext'
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21057 ac_cv_lib_sun_getpwnam=yes
21059 echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21062 ac_cv_lib_sun_getpwnam=no
21064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21065 LIBS=$ac_check_lib_save_LIBS
21067 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
21068 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
21069 if test $ac_cv_lib_sun_getpwnam = yes; then
21070 LIBS="${LIBS} -lsun"
21074 test -n "$mansectsu" || mansectsu=1m
21075 test -n "$mansectform" || mansectform=4
21078 # Some Linux versions need to link with -lshadow
21079 if test "$CHECKSHADOW" = "true"; then
21081 for ac_func in getspnam
21083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21084 echo "$as_me:$LINENO: checking for $ac_func" >&5
21085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21086 if eval "test \"\${$as_ac_var+set}\" = set"; then
21087 echo $ECHO_N "(cached) $ECHO_C" >&6
21089 cat >conftest.$ac_ext <<_ACEOF
21090 #line $LINENO "configure"
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h. */
21096 /* System header to define __stub macros and hopefully few prototypes,
21097 which can conflict with char $ac_func (); below.
21098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21099 <limits.h> exists even on freestanding compilers. */
21101 # include <limits.h>
21103 # include <assert.h>
21105 /* Override any gcc2 internal prototype to avoid an error. */
21110 /* We use char because int might match the return type of a gcc2
21111 builtin and then its argument prototype would still apply. */
21113 /* The GNU C library defines this for functions which it implements
21114 to always fail with ENOSYS. Some functions are actually named
21115 something starting with __ and the normal name is an alias. */
21116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21119 char (*f) () = $ac_func;
21128 return f != $ac_func;
21133 rm -f conftest.$ac_objext conftest$ac_exeext
21134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21135 (eval $ac_link) 2>&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } &&
21139 { ac_try='test -s conftest$ac_exeext'
21140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21141 (eval $ac_try) 2>&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); }; }; then
21145 eval "$as_ac_var=yes"
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 eval "$as_ac_var=no"
21152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21156 if test `eval echo '${'$as_ac_var'}'` = yes; then
21157 cat >>confdefs.h <<_ACEOF
21158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21162 echo "$as_me:$LINENO: checking for getspnam in -lshadow" >&5
21163 echo $ECHO_N "checking for getspnam in -lshadow... $ECHO_C" >&6
21164 if test "${ac_cv_lib_shadow_getspnam+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21167 ac_check_lib_save_LIBS=$LIBS
21168 LIBS="-lshadow $LIBS"
21169 cat >conftest.$ac_ext <<_ACEOF
21170 #line $LINENO "configure"
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21177 /* Override any gcc2 internal prototype to avoid an error. */
21181 /* We use char because int might match the return type of a gcc2
21182 builtin and then its argument prototype would still apply. */
21192 rm -f conftest.$ac_objext conftest$ac_exeext
21193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21194 (eval $ac_link) 2>&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
21198 { ac_try='test -s conftest$ac_exeext'
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; }; then
21204 ac_cv_lib_shadow_getspnam=yes
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21209 ac_cv_lib_shadow_getspnam=no
21211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21212 LIBS=$ac_check_lib_save_LIBS
21214 echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspnam" >&5
21215 echo "${ECHO_T}$ac_cv_lib_shadow_getspnam" >&6
21216 if test $ac_cv_lib_shadow_getspnam = yes; then
21217 cat >>confdefs.h <<\_ACEOF
21218 #define HAVE_GETSPNAM 1
21220 SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
21226 CHECKSHADOW="false"
21230 cat >>confdefs.h <<\EOF
21231 #define _CONVEX_SOURCE 1
21234 if test -z "$GCC"; then
21235 CFLAGS="${CFLAGS} -D__STDC__"
21238 if test "$CHECKSHADOW" = "true"; then
21239 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
21240 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
21241 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21244 ac_check_lib_save_LIBS=$LIBS
21246 cat >conftest.$ac_ext <<_ACEOF
21247 #line $LINENO "configure"
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21254 /* Override any gcc2 internal prototype to avoid an error. */
21258 /* We use char because int might match the return type of a gcc2
21259 builtin and then its argument prototype would still apply. */
21260 char getprpwnam ();
21269 rm -f conftest.$ac_objext conftest$ac_exeext
21270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21271 (eval $ac_link) 2>&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } &&
21275 { ac_try='test -s conftest$ac_exeext'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 ac_cv_lib_sec_getprpwnam=yes
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_cv_lib_sec_getprpwnam=no
21288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21289 LIBS=$ac_check_lib_save_LIBS
21291 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
21292 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
21293 if test $ac_cv_lib_sec_getprpwnam = yes; then
21294 cat >>confdefs.h <<\_ACEOF
21295 #define HAVE_GETPRPWNAM 1
21297 SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
21300 CHECKSHADOW="false"
21305 if test "$CHECKSHADOW" = "true"; then
21306 echo "$as_me:$LINENO: checking for getauthuid in -lauth" >&5
21307 echo $ECHO_N "checking for getauthuid in -lauth... $ECHO_C" >&6
21308 if test "${ac_cv_lib_auth_getauthuid+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21311 ac_check_lib_save_LIBS=$LIBS
21312 LIBS="-lauth $LIBS"
21313 cat >conftest.$ac_ext <<_ACEOF
21314 #line $LINENO "configure"
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21321 /* Override any gcc2 internal prototype to avoid an error. */
21325 /* We use char because int might match the return type of a gcc2
21326 builtin and then its argument prototype would still apply. */
21327 char getauthuid ();
21336 rm -f conftest.$ac_objext conftest$ac_exeext
21337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21338 (eval $ac_link) 2>&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } &&
21342 { ac_try='test -s conftest$ac_exeext'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }; then
21348 ac_cv_lib_auth_getauthuid=yes
21350 echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21353 ac_cv_lib_auth_getauthuid=no
21355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21356 LIBS=$ac_check_lib_save_LIBS
21358 echo "$as_me:$LINENO: result: $ac_cv_lib_auth_getauthuid" >&5
21359 echo "${ECHO_T}$ac_cv_lib_auth_getauthuid" >&6
21360 if test $ac_cv_lib_auth_getauthuid = yes; then
21361 cat >>confdefs.h <<\_ACEOF
21362 #define HAVE_GETAUTHUID 1
21364 SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
21367 CHECKSHADOW="false"
21371 LIBS="${LIBS} -lsun -lbsd"
21372 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
21373 OSDEFS="${OSDEFS} -D_MIPS"
21374 test -n "$mansectsu" || mansectsu=1m
21375 test -n "$mansectform" || mansectform=4
21378 OSDEFS="${OSDEFS} -D_ISC"
21380 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
21381 LIBS="${LIBS} -lcrypt"
21383 if test "$CHECKSHADOW" = "true"; then
21384 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
21385 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
21386 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 ac_check_lib_save_LIBS=$LIBS
21391 cat >conftest.$ac_ext <<_ACEOF
21392 #line $LINENO "configure"
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21399 /* Override any gcc2 internal prototype to avoid an error. */
21403 /* We use char because int might match the return type of a gcc2
21404 builtin and then its argument prototype would still apply. */
21414 rm -f conftest.$ac_objext conftest$ac_exeext
21415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21416 (eval $ac_link) 2>&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
21420 { ac_try='test -s conftest$ac_exeext'
21421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422 (eval $ac_try) 2>&5
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; }; then
21426 ac_cv_lib_sec_getspnam=yes
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21431 ac_cv_lib_sec_getspnam=no
21433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21434 LIBS=$ac_check_lib_save_LIBS
21436 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
21437 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
21438 if test $ac_cv_lib_sec_getspnam = yes; then
21439 cat >>confdefs.h <<\_ACEOF
21440 #define HAVE_GETSPNAM 1
21442 SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
21445 CHECKSHADOW="false"
21447 test -n "$mansectsu" || mansectsu=1m
21448 test -n "$mansectform" || mansectform=4
21451 if test "$CHECKSHADOW" = "true"; then
21452 echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
21453 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
21454 if test "${ac_cv_lib_prot_getprpwnam_lx+set}" = set; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 ac_check_lib_save_LIBS=$LIBS
21458 LIBS="-lprot -lx $LIBS"
21459 cat >conftest.$ac_ext <<_ACEOF
21460 #line $LINENO "configure"
21463 cat confdefs.h >>conftest.$ac_ext
21464 cat >>conftest.$ac_ext <<_ACEOF
21465 /* end confdefs.h. */
21467 /* Override any gcc2 internal prototype to avoid an error. */
21471 /* We use char because int might match the return type of a gcc2
21472 builtin and then its argument prototype would still apply. */
21473 char getprpwnam ();
21482 rm -f conftest.$ac_objext conftest$ac_exeext
21483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21484 (eval $ac_link) 2>&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
21488 { ac_try='test -s conftest$ac_exeext'
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; }; then
21494 ac_cv_lib_prot_getprpwnam_lx=yes
21496 echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21499 ac_cv_lib_prot_getprpwnam_lx=no
21501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21502 LIBS=$ac_check_lib_save_LIBS
21504 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam_lx" >&5
21505 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam_lx" >&6
21506 if test $ac_cv_lib_prot_getprpwnam_lx = yes; then
21507 cat >>confdefs.h <<\_ACEOF
21508 #define HAVE_GETPRPWNAM 1
21510 SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
21513 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
21514 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
21515 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 ac_check_lib_save_LIBS=$LIBS
21520 cat >conftest.$ac_ext <<_ACEOF
21521 #line $LINENO "configure"
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h. */
21528 /* Override any gcc2 internal prototype to avoid an error. */
21532 /* We use char because int might match the return type of a gcc2
21533 builtin and then its argument prototype would still apply. */
21543 rm -f conftest.$ac_objext conftest$ac_exeext
21544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21545 (eval $ac_link) 2>&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } &&
21549 { ac_try='test -s conftest$ac_exeext'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 ac_cv_lib_gen_getspnam=yes
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21560 ac_cv_lib_gen_getspnam=no
21562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21563 LIBS=$ac_check_lib_save_LIBS
21565 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
21566 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
21567 if test $ac_cv_lib_gen_getspnam = yes; then
21568 cat >>confdefs.h <<\_ACEOF
21569 #define HAVE_GETSPNAM 1
21571 SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
21574 CHECKSHADOW="false"
21576 test -n "$mansectsu" || mansectsu=1m
21577 test -n "$mansectform" || mansectform=4
21579 m88k-motorola-sysv*)
21580 # motorolla's cc (a variant of gcc) does -O but not -O2
21581 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
21582 test -n "$mansectsu" || mansectsu=1m
21583 test -n "$mansectform" || mansectform=4
21586 if test "$CHECKSHADOW" = "true"; then
21587 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
21588 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
21589 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21592 ac_check_lib_save_LIBS=$LIBS
21594 cat >conftest.$ac_ext <<_ACEOF
21595 #line $LINENO "configure"
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h. */
21602 /* Override any gcc2 internal prototype to avoid an error. */
21606 /* We use char because int might match the return type of a gcc2
21607 builtin and then its argument prototype would still apply. */
21617 rm -f conftest.$ac_objext conftest$ac_exeext
21618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21619 (eval $ac_link) 2>&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } &&
21623 { ac_try='test -s conftest$ac_exeext'
21624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625 (eval $ac_try) 2>&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); }; }; then
21629 ac_cv_lib_sec_getspnam=yes
21631 echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_cv_lib_sec_getspnam=no
21636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21637 LIBS=$ac_check_lib_save_LIBS
21639 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
21640 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
21641 if test $ac_cv_lib_sec_getspnam = yes; then
21642 cat >>confdefs.h <<\_ACEOF
21643 #define HAVE_GETSPNAM 1
21645 SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
21648 CHECKSHADOW="false"
21650 test -n "$mansectsu" || mansectsu=1m
21651 test -n "$mansectform" || mansectform=4
21652 test -n "$with_rpath" || with_rpath=yes
21654 *-ncr-sysv4*|*-ncr-sysvr4*)
21655 echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
21656 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6
21657 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
21658 echo $ECHO_N "(cached) $ECHO_C" >&6
21660 ac_check_lib_save_LIBS=$LIBS
21662 cat >conftest.$ac_ext <<_ACEOF
21663 #line $LINENO "configure"
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h. */
21670 /* Override any gcc2 internal prototype to avoid an error. */
21674 /* We use char because int might match the return type of a gcc2
21675 builtin and then its argument prototype would still apply. */
21676 char strcasecmp ();
21685 rm -f conftest.$ac_objext conftest$ac_exeext
21686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21687 (eval $ac_link) 2>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } &&
21691 { ac_try='test -s conftest$ac_exeext'
21692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; }; then
21697 ac_cv_lib_c89_strcasecmp=yes
21699 echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 ac_cv_lib_c89_strcasecmp=no
21704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21705 LIBS=$ac_check_lib_save_LIBS
21707 echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
21708 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6
21709 if test $ac_cv_lib_c89_strcasecmp = yes; then
21710 cat >>confdefs.h <<\_ACEOF
21711 #define HAVE_STRCASECMP 1
21713 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
21716 test -n "$mansectsu" || mansectsu=1m
21717 test -n "$mansectform" || mansectform=4
21718 test -n "$with_rpath" || with_rpath=yes
21720 *-ccur-sysv4*|*-ccur-sysvr4*)
21721 LIBS="${LIBS} -lgen"
21722 SUDO_LIBS="${SUDO_LIBS} -lgen"
21723 test -n "$mansectsu" || mansectsu=1m
21724 test -n "$mansectform" || mansectform=4
21725 test -n "$with_rpath" || with_rpath=yes
21729 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
21730 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
21732 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
21733 echo "$as_me: using shlicc as CC" >&6;}
21734 ac_cv_prog_CC=shlicc
21735 CC="$ac_cv_prog_CC"
21741 # FreeBSD has a real setreuid(2) starting with 2.1 and
21742 # backported to 2.0.5. We just take 2.1 and above...
21743 case "`echo $host_os | sed 's/^freebsd\([0-9\.]*\).*$/\1/'`" in
21748 if test "$with_logincap" = "yes"; then
21749 SUDO_LIBS="${SUDO_LIBS} -lutil"
21751 if test "$with_skey" = "yes"; then
21752 SUDO_LIBS="${SUDO_LIBS} -lmd"
21754 if test "$CHECKSHADOW" = "true"; then
21755 CHECKSHADOW="false"
21760 if test "$CHECKSHADOW" = "true"; then
21761 CHECKSHADOW="false"
21765 # NetBSD has a real setreuid(2) starting with 1.3.2
21766 case "`echo $host_os | sed 's/^netbsd\([0-9\.]*\).*$/\1/'`" in
21767 0.9*|1.012*|1.3|1.3.1)
21771 if test "$CHECKSHADOW" = "true"; then
21772 CHECKSHADOW="false"
21776 if test "$CHECKSHADOW" = "true"; then
21777 CHECKSHADOW="false"
21782 if test "$CHECKSHADOW" = "true"; then
21783 CHECKSHADOW="false"
21787 # lockf() on is broken on the NeXT -- use flock instead
21788 ac_cv_func_lockf=no
21789 ac_cv_func_flock=yes
21792 test -n "$mansectsu" || mansectsu=1m
21793 test -n "$mansectform" || mansectform=4
21794 test -n "$with_rpath" || with_rpath=yes
21797 test -n "$mansectsu" || mansectsu=1m
21798 test -n "$mansectform" || mansectform=4
21802 test -n "$mansectsu" || mansectsu=8
21803 test -n "$mansectform" || mansectform=5
21805 if test -n "$with_libpath"; then
21806 for i in ${with_libpath}; do
21808 if test X"$with_rpath" = X"yes"; then
21809 LDFLAGS="${LDFLAGS} -L$i -R$i"
21811 LDFLAGS="${LDFLAGS} -L$i"
21813 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21814 blibpath_add="${blibpath_add}:$i"
21819 if test -n "$with_libraries"; then
21820 for i in ${with_libraries}; do
21827 LIBS="${LIBS} ${i}"
21831 if test "$CHECKSHADOW" = "true"; then
21833 for ac_func in getspnam
21835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21836 echo "$as_me:$LINENO: checking for $ac_func" >&5
21837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21838 if eval "test \"\${$as_ac_var+set}\" = set"; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 cat >conftest.$ac_ext <<_ACEOF
21842 #line $LINENO "configure"
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h. */
21848 /* System header to define __stub macros and hopefully few prototypes,
21849 which can conflict with char $ac_func (); below.
21850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21851 <limits.h> exists even on freestanding compilers. */
21853 # include <limits.h>
21855 # include <assert.h>
21857 /* Override any gcc2 internal prototype to avoid an error. */
21862 /* We use char because int might match the return type of a gcc2
21863 builtin and then its argument prototype would still apply. */
21865 /* The GNU C library defines this for functions which it implements
21866 to always fail with ENOSYS. Some functions are actually named
21867 something starting with __ and the normal name is an alias. */
21868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21871 char (*f) () = $ac_func;
21880 return f != $ac_func;
21885 rm -f conftest.$ac_objext conftest$ac_exeext
21886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21887 (eval $ac_link) 2>&5
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); } &&
21891 { ac_try='test -s conftest$ac_exeext'
21892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893 (eval $ac_try) 2>&5
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; }; then
21897 eval "$as_ac_var=yes"
21899 echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21902 eval "$as_ac_var=no"
21904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21908 if test `eval echo '${'$as_ac_var'}'` = yes; then
21909 cat >>confdefs.h <<_ACEOF
21910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21912 CHECKSHADOW="false"
21914 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
21915 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
21916 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
21917 echo $ECHO_N "(cached) $ECHO_C" >&6
21919 ac_check_lib_save_LIBS=$LIBS
21921 cat >conftest.$ac_ext <<_ACEOF
21922 #line $LINENO "configure"
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21929 /* Override any gcc2 internal prototype to avoid an error. */
21933 /* We use char because int might match the return type of a gcc2
21934 builtin and then its argument prototype would still apply. */
21944 rm -f conftest.$ac_objext conftest$ac_exeext
21945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21946 (eval $ac_link) 2>&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); } &&
21950 { ac_try='test -s conftest$ac_exeext'
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; }; then
21956 ac_cv_lib_gen_getspnam=yes
21958 echo "$as_me: failed program was:" >&5
21959 sed 's/^/| /' conftest.$ac_ext >&5
21961 ac_cv_lib_gen_getspnam=no
21963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21964 LIBS=$ac_check_lib_save_LIBS
21966 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
21967 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
21968 if test $ac_cv_lib_gen_getspnam = yes; then
21969 cat >>confdefs.h <<\_ACEOF
21970 #define HAVE_GETSPNAM 1
21972 SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
21979 if test "$CHECKSHADOW" = "true"; then
21980 echo "$as_me:$LINENO: checking for getprpwnam" >&5
21981 echo $ECHO_N "checking for getprpwnam... $ECHO_C" >&6
21982 if test "${ac_cv_func_getprpwnam+set}" = set; then
21983 echo $ECHO_N "(cached) $ECHO_C" >&6
21985 cat >conftest.$ac_ext <<_ACEOF
21986 #line $LINENO "configure"
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h. */
21992 /* System header to define __stub macros and hopefully few prototypes,
21993 which can conflict with char getprpwnam (); below.
21994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21995 <limits.h> exists even on freestanding compilers. */
21997 # include <limits.h>
21999 # include <assert.h>
22001 /* Override any gcc2 internal prototype to avoid an error. */
22006 /* We use char because int might match the return type of a gcc2
22007 builtin and then its argument prototype would still apply. */
22008 char getprpwnam ();
22009 /* The GNU C library defines this for functions which it implements
22010 to always fail with ENOSYS. Some functions are actually named
22011 something starting with __ and the normal name is an alias. */
22012 #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
22015 char (*f) () = getprpwnam;
22024 return f != getprpwnam;
22029 rm -f conftest.$ac_objext conftest$ac_exeext
22030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22031 (eval $ac_link) 2>&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try='test -s conftest$ac_exeext'
22036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037 (eval $ac_try) 2>&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; }; then
22041 ac_cv_func_getprpwnam=yes
22043 echo "$as_me: failed program was:" >&5
22044 sed 's/^/| /' conftest.$ac_ext >&5
22046 ac_cv_func_getprpwnam=no
22048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22050 echo "$as_me:$LINENO: result: $ac_cv_func_getprpwnam" >&5
22051 echo "${ECHO_T}$ac_cv_func_getprpwnam" >&6
22052 if test $ac_cv_func_getprpwnam = yes; then
22053 cat >>confdefs.h <<\_ACEOF
22054 #define HAVE_GETPRPWNAM 1
22056 CHECKSHADOW="false"; SECUREWARE=1, echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
22057 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
22058 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 ac_check_lib_save_LIBS=$LIBS
22063 cat >conftest.$ac_ext <<_ACEOF
22064 #line $LINENO "configure"
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22071 /* Override any gcc2 internal prototype to avoid an error. */
22075 /* We use char because int might match the return type of a gcc2
22076 builtin and then its argument prototype would still apply. */
22077 char getprpwnam ();
22086 rm -f conftest.$ac_objext conftest$ac_exeext
22087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22088 (eval $ac_link) 2>&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } &&
22092 { ac_try='test -s conftest$ac_exeext'
22093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094 (eval $ac_try) 2>&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; }; then
22098 ac_cv_lib_sec_getprpwnam=yes
22100 echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22103 ac_cv_lib_sec_getprpwnam=no
22105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22106 LIBS=$ac_check_lib_save_LIBS
22108 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
22109 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
22110 if test $ac_cv_lib_sec_getprpwnam = yes; then
22111 cat >>confdefs.h <<\_ACEOF
22112 #define HAVE_GETPRPWNAM 1
22114 CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
22116 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
22117 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
22118 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
22119 echo $ECHO_N "(cached) $ECHO_C" >&6
22121 ac_check_lib_save_LIBS=$LIBS
22122 LIBS="-lsecurity $LIBS"
22123 cat >conftest.$ac_ext <<_ACEOF
22124 #line $LINENO "configure"
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h. */
22131 /* Override any gcc2 internal prototype to avoid an error. */
22135 /* We use char because int might match the return type of a gcc2
22136 builtin and then its argument prototype would still apply. */
22137 char getprpwnam ();
22146 rm -f conftest.$ac_objext conftest$ac_exeext
22147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22148 (eval $ac_link) 2>&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); } &&
22152 { ac_try='test -s conftest$ac_exeext'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; }; then
22158 ac_cv_lib_security_getprpwnam=yes
22160 echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22163 ac_cv_lib_security_getprpwnam=no
22165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22166 LIBS=$ac_check_lib_save_LIBS
22168 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
22169 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
22170 if test $ac_cv_lib_security_getprpwnam = yes; then
22171 cat >>confdefs.h <<\_ACEOF
22172 #define HAVE_GETPRPWNAM 1
22174 CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
22176 echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
22177 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
22178 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
22179 echo $ECHO_N "(cached) $ECHO_C" >&6
22181 ac_check_lib_save_LIBS=$LIBS
22182 LIBS="-lprot $LIBS"
22183 cat >conftest.$ac_ext <<_ACEOF
22184 #line $LINENO "configure"
22187 cat confdefs.h >>conftest.$ac_ext
22188 cat >>conftest.$ac_ext <<_ACEOF
22189 /* end confdefs.h. */
22191 /* Override any gcc2 internal prototype to avoid an error. */
22195 /* We use char because int might match the return type of a gcc2
22196 builtin and then its argument prototype would still apply. */
22197 char getprpwnam ();
22206 rm -f conftest.$ac_objext conftest$ac_exeext
22207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22208 (eval $ac_link) 2>&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } &&
22212 { ac_try='test -s conftest$ac_exeext'
22213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22214 (eval $ac_try) 2>&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); }; }; then
22218 ac_cv_lib_prot_getprpwnam=yes
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22223 ac_cv_lib_prot_getprpwnam=no
22225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22226 LIBS=$ac_check_lib_save_LIBS
22228 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
22229 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
22230 if test $ac_cv_lib_prot_getprpwnam = yes; then
22231 cat >>confdefs.h <<\_ACEOF
22232 #define HAVE_GETPRPWNAM 1
22234 CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
22245 if test $ac_cv_c_compiler_gnu = yes; then
22246 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
22247 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
22248 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
22249 echo $ECHO_N "(cached) $ECHO_C" >&6
22251 ac_pattern="Autoconf.*'x'"
22252 cat >conftest.$ac_ext <<_ACEOF
22253 #line $LINENO "configure"
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22263 $EGREP "$ac_pattern" >/dev/null 2>&1; then
22264 ac_cv_prog_gcc_traditional=yes
22266 ac_cv_prog_gcc_traditional=no
22271 if test $ac_cv_prog_gcc_traditional = no; then
22272 cat >conftest.$ac_ext <<_ACEOF
22273 #line $LINENO "configure"
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22279 #include <termio.h>
22282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22283 $EGREP "$ac_pattern" >/dev/null 2>&1; then
22284 ac_cv_prog_gcc_traditional=yes
22290 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22291 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
22292 if test $ac_cv_prog_gcc_traditional = yes; then
22293 CC="$CC -traditional"
22297 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22298 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22299 if test "${ac_cv_c_const+set}" = set; then
22300 echo $ECHO_N "(cached) $ECHO_C" >&6
22302 cat >conftest.$ac_ext <<_ACEOF
22303 #line $LINENO "configure"
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22313 /* FIXME: Include the comments suggested by Paul. */
22314 #ifndef __cplusplus
22315 /* Ultrix mips cc rejects this. */
22316 typedef int charset[2];
22318 /* SunOS 4.1.1 cc rejects this. */
22319 char const *const *ccp;
22321 /* NEC SVR4.0.2 mips cc rejects this. */
22322 struct point {int x, y;};
22323 static struct point const zero = {0,0};
22324 /* AIX XL C 1.02.0.0 rejects this.
22325 It does not let you subtract one const X* pointer from another in
22326 an arm of an if-expression whose if-part is not a constant
22328 const char *g = "string";
22329 ccp = &g + (g ? g-g : 0);
22330 /* HPUX 7.0 cc rejects these. */
22333 ccp = (char const *const *) p;
22334 { /* SCO 3.2v4 cc rejects this. */
22336 char const *s = 0 ? (char *) 0 : (char const *) 0;
22340 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22341 int x[] = {25, 17};
22342 const int *foo = &x[0];
22345 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22346 typedef const int *iptr;
22350 { /* AIX XL C 1.02.0.0 rejects this saying
22351 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22352 struct s { int j; const int *ap[3]; };
22353 struct s *b; b->j = 5;
22355 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22356 const int foo = 10;
22364 rm -f conftest.$ac_objext
22365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22366 (eval $ac_compile) 2>&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } &&
22370 { ac_try='test -s conftest.$ac_objext'
22371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22372 (eval $ac_try) 2>&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); }; }; then
22378 echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22383 rm -f conftest.$ac_objext conftest.$ac_ext
22385 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22386 echo "${ECHO_T}$ac_cv_c_const" >&6
22387 if test $ac_cv_c_const = no; then
22389 cat >>confdefs.h <<\_ACEOF
22395 echo "$as_me:$LINENO: checking for working volatile" >&5
22396 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
22397 if test "${ac_cv_c_volatile+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 cat >conftest.$ac_ext <<_ACEOF
22401 #line $LINENO "configure"
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h. */
22418 rm -f conftest.$ac_objext
22419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22420 (eval $ac_compile) 2>&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); } &&
22424 { ac_try='test -s conftest.$ac_objext'
22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; }; then
22430 ac_cv_c_volatile=yes
22432 echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22435 ac_cv_c_volatile=no
22437 rm -f conftest.$ac_objext conftest.$ac_ext
22439 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
22440 echo "${ECHO_T}$ac_cv_c_volatile" >&6
22441 if test $ac_cv_c_volatile = no; then
22443 cat >>confdefs.h <<\_ACEOF
22449 for ac_prog in 'bison -y' byacc
22451 # Extract the first word of "$ac_prog", so it can be a program name with args.
22452 set dummy $ac_prog; ac_word=$2
22453 echo "$as_me:$LINENO: checking for $ac_word" >&5
22454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22455 if test "${ac_cv_prog_YACC+set}" = set; then
22456 echo $ECHO_N "(cached) $ECHO_C" >&6
22458 if test -n "$YACC"; then
22459 ac_cv_prog_YACC="$YACC" # Let the user override the test.
22461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22462 for as_dir in $PATH
22465 test -z "$as_dir" && as_dir=.
22466 for ac_exec_ext in '' $ac_executable_extensions; do
22467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22468 ac_cv_prog_YACC="$ac_prog"
22469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22477 YACC=$ac_cv_prog_YACC
22478 if test -n "$YACC"; then
22479 echo "$as_me:$LINENO: result: $YACC" >&5
22480 echo "${ECHO_T}$YACC" >&6
22482 echo "$as_me:$LINENO: result: no" >&5
22483 echo "${ECHO_T}no" >&6
22486 test -n "$YACC" && break
22488 test -n "$YACC" || YACC="yacc"
22490 echo "$as_me:$LINENO: checking for mv" >&5
22491 echo $ECHO_N "checking for mv... $ECHO_C" >&6
22492 if test -f "/usr/bin/mv"; then
22493 echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
22494 echo "${ECHO_T}/usr/bin/mv" >&6
22495 cat >>confdefs.h <<\EOF
22496 #define _PATH_MV "/usr/bin/mv"
22499 elif test -f "/bin/mv"; then
22500 echo "$as_me:$LINENO: result: /bin/mv" >&5
22501 echo "${ECHO_T}/bin/mv" >&6
22502 cat >>confdefs.h <<\EOF
22503 #define _PATH_MV "/bin/mv"
22506 elif test -f "/usr/ucb/mv"; then
22507 echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
22508 echo "${ECHO_T}/usr/ucb/mv" >&6
22509 cat >>confdefs.h <<\EOF
22510 #define _PATH_MV "/usr/ucb/mv"
22513 elif test -f "/usr/sbin/mv"; then
22514 echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
22515 echo "${ECHO_T}/usr/sbin/mv" >&6
22516 cat >>confdefs.h <<\EOF
22517 #define _PATH_MV "/usr/sbin/mv"
22521 echo "$as_me:$LINENO: result: not found" >&5
22522 echo "${ECHO_T}not found" >&6
22525 echo "$as_me:$LINENO: checking for bourne shell" >&5
22526 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6
22527 if test -f "/bin/sh"; then
22528 echo "$as_me:$LINENO: result: /bin/sh" >&5
22529 echo "${ECHO_T}/bin/sh" >&6
22530 cat >>confdefs.h <<\EOF
22531 #define _PATH_BSHELL "/bin/sh"
22534 elif test -f "/usr/bin/sh"; then
22535 echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
22536 echo "${ECHO_T}/usr/bin/sh" >&6
22537 cat >>confdefs.h <<\EOF
22538 #define _PATH_BSHELL "/usr/bin/sh"
22541 elif test -f "/sbin/sh"; then
22542 echo "$as_me:$LINENO: result: /sbin/sh" >&5
22543 echo "${ECHO_T}/sbin/sh" >&6
22544 cat >>confdefs.h <<\EOF
22545 #define _PATH_BSHELL "/sbin/sh"
22548 elif test -f "/usr/sbin/sh"; then
22549 echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
22550 echo "${ECHO_T}/usr/sbin/sh" >&6
22551 cat >>confdefs.h <<\EOF
22552 #define _PATH_BSHELL "/usr/sbin/sh"
22555 elif test -f "/bin/ksh"; then
22556 echo "$as_me:$LINENO: result: /bin/ksh" >&5
22557 echo "${ECHO_T}/bin/ksh" >&6
22558 cat >>confdefs.h <<\EOF
22559 #define _PATH_BSHELL "/bin/ksh"
22562 elif test -f "/usr/bin/ksh"; then
22563 echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
22564 echo "${ECHO_T}/usr/bin/ksh" >&6
22565 cat >>confdefs.h <<\EOF
22566 #define _PATH_BSHELL "/usr/bin/ksh"
22569 elif test -f "/bin/bash"; then
22570 echo "$as_me:$LINENO: result: /bin/bash" >&5
22571 echo "${ECHO_T}/bin/bash" >&6
22572 cat >>confdefs.h <<\EOF
22573 #define _PATH_BSHELL "/bin/bash"
22576 elif test -f "/usr/bin/bash"; then
22577 echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
22578 echo "${ECHO_T}/usr/bin/bash" >&6
22579 cat >>confdefs.h <<\EOF
22580 #define _PATH_BSHELL "/usr/bin/bash"
22584 echo "$as_me:$LINENO: result: not found" >&5
22585 echo "${ECHO_T}not found" >&6
22588 if test -z "$with_sendmail"; then
22589 echo "$as_me:$LINENO: checking for sendmail" >&5
22590 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6
22591 if test -f "/usr/sbin/sendmail"; then
22592 echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
22593 echo "${ECHO_T}/usr/sbin/sendmail" >&6
22594 cat >>confdefs.h <<\EOF
22595 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
22598 elif test -f "/usr/lib/sendmail"; then
22599 echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
22600 echo "${ECHO_T}/usr/lib/sendmail" >&6
22601 cat >>confdefs.h <<\EOF
22602 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
22605 elif test -f "/usr/etc/sendmail"; then
22606 echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
22607 echo "${ECHO_T}/usr/etc/sendmail" >&6
22608 cat >>confdefs.h <<\EOF
22609 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
22612 elif test -f "/usr/ucblib/sendmail"; then
22613 echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
22614 echo "${ECHO_T}/usr/ucblib/sendmail" >&6
22615 cat >>confdefs.h <<\EOF
22616 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
22619 elif test -f "/usr/local/lib/sendmail"; then
22620 echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
22621 echo "${ECHO_T}/usr/local/lib/sendmail" >&6
22622 cat >>confdefs.h <<\EOF
22623 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
22626 elif test -f "/usr/local/bin/sendmail"; then
22627 echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
22628 echo "${ECHO_T}/usr/local/bin/sendmail" >&6
22629 cat >>confdefs.h <<\EOF
22630 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
22634 echo "$as_me:$LINENO: result: not found" >&5
22635 echo "${ECHO_T}not found" >&6
22639 if test -z "$with_editor"; then
22640 echo "$as_me:$LINENO: checking for vi" >&5
22641 echo $ECHO_N "checking for vi... $ECHO_C" >&6
22642 if test -f "/usr/bin/vi"; then
22643 echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
22644 echo "${ECHO_T}/usr/bin/vi" >&6
22645 cat >>confdefs.h <<\EOF
22646 #define _PATH_VI "/usr/bin/vi"
22649 elif test -f "/usr/ucb/vi"; then
22650 echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
22651 echo "${ECHO_T}/usr/ucb/vi" >&6
22652 cat >>confdefs.h <<\EOF
22653 #define _PATH_VI "/usr/ucb/vi"
22656 elif test -f "/usr/bsd/vi"; then
22657 echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
22658 echo "${ECHO_T}/usr/bsd/vi" >&6
22659 cat >>confdefs.h <<\EOF
22660 #define _PATH_VI "/usr/bsd/vi"
22663 elif test -f "/bin/vi"; then
22664 echo "$as_me:$LINENO: result: /bin/vi" >&5
22665 echo "${ECHO_T}/bin/vi" >&6
22666 cat >>confdefs.h <<\EOF
22667 #define _PATH_VI "/bin/vi"
22670 elif test -f "/usr/local/bin/vi"; then
22671 echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
22672 echo "${ECHO_T}/usr/local/bin/vi" >&6
22673 cat >>confdefs.h <<\EOF
22674 #define _PATH_VI "/usr/local/bin/vi"
22678 echo "$as_me:$LINENO: result: not found" >&5
22679 echo "${ECHO_T}not found" >&6
22683 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22684 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
22685 if test "${ac_cv_header_stdc+set}" = set; then
22686 echo $ECHO_N "(cached) $ECHO_C" >&6
22688 cat >conftest.$ac_ext <<_ACEOF
22689 #line $LINENO "configure"
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 #include <stdlib.h>
22696 #include <stdarg.h>
22697 #include <string.h>
22708 rm -f conftest.$ac_objext
22709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22710 (eval $ac_compile) 2>&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } &&
22714 { ac_try='test -s conftest.$ac_objext'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 ac_cv_header_stdc=yes
22722 echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22725 ac_cv_header_stdc=no
22727 rm -f conftest.$ac_objext conftest.$ac_ext
22729 if test $ac_cv_header_stdc = yes; then
22730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22731 cat >conftest.$ac_ext <<_ACEOF
22732 #line $LINENO "configure"
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22738 #include <string.h>
22741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22742 $EGREP "memchr" >/dev/null 2>&1; then
22745 ac_cv_header_stdc=no
22751 if test $ac_cv_header_stdc = yes; then
22752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22753 cat >conftest.$ac_ext <<_ACEOF
22754 #line $LINENO "configure"
22757 cat confdefs.h >>conftest.$ac_ext
22758 cat >>conftest.$ac_ext <<_ACEOF
22759 /* end confdefs.h. */
22760 #include <stdlib.h>
22763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22764 $EGREP "free" >/dev/null 2>&1; then
22767 ac_cv_header_stdc=no
22773 if test $ac_cv_header_stdc = yes; then
22774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22775 if test "$cross_compiling" = yes; then
22778 cat >conftest.$ac_ext <<_ACEOF
22779 #line $LINENO "configure"
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22786 #if ((' ' & 0x0FF) == 0x020)
22787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22790 # define ISLOWER(c) \
22791 (('a' <= (c) && (c) <= 'i') \
22792 || ('j' <= (c) && (c) <= 'r') \
22793 || ('s' <= (c) && (c) <= 'z'))
22794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22802 for (i = 0; i < 256; i++)
22803 if (XOR (islower (i), ISLOWER (i))
22804 || toupper (i) != TOUPPER (i))
22809 rm -f conftest$ac_exeext
22810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22811 (eval $ac_link) 2>&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; }; then
22822 echo "$as_me: program exited with status $ac_status" >&5
22823 echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22826 ( exit $ac_status )
22827 ac_cv_header_stdc=no
22829 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22833 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22834 echo "${ECHO_T}$ac_cv_header_stdc" >&6
22835 if test $ac_cv_header_stdc = yes; then
22837 cat >>confdefs.h <<\_ACEOF
22838 #define STDC_HEADERS 1
22848 ac_header_dirent=no
22849 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22850 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22851 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22852 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22856 cat >conftest.$ac_ext <<_ACEOF
22857 #line $LINENO "configure"
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22863 #include <sys/types.h>
22875 rm -f conftest.$ac_objext
22876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22877 (eval $ac_compile) 2>&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); } &&
22881 { ac_try='test -s conftest.$ac_objext'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; }; then
22887 eval "$as_ac_Header=yes"
22889 echo "$as_me: failed program was:" >&5
22890 sed 's/^/| /' conftest.$ac_ext >&5
22892 eval "$as_ac_Header=no"
22894 rm -f conftest.$ac_objext conftest.$ac_ext
22896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22899 cat >>confdefs.h <<_ACEOF
22900 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22903 ac_header_dirent=$ac_hdr; break
22907 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22908 if test $ac_header_dirent = dirent.h; then
22909 echo "$as_me:$LINENO: checking for library containing opendir" >&5
22910 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22911 if test "${ac_cv_search_opendir+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22914 ac_func_search_save_LIBS=$LIBS
22915 ac_cv_search_opendir=no
22916 cat >conftest.$ac_ext <<_ACEOF
22917 #line $LINENO "configure"
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h. */
22924 /* Override any gcc2 internal prototype to avoid an error. */
22928 /* We use char because int might match the return type of a gcc2
22929 builtin and then its argument prototype would still apply. */
22939 rm -f conftest.$ac_objext conftest$ac_exeext
22940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22941 (eval $ac_link) 2>&5
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); } &&
22945 { ac_try='test -s conftest$ac_exeext'
22946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947 (eval $ac_try) 2>&5
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; }; then
22951 ac_cv_search_opendir="none required"
22953 echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22958 if test "$ac_cv_search_opendir" = no; then
22959 for ac_lib in dir; do
22960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22961 cat >conftest.$ac_ext <<_ACEOF
22962 #line $LINENO "configure"
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h. */
22969 /* Override any gcc2 internal prototype to avoid an error. */
22973 /* We use char because int might match the return type of a gcc2
22974 builtin and then its argument prototype would still apply. */
22984 rm -f conftest.$ac_objext conftest$ac_exeext
22985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22986 (eval $ac_link) 2>&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } &&
22990 { ac_try='test -s conftest$ac_exeext'
22991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992 (eval $ac_try) 2>&5
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }; }; then
22996 ac_cv_search_opendir="-l$ac_lib"
22999 echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23006 LIBS=$ac_func_search_save_LIBS
23008 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23009 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23010 if test "$ac_cv_search_opendir" != no; then
23011 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23016 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23017 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23018 if test "${ac_cv_search_opendir+set}" = set; then
23019 echo $ECHO_N "(cached) $ECHO_C" >&6
23021 ac_func_search_save_LIBS=$LIBS
23022 ac_cv_search_opendir=no
23023 cat >conftest.$ac_ext <<_ACEOF
23024 #line $LINENO "configure"
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23031 /* Override any gcc2 internal prototype to avoid an error. */
23035 /* We use char because int might match the return type of a gcc2
23036 builtin and then its argument prototype would still apply. */
23046 rm -f conftest.$ac_objext conftest$ac_exeext
23047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23048 (eval $ac_link) 2>&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } &&
23052 { ac_try='test -s conftest$ac_exeext'
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; }; then
23058 ac_cv_search_opendir="none required"
23060 echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23065 if test "$ac_cv_search_opendir" = no; then
23066 for ac_lib in x; do
23067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23068 cat >conftest.$ac_ext <<_ACEOF
23069 #line $LINENO "configure"
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h. */
23076 /* Override any gcc2 internal prototype to avoid an error. */
23080 /* We use char because int might match the return type of a gcc2
23081 builtin and then its argument prototype would still apply. */
23091 rm -f conftest.$ac_objext conftest$ac_exeext
23092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23093 (eval $ac_link) 2>&5
23095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); } &&
23097 { ac_try='test -s conftest$ac_exeext'
23098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23099 (eval $ac_try) 2>&5
23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); }; }; then
23103 ac_cv_search_opendir="-l$ac_lib"
23106 echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23113 LIBS=$ac_func_search_save_LIBS
23115 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23116 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23117 if test "$ac_cv_search_opendir" != no; then
23118 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23131 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
23133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23135 echo "$as_me:$LINENO: checking for $ac_header" >&5
23136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23138 echo $ECHO_N "(cached) $ECHO_C" >&6
23140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23143 # Is the header compilable?
23144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23146 cat >conftest.$ac_ext <<_ACEOF
23147 #line $LINENO "configure"
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h. */
23153 $ac_includes_default
23154 #include <$ac_header>
23156 rm -f conftest.$ac_objext
23157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23158 (eval $ac_compile) 2>&5
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); } &&
23162 { ac_try='test -s conftest.$ac_objext'
23163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164 (eval $ac_try) 2>&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); }; }; then
23168 ac_header_compiler=yes
23170 echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23173 ac_header_compiler=no
23175 rm -f conftest.$ac_objext conftest.$ac_ext
23176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23177 echo "${ECHO_T}$ac_header_compiler" >&6
23179 # Is the header present?
23180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23182 cat >conftest.$ac_ext <<_ACEOF
23183 #line $LINENO "configure"
23186 cat confdefs.h >>conftest.$ac_ext
23187 cat >>conftest.$ac_ext <<_ACEOF
23188 /* end confdefs.h. */
23189 #include <$ac_header>
23191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23194 grep -v '^ *+' conftest.er1 >conftest.err
23196 cat conftest.err >&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); } >/dev/null; then
23199 if test -s conftest.err; then
23200 ac_cpp_err=$ac_c_preproc_warn_flag
23207 if test -z "$ac_cpp_err"; then
23208 ac_header_preproc=yes
23210 echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23213 ac_header_preproc=no
23215 rm -f conftest.err conftest.$ac_ext
23216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23217 echo "${ECHO_T}$ac_header_preproc" >&6
23219 # So? What about this header?
23220 case $ac_header_compiler:$ac_header_preproc in
23222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23228 ## ------------------------------------ ##
23229 ## Report this to bug-autoconf@gnu.org. ##
23230 ## ------------------------------------ ##
23233 sed "s/^/$as_me: WARNING: /" >&2
23236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23244 ## ------------------------------------ ##
23245 ## Report this to bug-autoconf@gnu.org. ##
23246 ## ------------------------------------ ##
23249 sed "s/^/$as_me: WARNING: /" >&2
23252 echo "$as_me:$LINENO: checking for $ac_header" >&5
23253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23255 echo $ECHO_N "(cached) $ECHO_C" >&6
23257 eval "$as_ac_Header=$ac_header_preproc"
23259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23264 cat >>confdefs.h <<_ACEOF
23265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23273 for ac_header in err.h
23275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23277 echo "$as_me:$LINENO: checking for $ac_header" >&5
23278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23280 echo $ECHO_N "(cached) $ECHO_C" >&6
23282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23285 # Is the header compilable?
23286 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23288 cat >conftest.$ac_ext <<_ACEOF
23289 #line $LINENO "configure"
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h. */
23295 $ac_includes_default
23296 #include <$ac_header>
23298 rm -f conftest.$ac_objext
23299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23300 (eval $ac_compile) 2>&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } &&
23304 { ac_try='test -s conftest.$ac_objext'
23305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306 (eval $ac_try) 2>&5
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); }; }; then
23310 ac_header_compiler=yes
23312 echo "$as_me: failed program was:" >&5
23313 sed 's/^/| /' conftest.$ac_ext >&5
23315 ac_header_compiler=no
23317 rm -f conftest.$ac_objext conftest.$ac_ext
23318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23319 echo "${ECHO_T}$ac_header_compiler" >&6
23321 # Is the header present?
23322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23324 cat >conftest.$ac_ext <<_ACEOF
23325 #line $LINENO "configure"
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h. */
23331 #include <$ac_header>
23333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23336 grep -v '^ *+' conftest.er1 >conftest.err
23338 cat conftest.err >&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } >/dev/null; then
23341 if test -s conftest.err; then
23342 ac_cpp_err=$ac_c_preproc_warn_flag
23349 if test -z "$ac_cpp_err"; then
23350 ac_header_preproc=yes
23352 echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23355 ac_header_preproc=no
23357 rm -f conftest.err conftest.$ac_ext
23358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23359 echo "${ECHO_T}$ac_header_preproc" >&6
23361 # So? What about this header?
23362 case $ac_header_compiler:$ac_header_preproc in
23364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23370 ## ------------------------------------ ##
23371 ## Report this to bug-autoconf@gnu.org. ##
23372 ## ------------------------------------ ##
23375 sed "s/^/$as_me: WARNING: /" >&2
23378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23386 ## ------------------------------------ ##
23387 ## Report this to bug-autoconf@gnu.org. ##
23388 ## ------------------------------------ ##
23391 sed "s/^/$as_me: WARNING: /" >&2
23394 echo "$as_me:$LINENO: checking for $ac_header" >&5
23395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23397 echo $ECHO_N "(cached) $ECHO_C" >&6
23399 eval "$as_ac_Header=$ac_header_preproc"
23401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23406 cat >>confdefs.h <<_ACEOF
23407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23411 LIBOBJS="$LIBOBJS err.$ac_objext"
23416 if test "$OS" != "ultrix"; then
23417 echo "$as_me:$LINENO: checking POSIX termios" >&5
23418 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
23419 if test "${ac_cv_sys_posix_termios+set}" = set; then
23420 echo $ECHO_N "(cached) $ECHO_C" >&6
23422 cat >conftest.$ac_ext <<_ACEOF
23423 #line $LINENO "configure"
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23429 #include <sys/types.h>
23430 #include <unistd.h>
23431 #include <termios.h>
23436 /* SunOS 4.0.3 has termios.h but not the library calls. */
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23444 (eval $ac_link) 2>&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } &&
23448 { ac_try='test -s conftest$ac_exeext'
23449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450 (eval $ac_try) 2>&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; }; then
23454 ac_cv_sys_posix_termios=yes
23456 echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23459 ac_cv_sys_posix_termios=no
23461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23463 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
23464 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
23466 if test "$ac_cv_sys_posix_termios" = "yes"; then
23467 cat >>confdefs.h <<\_ACEOF
23468 #define HAVE_TERMIOS_H 1
23473 for ac_header in termio.h
23475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23477 echo "$as_me:$LINENO: checking for $ac_header" >&5
23478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23485 # Is the header compilable?
23486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23488 cat >conftest.$ac_ext <<_ACEOF
23489 #line $LINENO "configure"
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h. */
23495 $ac_includes_default
23496 #include <$ac_header>
23498 rm -f conftest.$ac_objext
23499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23500 (eval $ac_compile) 2>&5
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } &&
23504 { ac_try='test -s conftest.$ac_objext'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; }; then
23510 ac_header_compiler=yes
23512 echo "$as_me: failed program was:" >&5
23513 sed 's/^/| /' conftest.$ac_ext >&5
23515 ac_header_compiler=no
23517 rm -f conftest.$ac_objext conftest.$ac_ext
23518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23519 echo "${ECHO_T}$ac_header_compiler" >&6
23521 # Is the header present?
23522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23524 cat >conftest.$ac_ext <<_ACEOF
23525 #line $LINENO "configure"
23528 cat confdefs.h >>conftest.$ac_ext
23529 cat >>conftest.$ac_ext <<_ACEOF
23530 /* end confdefs.h. */
23531 #include <$ac_header>
23533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23536 grep -v '^ *+' conftest.er1 >conftest.err
23538 cat conftest.err >&5
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } >/dev/null; then
23541 if test -s conftest.err; then
23542 ac_cpp_err=$ac_c_preproc_warn_flag
23549 if test -z "$ac_cpp_err"; then
23550 ac_header_preproc=yes
23552 echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23555 ac_header_preproc=no
23557 rm -f conftest.err conftest.$ac_ext
23558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23559 echo "${ECHO_T}$ac_header_preproc" >&6
23561 # So? What about this header?
23562 case $ac_header_compiler:$ac_header_preproc in
23564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23570 ## ------------------------------------ ##
23571 ## Report this to bug-autoconf@gnu.org. ##
23572 ## ------------------------------------ ##
23575 sed "s/^/$as_me: WARNING: /" >&2
23578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23586 ## ------------------------------------ ##
23587 ## Report this to bug-autoconf@gnu.org. ##
23588 ## ------------------------------------ ##
23591 sed "s/^/$as_me: WARNING: /" >&2
23594 echo "$as_me:$LINENO: checking for $ac_header" >&5
23595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23597 echo $ECHO_N "(cached) $ECHO_C" >&6
23599 eval "$as_ac_Header=$ac_header_preproc"
23601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23606 cat >>confdefs.h <<_ACEOF
23607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23616 if test "$with_logincap" = "yes"; then
23618 for ac_header in login_cap.h
23620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23622 echo "$as_me:$LINENO: checking for $ac_header" >&5
23623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23630 # Is the header compilable?
23631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23633 cat >conftest.$ac_ext <<_ACEOF
23634 #line $LINENO "configure"
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h. */
23640 $ac_includes_default
23641 #include <$ac_header>
23643 rm -f conftest.$ac_objext
23644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23645 (eval $ac_compile) 2>&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } &&
23649 { ac_try='test -s conftest.$ac_objext'
23650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23651 (eval $ac_try) 2>&5
23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654 (exit $ac_status); }; }; then
23655 ac_header_compiler=yes
23657 echo "$as_me: failed program was:" >&5
23658 sed 's/^/| /' conftest.$ac_ext >&5
23660 ac_header_compiler=no
23662 rm -f conftest.$ac_objext conftest.$ac_ext
23663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23664 echo "${ECHO_T}$ac_header_compiler" >&6
23666 # Is the header present?
23667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23669 cat >conftest.$ac_ext <<_ACEOF
23670 #line $LINENO "configure"
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h. */
23676 #include <$ac_header>
23678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23681 grep -v '^ *+' conftest.er1 >conftest.err
23683 cat conftest.err >&5
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } >/dev/null; then
23686 if test -s conftest.err; then
23687 ac_cpp_err=$ac_c_preproc_warn_flag
23694 if test -z "$ac_cpp_err"; then
23695 ac_header_preproc=yes
23697 echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23700 ac_header_preproc=no
23702 rm -f conftest.err conftest.$ac_ext
23703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23704 echo "${ECHO_T}$ac_header_preproc" >&6
23706 # So? What about this header?
23707 case $ac_header_compiler:$ac_header_preproc in
23709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23715 ## ------------------------------------ ##
23716 ## Report this to bug-autoconf@gnu.org. ##
23717 ## ------------------------------------ ##
23720 sed "s/^/$as_me: WARNING: /" >&2
23723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23731 ## ------------------------------------ ##
23732 ## Report this to bug-autoconf@gnu.org. ##
23733 ## ------------------------------------ ##
23736 sed "s/^/$as_me: WARNING: /" >&2
23739 echo "$as_me:$LINENO: checking for $ac_header" >&5
23740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23742 echo $ECHO_N "(cached) $ECHO_C" >&6
23744 eval "$as_ac_Header=$ac_header_preproc"
23746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23751 cat >>confdefs.h <<_ACEOF
23752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23760 if test "$with_bsdauth" = "yes"; then
23761 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
23762 echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
23763 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
23764 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
23765 echo $ECHO_N "(cached) $ECHO_C" >&6
23767 echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
23768 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
23770 # Is the header compilable?
23771 echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
23772 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6
23773 cat >conftest.$ac_ext <<_ACEOF
23774 #line $LINENO "configure"
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h. */
23780 $ac_includes_default
23781 #include <bsd_auth.h>
23783 rm -f conftest.$ac_objext
23784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23785 (eval $ac_compile) 2>&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } &&
23789 { ac_try='test -s conftest.$ac_objext'
23790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791 (eval $ac_try) 2>&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); }; }; then
23795 ac_header_compiler=yes
23797 echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23800 ac_header_compiler=no
23802 rm -f conftest.$ac_objext conftest.$ac_ext
23803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23804 echo "${ECHO_T}$ac_header_compiler" >&6
23806 # Is the header present?
23807 echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
23808 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6
23809 cat >conftest.$ac_ext <<_ACEOF
23810 #line $LINENO "configure"
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h. */
23816 #include <bsd_auth.h>
23818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23821 grep -v '^ *+' conftest.er1 >conftest.err
23823 cat conftest.err >&5
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); } >/dev/null; then
23826 if test -s conftest.err; then
23827 ac_cpp_err=$ac_c_preproc_warn_flag
23834 if test -z "$ac_cpp_err"; then
23835 ac_header_preproc=yes
23837 echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23840 ac_header_preproc=no
23842 rm -f conftest.err conftest.$ac_ext
23843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23844 echo "${ECHO_T}$ac_header_preproc" >&6
23846 # So? What about this header?
23847 case $ac_header_compiler:$ac_header_preproc in
23849 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
23850 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23851 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
23852 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
23855 ## ------------------------------------ ##
23856 ## Report this to bug-autoconf@gnu.org. ##
23857 ## ------------------------------------ ##
23860 sed "s/^/$as_me: WARNING: /" >&2
23863 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
23864 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
23865 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
23866 echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
23867 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
23868 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
23871 ## ------------------------------------ ##
23872 ## Report this to bug-autoconf@gnu.org. ##
23873 ## ------------------------------------ ##
23876 sed "s/^/$as_me: WARNING: /" >&2
23879 echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
23880 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
23881 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 ac_cv_header_bsd_auth_h=$ac_header_preproc
23886 echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
23887 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
23890 if test $ac_cv_header_bsd_auth_h = yes; then
23891 cat >>confdefs.h <<\_ACEOF
23892 #define HAVE_BSD_AUTH_H 1
23894 with_passwd=no; AUTH_OBJS=bsdauth.o
23901 echo "$as_me:$LINENO: checking for mode_t" >&5
23902 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
23903 if test "${ac_cv_type_mode_t+set}" = set; then
23904 echo $ECHO_N "(cached) $ECHO_C" >&6
23906 cat >conftest.$ac_ext <<_ACEOF
23907 #line $LINENO "configure"
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 $ac_includes_default
23919 if (sizeof (mode_t))
23925 rm -f conftest.$ac_objext
23926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23927 (eval $ac_compile) 2>&5
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); } &&
23931 { ac_try='test -s conftest.$ac_objext'
23932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23933 (eval $ac_try) 2>&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); }; }; then
23937 ac_cv_type_mode_t=yes
23939 echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23942 ac_cv_type_mode_t=no
23944 rm -f conftest.$ac_objext conftest.$ac_ext
23946 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
23947 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
23948 if test $ac_cv_type_mode_t = yes; then
23952 cat >>confdefs.h <<_ACEOF
23958 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23959 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
23960 if test "${ac_cv_type_uid_t+set}" = set; then
23961 echo $ECHO_N "(cached) $ECHO_C" >&6
23963 cat >conftest.$ac_ext <<_ACEOF
23964 #line $LINENO "configure"
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h. */
23970 #include <sys/types.h>
23973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23974 $EGREP "uid_t" >/dev/null 2>&1; then
23975 ac_cv_type_uid_t=yes
23977 ac_cv_type_uid_t=no
23982 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23983 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
23984 if test $ac_cv_type_uid_t = no; then
23986 cat >>confdefs.h <<\_ACEOF
23991 cat >>confdefs.h <<\_ACEOF
23997 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23998 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
23999 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24000 echo $ECHO_N "(cached) $ECHO_C" >&6
24002 cat >conftest.$ac_ext <<_ACEOF
24003 #line $LINENO "configure"
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h. */
24009 #include <sys/types.h>
24010 #include <signal.h>
24015 if ((sig_atomic_t *) 0)
24017 if (sizeof (sig_atomic_t))
24023 rm -f conftest.$ac_objext
24024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24025 (eval $ac_compile) 2>&5
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); } &&
24029 { ac_try='test -s conftest.$ac_objext'
24030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24031 (eval $ac_try) 2>&5
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); }; }; then
24035 ac_cv_type_sig_atomic_t=yes
24037 echo "$as_me: failed program was:" >&5
24038 sed 's/^/| /' conftest.$ac_ext >&5
24040 ac_cv_type_sig_atomic_t=no
24042 rm -f conftest.$ac_objext conftest.$ac_ext
24044 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24045 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
24046 if test $ac_cv_type_sig_atomic_t = yes; then
24048 cat >>confdefs.h <<_ACEOF
24049 #define HAVE_SIG_ATOMIC_T 1
24054 cat >>confdefs.h <<\_ACEOF
24055 #define sig_atomic_t int
24060 echo "$as_me:$LINENO: checking for sigaction_t" >&5
24061 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6
24062 if test "${ac_cv_type_sigaction_t+set}" = set; then
24063 echo $ECHO_N "(cached) $ECHO_C" >&6
24065 cat >conftest.$ac_ext <<_ACEOF
24066 #line $LINENO "configure"
24069 cat confdefs.h >>conftest.$ac_ext
24070 cat >>conftest.$ac_ext <<_ACEOF
24071 /* end confdefs.h. */
24072 #include <sys/types.h>
24073 #include <signal.h>
24078 if ((sigaction_t *) 0)
24080 if (sizeof (sigaction_t))
24086 rm -f conftest.$ac_objext
24087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24088 (eval $ac_compile) 2>&5
24090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); } &&
24092 { ac_try='test -s conftest.$ac_objext'
24093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24094 (eval $ac_try) 2>&5
24096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097 (exit $ac_status); }; }; then
24098 ac_cv_type_sigaction_t=yes
24100 echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24103 ac_cv_type_sigaction_t=no
24105 rm -f conftest.$ac_objext conftest.$ac_ext
24107 echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
24108 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6
24109 if test $ac_cv_type_sigaction_t = yes; then
24111 cat >>confdefs.h <<_ACEOF
24112 #define HAVE_SIGACTION_T 1
24115 cat >>confdefs.h <<\_ACEOF
24116 #define HAVE_SIGACTION_T 1
24121 echo "$as_me:$LINENO: checking for struct timespec" >&5
24122 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
24123 if test "${ac_cv_type_struct_timespec+set}" = set; then
24124 echo $ECHO_N "(cached) $ECHO_C" >&6
24126 cat >conftest.$ac_ext <<_ACEOF
24127 #line $LINENO "configure"
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h. */
24133 #include <sys/types.h>
24134 #include <sys/time.h>
24140 if ((struct timespec *) 0)
24142 if (sizeof (struct timespec))
24148 rm -f conftest.$ac_objext
24149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24150 (eval $ac_compile) 2>&5
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); } &&
24154 { ac_try='test -s conftest.$ac_objext'
24155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24156 (eval $ac_try) 2>&5
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); }; }; then
24160 ac_cv_type_struct_timespec=yes
24162 echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24165 ac_cv_type_struct_timespec=no
24167 rm -f conftest.$ac_objext conftest.$ac_ext
24169 echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
24170 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
24171 if test $ac_cv_type_struct_timespec = yes; then
24172 cat >>confdefs.h <<\_ACEOF
24173 #define HAVE_TIMESPEC 1
24178 echo "$as_me:$LINENO: checking for size_t" >&5
24179 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
24180 if test "${sudo_cv_type_size_t+set}" = set; then
24181 echo $ECHO_N "(cached) $ECHO_C" >&6
24183 cat >conftest.$ac_ext <<_ACEOF
24184 #line $LINENO "configure"
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h. */
24190 #include <sys/types.h>
24193 #include <stdlib.h>
24196 #include <unistd.h>
24199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24200 $EGREP "size_t" >/dev/null 2>&1; then
24201 sudo_cv_type_size_t=yes
24203 sudo_cv_type_size_t=no
24208 echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
24209 echo "${ECHO_T}$sudo_cv_type_size_t" >&6
24210 if test $sudo_cv_type_size_t = no; then
24212 cat >>confdefs.h <<\_ACEOF
24218 echo "$as_me:$LINENO: checking for ssize_t" >&5
24219 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
24220 if test "${sudo_cv_type_ssize_t+set}" = set; then
24221 echo $ECHO_N "(cached) $ECHO_C" >&6
24223 cat >conftest.$ac_ext <<_ACEOF
24224 #line $LINENO "configure"
24227 cat confdefs.h >>conftest.$ac_ext
24228 cat >>conftest.$ac_ext <<_ACEOF
24229 /* end confdefs.h. */
24230 #include <sys/types.h>
24233 #include <stdlib.h>
24236 #include <unistd.h>
24239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24240 $EGREP "ssize_t" >/dev/null 2>&1; then
24241 sudo_cv_type_ssize_t=yes
24243 sudo_cv_type_ssize_t=no
24248 echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
24249 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6
24250 if test $sudo_cv_type_ssize_t = no; then
24252 cat >>confdefs.h <<\_ACEOF
24253 #define ssize_t int
24258 echo "$as_me:$LINENO: checking for dev_t" >&5
24259 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
24260 if test "${sudo_cv_type_dev_t+set}" = set; then
24261 echo $ECHO_N "(cached) $ECHO_C" >&6
24263 cat >conftest.$ac_ext <<_ACEOF
24264 #line $LINENO "configure"
24267 cat confdefs.h >>conftest.$ac_ext
24268 cat >>conftest.$ac_ext <<_ACEOF
24269 /* end confdefs.h. */
24270 #include <sys/types.h>
24273 #include <stdlib.h>
24276 #include <unistd.h>
24279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24280 $EGREP "dev_t" >/dev/null 2>&1; then
24281 sudo_cv_type_dev_t=yes
24283 sudo_cv_type_dev_t=no
24288 echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
24289 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6
24290 if test $sudo_cv_type_dev_t = no; then
24292 cat >>confdefs.h <<\_ACEOF
24298 echo "$as_me:$LINENO: checking for ino_t" >&5
24299 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
24300 if test "${sudo_cv_type_ino_t+set}" = set; then
24301 echo $ECHO_N "(cached) $ECHO_C" >&6
24303 cat >conftest.$ac_ext <<_ACEOF
24304 #line $LINENO "configure"
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h. */
24310 #include <sys/types.h>
24313 #include <stdlib.h>
24316 #include <unistd.h>
24319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24320 $EGREP "ino_t" >/dev/null 2>&1; then
24321 sudo_cv_type_ino_t=yes
24323 sudo_cv_type_ino_t=no
24328 echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
24329 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6
24330 if test $sudo_cv_type_ino_t = no; then
24332 cat >>confdefs.h <<\_ACEOF
24333 #define ino_t unsigned int
24338 echo "$as_me:$LINENO: checking for full void implementation" >&5
24339 echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6
24340 cat >conftest.$ac_ext <<_ACEOF
24341 #line $LINENO "configure"
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h. */
24352 foo = (void *)0; (void *)"test";
24357 rm -f conftest.$ac_objext
24358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24359 (eval $ac_compile) 2>&5
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } &&
24363 { ac_try='test -s conftest.$ac_objext'
24364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24365 (eval $ac_try) 2>&5
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); }; }; then
24370 cat >>confdefs.h <<\_ACEOF
24374 echo "$as_me:$LINENO: result: yes" >&5
24375 echo "${ECHO_T}yes" >&6
24377 echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24380 cat >>confdefs.h <<\_ACEOF
24384 echo "$as_me:$LINENO: result: no" >&5
24385 echo "${ECHO_T}no" >&6
24387 rm -f conftest.$ac_objext conftest.$ac_ext
24389 echo "$as_me:$LINENO: checking max length of uid_t" >&5
24390 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6
24391 if test "${sudo_cv_uid_t_len+set}" = set; then
24392 echo $ECHO_N "(cached) $ECHO_C" >&6
24395 if test "$cross_compiling" = yes; then
24396 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24397 See \`config.log' for more details." >&5
24398 echo "$as_me: error: cannot run test program while cross compiling
24399 See \`config.log' for more details." >&2;}
24400 { (exit 1); exit 1; }; }
24402 cat >conftest.$ac_ext <<_ACEOF
24403 #line $LINENO "configure"
24406 cat confdefs.h >>conftest.$ac_ext
24407 cat >>conftest.$ac_ext <<_ACEOF
24408 /* end confdefs.h. */
24411 #include <limits.h>
24412 #include <sys/types.h>
24413 #include <sys/param.h>
24417 uid_t u = (uid_t) -1;
24419 if ((f = fopen("conftestdata", "w")) == NULL)
24422 (void) sprintf(b, "%lu", (unsigned long) u);
24423 (void) fprintf(f, "%d\n", strlen(b));
24428 rm -f conftest$ac_exeext
24429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24430 (eval $ac_link) 2>&5
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24435 (eval $ac_try) 2>&5
24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438 (exit $ac_status); }; }; then
24439 sudo_cv_uid_t_len=`cat conftestdata`
24441 echo "$as_me: program exited with status $ac_status" >&5
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24445 ( exit $ac_status )
24446 sudo_cv_uid_t_len=10
24448 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24454 echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
24455 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6
24457 cat >>confdefs.h <<_ACEOF
24458 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
24462 echo "$as_me:$LINENO: checking for long long support" >&5
24463 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
24464 cat >conftest.$ac_ext <<_ACEOF
24465 #line $LINENO "configure"
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h. */
24475 long long foo = 1000; foo /= 10;
24480 rm -f conftest.$ac_objext conftest$ac_exeext
24481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24482 (eval $ac_link) 2>&5
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); } &&
24486 { ac_try='test -s conftest$ac_exeext'
24487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24488 (eval $ac_try) 2>&5
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); }; }; then
24493 cat >>confdefs.h <<\_ACEOF
24494 #define HAVE_LONG_LONG 1
24497 if test "$cross_compiling" = yes; then
24498 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24499 See \`config.log' for more details." >&5
24500 echo "$as_me: error: cannot run test program while cross compiling
24501 See \`config.log' for more details." >&2;}
24502 { (exit 1); exit 1; }; }
24504 cat >conftest.$ac_ext <<_ACEOF
24505 #line $LINENO "configure"
24508 cat confdefs.h >>conftest.$ac_ext
24509 cat >>conftest.$ac_ext <<_ACEOF
24510 /* end confdefs.h. */
24511 main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
24513 rm -f conftest$ac_exeext
24514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24515 (eval $ac_link) 2>&5
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24520 (eval $ac_try) 2>&5
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); }; }; then
24525 cat >>confdefs.h <<\_ACEOF
24526 #define LONG_IS_QUAD 1
24530 echo "$as_me: program exited with status $ac_status" >&5
24531 echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24535 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24537 echo "$as_me:$LINENO: result: yes" >&5
24538 echo "${ECHO_T}yes" >&6
24540 echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.$ac_ext >&5
24543 echo "$as_me:$LINENO: result: no" >&5
24544 echo "${ECHO_T}no" >&6
24546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24547 echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
24548 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6
24549 if test "${sudo_cv_sock_sa_len+set}" = set; then
24550 echo $ECHO_N "(cached) $ECHO_C" >&6
24552 if test "$cross_compiling" = yes; then
24553 sudo_cv_sock_sa_len=no
24555 cat >conftest.$ac_ext <<_ACEOF
24556 #line $LINENO "configure"
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h. */
24562 #include <sys/types.h>
24563 #include <sys/socket.h>
24570 rm -f conftest$ac_exeext
24571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24572 (eval $ac_link) 2>&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24577 (eval $ac_try) 2>&5
24579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580 (exit $ac_status); }; }; then
24581 sudo_cv_sock_sa_len=yes
24583 echo "$as_me: program exited with status $ac_status" >&5
24584 echo "$as_me: failed program was:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24587 ( exit $ac_status )
24588 sudo_cv_sock_sa_len=no
24590 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24592 rm -f core core.* *.core
24594 echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
24595 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6
24596 if test $sudo_cv_sock_sa_len = yes; then
24598 cat >>confdefs.h <<\_ACEOF
24599 #define HAVE_SA_LEN 1
24606 *) echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24607 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
24608 if test "${ac_cv_type_signal+set}" = set; then
24609 echo $ECHO_N "(cached) $ECHO_C" >&6
24611 cat >conftest.$ac_ext <<_ACEOF
24612 #line $LINENO "configure"
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h. */
24618 #include <sys/types.h>
24619 #include <signal.h>
24624 extern "C" void (*signal (int, void (*)(int)))(int);
24626 void (*signal ()) ();
24637 rm -f conftest.$ac_objext
24638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24639 (eval $ac_compile) 2>&5
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); } &&
24643 { ac_try='test -s conftest.$ac_objext'
24644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24645 (eval $ac_try) 2>&5
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); }; }; then
24649 ac_cv_type_signal=void
24651 echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.$ac_ext >&5
24654 ac_cv_type_signal=int
24656 rm -f conftest.$ac_objext conftest.$ac_ext
24658 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24659 echo "${ECHO_T}$ac_cv_type_signal" >&6
24661 cat >>confdefs.h <<_ACEOF
24662 #define RETSIGTYPE $ac_cv_type_signal
24679 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
24680 strftime setrlimit initgroups fstat gettimeofday
24682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24683 echo "$as_me:$LINENO: checking for $ac_func" >&5
24684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24685 if eval "test \"\${$as_ac_var+set}\" = set"; then
24686 echo $ECHO_N "(cached) $ECHO_C" >&6
24688 cat >conftest.$ac_ext <<_ACEOF
24689 #line $LINENO "configure"
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h. */
24695 /* System header to define __stub macros and hopefully few prototypes,
24696 which can conflict with char $ac_func (); below.
24697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24698 <limits.h> exists even on freestanding compilers. */
24700 # include <limits.h>
24702 # include <assert.h>
24704 /* Override any gcc2 internal prototype to avoid an error. */
24709 /* We use char because int might match the return type of a gcc2
24710 builtin and then its argument prototype would still apply. */
24712 /* The GNU C library defines this for functions which it implements
24713 to always fail with ENOSYS. Some functions are actually named
24714 something starting with __ and the normal name is an alias. */
24715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24718 char (*f) () = $ac_func;
24727 return f != $ac_func;
24732 rm -f conftest.$ac_objext conftest$ac_exeext
24733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24734 (eval $ac_link) 2>&5
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); } &&
24738 { ac_try='test -s conftest$ac_exeext'
24739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24740 (eval $ac_try) 2>&5
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; }; then
24744 eval "$as_ac_var=yes"
24746 echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24749 eval "$as_ac_var=no"
24751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24755 if test `eval echo '${'$as_ac_var'}'` = yes; then
24756 cat >>confdefs.h <<_ACEOF
24757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24764 for ac_func in seteuid
24766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24767 echo "$as_me:$LINENO: checking for $ac_func" >&5
24768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24769 if eval "test \"\${$as_ac_var+set}\" = set"; then
24770 echo $ECHO_N "(cached) $ECHO_C" >&6
24772 cat >conftest.$ac_ext <<_ACEOF
24773 #line $LINENO "configure"
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h. */
24779 /* System header to define __stub macros and hopefully few prototypes,
24780 which can conflict with char $ac_func (); below.
24781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24782 <limits.h> exists even on freestanding compilers. */
24784 # include <limits.h>
24786 # include <assert.h>
24788 /* Override any gcc2 internal prototype to avoid an error. */
24793 /* We use char because int might match the return type of a gcc2
24794 builtin and then its argument prototype would still apply. */
24796 /* The GNU C library defines this for functions which it implements
24797 to always fail with ENOSYS. Some functions are actually named
24798 something starting with __ and the normal name is an alias. */
24799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24802 char (*f) () = $ac_func;
24811 return f != $ac_func;
24816 rm -f conftest.$ac_objext conftest$ac_exeext
24817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24818 (eval $ac_link) 2>&5
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); } &&
24822 { ac_try='test -s conftest$ac_exeext'
24823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24824 (eval $ac_try) 2>&5
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); }; }; then
24828 eval "$as_ac_var=yes"
24830 echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24833 eval "$as_ac_var=no"
24835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24839 if test `eval echo '${'$as_ac_var'}'` = yes; then
24840 cat >>confdefs.h <<_ACEOF
24841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24845 cat >>confdefs.h <<\_ACEOF
24846 #define NO_SAVED_IDS 1
24852 if test -z "$SKIP_SETRESUID"; then
24854 for ac_func in setresuid
24856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24857 echo "$as_me:$LINENO: checking for $ac_func" >&5
24858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24859 if eval "test \"\${$as_ac_var+set}\" = set"; then
24860 echo $ECHO_N "(cached) $ECHO_C" >&6
24862 cat >conftest.$ac_ext <<_ACEOF
24863 #line $LINENO "configure"
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h. */
24869 /* System header to define __stub macros and hopefully few prototypes,
24870 which can conflict with char $ac_func (); below.
24871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24872 <limits.h> exists even on freestanding compilers. */
24874 # include <limits.h>
24876 # include <assert.h>
24878 /* Override any gcc2 internal prototype to avoid an error. */
24883 /* We use char because int might match the return type of a gcc2
24884 builtin and then its argument prototype would still apply. */
24886 /* The GNU C library defines this for functions which it implements
24887 to always fail with ENOSYS. Some functions are actually named
24888 something starting with __ and the normal name is an alias. */
24889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24892 char (*f) () = $ac_func;
24901 return f != $ac_func;
24906 rm -f conftest.$ac_objext conftest$ac_exeext
24907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24908 (eval $ac_link) 2>&5
24910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } &&
24912 { ac_try='test -s conftest$ac_exeext'
24913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24914 (eval $ac_try) 2>&5
24916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); }; }; then
24918 eval "$as_ac_var=yes"
24920 echo "$as_me: failed program was:" >&5
24921 sed 's/^/| /' conftest.$ac_ext >&5
24923 eval "$as_ac_var=no"
24925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24929 if test `eval echo '${'$as_ac_var'}'` = yes; then
24930 cat >>confdefs.h <<_ACEOF
24931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24938 if test -z "$SKIP_SETREUID"; then
24940 for ac_func in setreuid
24942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24943 echo "$as_me:$LINENO: checking for $ac_func" >&5
24944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24945 if eval "test \"\${$as_ac_var+set}\" = set"; then
24946 echo $ECHO_N "(cached) $ECHO_C" >&6
24948 cat >conftest.$ac_ext <<_ACEOF
24949 #line $LINENO "configure"
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h. */
24955 /* System header to define __stub macros and hopefully few prototypes,
24956 which can conflict with char $ac_func (); below.
24957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24958 <limits.h> exists even on freestanding compilers. */
24960 # include <limits.h>
24962 # include <assert.h>
24964 /* Override any gcc2 internal prototype to avoid an error. */
24969 /* We use char because int might match the return type of a gcc2
24970 builtin and then its argument prototype would still apply. */
24972 /* The GNU C library defines this for functions which it implements
24973 to always fail with ENOSYS. Some functions are actually named
24974 something starting with __ and the normal name is an alias. */
24975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24978 char (*f) () = $ac_func;
24987 return f != $ac_func;
24992 rm -f conftest.$ac_objext conftest$ac_exeext
24993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24994 (eval $ac_link) 2>&5
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); } &&
24998 { ac_try='test -s conftest$ac_exeext'
24999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25000 (eval $ac_try) 2>&5
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); }; }; then
25004 eval "$as_ac_var=yes"
25006 echo "$as_me: failed program was:" >&5
25007 sed 's/^/| /' conftest.$ac_ext >&5
25009 eval "$as_ac_var=no"
25011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25015 if test `eval echo '${'$as_ac_var'}'` = yes; then
25016 cat >>confdefs.h <<_ACEOF
25017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25024 if test X"$with_interfaces" != X"no"; then
25026 for ac_func in getifaddrs
25028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25029 echo "$as_me:$LINENO: checking for $ac_func" >&5
25030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25031 if eval "test \"\${$as_ac_var+set}\" = set"; then
25032 echo $ECHO_N "(cached) $ECHO_C" >&6
25034 cat >conftest.$ac_ext <<_ACEOF
25035 #line $LINENO "configure"
25038 cat confdefs.h >>conftest.$ac_ext
25039 cat >>conftest.$ac_ext <<_ACEOF
25040 /* end confdefs.h. */
25041 /* System header to define __stub macros and hopefully few prototypes,
25042 which can conflict with char $ac_func (); below.
25043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25044 <limits.h> exists even on freestanding compilers. */
25046 # include <limits.h>
25048 # include <assert.h>
25050 /* Override any gcc2 internal prototype to avoid an error. */
25055 /* We use char because int might match the return type of a gcc2
25056 builtin and then its argument prototype would still apply. */
25058 /* The GNU C library defines this for functions which it implements
25059 to always fail with ENOSYS. Some functions are actually named
25060 something starting with __ and the normal name is an alias. */
25061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25064 char (*f) () = $ac_func;
25073 return f != $ac_func;
25078 rm -f conftest.$ac_objext conftest$ac_exeext
25079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25080 (eval $ac_link) 2>&5
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); } &&
25084 { ac_try='test -s conftest$ac_exeext'
25085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25086 (eval $ac_try) 2>&5
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); }; }; then
25090 eval "$as_ac_var=yes"
25092 echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25095 eval "$as_ac_var=no"
25097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25101 if test `eval echo '${'$as_ac_var'}'` = yes; then
25102 cat >>confdefs.h <<_ACEOF
25103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25106 for ac_func in freeifaddrs
25108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25109 echo "$as_me:$LINENO: checking for $ac_func" >&5
25110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25111 if eval "test \"\${$as_ac_var+set}\" = set"; then
25112 echo $ECHO_N "(cached) $ECHO_C" >&6
25114 cat >conftest.$ac_ext <<_ACEOF
25115 #line $LINENO "configure"
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h. */
25121 /* System header to define __stub macros and hopefully few prototypes,
25122 which can conflict with char $ac_func (); below.
25123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25124 <limits.h> exists even on freestanding compilers. */
25126 # include <limits.h>
25128 # include <assert.h>
25130 /* Override any gcc2 internal prototype to avoid an error. */
25135 /* We use char because int might match the return type of a gcc2
25136 builtin and then its argument prototype would still apply. */
25138 /* The GNU C library defines this for functions which it implements
25139 to always fail with ENOSYS. Some functions are actually named
25140 something starting with __ and the normal name is an alias. */
25141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25144 char (*f) () = $ac_func;
25153 return f != $ac_func;
25158 rm -f conftest.$ac_objext conftest$ac_exeext
25159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25160 (eval $ac_link) 2>&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); } &&
25164 { ac_try='test -s conftest$ac_exeext'
25165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25166 (eval $ac_try) 2>&5
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); }; }; then
25170 eval "$as_ac_var=yes"
25172 echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25175 eval "$as_ac_var=no"
25177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25181 if test `eval echo '${'$as_ac_var'}'` = yes; then
25182 cat >>confdefs.h <<_ACEOF
25183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25193 if test -n "$SECUREWARE"; then
25197 for ac_func in bigcrypt set_auth_parameters initprivs
25199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25200 echo "$as_me:$LINENO: checking for $ac_func" >&5
25201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25202 if eval "test \"\${$as_ac_var+set}\" = set"; then
25203 echo $ECHO_N "(cached) $ECHO_C" >&6
25205 cat >conftest.$ac_ext <<_ACEOF
25206 #line $LINENO "configure"
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h. */
25212 /* System header to define __stub macros and hopefully few prototypes,
25213 which can conflict with char $ac_func (); below.
25214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25215 <limits.h> exists even on freestanding compilers. */
25217 # include <limits.h>
25219 # include <assert.h>
25221 /* Override any gcc2 internal prototype to avoid an error. */
25226 /* We use char because int might match the return type of a gcc2
25227 builtin and then its argument prototype would still apply. */
25229 /* The GNU C library defines this for functions which it implements
25230 to always fail with ENOSYS. Some functions are actually named
25231 something starting with __ and the normal name is an alias. */
25232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25235 char (*f) () = $ac_func;
25244 return f != $ac_func;
25249 rm -f conftest.$ac_objext conftest$ac_exeext
25250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25251 (eval $ac_link) 2>&5
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); } &&
25255 { ac_try='test -s conftest$ac_exeext'
25256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25257 (eval $ac_try) 2>&5
25259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); }; }; then
25261 eval "$as_ac_var=yes"
25263 echo "$as_me: failed program was:" >&5
25264 sed 's/^/| /' conftest.$ac_ext >&5
25266 eval "$as_ac_var=no"
25268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25272 if test `eval echo '${'$as_ac_var'}'` = yes; then
25273 cat >>confdefs.h <<_ACEOF
25274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25281 if test -z "$BROKEN_GETCWD"; then
25283 for ac_func in getcwd
25285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25286 echo "$as_me:$LINENO: checking for $ac_func" >&5
25287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25288 if eval "test \"\${$as_ac_var+set}\" = set"; then
25289 echo $ECHO_N "(cached) $ECHO_C" >&6
25291 cat >conftest.$ac_ext <<_ACEOF
25292 #line $LINENO "configure"
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h. */
25298 /* System header to define __stub macros and hopefully few prototypes,
25299 which can conflict with char $ac_func (); below.
25300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25301 <limits.h> exists even on freestanding compilers. */
25303 # include <limits.h>
25305 # include <assert.h>
25307 /* Override any gcc2 internal prototype to avoid an error. */
25312 /* We use char because int might match the return type of a gcc2
25313 builtin and then its argument prototype would still apply. */
25315 /* The GNU C library defines this for functions which it implements
25316 to always fail with ENOSYS. Some functions are actually named
25317 something starting with __ and the normal name is an alias. */
25318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25321 char (*f) () = $ac_func;
25330 return f != $ac_func;
25335 rm -f conftest.$ac_objext conftest$ac_exeext
25336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25337 (eval $ac_link) 2>&5
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); } &&
25341 { ac_try='test -s conftest$ac_exeext'
25342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343 (eval $ac_try) 2>&5
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; }; then
25347 eval "$as_ac_var=yes"
25349 echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25352 eval "$as_ac_var=no"
25354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25358 if test `eval echo '${'$as_ac_var'}'` = yes; then
25359 cat >>confdefs.h <<_ACEOF
25360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25364 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25372 for ac_func in lockf flock
25374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25375 echo "$as_me:$LINENO: checking for $ac_func" >&5
25376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25377 if eval "test \"\${$as_ac_var+set}\" = set"; then
25378 echo $ECHO_N "(cached) $ECHO_C" >&6
25380 cat >conftest.$ac_ext <<_ACEOF
25381 #line $LINENO "configure"
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25387 /* System header to define __stub macros and hopefully few prototypes,
25388 which can conflict with char $ac_func (); below.
25389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25390 <limits.h> exists even on freestanding compilers. */
25392 # include <limits.h>
25394 # include <assert.h>
25396 /* Override any gcc2 internal prototype to avoid an error. */
25401 /* We use char because int might match the return type of a gcc2
25402 builtin and then its argument prototype would still apply. */
25404 /* The GNU C library defines this for functions which it implements
25405 to always fail with ENOSYS. Some functions are actually named
25406 something starting with __ and the normal name is an alias. */
25407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25410 char (*f) () = $ac_func;
25419 return f != $ac_func;
25424 rm -f conftest.$ac_objext conftest$ac_exeext
25425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25426 (eval $ac_link) 2>&5
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); } &&
25430 { ac_try='test -s conftest$ac_exeext'
25431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25432 (eval $ac_try) 2>&5
25434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435 (exit $ac_status); }; }; then
25436 eval "$as_ac_var=yes"
25438 echo "$as_me: failed program was:" >&5
25439 sed 's/^/| /' conftest.$ac_ext >&5
25441 eval "$as_ac_var=no"
25443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25447 if test `eval echo '${'$as_ac_var'}'` = yes; then
25448 cat >>confdefs.h <<_ACEOF
25449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25457 for ac_func in waitpid wait3
25459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25460 echo "$as_me:$LINENO: checking for $ac_func" >&5
25461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25462 if eval "test \"\${$as_ac_var+set}\" = set"; then
25463 echo $ECHO_N "(cached) $ECHO_C" >&6
25465 cat >conftest.$ac_ext <<_ACEOF
25466 #line $LINENO "configure"
25469 cat confdefs.h >>conftest.$ac_ext
25470 cat >>conftest.$ac_ext <<_ACEOF
25471 /* end confdefs.h. */
25472 /* System header to define __stub macros and hopefully few prototypes,
25473 which can conflict with char $ac_func (); below.
25474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25475 <limits.h> exists even on freestanding compilers. */
25477 # include <limits.h>
25479 # include <assert.h>
25481 /* Override any gcc2 internal prototype to avoid an error. */
25486 /* We use char because int might match the return type of a gcc2
25487 builtin and then its argument prototype would still apply. */
25489 /* The GNU C library defines this for functions which it implements
25490 to always fail with ENOSYS. Some functions are actually named
25491 something starting with __ and the normal name is an alias. */
25492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25495 char (*f) () = $ac_func;
25504 return f != $ac_func;
25509 rm -f conftest.$ac_objext conftest$ac_exeext
25510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25511 (eval $ac_link) 2>&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } &&
25515 { ac_try='test -s conftest$ac_exeext'
25516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25517 (eval $ac_try) 2>&5
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); }; }; then
25521 eval "$as_ac_var=yes"
25523 echo "$as_me: failed program was:" >&5
25524 sed 's/^/| /' conftest.$ac_ext >&5
25526 eval "$as_ac_var=no"
25528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25532 if test `eval echo '${'$as_ac_var'}'` = yes; then
25533 cat >>confdefs.h <<_ACEOF
25534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25542 for ac_func in innetgr _innetgr
25544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25545 echo "$as_me:$LINENO: checking for $ac_func" >&5
25546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25547 if eval "test \"\${$as_ac_var+set}\" = set"; then
25548 echo $ECHO_N "(cached) $ECHO_C" >&6
25550 cat >conftest.$ac_ext <<_ACEOF
25551 #line $LINENO "configure"
25554 cat confdefs.h >>conftest.$ac_ext
25555 cat >>conftest.$ac_ext <<_ACEOF
25556 /* end confdefs.h. */
25557 /* System header to define __stub macros and hopefully few prototypes,
25558 which can conflict with char $ac_func (); below.
25559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25560 <limits.h> exists even on freestanding compilers. */
25562 # include <limits.h>
25564 # include <assert.h>
25566 /* Override any gcc2 internal prototype to avoid an error. */
25571 /* We use char because int might match the return type of a gcc2
25572 builtin and then its argument prototype would still apply. */
25574 /* The GNU C library defines this for functions which it implements
25575 to always fail with ENOSYS. Some functions are actually named
25576 something starting with __ and the normal name is an alias. */
25577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25580 char (*f) () = $ac_func;
25589 return f != $ac_func;
25594 rm -f conftest.$ac_objext conftest$ac_exeext
25595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25596 (eval $ac_link) 2>&5
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); } &&
25600 { ac_try='test -s conftest$ac_exeext'
25601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25602 (eval $ac_try) 2>&5
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); }; }; then
25606 eval "$as_ac_var=yes"
25608 echo "$as_me: failed program was:" >&5
25609 sed 's/^/| /' conftest.$ac_ext >&5
25611 eval "$as_ac_var=no"
25613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25617 if test `eval echo '${'$as_ac_var'}'` = yes; then
25618 cat >>confdefs.h <<_ACEOF
25619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25622 for ac_func in getdomainname
25624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25625 echo "$as_me:$LINENO: checking for $ac_func" >&5
25626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25627 if eval "test \"\${$as_ac_var+set}\" = set"; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
25630 cat >conftest.$ac_ext <<_ACEOF
25631 #line $LINENO "configure"
25634 cat confdefs.h >>conftest.$ac_ext
25635 cat >>conftest.$ac_ext <<_ACEOF
25636 /* end confdefs.h. */
25637 /* System header to define __stub macros and hopefully few prototypes,
25638 which can conflict with char $ac_func (); below.
25639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25640 <limits.h> exists even on freestanding compilers. */
25642 # include <limits.h>
25644 # include <assert.h>
25646 /* Override any gcc2 internal prototype to avoid an error. */
25651 /* We use char because int might match the return type of a gcc2
25652 builtin and then its argument prototype would still apply. */
25654 /* The GNU C library defines this for functions which it implements
25655 to always fail with ENOSYS. Some functions are actually named
25656 something starting with __ and the normal name is an alias. */
25657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25660 char (*f) () = $ac_func;
25669 return f != $ac_func;
25674 rm -f conftest.$ac_objext conftest$ac_exeext
25675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25676 (eval $ac_link) 2>&5
25678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); } &&
25680 { ac_try='test -s conftest$ac_exeext'
25681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25682 (eval $ac_try) 2>&5
25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); }; }; then
25686 eval "$as_ac_var=yes"
25688 echo "$as_me: failed program was:" >&5
25689 sed 's/^/| /' conftest.$ac_ext >&5
25691 eval "$as_ac_var=no"
25693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25697 if test `eval echo '${'$as_ac_var'}'` = yes; then
25698 cat >>confdefs.h <<_ACEOF
25699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25709 for ac_func in lsearch
25711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25712 echo "$as_me:$LINENO: checking for $ac_func" >&5
25713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25714 if eval "test \"\${$as_ac_var+set}\" = set"; then
25715 echo $ECHO_N "(cached) $ECHO_C" >&6
25717 cat >conftest.$ac_ext <<_ACEOF
25718 #line $LINENO "configure"
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h. */
25724 /* System header to define __stub macros and hopefully few prototypes,
25725 which can conflict with char $ac_func (); below.
25726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25727 <limits.h> exists even on freestanding compilers. */
25729 # include <limits.h>
25731 # include <assert.h>
25733 /* Override any gcc2 internal prototype to avoid an error. */
25738 /* We use char because int might match the return type of a gcc2
25739 builtin and then its argument prototype would still apply. */
25741 /* The GNU C library defines this for functions which it implements
25742 to always fail with ENOSYS. Some functions are actually named
25743 something starting with __ and the normal name is an alias. */
25744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25747 char (*f) () = $ac_func;
25756 return f != $ac_func;
25761 rm -f conftest.$ac_objext conftest$ac_exeext
25762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25763 (eval $ac_link) 2>&5
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); } &&
25767 { ac_try='test -s conftest$ac_exeext'
25768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25769 (eval $ac_try) 2>&5
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); }; }; then
25773 eval "$as_ac_var=yes"
25775 echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25778 eval "$as_ac_var=no"
25780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25784 if test `eval echo '${'$as_ac_var'}'` = yes; then
25785 cat >>confdefs.h <<_ACEOF
25786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25790 echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
25791 echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6
25792 if test "${ac_cv_lib_compat_lsearch+set}" = set; then
25793 echo $ECHO_N "(cached) $ECHO_C" >&6
25795 ac_check_lib_save_LIBS=$LIBS
25796 LIBS="-lcompat $LIBS"
25797 cat >conftest.$ac_ext <<_ACEOF
25798 #line $LINENO "configure"
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h. */
25805 /* Override any gcc2 internal prototype to avoid an error. */
25809 /* We use char because int might match the return type of a gcc2
25810 builtin and then its argument prototype would still apply. */
25820 rm -f conftest.$ac_objext conftest$ac_exeext
25821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25822 (eval $ac_link) 2>&5
25824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825 (exit $ac_status); } &&
25826 { ac_try='test -s conftest$ac_exeext'
25827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828 (eval $ac_try) 2>&5
25830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); }; }; then
25832 ac_cv_lib_compat_lsearch=yes
25834 echo "$as_me: failed program was:" >&5
25835 sed 's/^/| /' conftest.$ac_ext >&5
25837 ac_cv_lib_compat_lsearch=no
25839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25840 LIBS=$ac_check_lib_save_LIBS
25842 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
25843 echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6
25844 if test $ac_cv_lib_compat_lsearch = yes; then
25845 echo "$as_me:$LINENO: checking for search.h" >&5
25846 echo $ECHO_N "checking for search.h... $ECHO_C" >&6
25847 if test "${ac_cv_header_search_h+set}" = set; then
25848 echo $ECHO_N "(cached) $ECHO_C" >&6
25850 cat >conftest.$ac_ext <<_ACEOF
25851 #line $LINENO "configure"
25854 cat confdefs.h >>conftest.$ac_ext
25855 cat >>conftest.$ac_ext <<_ACEOF
25856 /* end confdefs.h. */
25857 #include <search.h>
25859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25862 grep -v '^ *+' conftest.er1 >conftest.err
25864 cat conftest.err >&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); } >/dev/null; then
25867 if test -s conftest.err; then
25868 ac_cpp_err=$ac_c_preproc_warn_flag
25875 if test -z "$ac_cpp_err"; then
25876 ac_cv_header_search_h=yes
25878 echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25881 ac_cv_header_search_h=no
25883 rm -f conftest.err conftest.$ac_ext
25885 echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
25886 echo "${ECHO_T}$ac_cv_header_search_h" >&6
25887 if test $ac_cv_header_search_h = yes; then
25888 cat >>confdefs.h <<\_ACEOF
25889 #define HAVE_LSEARCH 1
25891 LIBS="${LIBS} -lcompat"
25893 LIBOBJS="$LIBOBJS lsearch.$ac_objext"
25898 LIBOBJS="$LIBOBJS lsearch.$ac_objext"
25905 for ac_func in utimes
25907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25908 echo "$as_me:$LINENO: checking for $ac_func" >&5
25909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25910 if eval "test \"\${$as_ac_var+set}\" = set"; then
25911 echo $ECHO_N "(cached) $ECHO_C" >&6
25913 cat >conftest.$ac_ext <<_ACEOF
25914 #line $LINENO "configure"
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h. */
25920 /* System header to define __stub macros and hopefully few prototypes,
25921 which can conflict with char $ac_func (); below.
25922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25923 <limits.h> exists even on freestanding compilers. */
25925 # include <limits.h>
25927 # include <assert.h>
25929 /* Override any gcc2 internal prototype to avoid an error. */
25934 /* We use char because int might match the return type of a gcc2
25935 builtin and then its argument prototype would still apply. */
25937 /* The GNU C library defines this for functions which it implements
25938 to always fail with ENOSYS. Some functions are actually named
25939 something starting with __ and the normal name is an alias. */
25940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25943 char (*f) () = $ac_func;
25952 return f != $ac_func;
25957 rm -f conftest.$ac_objext conftest$ac_exeext
25958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25959 (eval $ac_link) 2>&5
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); } &&
25963 { ac_try='test -s conftest$ac_exeext'
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; }; then
25969 eval "$as_ac_var=yes"
25971 echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25974 eval "$as_ac_var=no"
25976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25980 if test `eval echo '${'$as_ac_var'}'` = yes; then
25981 cat >>confdefs.h <<_ACEOF
25982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25986 for ac_func in futimes futimesat
25988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25989 echo "$as_me:$LINENO: checking for $ac_func" >&5
25990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25991 if eval "test \"\${$as_ac_var+set}\" = set"; then
25992 echo $ECHO_N "(cached) $ECHO_C" >&6
25994 cat >conftest.$ac_ext <<_ACEOF
25995 #line $LINENO "configure"
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h. */
26001 /* System header to define __stub macros and hopefully few prototypes,
26002 which can conflict with char $ac_func (); below.
26003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26004 <limits.h> exists even on freestanding compilers. */
26006 # include <limits.h>
26008 # include <assert.h>
26010 /* Override any gcc2 internal prototype to avoid an error. */
26015 /* We use char because int might match the return type of a gcc2
26016 builtin and then its argument prototype would still apply. */
26018 /* The GNU C library defines this for functions which it implements
26019 to always fail with ENOSYS. Some functions are actually named
26020 something starting with __ and the normal name is an alias. */
26021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26024 char (*f) () = $ac_func;
26033 return f != $ac_func;
26038 rm -f conftest.$ac_objext conftest$ac_exeext
26039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26040 (eval $ac_link) 2>&5
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); } &&
26044 { ac_try='test -s conftest$ac_exeext'
26045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26046 (eval $ac_try) 2>&5
26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 (exit $ac_status); }; }; then
26050 eval "$as_ac_var=yes"
26052 echo "$as_me: failed program was:" >&5
26053 sed 's/^/| /' conftest.$ac_ext >&5
26055 eval "$as_ac_var=no"
26057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26061 if test `eval echo '${'$as_ac_var'}'` = yes; then
26062 cat >>confdefs.h <<_ACEOF
26063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26071 for ac_func in futime
26073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26074 echo "$as_me:$LINENO: checking for $ac_func" >&5
26075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26076 if eval "test \"\${$as_ac_var+set}\" = set"; then
26077 echo $ECHO_N "(cached) $ECHO_C" >&6
26079 cat >conftest.$ac_ext <<_ACEOF
26080 #line $LINENO "configure"
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h. */
26086 /* System header to define __stub macros and hopefully few prototypes,
26087 which can conflict with char $ac_func (); below.
26088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26089 <limits.h> exists even on freestanding compilers. */
26091 # include <limits.h>
26093 # include <assert.h>
26095 /* Override any gcc2 internal prototype to avoid an error. */
26100 /* We use char because int might match the return type of a gcc2
26101 builtin and then its argument prototype would still apply. */
26103 /* The GNU C library defines this for functions which it implements
26104 to always fail with ENOSYS. Some functions are actually named
26105 something starting with __ and the normal name is an alias. */
26106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26109 char (*f) () = $ac_func;
26118 return f != $ac_func;
26123 rm -f conftest.$ac_objext conftest$ac_exeext
26124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26125 (eval $ac_link) 2>&5
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); } &&
26129 { ac_try='test -s conftest$ac_exeext'
26130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131 (eval $ac_try) 2>&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); }; }; then
26135 eval "$as_ac_var=yes"
26137 echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26140 eval "$as_ac_var=no"
26142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26146 if test `eval echo '${'$as_ac_var'}'` = yes; then
26147 cat >>confdefs.h <<_ACEOF
26148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26153 LIBOBJS="$LIBOBJS utimes.$ac_objext"
26157 echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
26158 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6
26159 if test "${sudo_cv_func_fnmatch+set}" = set; then
26160 echo $ECHO_N "(cached) $ECHO_C" >&6
26162 rm -f conftestdata; > conftestdata
26163 if test "$cross_compiling" = yes; then
26164 sudo_cv_func_fnmatch=no
26166 cat >conftest.$ac_ext <<_ACEOF
26167 #line $LINENO "configure"
26170 cat confdefs.h >>conftest.$ac_ext
26171 cat >>conftest.$ac_ext <<_ACEOF
26172 /* end confdefs.h. */
26173 #include <fnmatch.h>
26174 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
26177 rm -f conftest$ac_exeext
26178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26179 (eval $ac_link) 2>&5
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26184 (eval $ac_try) 2>&5
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); }; }; then
26188 sudo_cv_func_fnmatch=yes
26190 echo "$as_me: program exited with status $ac_status" >&5
26191 echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26194 ( exit $ac_status )
26195 sudo_cv_func_fnmatch=no
26197 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26199 rm -f core core.* *.core
26201 echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
26202 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6
26203 if test $sudo_cv_func_fnmatch = yes; then
26204 cat >>confdefs.h <<\_ACEOF
26205 #define HAVE_FNMATCH 1
26209 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
26212 echo "$as_me:$LINENO: checking for isblank" >&5
26213 echo $ECHO_N "checking for isblank... $ECHO_C" >&6
26214 if test "${sudo_cv_func_isblank+set}" = set; then
26215 echo $ECHO_N "(cached) $ECHO_C" >&6
26217 cat >conftest.$ac_ext <<_ACEOF
26218 #line $LINENO "configure"
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h. */
26233 rm -f conftest.$ac_objext conftest$ac_exeext
26234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26235 (eval $ac_link) 2>&5
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); } &&
26239 { ac_try='test -s conftest$ac_exeext'
26240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241 (eval $ac_try) 2>&5
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); }; }; then
26245 sudo_cv_func_isblank=yes
26247 echo "$as_me: failed program was:" >&5
26248 sed 's/^/| /' conftest.$ac_ext >&5
26250 sudo_cv_func_isblank=no
26252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26254 echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
26255 echo "${ECHO_T}$sudo_cv_func_isblank" >&6
26257 if test "$sudo_cv_func_isblank" = "yes"; then
26259 cat >>confdefs.h <<\_ACEOF
26260 #define HAVE_ISBLANK 1
26271 for ac_func in strerror strcasecmp sigaction strlcpy strlcat closefrom
26273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26274 echo "$as_me:$LINENO: checking for $ac_func" >&5
26275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26276 if eval "test \"\${$as_ac_var+set}\" = set"; then
26277 echo $ECHO_N "(cached) $ECHO_C" >&6
26279 cat >conftest.$ac_ext <<_ACEOF
26280 #line $LINENO "configure"
26283 cat confdefs.h >>conftest.$ac_ext
26284 cat >>conftest.$ac_ext <<_ACEOF
26285 /* end confdefs.h. */
26286 /* System header to define __stub macros and hopefully few prototypes,
26287 which can conflict with char $ac_func (); below.
26288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26289 <limits.h> exists even on freestanding compilers. */
26291 # include <limits.h>
26293 # include <assert.h>
26295 /* Override any gcc2 internal prototype to avoid an error. */
26300 /* We use char because int might match the return type of a gcc2
26301 builtin and then its argument prototype would still apply. */
26303 /* The GNU C library defines this for functions which it implements
26304 to always fail with ENOSYS. Some functions are actually named
26305 something starting with __ and the normal name is an alias. */
26306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26309 char (*f) () = $ac_func;
26318 return f != $ac_func;
26323 rm -f conftest.$ac_objext conftest$ac_exeext
26324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26325 (eval $ac_link) 2>&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); } &&
26329 { ac_try='test -s conftest$ac_exeext'
26330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331 (eval $ac_try) 2>&5
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); }; }; then
26335 eval "$as_ac_var=yes"
26337 echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26340 eval "$as_ac_var=no"
26342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26346 if test `eval echo '${'$as_ac_var'}'` = yes; then
26347 cat >>confdefs.h <<_ACEOF
26348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26352 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26361 for ac_func in snprintf vsnprintf asprintf vasprintf
26363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26364 echo "$as_me:$LINENO: checking for $ac_func" >&5
26365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26366 if eval "test \"\${$as_ac_var+set}\" = set"; then
26367 echo $ECHO_N "(cached) $ECHO_C" >&6
26369 cat >conftest.$ac_ext <<_ACEOF
26370 #line $LINENO "configure"
26373 cat confdefs.h >>conftest.$ac_ext
26374 cat >>conftest.$ac_ext <<_ACEOF
26375 /* end confdefs.h. */
26376 /* System header to define __stub macros and hopefully few prototypes,
26377 which can conflict with char $ac_func (); below.
26378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26379 <limits.h> exists even on freestanding compilers. */
26381 # include <limits.h>
26383 # include <assert.h>
26385 /* Override any gcc2 internal prototype to avoid an error. */
26390 /* We use char because int might match the return type of a gcc2
26391 builtin and then its argument prototype would still apply. */
26393 /* The GNU C library defines this for functions which it implements
26394 to always fail with ENOSYS. Some functions are actually named
26395 something starting with __ and the normal name is an alias. */
26396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26399 char (*f) () = $ac_func;
26408 return f != $ac_func;
26413 rm -f conftest.$ac_objext conftest$ac_exeext
26414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26415 (eval $ac_link) 2>&5
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); } &&
26419 { ac_try='test -s conftest$ac_exeext'
26420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421 (eval $ac_try) 2>&5
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); }; }; then
26425 eval "$as_ac_var=yes"
26427 echo "$as_me: failed program was:" >&5
26428 sed 's/^/| /' conftest.$ac_ext >&5
26430 eval "$as_ac_var=no"
26432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26436 if test `eval echo '${'$as_ac_var'}'` = yes; then
26437 cat >>confdefs.h <<_ACEOF
26438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26446 if test X"$ac_cv_type_struct_timespec" != X"no"; then
26447 echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
26448 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6
26449 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
26450 echo $ECHO_N "(cached) $ECHO_C" >&6
26452 cat >conftest.$ac_ext <<_ACEOF
26453 #line $LINENO "configure"
26456 cat confdefs.h >>conftest.$ac_ext
26457 cat >>conftest.$ac_ext <<_ACEOF
26458 /* end confdefs.h. */
26459 $ac_includes_default
26463 static struct stat ac_aggr;
26464 if (ac_aggr.st_mtim)
26470 rm -f conftest.$ac_objext
26471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26472 (eval $ac_compile) 2>&5
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); } &&
26476 { ac_try='test -s conftest.$ac_objext'
26477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478 (eval $ac_try) 2>&5
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); }; }; then
26482 ac_cv_member_struct_stat_st_mtim=yes
26484 echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26487 cat >conftest.$ac_ext <<_ACEOF
26488 #line $LINENO "configure"
26491 cat confdefs.h >>conftest.$ac_ext
26492 cat >>conftest.$ac_ext <<_ACEOF
26493 /* end confdefs.h. */
26494 $ac_includes_default
26498 static struct stat ac_aggr;
26499 if (sizeof ac_aggr.st_mtim)
26505 rm -f conftest.$ac_objext
26506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26507 (eval $ac_compile) 2>&5
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); } &&
26511 { ac_try='test -s conftest.$ac_objext'
26512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26513 (eval $ac_try) 2>&5
26515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); }; }; then
26517 ac_cv_member_struct_stat_st_mtim=yes
26519 echo "$as_me: failed program was:" >&5
26520 sed 's/^/| /' conftest.$ac_ext >&5
26522 ac_cv_member_struct_stat_st_mtim=no
26524 rm -f conftest.$ac_objext conftest.$ac_ext
26526 rm -f conftest.$ac_objext conftest.$ac_ext
26528 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
26529 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6
26530 if test $ac_cv_member_struct_stat_st_mtim = yes; then
26531 cat >>confdefs.h <<\_ACEOF
26532 #define HAVE_ST_MTIM 1
26536 echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
26537 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6
26538 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
26539 echo $ECHO_N "(cached) $ECHO_C" >&6
26541 cat >conftest.$ac_ext <<_ACEOF
26542 #line $LINENO "configure"
26545 cat confdefs.h >>conftest.$ac_ext
26546 cat >>conftest.$ac_ext <<_ACEOF
26547 /* end confdefs.h. */
26548 $ac_includes_default
26552 static struct stat ac_aggr;
26553 if (ac_aggr.st_mtimespec)
26559 rm -f conftest.$ac_objext
26560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26561 (eval $ac_compile) 2>&5
26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564 (exit $ac_status); } &&
26565 { ac_try='test -s conftest.$ac_objext'
26566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26567 (eval $ac_try) 2>&5
26569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570 (exit $ac_status); }; }; then
26571 ac_cv_member_struct_stat_st_mtimespec=yes
26573 echo "$as_me: failed program was:" >&5
26574 sed 's/^/| /' conftest.$ac_ext >&5
26576 cat >conftest.$ac_ext <<_ACEOF
26577 #line $LINENO "configure"
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h. */
26583 $ac_includes_default
26587 static struct stat ac_aggr;
26588 if (sizeof ac_aggr.st_mtimespec)
26594 rm -f conftest.$ac_objext
26595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26596 (eval $ac_compile) 2>&5
26598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599 (exit $ac_status); } &&
26600 { ac_try='test -s conftest.$ac_objext'
26601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602 (eval $ac_try) 2>&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); }; }; then
26606 ac_cv_member_struct_stat_st_mtimespec=yes
26608 echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26611 ac_cv_member_struct_stat_st_mtimespec=no
26613 rm -f conftest.$ac_objext conftest.$ac_ext
26615 rm -f conftest.$ac_objext conftest.$ac_ext
26617 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
26618 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6
26619 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
26620 cat >>confdefs.h <<\_ACEOF
26621 #define HAVE_ST_MTIMESPEC 1
26628 echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
26629 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6
26630 cat >conftest.$ac_ext <<_ACEOF
26631 #line $LINENO "configure"
26634 cat confdefs.h >>conftest.$ac_ext
26635 cat >>conftest.$ac_ext <<_ACEOF
26636 /* end confdefs.h. */
26637 #include <sys/types.h>
26638 #include <sys/time.h>
26642 struct timespec ts1, ts2;
26643 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
26644 #ifndef timespecsub
26645 #error missing timespecsub
26647 timespecsub(&ts1, &ts2);
26652 rm -f conftest.$ac_objext
26653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26654 (eval $ac_compile) 2>&5
26656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657 (exit $ac_status); } &&
26658 { ac_try='test -s conftest.$ac_objext'
26659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26660 (eval $ac_try) 2>&5
26662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 (exit $ac_status); }; }; then
26664 cat >>confdefs.h <<\_ACEOF
26665 #define HAVE_TIMESPECSUB2 1
26668 echo "$as_me:$LINENO: result: yes" >&5
26669 echo "${ECHO_T}yes" >&6
26671 echo "$as_me: failed program was:" >&5
26672 sed 's/^/| /' conftest.$ac_ext >&5
26674 echo "$as_me:$LINENO: result: no" >&5
26675 echo "${ECHO_T}no" >&6
26677 rm -f conftest.$ac_objext conftest.$ac_ext
26679 cat >conftest.$ac_ext <<_ACEOF
26680 #line $LINENO "configure"
26683 cat confdefs.h >>conftest.$ac_ext
26684 cat >>conftest.$ac_ext <<_ACEOF
26685 /* end confdefs.h. */
26686 #include <sys/types.h>
26687 #include <$ac_header_dirent>
26691 DIR d; (void)dirfd(&d);
26696 rm -f conftest.$ac_objext conftest$ac_exeext
26697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26698 (eval $ac_link) 2>&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); } &&
26702 { ac_try='test -s conftest$ac_exeext'
26703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704 (eval $ac_try) 2>&5
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); }; }; then
26708 cat >>confdefs.h <<\_ACEOF
26709 #define HAVE_DIRFD 1
26713 echo "$as_me: failed program was:" >&5
26714 sed 's/^/| /' conftest.$ac_ext >&5
26716 cat >conftest.$ac_ext <<_ACEOF
26717 #line $LINENO "configure"
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h. */
26723 #include <sys/types.h>
26724 #include <$ac_header_dirent>
26728 DIR d; (void)&d.dd_fd;
26733 rm -f conftest.$ac_objext conftest$ac_exeext
26734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26735 (eval $ac_link) 2>&5
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); } &&
26739 { ac_try='test -s conftest$ac_exeext'
26740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26741 (eval $ac_try) 2>&5
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); }; }; then
26745 cat >>confdefs.h <<\_ACEOF
26746 #define HAVE_DD_FD 1
26750 echo "$as_me: failed program was:" >&5
26751 sed 's/^/| /' conftest.$ac_ext >&5
26754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26757 if test -n "$NEED_SNPRINTF"; then
26758 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
26760 if test -z "$LIB_CRYPT" -a "$with_pam" != "yes"; then
26761 echo "$as_me:$LINENO: checking for crypt" >&5
26762 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
26763 if test "${ac_cv_func_crypt+set}" = set; then
26764 echo $ECHO_N "(cached) $ECHO_C" >&6
26766 cat >conftest.$ac_ext <<_ACEOF
26767 #line $LINENO "configure"
26770 cat confdefs.h >>conftest.$ac_ext
26771 cat >>conftest.$ac_ext <<_ACEOF
26772 /* end confdefs.h. */
26773 /* System header to define __stub macros and hopefully few prototypes,
26774 which can conflict with char crypt (); below.
26775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26776 <limits.h> exists even on freestanding compilers. */
26778 # include <limits.h>
26780 # include <assert.h>
26782 /* Override any gcc2 internal prototype to avoid an error. */
26787 /* We use char because int might match the return type of a gcc2
26788 builtin and then its argument prototype would still apply. */
26790 /* The GNU C library defines this for functions which it implements
26791 to always fail with ENOSYS. Some functions are actually named
26792 something starting with __ and the normal name is an alias. */
26793 #if defined (__stub_crypt) || defined (__stub___crypt)
26796 char (*f) () = crypt;
26810 rm -f conftest.$ac_objext conftest$ac_exeext
26811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26812 (eval $ac_link) 2>&5
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); } &&
26816 { ac_try='test -s conftest$ac_exeext'
26817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26818 (eval $ac_try) 2>&5
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); }; }; then
26822 ac_cv_func_crypt=yes
26824 echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26827 ac_cv_func_crypt=no
26829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26831 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
26832 echo "${ECHO_T}$ac_cv_func_crypt" >&6
26833 if test $ac_cv_func_crypt = yes; then
26836 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
26837 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
26838 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
26839 echo $ECHO_N "(cached) $ECHO_C" >&6
26841 ac_check_lib_save_LIBS=$LIBS
26842 LIBS="-lcrypt $LIBS"
26843 cat >conftest.$ac_ext <<_ACEOF
26844 #line $LINENO "configure"
26847 cat confdefs.h >>conftest.$ac_ext
26848 cat >>conftest.$ac_ext <<_ACEOF
26849 /* end confdefs.h. */
26851 /* Override any gcc2 internal prototype to avoid an error. */
26855 /* We use char because int might match the return type of a gcc2
26856 builtin and then its argument prototype would still apply. */
26866 rm -f conftest.$ac_objext conftest$ac_exeext
26867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26868 (eval $ac_link) 2>&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } &&
26872 { ac_try='test -s conftest$ac_exeext'
26873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26874 (eval $ac_try) 2>&5
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); }; }; then
26878 ac_cv_lib_crypt_crypt=yes
26880 echo "$as_me: failed program was:" >&5
26881 sed 's/^/| /' conftest.$ac_ext >&5
26883 ac_cv_lib_crypt_crypt=no
26885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26886 LIBS=$ac_check_lib_save_LIBS
26888 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
26889 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
26890 if test $ac_cv_lib_crypt_crypt = yes; then
26891 SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
26893 echo "$as_me:$LINENO: checking for crypt in -lcrypt_d" >&5
26894 echo $ECHO_N "checking for crypt in -lcrypt_d... $ECHO_C" >&6
26895 if test "${ac_cv_lib_crypt_d_crypt+set}" = set; then
26896 echo $ECHO_N "(cached) $ECHO_C" >&6
26898 ac_check_lib_save_LIBS=$LIBS
26899 LIBS="-lcrypt_d $LIBS"
26900 cat >conftest.$ac_ext <<_ACEOF
26901 #line $LINENO "configure"
26904 cat confdefs.h >>conftest.$ac_ext
26905 cat >>conftest.$ac_ext <<_ACEOF
26906 /* end confdefs.h. */
26908 /* Override any gcc2 internal prototype to avoid an error. */
26912 /* We use char because int might match the return type of a gcc2
26913 builtin and then its argument prototype would still apply. */
26923 rm -f conftest.$ac_objext conftest$ac_exeext
26924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26925 (eval $ac_link) 2>&5
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); } &&
26929 { ac_try='test -s conftest$ac_exeext'
26930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26931 (eval $ac_try) 2>&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); }; }; then
26935 ac_cv_lib_crypt_d_crypt=yes
26937 echo "$as_me: failed program was:" >&5
26938 sed 's/^/| /' conftest.$ac_ext >&5
26940 ac_cv_lib_crypt_d_crypt=no
26942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26943 LIBS=$ac_check_lib_save_LIBS
26945 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_d_crypt" >&5
26946 echo "${ECHO_T}$ac_cv_lib_crypt_d_crypt" >&6
26947 if test $ac_cv_lib_crypt_d_crypt = yes; then
26948 SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
26950 echo "$as_me:$LINENO: checking for crypt in -lufc" >&5
26951 echo $ECHO_N "checking for crypt in -lufc... $ECHO_C" >&6
26952 if test "${ac_cv_lib_ufc_crypt+set}" = set; then
26953 echo $ECHO_N "(cached) $ECHO_C" >&6
26955 ac_check_lib_save_LIBS=$LIBS
26957 cat >conftest.$ac_ext <<_ACEOF
26958 #line $LINENO "configure"
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h. */
26965 /* Override any gcc2 internal prototype to avoid an error. */
26969 /* We use char because int might match the return type of a gcc2
26970 builtin and then its argument prototype would still apply. */
26980 rm -f conftest.$ac_objext conftest$ac_exeext
26981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26982 (eval $ac_link) 2>&5
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); } &&
26986 { ac_try='test -s conftest$ac_exeext'
26987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988 (eval $ac_try) 2>&5
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); }; }; then
26992 ac_cv_lib_ufc_crypt=yes
26994 echo "$as_me: failed program was:" >&5
26995 sed 's/^/| /' conftest.$ac_ext >&5
26997 ac_cv_lib_ufc_crypt=no
26999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27000 LIBS=$ac_check_lib_save_LIBS
27002 echo "$as_me:$LINENO: result: $ac_cv_lib_ufc_crypt" >&5
27003 echo "${ECHO_T}$ac_cv_lib_ufc_crypt" >&6
27004 if test $ac_cv_lib_ufc_crypt = yes; then
27005 SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
27015 echo "$as_me:$LINENO: checking for socket" >&5
27016 echo $ECHO_N "checking for socket... $ECHO_C" >&6
27017 if test "${ac_cv_func_socket+set}" = set; then
27018 echo $ECHO_N "(cached) $ECHO_C" >&6
27020 cat >conftest.$ac_ext <<_ACEOF
27021 #line $LINENO "configure"
27024 cat confdefs.h >>conftest.$ac_ext
27025 cat >>conftest.$ac_ext <<_ACEOF
27026 /* end confdefs.h. */
27027 /* System header to define __stub macros and hopefully few prototypes,
27028 which can conflict with char socket (); below.
27029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27030 <limits.h> exists even on freestanding compilers. */
27032 # include <limits.h>
27034 # include <assert.h>
27036 /* Override any gcc2 internal prototype to avoid an error. */
27041 /* We use char because int might match the return type of a gcc2
27042 builtin and then its argument prototype would still apply. */
27044 /* The GNU C library defines this for functions which it implements
27045 to always fail with ENOSYS. Some functions are actually named
27046 something starting with __ and the normal name is an alias. */
27047 #if defined (__stub_socket) || defined (__stub___socket)
27050 char (*f) () = socket;
27059 return f != socket;
27064 rm -f conftest.$ac_objext conftest$ac_exeext
27065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27066 (eval $ac_link) 2>&5
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); } &&
27070 { ac_try='test -s conftest$ac_exeext'
27071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072 (eval $ac_try) 2>&5
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; }; then
27076 ac_cv_func_socket=yes
27078 echo "$as_me: failed program was:" >&5
27079 sed 's/^/| /' conftest.$ac_ext >&5
27081 ac_cv_func_socket=no
27083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27085 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
27086 echo "${ECHO_T}$ac_cv_func_socket" >&6
27087 if test $ac_cv_func_socket = yes; then
27090 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
27091 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
27092 if test "${ac_cv_lib_socket_socket+set}" = set; then
27093 echo $ECHO_N "(cached) $ECHO_C" >&6
27095 ac_check_lib_save_LIBS=$LIBS
27096 LIBS="-lsocket $LIBS"
27097 cat >conftest.$ac_ext <<_ACEOF
27098 #line $LINENO "configure"
27101 cat confdefs.h >>conftest.$ac_ext
27102 cat >>conftest.$ac_ext <<_ACEOF
27103 /* end confdefs.h. */
27105 /* Override any gcc2 internal prototype to avoid an error. */
27109 /* We use char because int might match the return type of a gcc2
27110 builtin and then its argument prototype would still apply. */
27120 rm -f conftest.$ac_objext conftest$ac_exeext
27121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27122 (eval $ac_link) 2>&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); } &&
27126 { ac_try='test -s conftest$ac_exeext'
27127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128 (eval $ac_try) 2>&5
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); }; }; then
27132 ac_cv_lib_socket_socket=yes
27134 echo "$as_me: failed program was:" >&5
27135 sed 's/^/| /' conftest.$ac_ext >&5
27137 ac_cv_lib_socket_socket=no
27139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27140 LIBS=$ac_check_lib_save_LIBS
27142 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
27143 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
27144 if test $ac_cv_lib_socket_socket = yes; then
27145 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
27147 echo "$as_me:$LINENO: checking for socket in -linet" >&5
27148 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
27149 if test "${ac_cv_lib_inet_socket+set}" = set; then
27150 echo $ECHO_N "(cached) $ECHO_C" >&6
27152 ac_check_lib_save_LIBS=$LIBS
27153 LIBS="-linet $LIBS"
27154 cat >conftest.$ac_ext <<_ACEOF
27155 #line $LINENO "configure"
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h. */
27162 /* Override any gcc2 internal prototype to avoid an error. */
27166 /* We use char because int might match the return type of a gcc2
27167 builtin and then its argument prototype would still apply. */
27177 rm -f conftest.$ac_objext conftest$ac_exeext
27178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27179 (eval $ac_link) 2>&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); } &&
27183 { ac_try='test -s conftest$ac_exeext'
27184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27185 (eval $ac_try) 2>&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); }; }; then
27189 ac_cv_lib_inet_socket=yes
27191 echo "$as_me: failed program was:" >&5
27192 sed 's/^/| /' conftest.$ac_ext >&5
27194 ac_cv_lib_inet_socket=no
27196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27197 LIBS=$ac_check_lib_save_LIBS
27199 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
27200 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
27201 if test $ac_cv_lib_inet_socket = yes; then
27202 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
27204 { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
27205 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
27206 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
27207 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
27208 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
27209 echo $ECHO_N "(cached) $ECHO_C" >&6
27211 ac_check_lib_save_LIBS=$LIBS
27212 LIBS="-lsocket -lnsl $LIBS"
27213 cat >conftest.$ac_ext <<_ACEOF
27214 #line $LINENO "configure"
27217 cat confdefs.h >>conftest.$ac_ext
27218 cat >>conftest.$ac_ext <<_ACEOF
27219 /* end confdefs.h. */
27221 /* Override any gcc2 internal prototype to avoid an error. */
27225 /* We use char because int might match the return type of a gcc2
27226 builtin and then its argument prototype would still apply. */
27236 rm -f conftest.$ac_objext conftest$ac_exeext
27237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27238 (eval $ac_link) 2>&5
27240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); } &&
27242 { ac_try='test -s conftest$ac_exeext'
27243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244 (eval $ac_try) 2>&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; }; then
27248 ac_cv_lib_socket_socket_lnsl=yes
27250 echo "$as_me: failed program was:" >&5
27251 sed 's/^/| /' conftest.$ac_ext >&5
27253 ac_cv_lib_socket_socket_lnsl=no
27255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27256 LIBS=$ac_check_lib_save_LIBS
27258 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
27259 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6
27260 if test $ac_cv_lib_socket_socket_lnsl = yes; then
27261 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
27270 echo "$as_me:$LINENO: checking for inet_addr" >&5
27271 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
27272 if test "${ac_cv_func_inet_addr+set}" = set; then
27273 echo $ECHO_N "(cached) $ECHO_C" >&6
27275 cat >conftest.$ac_ext <<_ACEOF
27276 #line $LINENO "configure"
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h. */
27282 /* System header to define __stub macros and hopefully few prototypes,
27283 which can conflict with char inet_addr (); below.
27284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27285 <limits.h> exists even on freestanding compilers. */
27287 # include <limits.h>
27289 # include <assert.h>
27291 /* Override any gcc2 internal prototype to avoid an error. */
27296 /* We use char because int might match the return type of a gcc2
27297 builtin and then its argument prototype would still apply. */
27299 /* The GNU C library defines this for functions which it implements
27300 to always fail with ENOSYS. Some functions are actually named
27301 something starting with __ and the normal name is an alias. */
27302 #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
27305 char (*f) () = inet_addr;
27314 return f != inet_addr;
27319 rm -f conftest.$ac_objext conftest$ac_exeext
27320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27321 (eval $ac_link) 2>&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } &&
27325 { ac_try='test -s conftest$ac_exeext'
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; }; then
27331 ac_cv_func_inet_addr=yes
27333 echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27336 ac_cv_func_inet_addr=no
27338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27340 echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
27341 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
27342 if test $ac_cv_func_inet_addr = yes; then
27345 echo "$as_me:$LINENO: checking for __inet_addr" >&5
27346 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6
27347 if test "${ac_cv_func___inet_addr+set}" = set; then
27348 echo $ECHO_N "(cached) $ECHO_C" >&6
27350 cat >conftest.$ac_ext <<_ACEOF
27351 #line $LINENO "configure"
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h. */
27357 /* System header to define __stub macros and hopefully few prototypes,
27358 which can conflict with char __inet_addr (); below.
27359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27360 <limits.h> exists even on freestanding compilers. */
27362 # include <limits.h>
27364 # include <assert.h>
27366 /* Override any gcc2 internal prototype to avoid an error. */
27371 /* We use char because int might match the return type of a gcc2
27372 builtin and then its argument prototype would still apply. */
27373 char __inet_addr ();
27374 /* The GNU C library defines this for functions which it implements
27375 to always fail with ENOSYS. Some functions are actually named
27376 something starting with __ and the normal name is an alias. */
27377 #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
27380 char (*f) () = __inet_addr;
27389 return f != __inet_addr;
27394 rm -f conftest.$ac_objext conftest$ac_exeext
27395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27396 (eval $ac_link) 2>&5
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); } &&
27400 { ac_try='test -s conftest$ac_exeext'
27401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27402 (eval $ac_try) 2>&5
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); }; }; then
27406 ac_cv_func___inet_addr=yes
27408 echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27411 ac_cv_func___inet_addr=no
27413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27415 echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
27416 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6
27417 if test $ac_cv_func___inet_addr = yes; then
27420 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
27421 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
27422 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
27423 echo $ECHO_N "(cached) $ECHO_C" >&6
27425 ac_check_lib_save_LIBS=$LIBS
27427 cat >conftest.$ac_ext <<_ACEOF
27428 #line $LINENO "configure"
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h. */
27435 /* Override any gcc2 internal prototype to avoid an error. */
27439 /* We use char because int might match the return type of a gcc2
27440 builtin and then its argument prototype would still apply. */
27450 rm -f conftest.$ac_objext conftest$ac_exeext
27451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27452 (eval $ac_link) 2>&5
27454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); } &&
27456 { ac_try='test -s conftest$ac_exeext'
27457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27458 (eval $ac_try) 2>&5
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); }; }; then
27462 ac_cv_lib_nsl_inet_addr=yes
27464 echo "$as_me: failed program was:" >&5
27465 sed 's/^/| /' conftest.$ac_ext >&5
27467 ac_cv_lib_nsl_inet_addr=no
27469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27470 LIBS=$ac_check_lib_save_LIBS
27472 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
27473 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
27474 if test $ac_cv_lib_nsl_inet_addr = yes; then
27475 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
27477 echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
27478 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6
27479 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
27480 echo $ECHO_N "(cached) $ECHO_C" >&6
27482 ac_check_lib_save_LIBS=$LIBS
27483 LIBS="-linet $LIBS"
27484 cat >conftest.$ac_ext <<_ACEOF
27485 #line $LINENO "configure"
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h. */
27492 /* Override any gcc2 internal prototype to avoid an error. */
27496 /* We use char because int might match the return type of a gcc2
27497 builtin and then its argument prototype would still apply. */
27507 rm -f conftest.$ac_objext conftest$ac_exeext
27508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27509 (eval $ac_link) 2>&5
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); } &&
27513 { ac_try='test -s conftest$ac_exeext'
27514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515 (eval $ac_try) 2>&5
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); }; }; then
27519 ac_cv_lib_inet_inet_addr=yes
27521 echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27524 ac_cv_lib_inet_inet_addr=no
27526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27527 LIBS=$ac_check_lib_save_LIBS
27529 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
27530 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6
27531 if test $ac_cv_lib_inet_inet_addr = yes; then
27532 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
27534 { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
27535 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
27536 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
27537 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
27538 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
27539 echo $ECHO_N "(cached) $ECHO_C" >&6
27541 ac_check_lib_save_LIBS=$LIBS
27542 LIBS="-lsocket -lnsl $LIBS"
27543 cat >conftest.$ac_ext <<_ACEOF
27544 #line $LINENO "configure"
27547 cat confdefs.h >>conftest.$ac_ext
27548 cat >>conftest.$ac_ext <<_ACEOF
27549 /* end confdefs.h. */
27551 /* Override any gcc2 internal prototype to avoid an error. */
27555 /* We use char because int might match the return type of a gcc2
27556 builtin and then its argument prototype would still apply. */
27566 rm -f conftest.$ac_objext conftest$ac_exeext
27567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27568 (eval $ac_link) 2>&5
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); } &&
27572 { ac_try='test -s conftest$ac_exeext'
27573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27574 (eval $ac_try) 2>&5
27576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577 (exit $ac_status); }; }; then
27578 ac_cv_lib_socket_inet_addr_lnsl=yes
27580 echo "$as_me: failed program was:" >&5
27581 sed 's/^/| /' conftest.$ac_ext >&5
27583 ac_cv_lib_socket_inet_addr_lnsl=no
27585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27586 LIBS=$ac_check_lib_save_LIBS
27588 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
27589 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6
27590 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
27591 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
27602 echo "$as_me:$LINENO: checking for syslog" >&5
27603 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
27604 if test "${ac_cv_func_syslog+set}" = set; then
27605 echo $ECHO_N "(cached) $ECHO_C" >&6
27607 cat >conftest.$ac_ext <<_ACEOF
27608 #line $LINENO "configure"
27611 cat confdefs.h >>conftest.$ac_ext
27612 cat >>conftest.$ac_ext <<_ACEOF
27613 /* end confdefs.h. */
27614 /* System header to define __stub macros and hopefully few prototypes,
27615 which can conflict with char syslog (); below.
27616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27617 <limits.h> exists even on freestanding compilers. */
27619 # include <limits.h>
27621 # include <assert.h>
27623 /* Override any gcc2 internal prototype to avoid an error. */
27628 /* We use char because int might match the return type of a gcc2
27629 builtin and then its argument prototype would still apply. */
27631 /* The GNU C library defines this for functions which it implements
27632 to always fail with ENOSYS. Some functions are actually named
27633 something starting with __ and the normal name is an alias. */
27634 #if defined (__stub_syslog) || defined (__stub___syslog)
27637 char (*f) () = syslog;
27646 return f != syslog;
27651 rm -f conftest.$ac_objext conftest$ac_exeext
27652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27653 (eval $ac_link) 2>&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); } &&
27657 { ac_try='test -s conftest$ac_exeext'
27658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27659 (eval $ac_try) 2>&5
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); }; }; then
27663 ac_cv_func_syslog=yes
27665 echo "$as_me: failed program was:" >&5
27666 sed 's/^/| /' conftest.$ac_ext >&5
27668 ac_cv_func_syslog=no
27670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27672 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
27673 echo "${ECHO_T}$ac_cv_func_syslog" >&6
27674 if test $ac_cv_func_syslog = yes; then
27677 echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
27678 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6
27679 if test "${ac_cv_lib_socket_syslog+set}" = set; then
27680 echo $ECHO_N "(cached) $ECHO_C" >&6
27682 ac_check_lib_save_LIBS=$LIBS
27683 LIBS="-lsocket $LIBS"
27684 cat >conftest.$ac_ext <<_ACEOF
27685 #line $LINENO "configure"
27688 cat confdefs.h >>conftest.$ac_ext
27689 cat >>conftest.$ac_ext <<_ACEOF
27690 /* end confdefs.h. */
27692 /* Override any gcc2 internal prototype to avoid an error. */
27696 /* We use char because int might match the return type of a gcc2
27697 builtin and then its argument prototype would still apply. */
27707 rm -f conftest.$ac_objext conftest$ac_exeext
27708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27709 (eval $ac_link) 2>&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); } &&
27713 { ac_try='test -s conftest$ac_exeext'
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; }; then
27719 ac_cv_lib_socket_syslog=yes
27721 echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27724 ac_cv_lib_socket_syslog=no
27726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27727 LIBS=$ac_check_lib_save_LIBS
27729 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
27730 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6
27731 if test $ac_cv_lib_socket_syslog = yes; then
27732 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
27734 echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
27735 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6
27736 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
27737 echo $ECHO_N "(cached) $ECHO_C" >&6
27739 ac_check_lib_save_LIBS=$LIBS
27741 cat >conftest.$ac_ext <<_ACEOF
27742 #line $LINENO "configure"
27745 cat confdefs.h >>conftest.$ac_ext
27746 cat >>conftest.$ac_ext <<_ACEOF
27747 /* end confdefs.h. */
27749 /* Override any gcc2 internal prototype to avoid an error. */
27753 /* We use char because int might match the return type of a gcc2
27754 builtin and then its argument prototype would still apply. */
27764 rm -f conftest.$ac_objext conftest$ac_exeext
27765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27766 (eval $ac_link) 2>&5
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); } &&
27770 { ac_try='test -s conftest$ac_exeext'
27771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772 (eval $ac_try) 2>&5
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; }; then
27776 ac_cv_lib_nsl_syslog=yes
27778 echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27781 ac_cv_lib_nsl_syslog=no
27783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27784 LIBS=$ac_check_lib_save_LIBS
27786 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
27787 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6
27788 if test $ac_cv_lib_nsl_syslog = yes; then
27789 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
27791 echo "$as_me:$LINENO: checking for syslog in -linet" >&5
27792 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6
27793 if test "${ac_cv_lib_inet_syslog+set}" = set; then
27794 echo $ECHO_N "(cached) $ECHO_C" >&6
27796 ac_check_lib_save_LIBS=$LIBS
27797 LIBS="-linet $LIBS"
27798 cat >conftest.$ac_ext <<_ACEOF
27799 #line $LINENO "configure"
27802 cat confdefs.h >>conftest.$ac_ext
27803 cat >>conftest.$ac_ext <<_ACEOF
27804 /* end confdefs.h. */
27806 /* Override any gcc2 internal prototype to avoid an error. */
27810 /* We use char because int might match the return type of a gcc2
27811 builtin and then its argument prototype would still apply. */
27821 rm -f conftest.$ac_objext conftest$ac_exeext
27822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27823 (eval $ac_link) 2>&5
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); } &&
27827 { ac_try='test -s conftest$ac_exeext'
27828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829 (eval $ac_try) 2>&5
27831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); }; }; then
27833 ac_cv_lib_inet_syslog=yes
27835 echo "$as_me: failed program was:" >&5
27836 sed 's/^/| /' conftest.$ac_ext >&5
27838 ac_cv_lib_inet_syslog=no
27840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27841 LIBS=$ac_check_lib_save_LIBS
27843 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
27844 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6
27845 if test $ac_cv_lib_inet_syslog = yes; then
27846 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
27855 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
27856 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27857 # for constant arguments. Useless!
27858 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27859 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27860 if test "${ac_cv_working_alloca_h+set}" = set; then
27861 echo $ECHO_N "(cached) $ECHO_C" >&6
27863 cat >conftest.$ac_ext <<_ACEOF
27864 #line $LINENO "configure"
27867 cat confdefs.h >>conftest.$ac_ext
27868 cat >>conftest.$ac_ext <<_ACEOF
27869 /* end confdefs.h. */
27870 #include <alloca.h>
27874 char *p = (char *) alloca (2 * sizeof (int));
27879 rm -f conftest.$ac_objext conftest$ac_exeext
27880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27881 (eval $ac_link) 2>&5
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); } &&
27885 { ac_try='test -s conftest$ac_exeext'
27886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887 (eval $ac_try) 2>&5
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); }; }; then
27891 ac_cv_working_alloca_h=yes
27893 echo "$as_me: failed program was:" >&5
27894 sed 's/^/| /' conftest.$ac_ext >&5
27896 ac_cv_working_alloca_h=no
27898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27900 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27901 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27902 if test $ac_cv_working_alloca_h = yes; then
27904 cat >>confdefs.h <<\_ACEOF
27905 #define HAVE_ALLOCA_H 1
27910 echo "$as_me:$LINENO: checking for alloca" >&5
27911 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27912 if test "${ac_cv_func_alloca_works+set}" = set; then
27913 echo $ECHO_N "(cached) $ECHO_C" >&6
27915 cat >conftest.$ac_ext <<_ACEOF
27916 #line $LINENO "configure"
27919 cat confdefs.h >>conftest.$ac_ext
27920 cat >>conftest.$ac_ext <<_ACEOF
27921 /* end confdefs.h. */
27923 # define alloca __builtin_alloca
27926 # include <malloc.h>
27927 # define alloca _alloca
27930 # include <alloca.h>
27935 # ifndef alloca /* predefined by HP cc +Olibcalls */
27946 char *p = (char *) alloca (1);
27951 rm -f conftest.$ac_objext conftest$ac_exeext
27952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27953 (eval $ac_link) 2>&5
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); } &&
27957 { ac_try='test -s conftest$ac_exeext'
27958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27959 (eval $ac_try) 2>&5
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); }; }; then
27963 ac_cv_func_alloca_works=yes
27965 echo "$as_me: failed program was:" >&5
27966 sed 's/^/| /' conftest.$ac_ext >&5
27968 ac_cv_func_alloca_works=no
27970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27972 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27973 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27975 if test $ac_cv_func_alloca_works = yes; then
27977 cat >>confdefs.h <<\_ACEOF
27978 #define HAVE_ALLOCA 1
27982 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27983 # that cause trouble. Some versions do not even contain alloca or
27984 # contain a buggy version. If you still want to use their alloca,
27985 # use ar to extract alloca.o from them instead of compiling alloca.c.
27987 ALLOCA=alloca.$ac_objext
27989 cat >>confdefs.h <<\_ACEOF
27994 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27995 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27996 if test "${ac_cv_os_cray+set}" = set; then
27997 echo $ECHO_N "(cached) $ECHO_C" >&6
27999 cat >conftest.$ac_ext <<_ACEOF
28000 #line $LINENO "configure"
28003 cat confdefs.h >>conftest.$ac_ext
28004 cat >>conftest.$ac_ext <<_ACEOF
28005 /* end confdefs.h. */
28006 #if defined(CRAY) && ! defined(CRAY2)
28013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28014 $EGREP "webecray" >/dev/null 2>&1; then
28022 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28023 echo "${ECHO_T}$ac_cv_os_cray" >&6
28024 if test $ac_cv_os_cray = yes; then
28025 for ac_func in _getb67 GETB67 getb67; do
28026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28027 echo "$as_me:$LINENO: checking for $ac_func" >&5
28028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28029 if eval "test \"\${$as_ac_var+set}\" = set"; then
28030 echo $ECHO_N "(cached) $ECHO_C" >&6
28032 cat >conftest.$ac_ext <<_ACEOF
28033 #line $LINENO "configure"
28036 cat confdefs.h >>conftest.$ac_ext
28037 cat >>conftest.$ac_ext <<_ACEOF
28038 /* end confdefs.h. */
28039 /* System header to define __stub macros and hopefully few prototypes,
28040 which can conflict with char $ac_func (); below.
28041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28042 <limits.h> exists even on freestanding compilers. */
28044 # include <limits.h>
28046 # include <assert.h>
28048 /* Override any gcc2 internal prototype to avoid an error. */
28053 /* We use char because int might match the return type of a gcc2
28054 builtin and then its argument prototype would still apply. */
28056 /* The GNU C library defines this for functions which it implements
28057 to always fail with ENOSYS. Some functions are actually named
28058 something starting with __ and the normal name is an alias. */
28059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28062 char (*f) () = $ac_func;
28071 return f != $ac_func;
28076 rm -f conftest.$ac_objext conftest$ac_exeext
28077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28078 (eval $ac_link) 2>&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); } &&
28082 { ac_try='test -s conftest$ac_exeext'
28083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084 (eval $ac_try) 2>&5
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); }; }; then
28088 eval "$as_ac_var=yes"
28090 echo "$as_me: failed program was:" >&5
28091 sed 's/^/| /' conftest.$ac_ext >&5
28093 eval "$as_ac_var=no"
28095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28099 if test `eval echo '${'$as_ac_var'}'` = yes; then
28101 cat >>confdefs.h <<_ACEOF
28102 #define CRAY_STACKSEG_END $ac_func
28111 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28112 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28113 if test "${ac_cv_c_stack_direction+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
28116 if test "$cross_compiling" = yes; then
28117 ac_cv_c_stack_direction=0
28119 cat >conftest.$ac_ext <<_ACEOF
28120 #line $LINENO "configure"
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h. */
28127 find_stack_direction ()
28129 static char *addr = 0;
28134 return find_stack_direction ();
28137 return (&dummy > addr) ? 1 : -1;
28143 exit (find_stack_direction () < 0);
28146 rm -f conftest$ac_exeext
28147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28148 (eval $ac_link) 2>&5
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28153 (eval $ac_try) 2>&5
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); }; }; then
28157 ac_cv_c_stack_direction=1
28159 echo "$as_me: program exited with status $ac_status" >&5
28160 echo "$as_me: failed program was:" >&5
28161 sed 's/^/| /' conftest.$ac_ext >&5
28163 ( exit $ac_status )
28164 ac_cv_c_stack_direction=-1
28166 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28169 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28170 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28172 cat >>confdefs.h <<_ACEOF
28173 #define STACK_DIRECTION $ac_cv_c_stack_direction
28181 for ac_func in getprogname
28183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28184 echo "$as_me:$LINENO: checking for $ac_func" >&5
28185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28186 if eval "test \"\${$as_ac_var+set}\" = set"; then
28187 echo $ECHO_N "(cached) $ECHO_C" >&6
28189 cat >conftest.$ac_ext <<_ACEOF
28190 #line $LINENO "configure"
28193 cat confdefs.h >>conftest.$ac_ext
28194 cat >>conftest.$ac_ext <<_ACEOF
28195 /* end confdefs.h. */
28196 /* System header to define __stub macros and hopefully few prototypes,
28197 which can conflict with char $ac_func (); below.
28198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28199 <limits.h> exists even on freestanding compilers. */
28201 # include <limits.h>
28203 # include <assert.h>
28205 /* Override any gcc2 internal prototype to avoid an error. */
28210 /* We use char because int might match the return type of a gcc2
28211 builtin and then its argument prototype would still apply. */
28213 /* The GNU C library defines this for functions which it implements
28214 to always fail with ENOSYS. Some functions are actually named
28215 something starting with __ and the normal name is an alias. */
28216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28219 char (*f) () = $ac_func;
28228 return f != $ac_func;
28233 rm -f conftest.$ac_objext conftest$ac_exeext
28234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28235 (eval $ac_link) 2>&5
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); } &&
28239 { ac_try='test -s conftest$ac_exeext'
28240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28241 (eval $ac_try) 2>&5
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; }; then
28245 eval "$as_ac_var=yes"
28247 echo "$as_me: failed program was:" >&5
28248 sed 's/^/| /' conftest.$ac_ext >&5
28250 eval "$as_ac_var=no"
28252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28256 if test `eval echo '${'$as_ac_var'}'` = yes; then
28257 cat >>confdefs.h <<_ACEOF
28258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28263 echo "$as_me:$LINENO: checking for __progname" >&5
28264 echo $ECHO_N "checking for __progname... $ECHO_C" >&6
28265 if test "${sudo_cv___progname+set}" = set; then
28266 echo $ECHO_N "(cached) $ECHO_C" >&6
28269 cat >conftest.$ac_ext <<_ACEOF
28270 #line $LINENO "configure"
28273 cat confdefs.h >>conftest.$ac_ext
28274 cat >>conftest.$ac_ext <<_ACEOF
28275 /* end confdefs.h. */
28280 extern char *__progname; (void)puts(__progname);
28285 rm -f conftest.$ac_objext conftest$ac_exeext
28286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28287 (eval $ac_link) 2>&5
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); } &&
28291 { ac_try='test -s conftest$ac_exeext'
28292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293 (eval $ac_try) 2>&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; }; then
28297 sudo_cv___progname=yes
28299 echo "$as_me: failed program was:" >&5
28300 sed 's/^/| /' conftest.$ac_ext >&5
28302 sudo_cv___progname=no
28304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28307 if test "$sudo_cv___progname" = "yes"; then
28308 cat >>confdefs.h <<\_ACEOF
28309 #define HAVE___PROGNAME 1
28313 LIBOBJS="$LIBOBJS getprogname.$ac_objext"
28315 echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
28316 echo "${ECHO_T}$sudo_cv___progname" >&6
28321 if test -n "$with_kerb4"; then
28322 cat >>confdefs.h <<\_ACEOF
28323 #define HAVE_KERB4 1
28326 O_LDFLAGS="$LDFLAGS"
28327 if test "$with_kerb4" = "yes"; then
28329 O_CPPFLAGS="$CPPFLAGS"
28330 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
28331 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
28332 cat >conftest.$ac_ext <<_ACEOF
28335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28338 grep -v '^ *+' conftest.er1 >conftest.err
28340 cat conftest.err >&5
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); } >/dev/null; then
28343 if test -s conftest.err; then
28344 ac_cpp_err=$ac_c_preproc_warn_flag
28351 if test -z "$ac_cpp_err"; then
28354 echo "$as_me: failed program was:" >&5
28355 sed 's/^/| /' conftest.$ac_ext >&5
28359 rm -f conftest.err conftest.$ac_ext
28361 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
28364 if test X"$with_rpath" = X"yes"; then
28365 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
28367 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
28369 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
28370 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
28374 if test X"$with_rpath" = X"yes"; then
28375 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
28377 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
28379 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
28380 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
28383 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
28384 if test "${ac_cv_header_krb_h+set}" = set; then
28385 echo "$as_me:$LINENO: checking for krb.h" >&5
28386 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
28387 if test "${ac_cv_header_krb_h+set}" = set; then
28388 echo $ECHO_N "(cached) $ECHO_C" >&6
28390 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
28391 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
28393 # Is the header compilable?
28394 echo "$as_me:$LINENO: checking krb.h usability" >&5
28395 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
28396 cat >conftest.$ac_ext <<_ACEOF
28397 #line $LINENO "configure"
28400 cat confdefs.h >>conftest.$ac_ext
28401 cat >>conftest.$ac_ext <<_ACEOF
28402 /* end confdefs.h. */
28403 $ac_includes_default
28406 rm -f conftest.$ac_objext
28407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28408 (eval $ac_compile) 2>&5
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); } &&
28412 { ac_try='test -s conftest.$ac_objext'
28413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28414 (eval $ac_try) 2>&5
28416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); }; }; then
28418 ac_header_compiler=yes
28420 echo "$as_me: failed program was:" >&5
28421 sed 's/^/| /' conftest.$ac_ext >&5
28423 ac_header_compiler=no
28425 rm -f conftest.$ac_objext conftest.$ac_ext
28426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28427 echo "${ECHO_T}$ac_header_compiler" >&6
28429 # Is the header present?
28430 echo "$as_me:$LINENO: checking krb.h presence" >&5
28431 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
28432 cat >conftest.$ac_ext <<_ACEOF
28433 #line $LINENO "configure"
28436 cat confdefs.h >>conftest.$ac_ext
28437 cat >>conftest.$ac_ext <<_ACEOF
28438 /* end confdefs.h. */
28441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28444 grep -v '^ *+' conftest.er1 >conftest.err
28446 cat conftest.err >&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); } >/dev/null; then
28449 if test -s conftest.err; then
28450 ac_cpp_err=$ac_c_preproc_warn_flag
28457 if test -z "$ac_cpp_err"; then
28458 ac_header_preproc=yes
28460 echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28463 ac_header_preproc=no
28465 rm -f conftest.err conftest.$ac_ext
28466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28467 echo "${ECHO_T}$ac_header_preproc" >&6
28469 # So? What about this header?
28470 case $ac_header_compiler:$ac_header_preproc in
28472 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
28473 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28474 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
28475 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
28478 ## ------------------------------------ ##
28479 ## Report this to bug-autoconf@gnu.org. ##
28480 ## ------------------------------------ ##
28483 sed "s/^/$as_me: WARNING: /" >&2
28486 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
28487 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
28488 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
28489 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
28490 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
28491 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
28494 ## ------------------------------------ ##
28495 ## Report this to bug-autoconf@gnu.org. ##
28496 ## ------------------------------------ ##
28499 sed "s/^/$as_me: WARNING: /" >&2
28502 echo "$as_me:$LINENO: checking for krb.h" >&5
28503 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
28504 if test "${ac_cv_header_krb_h+set}" = set; then
28505 echo $ECHO_N "(cached) $ECHO_C" >&6
28507 ac_cv_header_krb_h=$ac_header_preproc
28509 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
28510 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
28513 if test $ac_cv_header_krb_h = yes; then
28521 if test X"$found" = X"no"; then
28522 { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
28523 echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
28526 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
28527 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
28528 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
28529 echo $ECHO_N "(cached) $ECHO_C" >&6
28531 ac_check_lib_save_LIBS=$LIBS
28533 cat >conftest.$ac_ext <<_ACEOF
28534 #line $LINENO "configure"
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h. */
28541 /* Override any gcc2 internal prototype to avoid an error. */
28545 /* We use char because int might match the return type of a gcc2
28546 builtin and then its argument prototype would still apply. */
28547 char des_cbc_encrypt ();
28551 des_cbc_encrypt ();
28556 rm -f conftest.$ac_objext conftest$ac_exeext
28557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28558 (eval $ac_link) 2>&5
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); } &&
28562 { ac_try='test -s conftest$ac_exeext'
28563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564 (eval $ac_try) 2>&5
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); }; }; then
28568 ac_cv_lib_des_des_cbc_encrypt=yes
28570 echo "$as_me: failed program was:" >&5
28571 sed 's/^/| /' conftest.$ac_ext >&5
28573 ac_cv_lib_des_des_cbc_encrypt=no
28575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28576 LIBS=$ac_check_lib_save_LIBS
28578 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
28579 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
28580 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
28584 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
28585 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
28586 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
28587 echo $ECHO_N "(cached) $ECHO_C" >&6
28589 ac_check_lib_save_LIBS=$LIBS
28590 LIBS="-ldes425 $LIBS"
28591 cat >conftest.$ac_ext <<_ACEOF
28592 #line $LINENO "configure"
28595 cat confdefs.h >>conftest.$ac_ext
28596 cat >>conftest.$ac_ext <<_ACEOF
28597 /* end confdefs.h. */
28599 /* Override any gcc2 internal prototype to avoid an error. */
28603 /* We use char because int might match the return type of a gcc2
28604 builtin and then its argument prototype would still apply. */
28605 char des_cbc_encrypt ();
28609 des_cbc_encrypt ();
28614 rm -f conftest.$ac_objext conftest$ac_exeext
28615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28616 (eval $ac_link) 2>&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } &&
28620 { ac_try='test -s conftest$ac_exeext'
28621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622 (eval $ac_try) 2>&5
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; }; then
28626 ac_cv_lib_des425_des_cbc_encrypt=yes
28628 echo "$as_me: failed program was:" >&5
28629 sed 's/^/| /' conftest.$ac_ext >&5
28631 ac_cv_lib_des425_des_cbc_encrypt=no
28633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28634 LIBS=$ac_check_lib_save_LIBS
28636 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
28637 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
28638 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
28647 echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
28648 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6
28649 cat >conftest.$ac_ext <<_ACEOF
28650 #line $LINENO "configure"
28653 cat confdefs.h >>conftest.$ac_ext
28654 cat >>conftest.$ac_ext <<_ACEOF
28655 /* end confdefs.h. */
28660 const char *tmp = krb4_version;
28665 rm -f conftest.$ac_objext
28666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28667 (eval $ac_compile) 2>&5
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); } &&
28671 { ac_try='test -s conftest.$ac_objext'
28672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28673 (eval $ac_try) 2>&5
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); }; }; then
28678 echo "$as_me:$LINENO: result: yes" >&5
28679 echo "${ECHO_T}yes" >&6
28680 K4LIBS="${K4LIBS} -lcom_err"
28681 echo "$as_me:$LINENO: checking for main in -lroken" >&5
28682 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
28683 if test "${ac_cv_lib_roken_main+set}" = set; then
28684 echo $ECHO_N "(cached) $ECHO_C" >&6
28686 ac_check_lib_save_LIBS=$LIBS
28687 LIBS="-lroken $LIBS"
28688 cat >conftest.$ac_ext <<_ACEOF
28689 #line $LINENO "configure"
28692 cat confdefs.h >>conftest.$ac_ext
28693 cat >>conftest.$ac_ext <<_ACEOF
28694 /* end confdefs.h. */
28705 rm -f conftest.$ac_objext conftest$ac_exeext
28706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28707 (eval $ac_link) 2>&5
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); } &&
28711 { ac_try='test -s conftest$ac_exeext'
28712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28713 (eval $ac_try) 2>&5
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); }; }; then
28717 ac_cv_lib_roken_main=yes
28719 echo "$as_me: failed program was:" >&5
28720 sed 's/^/| /' conftest.$ac_ext >&5
28722 ac_cv_lib_roken_main=no
28724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28725 LIBS=$ac_check_lib_save_LIBS
28727 echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
28728 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
28729 if test $ac_cv_lib_roken_main = yes; then
28730 K4LIBS="${K4LIBS} -lroken"
28735 echo "$as_me: failed program was:" >&5
28736 sed 's/^/| /' conftest.$ac_ext >&5
28739 echo "$as_me:$LINENO: result: no" >&5
28740 echo "${ECHO_T}no" >&6
28744 rm -f conftest.$ac_objext conftest.$ac_ext
28745 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
28746 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
28747 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
28748 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28749 echo $ECHO_N "(cached) $ECHO_C" >&6
28751 ac_check_lib_save_LIBS=$LIBS
28752 LIBS="-lkrb $K4LIBS $LIBS"
28753 cat >conftest.$ac_ext <<_ACEOF
28754 #line $LINENO "configure"
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h. */
28770 rm -f conftest.$ac_objext conftest$ac_exeext
28771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28772 (eval $ac_link) 2>&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); } &&
28776 { ac_try='test -s conftest$ac_exeext'
28777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778 (eval $ac_try) 2>&5
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); }; }; then
28782 eval "$as_ac_Lib=yes"
28784 echo "$as_me: failed program was:" >&5
28785 sed 's/^/| /' conftest.$ac_ext >&5
28787 eval "$as_ac_Lib=no"
28789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28790 LIBS=$ac_check_lib_save_LIBS
28792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28793 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28794 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28795 K4LIBS="-lkrb $K4LIBS"
28798 as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
28799 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28800 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28801 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28802 echo $ECHO_N "(cached) $ECHO_C" >&6
28804 ac_check_lib_save_LIBS=$LIBS
28805 LIBS="-lkrb4 $K4LIBS $LIBS"
28806 cat >conftest.$ac_ext <<_ACEOF
28807 #line $LINENO "configure"
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h. */
28823 rm -f conftest.$ac_objext conftest$ac_exeext
28824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28825 (eval $ac_link) 2>&5
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); } &&
28829 { ac_try='test -s conftest$ac_exeext'
28830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831 (eval $ac_try) 2>&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; }; then
28835 eval "$as_ac_Lib=yes"
28837 echo "$as_me: failed program was:" >&5
28838 sed 's/^/| /' conftest.$ac_ext >&5
28840 eval "$as_ac_Lib=no"
28842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28843 LIBS=$ac_check_lib_save_LIBS
28845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28846 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28847 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28848 K4LIBS="-lkrb4 $K4LIBS"
28850 K4LIBS="-lkrb $K4LIBS"
28851 { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5
28852 echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;}
28859 LDFLAGS="$O_LDFLAGS"
28860 SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
28861 AUTH_OBJS="${AUTH_OBJS} kerb4.o"
28864 if test "$with_kerb5" = "yes"; then
28865 # Extract the first word of "krb5-config", so it can be a program name with args.
28866 set dummy krb5-config; ac_word=$2
28867 echo "$as_me:$LINENO: checking for $ac_word" >&5
28868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28869 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
28870 echo $ECHO_N "(cached) $ECHO_C" >&6
28872 if test -n "$KRB5CONFIG"; then
28873 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
28875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28876 for as_dir in $PATH
28879 test -z "$as_dir" && as_dir=.
28880 for ac_exec_ext in '' $ac_executable_extensions; do
28881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28882 ac_cv_prog_KRB5CONFIG="yes"
28883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28889 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
28892 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
28893 if test -n "$KRB5CONFIG"; then
28894 echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
28895 echo "${ECHO_T}$KRB5CONFIG" >&6
28897 echo "$as_me:$LINENO: result: no" >&5
28898 echo "${ECHO_T}no" >&6
28901 if test -n "$KRB5CONFIG"; then
28902 cat >>confdefs.h <<\_ACEOF
28903 #define HAVE_KERB5 1
28906 AUTH_OBJS="${AUTH_OBJS} kerb5.o"
28907 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
28908 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
28909 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
28910 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
28911 cat >conftest.$ac_ext <<_ACEOF
28912 #line $LINENO "configure"
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h. */
28922 const char *tmp = heimdal_version;
28927 rm -f conftest.$ac_objext
28928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28929 (eval $ac_compile) 2>&5
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); } &&
28933 { ac_try='test -s conftest.$ac_objext'
28934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935 (eval $ac_try) 2>&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); }; }; then
28940 echo "$as_me:$LINENO: result: yes" >&5
28941 echo "${ECHO_T}yes" >&6
28942 cat >>confdefs.h <<\_ACEOF
28943 #define HAVE_HEIMDAL 1
28949 echo "$as_me: failed program was:" >&5
28950 sed 's/^/| /' conftest.$ac_ext >&5
28953 rm -f conftest.$ac_objext conftest.$ac_ext
28956 if test -n "$with_kerb5" -a -z "$KRB5CONFIG"; then
28957 cat >>confdefs.h <<\_ACEOF
28958 #define HAVE_KERB5 1
28961 if test "$with_kerb5" = "yes"; then
28963 O_CPPFLAGS="$CPPFLAGS"
28964 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
28965 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
28966 cat >conftest.$ac_ext <<_ACEOF
28969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28972 grep -v '^ *+' conftest.er1 >conftest.err
28974 cat conftest.err >&5
28975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976 (exit $ac_status); } >/dev/null; then
28977 if test -s conftest.err; then
28978 ac_cpp_err=$ac_c_preproc_warn_flag
28985 if test -z "$ac_cpp_err"; then
28988 echo "$as_me: failed program was:" >&5
28989 sed 's/^/| /' conftest.$ac_ext >&5
28993 rm -f conftest.err conftest.$ac_ext
28995 if test X"$found" = X"no"; then
28996 CPPFLAGS="$O_CPPFLAGS"
28997 { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
28998 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;}
29002 if test X"$with_rpath" = X"yes"; then
29003 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
29005 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
29007 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29008 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
29011 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
29014 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
29015 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
29016 cat >conftest.$ac_ext <<_ACEOF
29017 #line $LINENO "configure"
29020 cat confdefs.h >>conftest.$ac_ext
29021 cat >>conftest.$ac_ext <<_ACEOF
29022 /* end confdefs.h. */
29027 const char *tmp = heimdal_version;
29032 rm -f conftest.$ac_objext
29033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29034 (eval $ac_compile) 2>&5
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); } &&
29038 { ac_try='test -s conftest.$ac_objext'
29039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29040 (eval $ac_try) 2>&5
29042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 (exit $ac_status); }; }; then
29045 echo "$as_me:$LINENO: result: yes" >&5
29046 echo "${ECHO_T}yes" >&6
29047 cat >>confdefs.h <<\_ACEOF
29048 #define HAVE_HEIMDAL 1
29051 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -ldes -lcom_err -lasn1"
29052 echo "$as_me:$LINENO: checking for main in -lroken" >&5
29053 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
29054 if test "${ac_cv_lib_roken_main+set}" = set; then
29055 echo $ECHO_N "(cached) $ECHO_C" >&6
29057 ac_check_lib_save_LIBS=$LIBS
29058 LIBS="-lroken $LIBS"
29059 cat >conftest.$ac_ext <<_ACEOF
29060 #line $LINENO "configure"
29063 cat confdefs.h >>conftest.$ac_ext
29064 cat >>conftest.$ac_ext <<_ACEOF
29065 /* end confdefs.h. */
29076 rm -f conftest.$ac_objext conftest$ac_exeext
29077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29078 (eval $ac_link) 2>&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); } &&
29082 { ac_try='test -s conftest$ac_exeext'
29083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29084 (eval $ac_try) 2>&5
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); }; }; then
29088 ac_cv_lib_roken_main=yes
29090 echo "$as_me: failed program was:" >&5
29091 sed 's/^/| /' conftest.$ac_ext >&5
29093 ac_cv_lib_roken_main=no
29095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29096 LIBS=$ac_check_lib_save_LIBS
29098 echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
29099 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
29100 if test $ac_cv_lib_roken_main = yes; then
29101 SUDO_LIBS="${SUDO_LIBS} -lroken"
29106 echo "$as_me: failed program was:" >&5
29107 sed 's/^/| /' conftest.$ac_ext >&5
29110 echo "$as_me:$LINENO: result: no" >&5
29111 echo "${ECHO_T}no" >&6
29112 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
29116 rm -f conftest.$ac_objext conftest.$ac_ext
29117 AUTH_OBJS="${AUTH_OBJS} kerb5.o"
29120 if test "$with_pam" = "yes"; then
29121 echo "$as_me:$LINENO: checking for main in -ldl" >&5
29122 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
29123 if test "${ac_cv_lib_dl_main+set}" = set; then
29124 echo $ECHO_N "(cached) $ECHO_C" >&6
29126 ac_check_lib_save_LIBS=$LIBS
29128 cat >conftest.$ac_ext <<_ACEOF
29129 #line $LINENO "configure"
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h. */
29145 rm -f conftest.$ac_objext conftest$ac_exeext
29146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29147 (eval $ac_link) 2>&5
29149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150 (exit $ac_status); } &&
29151 { ac_try='test -s conftest$ac_exeext'
29152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29153 (eval $ac_try) 2>&5
29155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156 (exit $ac_status); }; }; then
29157 ac_cv_lib_dl_main=yes
29159 echo "$as_me: failed program was:" >&5
29160 sed 's/^/| /' conftest.$ac_ext >&5
29162 ac_cv_lib_dl_main=no
29164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29165 LIBS=$ac_check_lib_save_LIBS
29167 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
29168 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
29169 if test $ac_cv_lib_dl_main = yes; then
29170 SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
29172 SUDO_LIBS="${SUDO_LIBS} -lpam"
29174 ac_cv_lib_dl=ac_cv_lib_dl_main
29177 for ac_header in pam/pam_appl.h
29179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29181 echo "$as_me:$LINENO: checking for $ac_header" >&5
29182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29184 echo $ECHO_N "(cached) $ECHO_C" >&6
29186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29189 # Is the header compilable?
29190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29192 cat >conftest.$ac_ext <<_ACEOF
29193 #line $LINENO "configure"
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h. */
29199 $ac_includes_default
29200 #include <$ac_header>
29202 rm -f conftest.$ac_objext
29203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29204 (eval $ac_compile) 2>&5
29206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); } &&
29208 { ac_try='test -s conftest.$ac_objext'
29209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210 (eval $ac_try) 2>&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; }; then
29214 ac_header_compiler=yes
29216 echo "$as_me: failed program was:" >&5
29217 sed 's/^/| /' conftest.$ac_ext >&5
29219 ac_header_compiler=no
29221 rm -f conftest.$ac_objext conftest.$ac_ext
29222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29223 echo "${ECHO_T}$ac_header_compiler" >&6
29225 # Is the header present?
29226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29228 cat >conftest.$ac_ext <<_ACEOF
29229 #line $LINENO "configure"
29232 cat confdefs.h >>conftest.$ac_ext
29233 cat >>conftest.$ac_ext <<_ACEOF
29234 /* end confdefs.h. */
29235 #include <$ac_header>
29237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29240 grep -v '^ *+' conftest.er1 >conftest.err
29242 cat conftest.err >&5
29243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244 (exit $ac_status); } >/dev/null; then
29245 if test -s conftest.err; then
29246 ac_cpp_err=$ac_c_preproc_warn_flag
29253 if test -z "$ac_cpp_err"; then
29254 ac_header_preproc=yes
29256 echo "$as_me: failed program was:" >&5
29257 sed 's/^/| /' conftest.$ac_ext >&5
29259 ac_header_preproc=no
29261 rm -f conftest.err conftest.$ac_ext
29262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29263 echo "${ECHO_T}$ac_header_preproc" >&6
29265 # So? What about this header?
29266 case $ac_header_compiler:$ac_header_preproc in
29268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29274 ## ------------------------------------ ##
29275 ## Report this to bug-autoconf@gnu.org. ##
29276 ## ------------------------------------ ##
29279 sed "s/^/$as_me: WARNING: /" >&2
29282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29290 ## ------------------------------------ ##
29291 ## Report this to bug-autoconf@gnu.org. ##
29292 ## ------------------------------------ ##
29295 sed "s/^/$as_me: WARNING: /" >&2
29298 echo "$as_me:$LINENO: checking for $ac_header" >&5
29299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29301 echo $ECHO_N "(cached) $ECHO_C" >&6
29303 eval "$as_ac_Header=$ac_header_preproc"
29305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29310 cat >>confdefs.h <<_ACEOF
29311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29320 if test "$with_AFS" = "yes"; then
29322 # looks like the "standard" place for AFS libs is /usr/afsws/lib
29323 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
29324 for i in $AFSLIBDIRS; do
29325 if test -d ${i}; then
29327 if test X"$with_rpath" = X"yes"; then
29328 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
29330 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
29332 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29333 blibpath_add="${blibpath_add}:$i"
29336 FOUND_AFSLIBDIR=true
29339 if test -z "$FOUND_AFSLIBDIR"; then
29340 { echo "$as_me:$LINENO: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&5
29341 echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
29344 # Order is important here. Note that we build AFS_LIBS from right to left
29345 # since AFS_LIBS may be initialized with BSD compat libs that must go last
29346 AFS_LIBS="-laudit ${AFS_LIBS}"
29347 for i in $AFSLIBDIRS; do
29348 if test -f ${i}/util.a; then
29349 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
29354 if test -z "$FOUND_UTIL_A"; then
29355 AFS_LIBS="-lutil ${AFS_LIBS}"
29357 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
29359 # AFS includes may live in /usr/include on some machines...
29360 for i in /usr/afsws/include; do
29361 if test -d ${i}; then
29362 CPPFLAGS="${CPPFLAGS} -I${i}"
29363 FOUND_AFSINCDIR=true
29367 if test -z "$FOUND_AFSLIBDIR"; then
29368 { echo "$as_me:$LINENO: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&5
29369 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;}
29373 if test "$with_DCE" = "yes"; then
29374 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
29375 SUDO_LIBS="${SUDO_LIBS} -ldce"
29378 if test -n "$with_skey"; then
29379 O_LDFLAGS="$LDFLAGS"
29380 if test "$with_skey" != "yes"; then
29381 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
29383 if test X"$with_rpath" = X"yes"; then
29384 LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
29386 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
29388 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29389 blibpath_add="${blibpath_add}:${with_skey}/lib"
29393 if test X"$with_rpath" = X"yes"; then
29394 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
29396 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
29398 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29399 blibpath_add="${blibpath_add}:${with_skey}/lib"
29402 cat >conftest.$ac_ext <<_ACEOF
29405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29408 grep -v '^ *+' conftest.er1 >conftest.err
29410 cat conftest.err >&5
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); } >/dev/null; then
29413 if test -s conftest.err; then
29414 ac_cpp_err=$ac_c_preproc_warn_flag
29421 if test -z "$ac_cpp_err"; then
29424 echo "$as_me: failed program was:" >&5
29425 sed 's/^/| /' conftest.$ac_ext >&5
29429 rm -f conftest.err conftest.$ac_ext
29432 O_CPPFLAGS="$CPPFLAGS"
29433 for dir in "" "/usr/local" "/usr/contrib"; do
29434 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
29435 cat >conftest.$ac_ext <<_ACEOF
29438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29441 grep -v '^ *+' conftest.er1 >conftest.err
29443 cat conftest.err >&5
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); } >/dev/null; then
29446 if test -s conftest.err; then
29447 ac_cpp_err=$ac_c_preproc_warn_flag
29454 if test -z "$ac_cpp_err"; then
29457 echo "$as_me: failed program was:" >&5
29458 sed 's/^/| /' conftest.$ac_ext >&5
29462 rm -f conftest.err conftest.$ac_ext
29464 if test "$found" = "no" -o -z "$dir"; then
29465 CPPFLAGS="$O_CPPFLAGS"
29468 if test X"$with_rpath" = X"yes"; then
29469 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
29471 LDFLAGS="${LDFLAGS} -L${dir}/lib"
29473 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29474 blibpath_add="${blibpath_add}:${dir}/lib"
29478 if test X"$with_rpath" = X"yes"; then
29479 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
29481 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
29483 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29484 blibpath_add="${blibpath_add}:${dir}/lib"
29489 if test "$found" = "no"; then
29490 { echo "$as_me:$LINENO: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
29491 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;}
29493 echo "$as_me:$LINENO: checking for main in -lskey" >&5
29494 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6
29495 if test "${ac_cv_lib_skey_main+set}" = set; then
29496 echo $ECHO_N "(cached) $ECHO_C" >&6
29498 ac_check_lib_save_LIBS=$LIBS
29499 LIBS="-lskey $LIBS"
29500 cat >conftest.$ac_ext <<_ACEOF
29501 #line $LINENO "configure"
29504 cat confdefs.h >>conftest.$ac_ext
29505 cat >>conftest.$ac_ext <<_ACEOF
29506 /* end confdefs.h. */
29517 rm -f conftest.$ac_objext conftest$ac_exeext
29518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29519 (eval $ac_link) 2>&5
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); } &&
29523 { ac_try='test -s conftest$ac_exeext'
29524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525 (eval $ac_try) 2>&5
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; }; then
29529 ac_cv_lib_skey_main=yes
29531 echo "$as_me: failed program was:" >&5
29532 sed 's/^/| /' conftest.$ac_ext >&5
29534 ac_cv_lib_skey_main=no
29536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29537 LIBS=$ac_check_lib_save_LIBS
29539 echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
29540 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6
29541 if test $ac_cv_lib_skey_main = yes; then
29544 { echo "$as_me:$LINENO: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&5
29545 echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&2;}
29548 echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
29549 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6
29550 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
29551 echo $ECHO_N "(cached) $ECHO_C" >&6
29553 ac_check_lib_save_LIBS=$LIBS
29554 LIBS="-lskey $LIBS"
29555 cat >conftest.$ac_ext <<_ACEOF
29556 #line $LINENO "configure"
29559 cat confdefs.h >>conftest.$ac_ext
29560 cat >>conftest.$ac_ext <<_ACEOF
29561 /* end confdefs.h. */
29563 /* Override any gcc2 internal prototype to avoid an error. */
29567 /* We use char because int might match the return type of a gcc2
29568 builtin and then its argument prototype would still apply. */
29569 char skeyaccess ();
29578 rm -f conftest.$ac_objext conftest$ac_exeext
29579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29580 (eval $ac_link) 2>&5
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); } &&
29584 { ac_try='test -s conftest$ac_exeext'
29585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586 (eval $ac_try) 2>&5
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; }; then
29590 ac_cv_lib_skey_skeyaccess=yes
29592 echo "$as_me: failed program was:" >&5
29593 sed 's/^/| /' conftest.$ac_ext >&5
29595 ac_cv_lib_skey_skeyaccess=no
29597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29598 LIBS=$ac_check_lib_save_LIBS
29600 echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
29601 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6
29602 if test $ac_cv_lib_skey_skeyaccess = yes; then
29603 cat >>confdefs.h <<\_ACEOF
29604 #define HAVE_SKEYACCESS 1
29609 LDFLAGS="$O_LDFLAGS"
29610 SUDO_LIBS="${SUDO_LIBS} -lskey"
29613 if test -n "$with_opie"; then
29614 O_LDFLAGS="$LDFLAGS"
29615 if test "$with_opie" != "yes"; then
29616 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
29618 if test X"$with_rpath" = X"yes"; then
29619 LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
29621 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
29623 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29624 blibpath_add="${blibpath_add}:${with_opie}/lib"
29628 if test X"$with_rpath" = X"yes"; then
29629 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
29631 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
29633 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29634 blibpath_add="${blibpath_add}:${with_opie}/lib"
29637 cat >conftest.$ac_ext <<_ACEOF
29640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29643 grep -v '^ *+' conftest.er1 >conftest.err
29645 cat conftest.err >&5
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); } >/dev/null; then
29648 if test -s conftest.err; then
29649 ac_cpp_err=$ac_c_preproc_warn_flag
29656 if test -z "$ac_cpp_err"; then
29659 echo "$as_me: failed program was:" >&5
29660 sed 's/^/| /' conftest.$ac_ext >&5
29664 rm -f conftest.err conftest.$ac_ext
29667 O_CPPFLAGS="$CPPFLAGS"
29668 for dir in "" "/usr/local" "/usr/contrib"; do
29669 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
29670 cat >conftest.$ac_ext <<_ACEOF
29673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29676 grep -v '^ *+' conftest.er1 >conftest.err
29678 cat conftest.err >&5
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); } >/dev/null; then
29681 if test -s conftest.err; then
29682 ac_cpp_err=$ac_c_preproc_warn_flag
29689 if test -z "$ac_cpp_err"; then
29692 echo "$as_me: failed program was:" >&5
29693 sed 's/^/| /' conftest.$ac_ext >&5
29697 rm -f conftest.err conftest.$ac_ext
29699 if test "$found" = "no" -o -z "$dir"; then
29700 CPPFLAGS="$O_CPPFLAGS"
29703 if test X"$with_rpath" = X"yes"; then
29704 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
29706 LDFLAGS="${LDFLAGS} -L${dir}/lib"
29708 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29709 blibpath_add="${blibpath_add}:${dir}/lib"
29713 if test X"$with_rpath" = X"yes"; then
29714 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
29716 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
29718 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29719 blibpath_add="${blibpath_add}:${dir}/lib"
29724 if test "$found" = "no"; then
29725 { echo "$as_me:$LINENO: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
29726 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;}
29728 echo "$as_me:$LINENO: checking for main in -lopie" >&5
29729 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6
29730 if test "${ac_cv_lib_opie_main+set}" = set; then
29731 echo $ECHO_N "(cached) $ECHO_C" >&6
29733 ac_check_lib_save_LIBS=$LIBS
29734 LIBS="-lopie $LIBS"
29735 cat >conftest.$ac_ext <<_ACEOF
29736 #line $LINENO "configure"
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h. */
29752 rm -f conftest.$ac_objext conftest$ac_exeext
29753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29754 (eval $ac_link) 2>&5
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); } &&
29758 { ac_try='test -s conftest$ac_exeext'
29759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29760 (eval $ac_try) 2>&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); }; }; then
29764 ac_cv_lib_opie_main=yes
29766 echo "$as_me: failed program was:" >&5
29767 sed 's/^/| /' conftest.$ac_ext >&5
29769 ac_cv_lib_opie_main=no
29771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29772 LIBS=$ac_check_lib_save_LIBS
29774 echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
29775 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6
29776 if test $ac_cv_lib_opie_main = yes; then
29779 { echo "$as_me:$LINENO: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&5
29780 echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&2;}
29783 LDFLAGS="$O_LDFLAGS"
29784 SUDO_LIBS="${SUDO_LIBS} -lopie"
29787 if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
29788 if test "$with_SecurID" != "yes"; then
29790 elif test -d /usr/ace/examples; then
29791 with_SecurID=/usr/ace/examples
29793 with_SecurID=/usr/ace
29795 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
29796 _LDFLAGS="${LDFLAGS}"
29798 if test X"$with_rpath" = X"yes"; then
29799 LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
29801 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
29803 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29804 blibpath_add="${blibpath_add}:${with_SecurID}"
29808 # Determine whether to use the new or old SecurID API
29810 echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
29811 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6
29812 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
29813 echo $ECHO_N "(cached) $ECHO_C" >&6
29815 ac_check_lib_save_LIBS=$LIBS
29820 cat >conftest.$ac_ext <<_ACEOF
29821 #line $LINENO "configure"
29824 cat confdefs.h >>conftest.$ac_ext
29825 cat >>conftest.$ac_ext <<_ACEOF
29826 /* end confdefs.h. */
29828 /* Override any gcc2 internal prototype to avoid an error. */
29832 /* We use char because int might match the return type of a gcc2
29833 builtin and then its argument prototype would still apply. */
29843 rm -f conftest.$ac_objext conftest$ac_exeext
29844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29845 (eval $ac_link) 2>&5
29847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); } &&
29849 { ac_try='test -s conftest$ac_exeext'
29850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29851 (eval $ac_try) 2>&5
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); }; }; then
29855 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
29857 echo "$as_me: failed program was:" >&5
29858 sed 's/^/| /' conftest.$ac_ext >&5
29860 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
29862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29863 LIBS=$ac_check_lib_save_LIBS
29865 echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
29866 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6
29867 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
29869 AUTH_OBJS="securid5.o"
29870 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
29874 if test X"$with_rpath" = X"yes"; then
29875 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
29877 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
29879 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29880 blibpath_add="${blibpath_add}:${with_SecurID}"
29886 AUTH_OBJS="securid.o"
29887 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
29891 LDFLAGS="${_LDFLAGS}"
29894 if test -n "$with_fwtk"; then
29895 if test "$with_fwtk" != "yes"; then
29897 if test X"$with_rpath" = X"yes"; then
29898 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
29900 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
29902 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29903 blibpath_add="${blibpath_add}:${with_fwtk}"
29906 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
29909 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
29912 if test "$with_authenticate" = "yes"; then
29913 SUDO_LIBS="${SUDO_LIBS} -ls"
29916 if test -n "$with_ldap"; then
29917 if test "$with_ldap" != "yes"; then
29919 if test X"$with_rpath" = X"yes"; then
29920 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
29922 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
29924 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29925 blibpath_add="${blibpath_add}:${with_ldap}/lib"
29928 _LDFLAGS="$LDFLAGS"
29930 if test X"$with_rpath" = X"yes"; then
29931 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
29933 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
29935 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29936 blibpath_add="${blibpath_add}:${with_ldap}/lib"
29939 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
29942 SUDO_OBJS="${SUDO_OBJS} ldap.o"
29944 echo "$as_me:$LINENO: checking for LDAP libraries" >&5
29945 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6
29949 for l in -lldap -llber '-lssl -lcrypto'; do
29951 LDAP_LIBS="${LDAP_LIBS} $l"
29952 cat >conftest.$ac_ext <<_ACEOF
29953 #line $LINENO "configure"
29956 cat confdefs.h >>conftest.$ac_ext
29957 cat >>conftest.$ac_ext <<_ACEOF
29958 /* end confdefs.h. */
29959 #include <sys/types.h>
29965 (void)ldap_init(0, 0)
29970 rm -f conftest.$ac_objext conftest$ac_exeext
29971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29972 (eval $ac_link) 2>&5
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); } &&
29976 { ac_try='test -s conftest$ac_exeext'
29977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29978 (eval $ac_try) 2>&5
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); }; }; then
29984 echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.$ac_ext >&5
29988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29990 if test "$found" = "no"; then
29992 echo "$as_me:$LINENO: result: not found, using -ldap" >&5
29993 echo "${ECHO_T}not found, using -ldap" >&6
29995 echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
29996 echo "${ECHO_T}$LDAP_LIBS" >&6
29998 echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
29999 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6
30000 cat >conftest.$ac_ext <<_ACEOF
30001 #line $LINENO "configure"
30004 cat confdefs.h >>conftest.$ac_ext
30005 cat >>conftest.$ac_ext <<_ACEOF
30006 /* end confdefs.h. */
30007 #include <sys/types.h>
30012 (void)ldap_init(0, 0)
30017 rm -f conftest.$ac_objext conftest$ac_exeext
30018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30019 (eval $ac_link) 2>&5
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); } &&
30023 { ac_try='test -s conftest$ac_exeext'
30024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30025 (eval $ac_try) 2>&5
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); }; }; then
30029 echo "$as_me:$LINENO: result: no" >&5
30030 echo "${ECHO_T}no" >&6
30032 echo "$as_me: failed program was:" >&5
30033 sed 's/^/| /' conftest.$ac_ext >&5
30036 echo "$as_me:$LINENO: result: yes" >&5
30037 echo "${ECHO_T}yes" >&6
30038 cat >>confdefs.h <<\_ACEOF
30039 #define HAVE_LBER_H 1
30043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30047 for ac_func in ldap_initialize ldap_start_tls_s
30049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30050 echo "$as_me:$LINENO: checking for $ac_func" >&5
30051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30052 if eval "test \"\${$as_ac_var+set}\" = set"; then
30053 echo $ECHO_N "(cached) $ECHO_C" >&6
30055 cat >conftest.$ac_ext <<_ACEOF
30056 #line $LINENO "configure"
30059 cat confdefs.h >>conftest.$ac_ext
30060 cat >>conftest.$ac_ext <<_ACEOF
30061 /* end confdefs.h. */
30062 /* System header to define __stub macros and hopefully few prototypes,
30063 which can conflict with char $ac_func (); below.
30064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30065 <limits.h> exists even on freestanding compilers. */
30067 # include <limits.h>
30069 # include <assert.h>
30071 /* Override any gcc2 internal prototype to avoid an error. */
30076 /* We use char because int might match the return type of a gcc2
30077 builtin and then its argument prototype would still apply. */
30079 /* The GNU C library defines this for functions which it implements
30080 to always fail with ENOSYS. Some functions are actually named
30081 something starting with __ and the normal name is an alias. */
30082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30085 char (*f) () = $ac_func;
30094 return f != $ac_func;
30099 rm -f conftest.$ac_objext conftest$ac_exeext
30100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30101 (eval $ac_link) 2>&5
30103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104 (exit $ac_status); } &&
30105 { ac_try='test -s conftest$ac_exeext'
30106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107 (eval $ac_try) 2>&5
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; }; then
30111 eval "$as_ac_var=yes"
30113 echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30116 eval "$as_ac_var=no"
30118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30122 if test `eval echo '${'$as_ac_var'}'` = yes; then
30123 cat >>confdefs.h <<_ACEOF
30124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30131 SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
30133 LDFLAGS="$_LDFLAGS"
30136 if test -n "$blibpath"; then
30137 if test -n "$blibpath_add"; then
30138 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
30139 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
30140 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
30144 echo "$as_me:$LINENO: checking for log file location" >&5
30145 echo $ECHO_N "checking for log file location... $ECHO_C" >&6
30146 if test -n "$with_logpath"; then
30147 echo "$as_me:$LINENO: result: $with_logpath" >&5
30148 echo "${ECHO_T}$with_logpath" >&6
30149 cat >>confdefs.h <<EOF
30150 #define _PATH_SUDO_LOGFILE "$with_logpath"
30153 elif test -d "/var/log"; then
30154 echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
30155 echo "${ECHO_T}/var/log/sudo.log" >&6
30156 cat >>confdefs.h <<\EOF
30157 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
30160 elif test -d "/var/adm"; then
30161 echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
30162 echo "${ECHO_T}/var/adm/sudo.log" >&6
30163 cat >>confdefs.h <<\EOF
30164 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
30167 elif test -d "/usr/adm"; then
30168 echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
30169 echo "${ECHO_T}/usr/adm/sudo.log" >&6
30170 cat >>confdefs.h <<\EOF
30171 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
30175 echo "$as_me:$LINENO: result: unknown" >&5
30176 echo "${ECHO_T}unknown" >&6
30179 echo "$as_me:$LINENO: checking for timestamp file location" >&5
30180 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6
30181 if test -n "$with_timedir"; then
30182 echo "$as_me:$LINENO: result: $with_timedir" >&5
30183 echo "${ECHO_T}$with_timedir" >&6
30184 cat >>confdefs.h <<EOF
30185 #define _PATH_SUDO_TIMEDIR "$with_timedir"
30188 timedir="$with_timedir"
30189 elif test -d "/var/run"; then
30190 echo "$as_me:$LINENO: result: /var/run/sudo" >&5
30191 echo "${ECHO_T}/var/run/sudo" >&6
30192 cat >>confdefs.h <<\EOF
30193 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
30196 timedir="/var/run/sudo"
30197 elif test -d "/var/adm"; then
30198 echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
30199 echo "${ECHO_T}/var/adm/sudo" >&6
30200 cat >>confdefs.h <<\EOF
30201 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
30204 timedir="/var/adm/sudo"
30206 echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
30207 echo "${ECHO_T}/usr/adm/sudo" >&6
30208 cat >>confdefs.h <<\EOF
30209 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
30212 timedir="/usr/adm/sudo"
30216 if test "$with_passwd" = "no"; then
30217 cat >>confdefs.h <<\_ACEOF
30218 #define WITHOUT_PASSWD 1
30221 if test -z "$AUTH_OBJS"; then
30222 { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
30223 echo "$as_me: error: no authentication methods defined." >&2;}
30224 { (exit 1); exit 1; }; }
30227 if test -n "$SECUREWARE"; then
30228 AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
30230 AUTH_OBJS="${AUTH_OBJS} passwd.o"
30234 if test -n "$LIBS"; then
30239 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
30240 test $l = $sl && dupe=1
30242 test $dupe = 0 && LIBS="${LIBS} $l"
30246 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
30248 if test "$with_noexec" != "no"; then
30249 PROGS="${PROGS} sudo_noexec.la"
30250 INSTALL_NOEXEC="install-noexec"
30252 oexec_prefix="$exec_prefix"
30253 if test "$exec_prefix" = '$(prefix)'; then
30254 if test "$prefix" = "NONE"; then
30255 exec_prefix="$ac_default_prefix"
30257 exec_prefix="$prefix"
30260 eval noexec_file="$with_noexec"
30262 cat >>confdefs.h <<_ACEOF
30263 #define _PATH_SUDO_NOEXEC "$noexec_file"
30266 exec_prefix="$oexec_prefix"
30269 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
30270 cat >confcache <<\_ACEOF
30271 # This file is a shell script that caches the results of configure
30272 # tests run on this system so they can be shared between configure
30273 # scripts and configure runs, see configure's option --config-cache.
30274 # It is not useful on other systems. If it contains results you don't
30275 # want to keep, you may remove or edit it.
30277 # config.status only pays attention to the cache file if you give it
30278 # the --recheck option to rerun configure.
30280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30282 # following values.
30286 # The following way of writing the cache mishandles newlines in values,
30287 # but we know of no workaround that is simple, portable, and efficient.
30288 # So, don't put newlines in cache variables' values.
30289 # Ultrix sh set writes to stderr and can't be redirected directly,
30290 # and sets the high bit in the cache file unless we assign to the vars.
30293 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30295 # `set' does not quote correctly, so add quotes (double-quote
30296 # substitution turns \\\\ into \\, and sed turns \\ into \).
30299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30302 # `set' quotes correctly as required by POSIX, so do not add quotes.
30304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30311 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30313 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30315 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30316 if test -w $cache_file; then
30317 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30318 cat confcache >$cache_file
30320 echo "not updating unwritable cache $cache_file"
30325 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30326 # Let make expand exec_prefix.
30327 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30329 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30330 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30331 # trailing colons and then remove the whole line if VPATH becomes empty
30332 # (actually we leave an empty line to preserve line numbers).
30333 if test "x$srcdir" = x.; then
30334 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30335 s/:*\$(srcdir):*/:/;
30336 s/:*\${srcdir}:*/:/;
30338 s/^\([^=]*=[ ]*\):*/\1/;
30344 DEFS=-DHAVE_CONFIG_H
30348 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30349 # 1. Remove the extension, and $U if already installed.
30350 ac_i=`echo "$ac_i" |
30351 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30353 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30354 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30356 LIBOBJS=$ac_libobjs
30358 LTLIBOBJS=$ac_ltlibobjs
30362 : ${CONFIG_STATUS=./config.status}
30363 ac_clean_files_save=$ac_clean_files
30364 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30365 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30366 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30367 cat >$CONFIG_STATUS <<_ACEOF
30369 # Generated by $as_me.
30370 # Run this file to recreate the current configuration.
30371 # Compiler output produced by configure, useful for debugging
30372 # configure, is in config.log if it exists.
30375 ac_cs_recheck=false
30377 SHELL=\${CONFIG_SHELL-$SHELL}
30380 cat >>$CONFIG_STATUS <<\_ACEOF
30381 ## --------------------- ##
30382 ## M4sh Initialization. ##
30383 ## --------------------- ##
30385 # Be Bourne compatible
30386 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30389 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30390 # is contrary to our usage. Disable this feature.
30391 alias -g '${1+"$@"}'='"$@"'
30392 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30396 # Support unset when possible.
30397 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
30404 # Work around bugs in pre-3.0 UWIN ksh.
30405 $as_unset ENV MAIL MAILPATH
30412 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30413 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30414 LC_TELEPHONE LC_TIME
30416 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
30417 eval $as_var=C; export $as_var
30423 # Required to use basename.
30424 if expr a : '\(a\)' >/dev/null 2>&1; then
30430 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30431 as_basename=basename
30437 # Name of the executable.
30438 as_me=`$as_basename "$0" ||
30439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30440 X"$0" : 'X\(//\)$' \| \
30441 X"$0" : 'X\(/\)$' \| \
30442 . : '\(.\)' 2>/dev/null ||
30444 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30445 /^X\/\(\/\/\)$/{ s//\1/; q; }
30446 /^X\/\(\/\).*/{ s//\1/; q; }
30450 # PATH needs CR, and LINENO needs CR and PATH.
30451 # Avoid depending upon Character Ranges.
30452 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30453 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30454 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30455 as_cr_digits='0123456789'
30456 as_cr_alnum=$as_cr_Letters$as_cr_digits
30458 # The user is always right.
30459 if test "${PATH_SEPARATOR+set}" != set; then
30460 echo "#! /bin/sh" >conf$$.sh
30461 echo "exit 0" >>conf$$.sh
30463 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30472 as_lineno_1=$LINENO
30473 as_lineno_2=$LINENO
30474 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30475 test "x$as_lineno_1" != "x$as_lineno_2" &&
30476 test "x$as_lineno_3" = "x$as_lineno_2" || {
30477 # Find who we are. Look in the path if we contain no path at all
30480 *[\\/]* ) as_myself=$0 ;;
30481 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30482 for as_dir in $PATH
30485 test -z "$as_dir" && as_dir=.
30486 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30491 # We did not find ourselves, most probably we were run as `sh COMMAND'
30492 # in which case we are not to be found in the path.
30493 if test "x$as_myself" = x; then
30496 if test ! -f "$as_myself"; then
30497 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30498 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30499 { (exit 1); exit 1; }; }
30501 case $CONFIG_SHELL in
30503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30504 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30507 test -z "$as_dir" && as_dir=.
30508 for as_base in sh bash ksh sh5; do
30511 if ("$as_dir/$as_base" -c '
30512 as_lineno_1=$LINENO
30513 as_lineno_2=$LINENO
30514 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30515 test "x$as_lineno_1" != "x$as_lineno_2" &&
30516 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30517 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30518 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30519 CONFIG_SHELL=$as_dir/$as_base
30520 export CONFIG_SHELL
30521 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30529 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30530 # uniformly replaced by the line number. The first 'sed' inserts a
30531 # line-number line before each line; the second 'sed' does the real
30532 # work. The second script uses 'N' to pair each line-number line
30533 # with the numbered line, and appends trailing '-' during
30534 # substitution so that $LINENO is not a special case at line end.
30535 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30536 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30537 sed '=' <$as_myself |
30542 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30545 s,^['$as_cr_digits']*\n,,
30546 ' >$as_me.lineno &&
30547 chmod +x $as_me.lineno ||
30548 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30549 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30550 { (exit 1); exit 1; }; }
30552 # Don't try to exec as it changes $[0], causing all sort of problems
30553 # (the dirname of $[0] is not the place where we might find the
30554 # original and so on. Autoconf is especially sensible to this).
30556 # Exit status is that of the last command.
30561 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30562 *c*,-n*) ECHO_N= ECHO_C='
30564 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30565 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30568 if expr a : '\(a\)' >/dev/null 2>&1; then
30574 rm -f conf$$ conf$$.exe conf$$.file
30576 if ln -s conf$$.file conf$$ 2>/dev/null; then
30577 # We could just check for DJGPP; but this test a) works b) is more generic
30578 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30579 if test -f conf$$.exe; then
30580 # Don't use ln at all; we don't have any links
30585 elif ln conf$$.file conf$$ 2>/dev/null; then
30590 rm -f conf$$ conf$$.exe conf$$.file
30592 if mkdir -p . 2>/dev/null; then
30598 as_executable_p="test -f"
30600 # Sed expression to map a string onto a valid CPP name.
30601 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
30603 # Sed expression to map a string onto a valid variable name.
30604 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
30608 # We need space, tab and new line, in precisely that order.
30618 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30619 # report actual input values of CONFIG_FILES etc. instead of their
30620 # values after options handling. Logging --version etc. is OK.
30624 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30625 ## Running $as_me. ##
30630 This file was extended by sudo $as_me 1.6.8, which was
30631 generated by GNU Autoconf 2.57. Invocation command line was
30633 CONFIG_FILES = $CONFIG_FILES
30634 CONFIG_HEADERS = $CONFIG_HEADERS
30635 CONFIG_LINKS = $CONFIG_LINKS
30636 CONFIG_COMMANDS = $CONFIG_COMMANDS
30640 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30644 # Files that config.status was made for.
30645 if test -n "$ac_config_files"; then
30646 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30649 if test -n "$ac_config_headers"; then
30650 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30653 if test -n "$ac_config_links"; then
30654 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30657 if test -n "$ac_config_commands"; then
30658 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30661 cat >>$CONFIG_STATUS <<\_ACEOF
30664 \`$as_me' instantiates files from templates according to the
30665 current configuration.
30667 Usage: $0 [OPTIONS] [FILE]...
30669 -h, --help print this help, then exit
30670 -V, --version print version number, then exit
30671 -q, --quiet do not print progress messages
30672 -d, --debug don't remove temporary files
30673 --recheck update $as_me by reconfiguring in the same conditions
30674 --file=FILE[:TEMPLATE]
30675 instantiate the configuration file FILE
30676 --header=FILE[:TEMPLATE]
30677 instantiate the configuration header FILE
30679 Configuration files:
30682 Configuration headers:
30685 Report bugs to <bug-autoconf@gnu.org>."
30688 cat >>$CONFIG_STATUS <<_ACEOF
30690 sudo config.status 1.6.8
30691 configured by $0, generated by GNU Autoconf 2.57,
30692 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30694 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
30695 Free Software Foundation, Inc.
30696 This config.status script is free software; the Free Software Foundation
30697 gives unlimited permission to copy, distribute and modify it."
30701 cat >>$CONFIG_STATUS <<\_ACEOF
30702 # If no file are specified by the user, then we need to provide default
30703 # value. By we need to know if files were specified by the user.
30709 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30710 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30718 *) # This is not an option, so the user has probably given explicit
30721 ac_need_defaults=false;;
30725 # Handling of the options.
30727 cat >>$CONFIG_STATUS <<\_ACEOF
30728 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30730 --version | --vers* | -V )
30731 echo "$ac_cs_version"; exit 0 ;;
30733 # Conflict between --help and --header
30734 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30735 Try \`$0 --help' for more information." >&5
30736 echo "$as_me: error: ambiguous option: $1
30737 Try \`$0 --help' for more information." >&2;}
30738 { (exit 1); exit 1; }; };;
30739 --help | --hel | -h )
30740 echo "$ac_cs_usage"; exit 0 ;;
30741 --debug | --d* | -d )
30743 --file | --fil | --fi | --f )
30745 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30746 ac_need_defaults=false;;
30747 --header | --heade | --head | --hea )
30749 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30750 ac_need_defaults=false;;
30751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30752 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30755 # This is an error.
30756 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30757 Try \`$0 --help' for more information." >&5
30758 echo "$as_me: error: unrecognized option: $1
30759 Try \`$0 --help' for more information." >&2;}
30760 { (exit 1); exit 1; }; } ;;
30762 *) ac_config_targets="$ac_config_targets $1" ;;
30768 ac_configure_extra_args=
30770 if $ac_cs_silent; then
30772 ac_configure_extra_args="$ac_configure_extra_args --silent"
30776 cat >>$CONFIG_STATUS <<_ACEOF
30777 if \$ac_cs_recheck; then
30778 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30779 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30788 cat >>$CONFIG_STATUS <<\_ACEOF
30789 for ac_config_target in $ac_config_targets
30791 case "$ac_config_target" in
30792 # Handling of arguments.
30793 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30794 "sudo.man" ) CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
30795 "visudo.man" ) CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
30796 "sudoers.man" ) CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
30797 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30798 "pathnames.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
30799 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30800 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30801 { (exit 1); exit 1; }; };;
30805 # If the user did not use the arguments to specify the items to instantiate,
30806 # then the envvar interface is used. Set only those that are not.
30807 # We use the long form for the default assignment because of an extremely
30808 # bizarre bug on SunOS 4.1.3.
30809 if $ac_need_defaults; then
30810 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30811 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30814 # Have a temporary directory for convenience. Make it in the build tree
30815 # simply because there is no reason to put it here, and in addition,
30816 # creating and moving files from /tmp can sometimes cause problems.
30817 # Create a temporary directory, and hook for its removal unless debugging.
30820 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30821 trap '{ (exit 1); exit 1; }' 1 2 13 15
30824 # Create a (secure) tmp directory for tmp files.
30827 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30828 test -n "$tmp" && test -d "$tmp"
30831 tmp=./confstat$$-$RANDOM
30832 (umask 077 && mkdir $tmp)
30835 echo "$me: cannot create a temporary directory in ." >&2
30836 { (exit 1); exit 1; }
30841 cat >>$CONFIG_STATUS <<_ACEOF
30844 # CONFIG_FILES section.
30847 # No need to generate the scripts if there are no CONFIG_FILES.
30848 # This happens for instance when ./config.status config.h
30849 if test -n "\$CONFIG_FILES"; then
30850 # Protect against being on the right side of a sed subst in config.status.
30851 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30852 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30853 s,@SHELL@,$SHELL,;t t
30854 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30855 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30856 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30857 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30858 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30859 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30860 s,@exec_prefix@,$exec_prefix,;t t
30861 s,@prefix@,$prefix,;t t
30862 s,@program_transform_name@,$program_transform_name,;t t
30863 s,@bindir@,$bindir,;t t
30864 s,@sbindir@,$sbindir,;t t
30865 s,@libexecdir@,$libexecdir,;t t
30866 s,@datadir@,$datadir,;t t
30867 s,@sysconfdir@,$sysconfdir,;t t
30868 s,@sharedstatedir@,$sharedstatedir,;t t
30869 s,@localstatedir@,$localstatedir,;t t
30870 s,@libdir@,$libdir,;t t
30871 s,@includedir@,$includedir,;t t
30872 s,@oldincludedir@,$oldincludedir,;t t
30873 s,@infodir@,$infodir,;t t
30874 s,@mandir@,$mandir,;t t
30875 s,@build_alias@,$build_alias,;t t
30876 s,@host_alias@,$host_alias,;t t
30877 s,@target_alias@,$target_alias,;t t
30878 s,@DEFS@,$DEFS,;t t
30879 s,@ECHO_C@,$ECHO_C,;t t
30880 s,@ECHO_N@,$ECHO_N,;t t
30881 s,@ECHO_T@,$ECHO_T,;t t
30882 s,@LIBS@,$LIBS,;t t
30883 s,@LIBTOOL@,$LIBTOOL,;t t
30884 s,@CFLAGS@,$CFLAGS,;t t
30885 s,@PROGS@,$PROGS,;t t
30886 s,@CPPFLAGS@,$CPPFLAGS,;t t
30887 s,@LDFLAGS@,$LDFLAGS,;t t
30888 s,@SUDO_LDFLAGS@,$SUDO_LDFLAGS,;t t
30889 s,@SUDO_OBJS@,$SUDO_OBJS,;t t
30890 s,@SUDO_LIBS@,$SUDO_LIBS,;t t
30891 s,@NET_LIBS@,$NET_LIBS,;t t
30892 s,@AFS_LIBS@,$AFS_LIBS,;t t
30893 s,@OSDEFS@,$OSDEFS,;t t
30894 s,@AUTH_OBJS@,$AUTH_OBJS,;t t
30895 s,@MANTYPE@,$MANTYPE,;t t
30896 s,@MAN_POSTINSTALL@,$MAN_POSTINSTALL,;t t
30897 s,@SUDOERS_MODE@,$SUDOERS_MODE,;t t
30898 s,@SUDOERS_UID@,$SUDOERS_UID,;t t
30899 s,@SUDOERS_GID@,$SUDOERS_GID,;t t
30901 s,@mansectsu@,$mansectsu,;t t
30902 s,@mansectform@,$mansectform,;t t
30903 s,@mansrcdir@,$mansrcdir,;t t
30904 s,@NOEXECDIR@,$NOEXECDIR,;t t
30905 s,@noexec_file@,$noexec_file,;t t
30906 s,@INSTALL_NOEXEC@,$INSTALL_NOEXEC,;t t
30907 s,@timedir@,$timedir,;t t
30908 s,@timeout@,$timeout,;t t
30909 s,@password_timeout@,$password_timeout,;t t
30910 s,@sudo_umask@,$sudo_umask,;t t
30911 s,@passprompt@,$passprompt,;t t
30912 s,@long_otp_prompt@,$long_otp_prompt,;t t
30913 s,@lecture@,$lecture,;t t
30914 s,@logfac@,$logfac,;t t
30915 s,@goodpri@,$goodpri,;t t
30916 s,@badpri@,$badpri,;t t
30917 s,@loglen@,$loglen,;t t
30918 s,@ignore_dot@,$ignore_dot,;t t
30919 s,@mail_no_user@,$mail_no_user,;t t
30920 s,@mail_no_host@,$mail_no_host,;t t
30921 s,@mail_no_perms@,$mail_no_perms,;t t
30922 s,@mailto@,$mailto,;t t
30923 s,@mailsub@,$mailsub,;t t
30924 s,@badpass_message@,$badpass_message,;t t
30925 s,@fqdn@,$fqdn,;t t
30926 s,@runas_default@,$runas_default,;t t
30927 s,@env_editor@,$env_editor,;t t
30928 s,@passwd_tries@,$passwd_tries,;t t
30929 s,@tty_tickets@,$tty_tickets,;t t
30930 s,@insults@,$insults,;t t
30931 s,@root_sudo@,$root_sudo,;t t
30932 s,@EGREPPROG@,$EGREPPROG,;t t
30934 s,@ac_ct_CC@,$ac_ct_CC,;t t
30935 s,@EXEEXT@,$EXEEXT,;t t
30936 s,@OBJEXT@,$OBJEXT,;t t
30938 s,@build@,$build,;t t
30939 s,@build_cpu@,$build_cpu,;t t
30940 s,@build_vendor@,$build_vendor,;t t
30941 s,@build_os@,$build_os,;t t
30942 s,@host@,$host,;t t
30943 s,@host_cpu@,$host_cpu,;t t
30944 s,@host_vendor@,$host_vendor,;t t
30945 s,@host_os@,$host_os,;t t
30946 s,@target@,$target,;t t
30947 s,@target_cpu@,$target_cpu,;t t
30948 s,@target_vendor@,$target_vendor,;t t
30949 s,@target_os@,$target_os,;t t
30950 s,@EGREP@,$EGREP,;t t
30951 s,@LN_S@,$LN_S,;t t
30952 s,@ECHO@,$ECHO,;t t
30954 s,@ac_ct_AR@,$ac_ct_AR,;t t
30955 s,@RANLIB@,$RANLIB,;t t
30956 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30957 s,@STRIP@,$STRIP,;t t
30958 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30960 s,@CXXFLAGS@,$CXXFLAGS,;t t
30961 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30962 s,@CXXCPP@,$CXXCPP,;t t
30964 s,@FFLAGS@,$FFLAGS,;t t
30965 s,@ac_ct_F77@,$ac_ct_F77,;t t
30966 s,@UNAMEPROG@,$UNAMEPROG,;t t
30967 s,@TRPROG@,$TRPROG,;t t
30968 s,@NROFFPROG@,$NROFFPROG,;t t
30969 s,@YACC@,$YACC,;t t
30970 s,@LIBOBJS@,$LIBOBJS,;t t
30971 s,@ALLOCA@,$ALLOCA,;t t
30972 s,@KRB5CONFIG@,$KRB5CONFIG,;t t
30973 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30978 cat >>$CONFIG_STATUS <<\_ACEOF
30979 # Split the substitutions into bite-sized pieces for seds with
30980 # small command number limits, like on Digital OSF/1 and HP-UX.
30981 ac_max_sed_lines=48
30982 ac_sed_frag=1 # Number of current file.
30983 ac_beg=1 # First line for current file.
30984 ac_end=$ac_max_sed_lines # Line after last line for current file.
30987 while $ac_more_lines; do
30988 if test $ac_beg -gt 1; then
30989 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30991 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30993 if test ! -s $tmp/subs.frag; then
30994 ac_more_lines=false
30996 # The purpose of the label and of the branching condition is to
30997 # speed up the sed processing (if there are no `@' at all, there
30998 # is no need to browse any of the substitutions).
30999 # These are the two extra sed commands mentioned above.
31001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31002 if test -z "$ac_sed_cmds"; then
31003 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31005 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31007 ac_sed_frag=`expr $ac_sed_frag + 1`
31009 ac_end=`expr $ac_end + $ac_max_sed_lines`
31012 if test -z "$ac_sed_cmds"; then
31015 fi # test -n "$CONFIG_FILES"
31018 cat >>$CONFIG_STATUS <<\_ACEOF
31019 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31020 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31022 - | *:- | *:-:* ) # input from stdin
31024 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31026 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31027 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31028 * ) ac_file_in=$ac_file.in ;;
31031 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31032 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31034 X"$ac_file" : 'X\(//\)[^/]' \| \
31035 X"$ac_file" : 'X\(//\)$' \| \
31036 X"$ac_file" : 'X\(/\)' \| \
31037 . : '\(.\)' 2>/dev/null ||
31039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31041 /^X\(\/\/\)$/{ s//\1/; q; }
31042 /^X\(\/\).*/{ s//\1/; q; }
31044 { if $as_mkdir_p; then
31049 while test ! -d "$as_dir"; do
31050 as_dirs="$as_dir $as_dirs"
31051 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31053 X"$as_dir" : 'X\(//\)[^/]' \| \
31054 X"$as_dir" : 'X\(//\)$' \| \
31055 X"$as_dir" : 'X\(/\)' \| \
31056 . : '\(.\)' 2>/dev/null ||
31058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31060 /^X\(\/\/\)$/{ s//\1/; q; }
31061 /^X\(\/\).*/{ s//\1/; q; }
31064 test ! -n "$as_dirs" || mkdir $as_dirs
31065 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31066 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31067 { (exit 1); exit 1; }; }; }
31071 if test "$ac_dir" != .; then
31072 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31073 # A "../" for each directory in $ac_dir_suffix.
31074 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31076 ac_dir_suffix= ac_top_builddir=
31080 .) # No --srcdir option. We are building in place.
31082 if test -z "$ac_top_builddir"; then
31085 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31087 [\\/]* | ?:[\\/]* ) # Absolute path.
31088 ac_srcdir=$srcdir$ac_dir_suffix;
31089 ac_top_srcdir=$srcdir ;;
31090 *) # Relative path.
31091 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31092 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31094 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
31096 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
31097 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
31098 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
31099 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
31103 if test x"$ac_file" != x-; then
31104 { echo "$as_me:$LINENO: creating $ac_file" >&5
31105 echo "$as_me: creating $ac_file" >&6;}
31108 # Let's still pretend it is `configure' which instantiates (i.e., don't
31109 # use $as_me), people would be surprised to read:
31110 # /* config.h. Generated by config.status. */
31111 if test x"$ac_file" = x-; then
31114 configure_input="$ac_file. "
31116 configure_input=$configure_input"Generated from `echo $ac_file_in |
31117 sed 's,.*/,,'` by configure."
31119 # First look for the input files in the build tree, otherwise in the
31121 ac_file_inputs=`IFS=:
31122 for f in $ac_file_in; do
31124 -) echo $tmp/stdin ;;
31126 # Absolute (can't be DOS-style, as IFS=:)
31127 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31128 echo "$as_me: error: cannot find input file: $f" >&2;}
31129 { (exit 1); exit 1; }; }
31132 if test -f "$f"; then
31135 elif test -f "$srcdir/$f"; then
31140 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31141 echo "$as_me: error: cannot find input file: $f" >&2;}
31142 { (exit 1); exit 1; }; }
31145 done` || { (exit 1); exit 1; }
31147 cat >>$CONFIG_STATUS <<_ACEOF
31151 cat >>$CONFIG_STATUS <<\_ACEOF
31153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31154 s,@configure_input@,$configure_input,;t t
31155 s,@srcdir@,$ac_srcdir,;t t
31156 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31157 s,@top_srcdir@,$ac_top_srcdir,;t t
31158 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31159 s,@builddir@,$ac_builddir,;t t
31160 s,@abs_builddir@,$ac_abs_builddir,;t t
31161 s,@top_builddir@,$ac_top_builddir,;t t
31162 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31163 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31165 if test x"$ac_file" != x-; then
31166 mv $tmp/out $ac_file
31174 cat >>$CONFIG_STATUS <<\_ACEOF
31177 # CONFIG_HEADER section.
31180 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31181 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31183 # ac_d sets the value in "#define NAME VALUE" lines.
31184 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31185 ac_dB='[ ].*$,\1#\2'
31188 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31189 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31190 ac_uB='$,\1#\2define\3'
31194 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31195 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31197 - | *:- | *:-:* ) # input from stdin
31199 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31200 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31201 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31202 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31203 * ) ac_file_in=$ac_file.in ;;
31206 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31207 echo "$as_me: creating $ac_file" >&6;}
31209 # First look for the input files in the build tree, otherwise in the
31211 ac_file_inputs=`IFS=:
31212 for f in $ac_file_in; do
31214 -) echo $tmp/stdin ;;
31216 # Absolute (can't be DOS-style, as IFS=:)
31217 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31218 echo "$as_me: error: cannot find input file: $f" >&2;}
31219 { (exit 1); exit 1; }; }
31222 if test -f "$f"; then
31225 elif test -f "$srcdir/$f"; then
31230 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31231 echo "$as_me: error: cannot find input file: $f" >&2;}
31232 { (exit 1); exit 1; }; }
31235 done` || { (exit 1); exit 1; }
31236 # Remove the trailing spaces.
31237 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31241 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31242 # `conftest.undefs', that substitutes the proper values into
31243 # config.h.in to produce config.h. The first handles `#define'
31244 # templates, and the second `#undef' templates.
31245 # And first: Protect against being on the right side of a sed subst in
31246 # config.status. Protect against being in an unquoted here document
31247 # in config.status.
31248 rm -f conftest.defines conftest.undefs
31249 # Using a here document instead of a string reduces the quoting nightmare.
31250 # Putting comments in sed scripts is not portable.
31252 # `end' is used to avoid that the second main sed command (meant for
31253 # 0-ary CPP macros) applies to n-ary macro definitions.
31254 # See the Autoconf documentation for `clear'.
31255 cat >confdef2sed.sed <<\_ACEOF
31260 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31262 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31265 # If some macros were called several times there might be several times
31266 # the same #defines, which is useless. Nevertheless, we may not want to
31267 # sort them, since we want the *last* AC-DEFINE to be honored.
31268 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31269 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31270 rm -f confdef2sed.sed
31272 # This sed command replaces #undef with comments. This is necessary, for
31273 # example, in the case of _POSIX_SOURCE, which is predefined and required
31274 # on some systems where configure will not decide to define it.
31275 cat >>conftest.undefs <<\_ACEOF
31276 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31279 # Break up conftest.defines because some shells have a limit on the size
31280 # of here documents, and old seds have small limits too (100 cmds).
31281 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31282 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31283 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31284 echo ' :' >>$CONFIG_STATUS
31285 rm -f conftest.tail
31286 while grep . conftest.defines >/dev/null
31288 # Write a limited-size here document to $tmp/defines.sed.
31289 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31290 # Speed up: don't consider the non `#define' lines.
31291 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31292 # Work around the forget-to-reset-the-flag bug.
31293 echo 't clr' >>$CONFIG_STATUS
31294 echo ': clr' >>$CONFIG_STATUS
31295 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31297 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31299 mv $tmp/out $tmp/in
31301 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31302 rm -f conftest.defines
31303 mv conftest.tail conftest.defines
31305 rm -f conftest.defines
31306 echo ' fi # grep' >>$CONFIG_STATUS
31307 echo >>$CONFIG_STATUS
31309 # Break up conftest.undefs because some shells have a limit on the size
31310 # of here documents, and old seds have small limits too (100 cmds).
31311 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31312 rm -f conftest.tail
31313 while grep . conftest.undefs >/dev/null
31315 # Write a limited-size here document to $tmp/undefs.sed.
31316 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31317 # Speed up: don't consider the non `#undef'
31318 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31319 # Work around the forget-to-reset-the-flag bug.
31320 echo 't clr' >>$CONFIG_STATUS
31321 echo ': clr' >>$CONFIG_STATUS
31322 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31324 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31326 mv $tmp/out $tmp/in
31328 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31329 rm -f conftest.undefs
31330 mv conftest.tail conftest.undefs
31332 rm -f conftest.undefs
31334 cat >>$CONFIG_STATUS <<\_ACEOF
31335 # Let's still pretend it is `configure' which instantiates (i.e., don't
31336 # use $as_me), people would be surprised to read:
31337 # /* config.h. Generated by config.status. */
31338 if test x"$ac_file" = x-; then
31339 echo "/* Generated by configure. */" >$tmp/config.h
31341 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31343 cat $tmp/in >>$tmp/config.h
31345 if test x"$ac_file" != x-; then
31346 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31347 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31348 echo "$as_me: $ac_file is unchanged" >&6;}
31350 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31352 X"$ac_file" : 'X\(//\)[^/]' \| \
31353 X"$ac_file" : 'X\(//\)$' \| \
31354 X"$ac_file" : 'X\(/\)' \| \
31355 . : '\(.\)' 2>/dev/null ||
31357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31358 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31359 /^X\(\/\/\)$/{ s//\1/; q; }
31360 /^X\(\/\).*/{ s//\1/; q; }
31362 { if $as_mkdir_p; then
31367 while test ! -d "$as_dir"; do
31368 as_dirs="$as_dir $as_dirs"
31369 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31371 X"$as_dir" : 'X\(//\)[^/]' \| \
31372 X"$as_dir" : 'X\(//\)$' \| \
31373 X"$as_dir" : 'X\(/\)' \| \
31374 . : '\(.\)' 2>/dev/null ||
31376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31377 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31378 /^X\(\/\/\)$/{ s//\1/; q; }
31379 /^X\(\/\).*/{ s//\1/; q; }
31382 test ! -n "$as_dirs" || mkdir $as_dirs
31383 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31384 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31385 { (exit 1); exit 1; }; }; }
31388 mv $tmp/config.h $ac_file
31392 rm -f $tmp/config.h
31397 cat >>$CONFIG_STATUS <<\_ACEOF
31399 { (exit 0); exit 0; }
31401 chmod +x $CONFIG_STATUS
31402 ac_clean_files=$ac_clean_files_save
31405 # configure is writing to config.log, and then calls config.status.
31406 # config.status does its own redirection, appending to config.log.
31407 # Unfortunately, on DOS this fails, as config.log is still kept open
31408 # by configure, so config.status won't be able to write to it; its
31409 # output is simply discarded. So we exec the FD to /dev/null,
31410 # effectively closing config.log, so it can be properly (re)opened and
31411 # appended to by config.status. When coming back to configure, we
31412 # need to make the FD available again.
31413 if test "$no_create" != yes; then
31415 ac_config_status_args=
31416 test "$silent" = yes &&
31417 ac_config_status_args="$ac_config_status_args --quiet"
31419 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31421 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31422 # would make configure fail if this is the last instruction.
31423 $ac_cs_success || { (exit 1); exit 1; }
31427 if test "$with_pam" = "yes"; then
31430 { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
31431 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}