File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / sudo / configure
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:26:49 2012 UTC (12 years, 2 months ago) by misho
Branches: sudo, MAIN
CVS tags: v1_8_5p1, HEAD
sudo 1.8.5p1

    1: #! /bin/sh
    2: # Guess values for system-dependent variables and create Makefiles.
    3: # Generated by GNU Autoconf 2.68 for sudo 1.8.5p1.
    4: #
    5: # Report bugs to <http://www.sudo.ws/bugs/>.
    6: #
    7: #
    8: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    9: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
   10: # Foundation, Inc.
   11: #
   12: #
   13: # This configure script is free software; the Free Software Foundation
   14: # gives unlimited permission to copy, distribute and modify it.
   15: ## -------------------- ##
   16: ## M4sh Initialization. ##
   17: ## -------------------- ##
   18: 
   19: # Be more Bourne compatible
   20: DUALCASE=1; export DUALCASE # for MKS sh
   21: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   22:   emulate sh
   23:   NULLCMD=:
   24:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   25:   # is contrary to our usage.  Disable this feature.
   26:   alias -g '${1+"$@"}'='"$@"'
   27:   setopt NO_GLOB_SUBST
   28: else
   29:   case `(set -o) 2>/dev/null` in #(
   30:   *posix*) :
   31:     set -o posix ;; #(
   32:   *) :
   33:      ;;
   34: esac
   35: fi
   36: 
   37: 
   38: as_nl='
   39: '
   40: export as_nl
   41: # Printing a long string crashes Solaris 7 /usr/bin/printf.
   42: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   43: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   44: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   45: # Prefer a ksh shell builtin over an external printf program on Solaris,
   46: # but without wasting forks for bash or zsh.
   47: if test -z "$BASH_VERSION$ZSH_VERSION" \
   48:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   49:   as_echo='print -r --'
   50:   as_echo_n='print -rn --'
   51: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   52:   as_echo='printf %s\n'
   53:   as_echo_n='printf %s'
   54: else
   55:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   56:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   57:     as_echo_n='/usr/ucb/echo -n'
   58:   else
   59:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   60:     as_echo_n_body='eval
   61:       arg=$1;
   62:       case $arg in #(
   63:       *"$as_nl"*)
   64: 	expr "X$arg" : "X\\(.*\\)$as_nl";
   65: 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   66:       esac;
   67:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   68:     '
   69:     export as_echo_n_body
   70:     as_echo_n='sh -c $as_echo_n_body as_echo'
   71:   fi
   72:   export as_echo_body
   73:   as_echo='sh -c $as_echo_body as_echo'
   74: fi
   75: 
   76: # The user is always right.
   77: if test "${PATH_SEPARATOR+set}" != set; then
   78:   PATH_SEPARATOR=:
   79:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   80:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   81:       PATH_SEPARATOR=';'
   82:   }
   83: fi
   84: 
   85: 
   86: # IFS
   87: # We need space, tab and new line, in precisely that order.  Quoting is
   88: # there to prevent editors from complaining about space-tab.
   89: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   90: # splitting by setting IFS to empty value.)
   91: IFS=" ""	$as_nl"
   92: 
   93: # Find who we are.  Look in the path if we contain no directory separator.
   94: as_myself=
   95: case $0 in #((
   96:   *[\\/]* ) as_myself=$0 ;;
   97:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   98: for as_dir in $PATH
   99: do
  100:   IFS=$as_save_IFS
  101:   test -z "$as_dir" && as_dir=.
  102:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103:   done
  104: IFS=$as_save_IFS
  105: 
  106:      ;;
  107: esac
  108: # We did not find ourselves, most probably we were run as `sh COMMAND'
  109: # in which case we are not to be found in the path.
  110: if test "x$as_myself" = x; then
  111:   as_myself=$0
  112: fi
  113: if test ! -f "$as_myself"; then
  114:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  115:   exit 1
  116: fi
  117: 
  118: # Unset variables that we do not need and which cause bugs (e.g. in
  119: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  120: # suppresses any "Segmentation fault" message there.  '((' could
  121: # trigger a bug in pdksh 5.2.14.
  122: for as_var in BASH_ENV ENV MAIL MAILPATH
  123: do eval test x\${$as_var+set} = xset \
  124:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  125: done
  126: PS1='$ '
  127: PS2='> '
  128: PS4='+ '
  129: 
  130: # NLS nuisances.
  131: LC_ALL=C
  132: export LC_ALL
  133: LANGUAGE=C
  134: export LANGUAGE
  135: 
  136: # CDPATH.
  137: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  138: 
  139: if test "x$CONFIG_SHELL" = x; then
  140:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  141:   emulate sh
  142:   NULLCMD=:
  143:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  144:   # is contrary to our usage.  Disable this feature.
  145:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  146:   setopt NO_GLOB_SUBST
  147: else
  148:   case \`(set -o) 2>/dev/null\` in #(
  149:   *posix*) :
  150:     set -o posix ;; #(
  151:   *) :
  152:      ;;
  153: esac
  154: fi
  155: "
  156:   as_required="as_fn_return () { (exit \$1); }
  157: as_fn_success () { as_fn_return 0; }
  158: as_fn_failure () { as_fn_return 1; }
  159: as_fn_ret_success () { return 0; }
  160: as_fn_ret_failure () { return 1; }
  161: 
  162: exitcode=0
  163: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  164: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  165: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  166: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  167: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  168: 
  169: else
  170:   exitcode=1; echo positional parameters were not saved.
  171: fi
  172: test x\$exitcode = x0 || exit 1"
  173:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  174:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  175:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  176:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  177: 
  178:   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  179:     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  180:     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  181:     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  182:     PATH=/empty FPATH=/empty; export PATH FPATH
  183:     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  184:       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  185: test \$(( 1 + 1 )) = 2 || exit 1"
  186:   if (eval "$as_required") 2>/dev/null; then :
  187:   as_have_required=yes
  188: else
  189:   as_have_required=no
  190: fi
  191:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192: 
  193: else
  194:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195: as_found=false
  196: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  197: do
  198:   IFS=$as_save_IFS
  199:   test -z "$as_dir" && as_dir=.
  200:   as_found=:
  201:   case $as_dir in #(
  202: 	 /*)
  203: 	   for as_base in sh bash ksh sh5; do
  204: 	     # Try only shells that exist, to save several forks.
  205: 	     as_shell=$as_dir/$as_base
  206: 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  207: 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  208:   CONFIG_SHELL=$as_shell as_have_required=yes
  209: 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210:   break 2
  211: fi
  212: fi
  213: 	   done;;
  214:        esac
  215:   as_found=false
  216: done
  217: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218: 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  219:   CONFIG_SHELL=$SHELL as_have_required=yes
  220: fi; }
  221: IFS=$as_save_IFS
  222: 
  223: 
  224:       if test "x$CONFIG_SHELL" != x; then :
  225:   # We cannot yet assume a decent shell, so we have to provide a
  226: 	# neutralization value for shells without unset; and this also
  227: 	# works around shells that cannot unset nonexistent variables.
  228: 	# Preserve -v and -x to the replacement shell.
  229: 	BASH_ENV=/dev/null
  230: 	ENV=/dev/null
  231: 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232: 	export CONFIG_SHELL
  233: 	case $- in # ((((
  234: 	  *v*x* | *x*v* ) as_opts=-vx ;;
  235: 	  *v* ) as_opts=-v ;;
  236: 	  *x* ) as_opts=-x ;;
  237: 	  * ) as_opts= ;;
  238: 	esac
  239: 	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  240: fi
  241: 
  242:     if test x$as_have_required = xno; then :
  243:   $as_echo "$0: This script requires a shell more modern than all"
  244:   $as_echo "$0: the shells that I found on your system."
  245:   if test x${ZSH_VERSION+set} = xset ; then
  246:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248:   else
  249:     $as_echo "$0: Please tell bug-autoconf@gnu.org and
  250: $0: http://www.sudo.ws/bugs/ about your system, including
  251: $0: any error possibly output before this message. Then
  252: $0: install a modern shell, or manually run the script
  253: $0: under such a shell if you do have one."
  254:   fi
  255:   exit 1
  256: fi
  257: fi
  258: fi
  259: SHELL=${CONFIG_SHELL-/bin/sh}
  260: export SHELL
  261: # Unset more variables known to interfere with behavior of common tools.
  262: CLICOLOR_FORCE= GREP_OPTIONS=
  263: unset CLICOLOR_FORCE GREP_OPTIONS
  264: 
  265: ## --------------------- ##
  266: ## M4sh Shell Functions. ##
  267: ## --------------------- ##
  268: # as_fn_unset VAR
  269: # ---------------
  270: # Portably unset VAR.
  271: as_fn_unset ()
  272: {
  273:   { eval $1=; unset $1;}
  274: }
  275: as_unset=as_fn_unset
  276: 
  277: # as_fn_set_status STATUS
  278: # -----------------------
  279: # Set $? to STATUS, without forking.
  280: as_fn_set_status ()
  281: {
  282:   return $1
  283: } # as_fn_set_status
  284: 
  285: # as_fn_exit STATUS
  286: # -----------------
  287: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288: as_fn_exit ()
  289: {
  290:   set +e
  291:   as_fn_set_status $1
  292:   exit $1
  293: } # as_fn_exit
  294: 
  295: # as_fn_mkdir_p
  296: # -------------
  297: # Create "$as_dir" as a directory, including parents if necessary.
  298: as_fn_mkdir_p ()
  299: {
  300: 
  301:   case $as_dir in #(
  302:   -*) as_dir=./$as_dir;;
  303:   esac
  304:   test -d "$as_dir" || eval $as_mkdir_p || {
  305:     as_dirs=
  306:     while :; do
  307:       case $as_dir in #(
  308:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  309:       *) as_qdir=$as_dir;;
  310:       esac
  311:       as_dirs="'$as_qdir' $as_dirs"
  312:       as_dir=`$as_dirname -- "$as_dir" ||
  313: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  314: 	 X"$as_dir" : 'X\(//\)[^/]' \| \
  315: 	 X"$as_dir" : 'X\(//\)$' \| \
  316: 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  317: $as_echo X"$as_dir" |
  318:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  319: 	    s//\1/
  320: 	    q
  321: 	  }
  322: 	  /^X\(\/\/\)[^/].*/{
  323: 	    s//\1/
  324: 	    q
  325: 	  }
  326: 	  /^X\(\/\/\)$/{
  327: 	    s//\1/
  328: 	    q
  329: 	  }
  330: 	  /^X\(\/\).*/{
  331: 	    s//\1/
  332: 	    q
  333: 	  }
  334: 	  s/.*/./; q'`
  335:       test -d "$as_dir" && break
  336:     done
  337:     test -z "$as_dirs" || eval "mkdir $as_dirs"
  338:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  339: 
  340: 
  341: } # as_fn_mkdir_p
  342: # as_fn_append VAR VALUE
  343: # ----------------------
  344: # Append the text in VALUE to the end of the definition contained in VAR. Take
  345: # advantage of any shell optimizations that allow amortized linear growth over
  346: # repeated appends, instead of the typical quadratic growth present in naive
  347: # implementations.
  348: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  349:   eval 'as_fn_append ()
  350:   {
  351:     eval $1+=\$2
  352:   }'
  353: else
  354:   as_fn_append ()
  355:   {
  356:     eval $1=\$$1\$2
  357:   }
  358: fi # as_fn_append
  359: 
  360: # as_fn_arith ARG...
  361: # ------------------
  362: # Perform arithmetic evaluation on the ARGs, and store the result in the
  363: # global $as_val. Take advantage of shells that can avoid forks. The arguments
  364: # must be portable across $(()) and expr.
  365: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  366:   eval 'as_fn_arith ()
  367:   {
  368:     as_val=$(( $* ))
  369:   }'
  370: else
  371:   as_fn_arith ()
  372:   {
  373:     as_val=`expr "$@" || test $? -eq 1`
  374:   }
  375: fi # as_fn_arith
  376: 
  377: 
  378: # as_fn_error STATUS ERROR [LINENO LOG_FD]
  379: # ----------------------------------------
  380: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  381: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  382: # script with STATUS, using 1 if that was 0.
  383: as_fn_error ()
  384: {
  385:   as_status=$1; test $as_status -eq 0 && as_status=1
  386:   if test "$4"; then
  387:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  388:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  389:   fi
  390:   $as_echo "$as_me: error: $2" >&2
  391:   as_fn_exit $as_status
  392: } # as_fn_error
  393: 
  394: if expr a : '\(a\)' >/dev/null 2>&1 &&
  395:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  396:   as_expr=expr
  397: else
  398:   as_expr=false
  399: fi
  400: 
  401: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  402:   as_basename=basename
  403: else
  404:   as_basename=false
  405: fi
  406: 
  407: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408:   as_dirname=dirname
  409: else
  410:   as_dirname=false
  411: fi
  412: 
  413: as_me=`$as_basename -- "$0" ||
  414: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  415: 	 X"$0" : 'X\(//\)$' \| \
  416: 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  417: $as_echo X/"$0" |
  418:     sed '/^.*\/\([^/][^/]*\)\/*$/{
  419: 	    s//\1/
  420: 	    q
  421: 	  }
  422: 	  /^X\/\(\/\/\)$/{
  423: 	    s//\1/
  424: 	    q
  425: 	  }
  426: 	  /^X\/\(\/\).*/{
  427: 	    s//\1/
  428: 	    q
  429: 	  }
  430: 	  s/.*/./; q'`
  431: 
  432: # Avoid depending upon Character Ranges.
  433: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  434: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  435: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  436: as_cr_digits='0123456789'
  437: as_cr_alnum=$as_cr_Letters$as_cr_digits
  438: 
  439: 
  440:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  441:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  442:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  443:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  444:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  445:   sed -n '
  446:     p
  447:     /[$]LINENO/=
  448:   ' <$as_myself |
  449:     sed '
  450:       s/[$]LINENO.*/&-/
  451:       t lineno
  452:       b
  453:       :lineno
  454:       N
  455:       :loop
  456:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  457:       t loop
  458:       s/-\n.*//
  459:     ' >$as_me.lineno &&
  460:   chmod +x "$as_me.lineno" ||
  461:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  462: 
  463:   # Don't try to exec as it changes $[0], causing all sort of problems
  464:   # (the dirname of $[0] is not the place where we might find the
  465:   # original and so on.  Autoconf is especially sensitive to this).
  466:   . "./$as_me.lineno"
  467:   # Exit status is that of the last command.
  468:   exit
  469: }
  470: 
  471: ECHO_C= ECHO_N= ECHO_T=
  472: case `echo -n x` in #(((((
  473: -n*)
  474:   case `echo 'xy\c'` in
  475:   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  476:   xy)  ECHO_C='\c';;
  477:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  478:        ECHO_T='	';;
  479:   esac;;
  480: *)
  481:   ECHO_N='-n';;
  482: esac
  483: 
  484: rm -f conf$$ conf$$.exe conf$$.file
  485: if test -d conf$$.dir; then
  486:   rm -f conf$$.dir/conf$$.file
  487: else
  488:   rm -f conf$$.dir
  489:   mkdir conf$$.dir 2>/dev/null
  490: fi
  491: if (echo >conf$$.file) 2>/dev/null; then
  492:   if ln -s conf$$.file conf$$ 2>/dev/null; then
  493:     as_ln_s='ln -s'
  494:     # ... but there are two gotchas:
  495:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497:     # In both cases, we have to default to `cp -p'.
  498:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499:       as_ln_s='cp -p'
  500:   elif ln conf$$.file conf$$ 2>/dev/null; then
  501:     as_ln_s=ln
  502:   else
  503:     as_ln_s='cp -p'
  504:   fi
  505: else
  506:   as_ln_s='cp -p'
  507: fi
  508: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509: rmdir conf$$.dir 2>/dev/null
  510: 
  511: if mkdir -p . 2>/dev/null; then
  512:   as_mkdir_p='mkdir -p "$as_dir"'
  513: else
  514:   test -d ./-p && rmdir ./-p
  515:   as_mkdir_p=false
  516: fi
  517: 
  518: if test -x / >/dev/null 2>&1; then
  519:   as_test_x='test -x'
  520: else
  521:   if ls -dL / >/dev/null 2>&1; then
  522:     as_ls_L_option=L
  523:   else
  524:     as_ls_L_option=
  525:   fi
  526:   as_test_x='
  527:     eval sh -c '\''
  528:       if test -d "$1"; then
  529: 	test -d "$1/.";
  530:       else
  531: 	case $1 in #(
  532: 	-*)set "./$1";;
  533: 	esac;
  534: 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  535: 	???[sx]*):;;*)false;;esac;fi
  536:     '\'' sh
  537:   '
  538: fi
  539: as_executable_p=$as_test_x
  540: 
  541: # Sed expression to map a string onto a valid CPP name.
  542: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  543: 
  544: # Sed expression to map a string onto a valid variable name.
  545: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  546: 
  547: SHELL=${CONFIG_SHELL-/bin/sh}
  548: 
  549: 
  550: test -n "$DJDIR" || exec 7<&0 </dev/null
  551: exec 6>&1
  552: 
  553: # Name of the host.
  554: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  555: # so uname gets run too.
  556: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  557: 
  558: #
  559: # Initializations.
  560: #
  561: ac_default_prefix=/usr/local
  562: ac_clean_files=
  563: ac_config_libobj_dir=.
  564: LIBOBJS=
  565: cross_compiling=no
  566: subdirs=
  567: MFLAGS=
  568: MAKEFLAGS=
  569: 
  570: # Identity of this package.
  571: PACKAGE_NAME='sudo'
  572: PACKAGE_TARNAME='sudo'
  573: PACKAGE_VERSION='1.8.5p1'
  574: PACKAGE_STRING='sudo 1.8.5p1'
  575: PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
  576: PACKAGE_URL=''
  577: 
  578: ac_config_libobj_dir=compat
  579: # Factoring default headers for most tests.
  580: ac_includes_default="\
  581: #include <stdio.h>
  582: #ifdef HAVE_SYS_TYPES_H
  583: # include <sys/types.h>
  584: #endif
  585: #ifdef HAVE_SYS_STAT_H
  586: # include <sys/stat.h>
  587: #endif
  588: #ifdef STDC_HEADERS
  589: # include <stdlib.h>
  590: # include <stddef.h>
  591: #else
  592: # ifdef HAVE_STDLIB_H
  593: #  include <stdlib.h>
  594: # endif
  595: #endif
  596: #ifdef HAVE_STRING_H
  597: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  598: #  include <memory.h>
  599: # endif
  600: # include <string.h>
  601: #endif
  602: #ifdef HAVE_STRINGS_H
  603: # include <strings.h>
  604: #endif
  605: #ifdef HAVE_INTTYPES_H
  606: # include <inttypes.h>
  607: #endif
  608: #ifdef HAVE_STDINT_H
  609: # include <stdint.h>
  610: #endif
  611: #ifdef HAVE_UNISTD_H
  612: # include <unistd.h>
  613: #endif"
  614: 
  615: ac_subst_vars='LTLIBOBJS
  616: KRB5CONFIG
  617: LIBOBJS
  618: FLEX
  619: YFLAGS
  620: YACC
  621: NROFFPROG
  622: TRPROG
  623: UNAMEPROG
  624: OTOOL64
  625: OTOOL
  626: LIPO
  627: NMEDIT
  628: DSYMUTIL
  629: MANIFEST_TOOL
  630: AWK
  631: STRIP
  632: ac_ct_AR
  633: DLLTOOL
  634: OBJDUMP
  635: LN_S
  636: NM
  637: ac_ct_DUMPBIN
  638: DUMPBIN
  639: LD
  640: FGREP
  641: EGREP
  642: GREP
  643: SED
  644: host_os
  645: host_vendor
  646: host_cpu
  647: host
  648: build_os
  649: build_vendor
  650: build_cpu
  651: build
  652: RANLIB
  653: AR
  654: CPP
  655: OBJEXT
  656: EXEEXT
  657: ac_ct_CC
  658: CC
  659: editor
  660: secure_path
  661: netsvc_conf
  662: nsswitch_conf
  663: ldap_secret
  664: ldap_conf
  665: path_info
  666: root_sudo
  667: insults
  668: tty_tickets
  669: passwd_tries
  670: env_reset
  671: env_editor
  672: runas_default
  673: fqdn
  674: badpass_message
  675: mailsub
  676: mailto
  677: mail_no_perms
  678: mail_no_host
  679: mail_no_user
  680: ignore_dot
  681: loglen
  682: badpri
  683: goodpri
  684: logfac
  685: lecture
  686: long_otp_prompt
  687: passprompt
  688: umask_override
  689: sudo_umask
  690: password_timeout
  691: timeout
  692: timedir
  693: iolog_dir
  694: COMPAT_TEST_PROGS
  695: SUDO_NLS
  696: LIBINTL
  697: LT_STATIC
  698: LIBDL
  699: CONFIGURE_ARGS
  700: ac_config_libobj_dir
  701: LIBTOOL_DEPS
  702: ZLIB_SRC
  703: ZLIB
  704: LOGINCAP_USAGE
  705: LDAP
  706: SELINUX_USAGE
  707: BSDAUTH_USAGE
  708: DONT_LEAK_PATH_INFO
  709: INSTALL_NOEXEC
  710: noexec_file
  711: SOEXT
  712: PLUGINDIR
  713: NOEXECDIR
  714: NOEXECFILE
  715: mansrcdir
  716: mansectform
  717: mansectsu
  718: devdir
  719: SEMAN
  720: LCMAN
  721: BAMAN
  722: DEVEL
  723: SUDOERS_GID
  724: SUDOERS_UID
  725: SUDOERS_MODE
  726: MAN_POSTINSTALL
  727: MANTYPE
  728: AUTH_OBJS
  729: OSDEFS
  730: GETGROUPS_LIB
  731: REPLAY_LIBS
  732: AFS_LIBS
  733: NET_LIBS
  734: SUDOERS_LIBS
  735: SUDO_LIBS
  736: SUDO_OBJS
  737: SUDOERS_OBJS
  738: COMMON_OBJS
  739: LTLDFLAGS
  740: SUDOERS_LDFLAGS
  741: LDFLAGS
  742: CPPFLAGS
  743: PROGS
  744: CFLAGS
  745: LIBTOOL
  746: HAVE_BSM_AUDIT
  747: target_alias
  748: host_alias
  749: build_alias
  750: LIBS
  751: ECHO_T
  752: ECHO_N
  753: ECHO_C
  754: DEFS
  755: mandir
  756: localedir
  757: libdir
  758: psdir
  759: pdfdir
  760: dvidir
  761: htmldir
  762: infodir
  763: docdir
  764: oldincludedir
  765: includedir
  766: localstatedir
  767: sharedstatedir
  768: sysconfdir
  769: datadir
  770: datarootdir
  771: libexecdir
  772: sbindir
  773: bindir
  774: program_transform_name
  775: prefix
  776: exec_prefix
  777: PACKAGE_URL
  778: PACKAGE_BUGREPORT
  779: PACKAGE_STRING
  780: PACKAGE_VERSION
  781: PACKAGE_TARNAME
  782: PACKAGE_NAME
  783: PATH_SEPARATOR
  784: SHELL'
  785: ac_subst_files=''
  786: ac_user_opts='
  787: enable_option_checking
  788: with_otp_only
  789: with_alertmail
  790: with_devel
  791: with_CC
  792: with_rpath
  793: with_blibpath
  794: with_bsm_audit
  795: with_linux_audit
  796: with_incpath
  797: with_libpath
  798: with_libraries
  799: with_efence
  800: with_csops
  801: with_passwd
  802: with_skey
  803: with_opie
  804: with_long_otp_prompt
  805: with_SecurID
  806: with_fwtk
  807: with_kerb5
  808: with_aixauth
  809: with_pam
  810: with_AFS
  811: with_DCE
  812: with_logincap
  813: with_bsdauth
  814: with_project
  815: with_lecture
  816: with_logging
  817: with_logfac
  818: with_goodpri
  819: with_badpri
  820: with_logpath
  821: with_loglen
  822: with_ignore_dot
  823: with_mail_if_no_user
  824: with_mail_if_no_host
  825: with_mail_if_noperms
  826: with_mailto
  827: with_mailsubject
  828: with_passprompt
  829: with_badpass_message
  830: with_fqdn
  831: with_timedir
  832: with_iologdir
  833: with_sendmail
  834: with_sudoers_mode
  835: with_sudoers_uid
  836: with_sudoers_gid
  837: with_umask
  838: with_umask_override
  839: with_runas_default
  840: with_exempt
  841: with_editor
  842: with_env_editor
  843: with_passwd_tries
  844: with_timeout
  845: with_password_timeout
  846: with_tty_tickets
  847: with_insults
  848: with_all_insults
  849: with_classic_insults
  850: with_csops_insults
  851: with_hal_insults
  852: with_goons_insults
  853: with_nsswitch
  854: with_ldap
  855: with_ldap_conf_file
  856: with_ldap_secret_file
  857: with_pc_insults
  858: with_secure_path
  859: with_interfaces
  860: with_stow
  861: with_askpass
  862: with_plugindir
  863: enable_authentication
  864: enable_root_mailer
  865: enable_setreuid
  866: enable_setresuid
  867: enable_shadow
  868: enable_root_sudo
  869: enable_log_host
  870: enable_noargs_shell
  871: enable_shell_sets_home
  872: enable_path_info
  873: enable_env_debug
  874: enable_zlib
  875: enable_env_reset
  876: enable_warnings
  877: enable_werror
  878: enable_admin_flag
  879: enable_nls
  880: with_selinux
  881: enable_gss_krb5_ccache_name
  882: enable_shared
  883: enable_static
  884: with_pic
  885: enable_fast_install
  886: with_gnu_ld
  887: with_sysroot
  888: enable_libtool_lock
  889: with_noexec
  890: with_netsvc
  891: enable_sia
  892: enable_largefile
  893: with_pam_login
  894: enable_pam_session
  895: enable_kerb5_instance
  896: '
  897:       ac_precious_vars='build_alias
  898: host_alias
  899: target_alias
  900: CC
  901: CFLAGS
  902: LDFLAGS
  903: LIBS
  904: CPPFLAGS
  905: CPP
  906: YACC
  907: YFLAGS'
  908: 
  909: 
  910: # Initialize some variables set by options.
  911: ac_init_help=
  912: ac_init_version=false
  913: ac_unrecognized_opts=
  914: ac_unrecognized_sep=
  915: # The variables have the same names as the options, with
  916: # dashes changed to underlines.
  917: cache_file=/dev/null
  918: exec_prefix=NONE
  919: no_create=
  920: no_recursion=
  921: prefix=NONE
  922: program_prefix=NONE
  923: program_suffix=NONE
  924: program_transform_name=s,x,x,
  925: silent=
  926: site=
  927: srcdir=
  928: verbose=
  929: x_includes=NONE
  930: x_libraries=NONE
  931: 
  932: # Installation directory options.
  933: # These are left unexpanded so users can "make install exec_prefix=/foo"
  934: # and all the variables that are supposed to be based on exec_prefix
  935: # by default will actually change.
  936: # Use braces instead of parens because sh, perl, etc. also accept them.
  937: # (The list follows the same order as the GNU Coding Standards.)
  938: bindir='${exec_prefix}/bin'
  939: sbindir='${exec_prefix}/sbin'
  940: libexecdir='${exec_prefix}/libexec'
  941: datarootdir='${prefix}/share'
  942: datadir='${datarootdir}'
  943: sysconfdir='${prefix}/etc'
  944: sharedstatedir='${prefix}/com'
  945: localstatedir='${prefix}/var'
  946: includedir='${prefix}/include'
  947: oldincludedir='/usr/include'
  948: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  949: infodir='${datarootdir}/info'
  950: htmldir='${docdir}'
  951: dvidir='${docdir}'
  952: pdfdir='${docdir}'
  953: psdir='${docdir}'
  954: libdir='${exec_prefix}/lib'
  955: localedir='${datarootdir}/locale'
  956: mandir='${datarootdir}/man'
  957: 
  958: ac_prev=
  959: ac_dashdash=
  960: for ac_option
  961: do
  962:   # If the previous option needs an argument, assign it.
  963:   if test -n "$ac_prev"; then
  964:     eval $ac_prev=\$ac_option
  965:     ac_prev=
  966:     continue
  967:   fi
  968: 
  969:   case $ac_option in
  970:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  971:   *=)   ac_optarg= ;;
  972:   *)    ac_optarg=yes ;;
  973:   esac
  974: 
  975:   # Accept the important Cygnus configure options, so we can diagnose typos.
  976: 
  977:   case $ac_dashdash$ac_option in
  978:   --)
  979:     ac_dashdash=yes ;;
  980: 
  981:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  982:     ac_prev=bindir ;;
  983:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  984:     bindir=$ac_optarg ;;
  985: 
  986:   -build | --build | --buil | --bui | --bu)
  987:     ac_prev=build_alias ;;
  988:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  989:     build_alias=$ac_optarg ;;
  990: 
  991:   -cache-file | --cache-file | --cache-fil | --cache-fi \
  992:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  993:     ac_prev=cache_file ;;
  994:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  995:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  996:     cache_file=$ac_optarg ;;
  997: 
  998:   --config-cache | -C)
  999:     cache_file=config.cache ;;
 1000: 
 1001:   -datadir | --datadir | --datadi | --datad)
 1002:     ac_prev=datadir ;;
 1003:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
 1004:     datadir=$ac_optarg ;;
 1005: 
 1006:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 1007:   | --dataroo | --dataro | --datar)
 1008:     ac_prev=datarootdir ;;
 1009:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 1010:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 1011:     datarootdir=$ac_optarg ;;
 1012: 
 1013:   -disable-* | --disable-*)
 1014:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 1015:     # Reject names that are not valid shell variable names.
 1016:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1017:       as_fn_error $? "invalid feature name: $ac_useropt"
 1018:     ac_useropt_orig=$ac_useropt
 1019:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1020:     case $ac_user_opts in
 1021:       *"
 1022: "enable_$ac_useropt"
 1023: "*) ;;
 1024:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 1025: 	 ac_unrecognized_sep=', ';;
 1026:     esac
 1027:     eval enable_$ac_useropt=no ;;
 1028: 
 1029:   -docdir | --docdir | --docdi | --doc | --do)
 1030:     ac_prev=docdir ;;
 1031:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 1032:     docdir=$ac_optarg ;;
 1033: 
 1034:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 1035:     ac_prev=dvidir ;;
 1036:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 1037:     dvidir=$ac_optarg ;;
 1038: 
 1039:   -enable-* | --enable-*)
 1040:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 1041:     # Reject names that are not valid shell variable names.
 1042:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1043:       as_fn_error $? "invalid feature name: $ac_useropt"
 1044:     ac_useropt_orig=$ac_useropt
 1045:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1046:     case $ac_user_opts in
 1047:       *"
 1048: "enable_$ac_useropt"
 1049: "*) ;;
 1050:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 1051: 	 ac_unrecognized_sep=', ';;
 1052:     esac
 1053:     eval enable_$ac_useropt=\$ac_optarg ;;
 1054: 
 1055:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 1056:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 1057:   | --exec | --exe | --ex)
 1058:     ac_prev=exec_prefix ;;
 1059:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 1060:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 1061:   | --exec=* | --exe=* | --ex=*)
 1062:     exec_prefix=$ac_optarg ;;
 1063: 
 1064:   -gas | --gas | --ga | --g)
 1065:     # Obsolete; use --with-gas.
 1066:     with_gas=yes ;;
 1067: 
 1068:   -help | --help | --hel | --he | -h)
 1069:     ac_init_help=long ;;
 1070:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 1071:     ac_init_help=recursive ;;
 1072:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 1073:     ac_init_help=short ;;
 1074: 
 1075:   -host | --host | --hos | --ho)
 1076:     ac_prev=host_alias ;;
 1077:   -host=* | --host=* | --hos=* | --ho=*)
 1078:     host_alias=$ac_optarg ;;
 1079: 
 1080:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 1081:     ac_prev=htmldir ;;
 1082:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 1083:   | --ht=*)
 1084:     htmldir=$ac_optarg ;;
 1085: 
 1086:   -includedir | --includedir | --includedi | --included | --include \
 1087:   | --includ | --inclu | --incl | --inc)
 1088:     ac_prev=includedir ;;
 1089:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 1090:   | --includ=* | --inclu=* | --incl=* | --inc=*)
 1091:     includedir=$ac_optarg ;;
 1092: 
 1093:   -infodir | --infodir | --infodi | --infod | --info | --inf)
 1094:     ac_prev=infodir ;;
 1095:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 1096:     infodir=$ac_optarg ;;
 1097: 
 1098:   -libdir | --libdir | --libdi | --libd)
 1099:     ac_prev=libdir ;;
 1100:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
 1101:     libdir=$ac_optarg ;;
 1102: 
 1103:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 1104:   | --libexe | --libex | --libe)
 1105:     ac_prev=libexecdir ;;
 1106:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 1107:   | --libexe=* | --libex=* | --libe=*)
 1108:     libexecdir=$ac_optarg ;;
 1109: 
 1110:   -localedir | --localedir | --localedi | --localed | --locale)
 1111:     ac_prev=localedir ;;
 1112:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 1113:     localedir=$ac_optarg ;;
 1114: 
 1115:   -localstatedir | --localstatedir | --localstatedi | --localstated \
 1116:   | --localstate | --localstat | --localsta | --localst | --locals)
 1117:     ac_prev=localstatedir ;;
 1118:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 1119:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 1120:     localstatedir=$ac_optarg ;;
 1121: 
 1122:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 1123:     ac_prev=mandir ;;
 1124:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 1125:     mandir=$ac_optarg ;;
 1126: 
 1127:   -nfp | --nfp | --nf)
 1128:     # Obsolete; use --without-fp.
 1129:     with_fp=no ;;
 1130: 
 1131:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 1132:   | --no-cr | --no-c | -n)
 1133:     no_create=yes ;;
 1134: 
 1135:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 1136:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 1137:     no_recursion=yes ;;
 1138: 
 1139:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 1140:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 1141:   | --oldin | --oldi | --old | --ol | --o)
 1142:     ac_prev=oldincludedir ;;
 1143:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 1144:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 1145:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 1146:     oldincludedir=$ac_optarg ;;
 1147: 
 1148:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 1149:     ac_prev=prefix ;;
 1150:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 1151:     prefix=$ac_optarg ;;
 1152: 
 1153:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
 1154:   | --program-pre | --program-pr | --program-p)
 1155:     ac_prev=program_prefix ;;
 1156:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
 1157:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 1158:     program_prefix=$ac_optarg ;;
 1159: 
 1160:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
 1161:   | --program-suf | --program-su | --program-s)
 1162:     ac_prev=program_suffix ;;
 1163:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
 1164:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 1165:     program_suffix=$ac_optarg ;;
 1166: 
 1167:   -program-transform-name | --program-transform-name \
 1168:   | --program-transform-nam | --program-transform-na \
 1169:   | --program-transform-n | --program-transform- \
 1170:   | --program-transform | --program-transfor \
 1171:   | --program-transfo | --program-transf \
 1172:   | --program-trans | --program-tran \
 1173:   | --progr-tra | --program-tr | --program-t)
 1174:     ac_prev=program_transform_name ;;
 1175:   -program-transform-name=* | --program-transform-name=* \
 1176:   | --program-transform-nam=* | --program-transform-na=* \
 1177:   | --program-transform-n=* | --program-transform-=* \
 1178:   | --program-transform=* | --program-transfor=* \
 1179:   | --program-transfo=* | --program-transf=* \
 1180:   | --program-trans=* | --program-tran=* \
 1181:   | --progr-tra=* | --program-tr=* | --program-t=*)
 1182:     program_transform_name=$ac_optarg ;;
 1183: 
 1184:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 1185:     ac_prev=pdfdir ;;
 1186:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 1187:     pdfdir=$ac_optarg ;;
 1188: 
 1189:   -psdir | --psdir | --psdi | --psd | --ps)
 1190:     ac_prev=psdir ;;
 1191:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 1192:     psdir=$ac_optarg ;;
 1193: 
 1194:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1195:   | -silent | --silent | --silen | --sile | --sil)
 1196:     silent=yes ;;
 1197: 
 1198:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 1199:     ac_prev=sbindir ;;
 1200:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 1201:   | --sbi=* | --sb=*)
 1202:     sbindir=$ac_optarg ;;
 1203: 
 1204:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
 1205:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 1206:   | --sharedst | --shareds | --shared | --share | --shar \
 1207:   | --sha | --sh)
 1208:     ac_prev=sharedstatedir ;;
 1209:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 1210:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 1211:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 1212:   | --sha=* | --sh=*)
 1213:     sharedstatedir=$ac_optarg ;;
 1214: 
 1215:   -site | --site | --sit)
 1216:     ac_prev=site ;;
 1217:   -site=* | --site=* | --sit=*)
 1218:     site=$ac_optarg ;;
 1219: 
 1220:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 1221:     ac_prev=srcdir ;;
 1222:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 1223:     srcdir=$ac_optarg ;;
 1224: 
 1225:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 1226:   | --syscon | --sysco | --sysc | --sys | --sy)
 1227:     ac_prev=sysconfdir ;;
 1228:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 1229:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 1230:     sysconfdir=$ac_optarg ;;
 1231: 
 1232:   -target | --target | --targe | --targ | --tar | --ta | --t)
 1233:     ac_prev=target_alias ;;
 1234:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 1235:     target_alias=$ac_optarg ;;
 1236: 
 1237:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
 1238:     verbose=yes ;;
 1239: 
 1240:   -version | --version | --versio | --versi | --vers | -V)
 1241:     ac_init_version=: ;;
 1242: 
 1243:   -with-* | --with-*)
 1244:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 1245:     # Reject names that are not valid shell variable names.
 1246:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1247:       as_fn_error $? "invalid package name: $ac_useropt"
 1248:     ac_useropt_orig=$ac_useropt
 1249:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1250:     case $ac_user_opts in
 1251:       *"
 1252: "with_$ac_useropt"
 1253: "*) ;;
 1254:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 1255: 	 ac_unrecognized_sep=', ';;
 1256:     esac
 1257:     eval with_$ac_useropt=\$ac_optarg ;;
 1258: 
 1259:   -without-* | --without-*)
 1260:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 1261:     # Reject names that are not valid shell variable names.
 1262:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1263:       as_fn_error $? "invalid package name: $ac_useropt"
 1264:     ac_useropt_orig=$ac_useropt
 1265:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1266:     case $ac_user_opts in
 1267:       *"
 1268: "with_$ac_useropt"
 1269: "*) ;;
 1270:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 1271: 	 ac_unrecognized_sep=', ';;
 1272:     esac
 1273:     eval with_$ac_useropt=no ;;
 1274: 
 1275:   --x)
 1276:     # Obsolete; use --with-x.
 1277:     with_x=yes ;;
 1278: 
 1279:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 1280:   | --x-incl | --x-inc | --x-in | --x-i)
 1281:     ac_prev=x_includes ;;
 1282:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 1283:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 1284:     x_includes=$ac_optarg ;;
 1285: 
 1286:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 1287:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 1288:     ac_prev=x_libraries ;;
 1289:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 1290:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 1291:     x_libraries=$ac_optarg ;;
 1292: 
 1293:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
 1294: Try \`$0 --help' for more information"
 1295:     ;;
 1296: 
 1297:   *=*)
 1298:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 1299:     # Reject names that are not valid shell variable names.
 1300:     case $ac_envvar in #(
 1301:       '' | [0-9]* | *[!_$as_cr_alnum]* )
 1302:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 1303:     esac
 1304:     eval $ac_envvar=\$ac_optarg
 1305:     export $ac_envvar ;;
 1306: 
 1307:   *)
 1308:     # FIXME: should be removed in autoconf 3.0.
 1309:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 1310:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 1311:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 1312:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 1313:     ;;
 1314: 
 1315:   esac
 1316: done
 1317: 
 1318: if test -n "$ac_prev"; then
 1319:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 1320:   as_fn_error $? "missing argument to $ac_option"
 1321: fi
 1322: 
 1323: if test -n "$ac_unrecognized_opts"; then
 1324:   case $enable_option_checking in
 1325:     no) ;;
 1326:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 1327:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 1328:   esac
 1329: fi
 1330: 
 1331: # Check all directory arguments for consistency.
 1332: for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
 1333: 		datadir sysconfdir sharedstatedir localstatedir includedir \
 1334: 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 1335: 		libdir localedir mandir
 1336: do
 1337:   eval ac_val=\$$ac_var
 1338:   # Remove trailing slashes.
 1339:   case $ac_val in
 1340:     */ )
 1341:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 1342:       eval $ac_var=\$ac_val;;
 1343:   esac
 1344:   # Be sure to have absolute directory names.
 1345:   case $ac_val in
 1346:     [\\/$]* | ?:[\\/]* )  continue;;
 1347:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 1348:   esac
 1349:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 1350: done
 1351: 
 1352: # There might be people who depend on the old broken behavior: `$host'
 1353: # used to hold the argument of --host etc.
 1354: # FIXME: To remove some day.
 1355: build=$build_alias
 1356: host=$host_alias
 1357: target=$target_alias
 1358: 
 1359: # FIXME: To remove some day.
 1360: if test "x$host_alias" != x; then
 1361:   if test "x$build_alias" = x; then
 1362:     cross_compiling=maybe
 1363:     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 1364:     If a cross compiler is detected then cross compile mode will be used" >&2
 1365:   elif test "x$build_alias" != "x$host_alias"; then
 1366:     cross_compiling=yes
 1367:   fi
 1368: fi
 1369: 
 1370: ac_tool_prefix=
 1371: test -n "$host_alias" && ac_tool_prefix=$host_alias-
 1372: 
 1373: test "$silent" = yes && exec 6>/dev/null
 1374: 
 1375: 
 1376: ac_pwd=`pwd` && test -n "$ac_pwd" &&
 1377: ac_ls_di=`ls -di .` &&
 1378: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 1379:   as_fn_error $? "working directory cannot be determined"
 1380: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 1381:   as_fn_error $? "pwd does not report name of working directory"
 1382: 
 1383: 
 1384: # Find the source files, if location was not specified.
 1385: if test -z "$srcdir"; then
 1386:   ac_srcdir_defaulted=yes
 1387:   # Try the directory containing this script, then the parent directory.
 1388:   ac_confdir=`$as_dirname -- "$as_myself" ||
 1389: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1390: 	 X"$as_myself" : 'X\(//\)[^/]' \| \
 1391: 	 X"$as_myself" : 'X\(//\)$' \| \
 1392: 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 1393: $as_echo X"$as_myself" |
 1394:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1395: 	    s//\1/
 1396: 	    q
 1397: 	  }
 1398: 	  /^X\(\/\/\)[^/].*/{
 1399: 	    s//\1/
 1400: 	    q
 1401: 	  }
 1402: 	  /^X\(\/\/\)$/{
 1403: 	    s//\1/
 1404: 	    q
 1405: 	  }
 1406: 	  /^X\(\/\).*/{
 1407: 	    s//\1/
 1408: 	    q
 1409: 	  }
 1410: 	  s/.*/./; q'`
 1411:   srcdir=$ac_confdir
 1412:   if test ! -r "$srcdir/$ac_unique_file"; then
 1413:     srcdir=..
 1414:   fi
 1415: else
 1416:   ac_srcdir_defaulted=no
 1417: fi
 1418: if test ! -r "$srcdir/$ac_unique_file"; then
 1419:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 1420:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 1421: fi
 1422: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 1423: ac_abs_confdir=`(
 1424: 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 1425: 	pwd)`
 1426: # When building in place, set srcdir=.
 1427: if test "$ac_abs_confdir" = "$ac_pwd"; then
 1428:   srcdir=.
 1429: fi
 1430: # Remove unnecessary trailing slashes from srcdir.
 1431: # Double slashes in file names in object file debugging info
 1432: # mess up M-x gdb in Emacs.
 1433: case $srcdir in
 1434: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 1435: esac
 1436: for ac_var in $ac_precious_vars; do
 1437:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
 1438:   eval ac_env_${ac_var}_value=\$${ac_var}
 1439:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 1440:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
 1441: done
 1442: 
 1443: #
 1444: # Report the --help message.
 1445: #
 1446: if test "$ac_init_help" = "long"; then
 1447:   # Omit some internal or obsolete options to make the list less imposing.
 1448:   # This message is too long to be a string in the A/UX 3.1 sh.
 1449:   cat <<_ACEOF
 1450: \`configure' configures sudo 1.8.5p1 to adapt to many kinds of systems.
 1451: 
 1452: Usage: $0 [OPTION]... [VAR=VALUE]...
 1453: 
 1454: To assign environment variables (e.g., CC, CFLAGS...), specify them as
 1455: VAR=VALUE.  See below for descriptions of some of the useful variables.
 1456: 
 1457: Defaults for the options are specified in brackets.
 1458: 
 1459: Configuration:
 1460:   -h, --help              display this help and exit
 1461:       --help=short        display options specific to this package
 1462:       --help=recursive    display the short help of all the included packages
 1463:   -V, --version           display version information and exit
 1464:   -q, --quiet, --silent   do not print \`checking ...' messages
 1465:       --cache-file=FILE   cache test results in FILE [disabled]
 1466:   -C, --config-cache      alias for \`--cache-file=config.cache'
 1467:   -n, --no-create         do not create output files
 1468:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 1469: 
 1470: Installation directories:
 1471:   --prefix=PREFIX         install architecture-independent files in PREFIX
 1472:                           [$ac_default_prefix]
 1473:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 1474:                           [PREFIX]
 1475: 
 1476: By default, \`make install' will install all the files in
 1477: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 1478: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 1479: for instance \`--prefix=\$HOME'.
 1480: 
 1481: For better control, use the options below.
 1482: 
 1483: Fine tuning of the installation directories:
 1484:   --bindir=DIR            user executables [EPREFIX/bin]
 1485:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
 1486:   --libexecdir=DIR        program executables [EPREFIX/libexec]
 1487:   --sysconfdir=DIR        read-only single-machine data [/etc]
 1488:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 1489:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 1490:   --libdir=DIR            object code libraries [EPREFIX/lib]
 1491:   --includedir=DIR        C header files [PREFIX/include]
 1492:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 1493:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 1494:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 1495:   --infodir=DIR           info documentation [DATAROOTDIR/info]
 1496:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 1497:   --mandir=DIR            man documentation [DATAROOTDIR/man]
 1498:   --docdir=DIR            documentation root [DATAROOTDIR/doc/sudo]
 1499:   --htmldir=DIR           html documentation [DOCDIR]
 1500:   --dvidir=DIR            dvi documentation [DOCDIR]
 1501:   --pdfdir=DIR            pdf documentation [DOCDIR]
 1502:   --psdir=DIR             ps documentation [DOCDIR]
 1503: _ACEOF
 1504: 
 1505:   cat <<\_ACEOF
 1506: 
 1507: System types:
 1508:   --build=BUILD     configure for building on BUILD [guessed]
 1509:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 1510: _ACEOF
 1511: fi
 1512: 
 1513: if test -n "$ac_init_help"; then
 1514:   case $ac_init_help in
 1515:      short | recursive ) echo "Configuration of sudo 1.8.5p1:";;
 1516:    esac
 1517:   cat <<\_ACEOF
 1518: 
 1519: Optional Features:
 1520:   --disable-option-checking  ignore unrecognized --enable/--with options
 1521:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1522:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1523:   --disable-authentication
 1524:                           Do not require authentication by default
 1525:   --disable-root-mailer   Don't run the mailer as root, run as the user
 1526:   --disable-setreuid      Don't try to use the setreuid() function
 1527:   --disable-setresuid     Don't try to use the setresuid() function
 1528:   --disable-shadow        Never use shadow passwords
 1529:   --disable-root-sudo     Don't allow root to run sudo
 1530:   --enable-log-host       Log the hostname in the log file
 1531:   --enable-noargs-shell   If sudo is given no arguments run a shell
 1532:   --enable-shell-sets-home
 1533:                           Set $HOME to target user in shell mode
 1534:   --disable-path-info     Print 'command not allowed' not 'command not found'
 1535:   --enable-env-debug      Whether to enable environment debugging.
 1536:   --enable-zlib[=PATH]    Whether to enable or disable zlib
 1537:   --enable-env-reset      Whether to enable environment resetting by default.
 1538:   --enable-warnings       Whether to enable compiler warnings
 1539:   --enable-werror         Whether to enable the -Werror compiler option
 1540:   --enable-admin-flag     Whether to create a Ubuntu-style admin flag file
 1541:   --disable-nls           Disable natural language support using gettext
 1542:   --enable-gss-krb5-ccache-name
 1543:                           Use GSS-API to set the Kerberos V cred cache name
 1544:   --enable-shared[=PKGS]  build shared libraries [default=yes]
 1545:   --enable-static[=PKGS]  build static libraries [default=yes]
 1546:   --enable-fast-install[=PKGS]
 1547:                           optimize for fast installation [default=yes]
 1548:   --disable-libtool-lock  avoid locking (might break parallel builds)
 1549:   --disable-sia           Disable SIA on Digital UNIX
 1550:   --disable-largefile     omit support for large files
 1551:   --disable-pam-session   Disable PAM session support
 1552:   --enable-kerb5-instance instance string to append to the username (separated
 1553:                           by a slash)
 1554: 
 1555: Optional Packages:
 1556:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1557:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1558:   --with-otp-only         deprecated
 1559:   --with-alertmail        deprecated
 1560:   --with-devel            add development options
 1561:   --with-CC               C compiler to use
 1562:   --with-rpath            pass -R flag in addition to -L for lib paths
 1563:   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
 1564:   --with-bsm-audit        enable BSM audit support
 1565:   --with-linux-audit      enable Linux audit support
 1566:   --with-incpath          additional places to look for include files
 1567:   --with-libpath          additional places to look for libraries
 1568:   --with-libraries        additional libraries to link with
 1569:   --with-efence           link with -lefence for malloc() debugging
 1570:   --with-csops            add CSOps standard options
 1571:   --without-passwd        don't use passwd/shadow file for authentication
 1572:   --with-skey=DIR         enable S/Key support
 1573:   --with-opie=DIR         enable OPIE support
 1574:   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
 1575:   --with-SecurID[=DIR]    enable SecurID support
 1576:   --with-fwtk[=DIR]       enable FWTK AuthSRV support
 1577:   --with-kerb5[=DIR]      enable Kerberos V support
 1578:   --with-aixauth          enable AIX general authentication support
 1579:   --with-pam              enable PAM support
 1580:   --with-AFS              enable AFS support
 1581:   --with-DCE              enable DCE support
 1582:   --with-logincap         enable BSD login class support
 1583:   --with-bsdauth          enable BSD authentication support
 1584:   --with-project          enable Solaris project support
 1585:   --without-lecture       don't print lecture for first-time sudoer
 1586:   --with-logging          log via syslog, file, or both
 1587:   --with-logfac           syslog facility to log with (default is "auth")
 1588:   --with-goodpri          syslog priority for commands (def is "notice")
 1589:   --with-badpri           syslog priority for failures (def is "alert")
 1590:   --with-logpath          path to the sudo log file
 1591:   --with-loglen           maximum length of a log file line (default is 80)
 1592:   --with-ignore-dot       ignore '.' in the PATH
 1593:   --without-mail-if-no-user
 1594:                           do not send mail if user not in sudoers
 1595:   --with-mail-if-no-host  send mail if user in sudoers but not for this host
 1596:   --with-mail-if-noperms  send mail if user not allowed to run command
 1597:   --with-mailto           who should get sudo mail (default is "root")
 1598:   --with-mailsubject      subject of sudo mail
 1599:   --with-passprompt       default password prompt
 1600:   --with-badpass-message  message the user sees when the password is wrong
 1601:   --with-fqdn             expect fully qualified hosts in sudoers
 1602:   --with-timedir          path to the sudo timestamp dir
 1603:   --with-iologdir=DIR     directory to store sudo I/O log files in
 1604:   --with-sendmail         set path to sendmail
 1605:   --without-sendmail      do not send mail at all
 1606:   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
 1607:   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
 1608:   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
 1609:   --with-umask            umask with which the prog should run (default is
 1610:                           022)
 1611:   --without-umask         Preserves the umask of the user invoking sudo.
 1612:   --with-umask-override   Use the umask specified in sudoers even if it is
 1613:                           less restrictive than the user's.
 1614:   --with-runas-default    User to run commands as (default is "root")
 1615:   --with-exempt=group     no passwd needed for users in this group
 1616:   --with-editor=path      Default editor for visudo (defaults to vi)
 1617:   --with-env-editor       Use the environment variable EDITOR for visudo
 1618:   --with-passwd-tries     number of tries to enter password (default is 3)
 1619:   --with-timeout          minutes before sudo asks for passwd again (def is 5
 1620:                           minutes)
 1621:   --with-password-timeout passwd prompt timeout in minutes (default is 5
 1622:                           minutes)
 1623:   --with-tty-tickets      use a different ticket file for each tty
 1624:   --with-insults          insult the user for entering an incorrect password
 1625:   --with-all-insults      include all the sudo insult sets
 1626:   --with-classic-insults  include the insults from the "classic" sudo
 1627:   --with-csops-insults    include CSOps insults
 1628:   --with-hal-insults      include 2001-like insults
 1629:   --with-goons-insults    include the insults from the "Goon Show"
 1630:   --with-nsswitch[=PATH]  path to nsswitch.conf
 1631:   --with-ldap[=DIR]       enable LDAP support
 1632:   --with-ldap-conf-file   path to LDAP configuration file
 1633:   --with-ldap-secret-file path to LDAP secret password file
 1634:   --with-pc-insults       replace politically incorrect insults with less
 1635:                           offensive ones
 1636:   --with-secure-path      override the user's path with a built-in one
 1637:   --without-interfaces    don't try to read the ip addr of ether interfaces
 1638:   --with-stow             properly handle GNU stow packaging
 1639:   --with-askpass=PATH     Fully qualified pathname of askpass helper
 1640:   --with-plugindir        set directory to load plugins from
 1641:   --with-selinux          enable SELinux support
 1642:   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 1643:                           both]
 1644:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 1645:   --with-sysroot=DIR Search for dependent libraries within DIR
 1646:                         (or the compiler's sysroot if not specified).
 1647:   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
 1648:   --with-netsvc[=PATH]    path to netsvc.conf
 1649:   --with-pam-login        enable specific PAM session for sudo -i
 1650: 
 1651: Some influential environment variables:
 1652:   CC          C compiler command
 1653:   CFLAGS      C compiler flags
 1654:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 1655:               nonstandard directory <lib dir>
 1656:   LIBS        libraries to pass to the linker, e.g. -l<library>
 1657:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 1658:               you have headers in a nonstandard directory <include dir>
 1659:   CPP         C preprocessor
 1660:   YACC        The `Yet Another Compiler Compiler' implementation to use.
 1661:               Defaults to the first program found out of: `bison -y', `byacc',
 1662:               `yacc'.
 1663:   YFLAGS      The list of arguments that will be passed by default to $YACC.
 1664:               This script will default YFLAGS to the empty string to avoid a
 1665:               default value of `-d' given by some make applications.
 1666: 
 1667: Use these variables to override the choices made by `configure' or to help
 1668: it to find libraries and programs with nonstandard names/locations.
 1669: 
 1670: Report bugs to <http://www.sudo.ws/bugs/>.
 1671: _ACEOF
 1672: ac_status=$?
 1673: fi
 1674: 
 1675: if test "$ac_init_help" = "recursive"; then
 1676:   # If there are subdirs, report their specific --help.
 1677:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 1678:     test -d "$ac_dir" ||
 1679:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 1680:       continue
 1681:     ac_builddir=.
 1682: 
 1683: case "$ac_dir" in
 1684: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1685: *)
 1686:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 1687:   # A ".." for each directory in $ac_dir_suffix.
 1688:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 1689:   case $ac_top_builddir_sub in
 1690:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1691:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 1692:   esac ;;
 1693: esac
 1694: ac_abs_top_builddir=$ac_pwd
 1695: ac_abs_builddir=$ac_pwd$ac_dir_suffix
 1696: # for backward compatibility:
 1697: ac_top_builddir=$ac_top_build_prefix
 1698: 
 1699: case $srcdir in
 1700:   .)  # We are building in place.
 1701:     ac_srcdir=.
 1702:     ac_top_srcdir=$ac_top_builddir_sub
 1703:     ac_abs_top_srcdir=$ac_pwd ;;
 1704:   [\\/]* | ?:[\\/]* )  # Absolute name.
 1705:     ac_srcdir=$srcdir$ac_dir_suffix;
 1706:     ac_top_srcdir=$srcdir
 1707:     ac_abs_top_srcdir=$srcdir ;;
 1708:   *) # Relative name.
 1709:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 1710:     ac_top_srcdir=$ac_top_build_prefix$srcdir
 1711:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 1712: esac
 1713: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 1714: 
 1715:     cd "$ac_dir" || { ac_status=$?; continue; }
 1716:     # Check for guested configure.
 1717:     if test -f "$ac_srcdir/configure.gnu"; then
 1718:       echo &&
 1719:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 1720:     elif test -f "$ac_srcdir/configure"; then
 1721:       echo &&
 1722:       $SHELL "$ac_srcdir/configure" --help=recursive
 1723:     else
 1724:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 1725:     fi || ac_status=$?
 1726:     cd "$ac_pwd" || { ac_status=$?; break; }
 1727:   done
 1728: fi
 1729: 
 1730: test -n "$ac_init_help" && exit $ac_status
 1731: if $ac_init_version; then
 1732:   cat <<\_ACEOF
 1733: sudo configure 1.8.5p1
 1734: generated by GNU Autoconf 2.68
 1735: 
 1736: Copyright (C) 2010 Free Software Foundation, Inc.
 1737: This configure script is free software; the Free Software Foundation
 1738: gives unlimited permission to copy, distribute and modify it.
 1739: _ACEOF
 1740:   exit
 1741: fi
 1742: 
 1743: ## ------------------------ ##
 1744: ## Autoconf initialization. ##
 1745: ## ------------------------ ##
 1746: 
 1747: # ac_fn_c_try_compile LINENO
 1748: # --------------------------
 1749: # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1750: ac_fn_c_try_compile ()
 1751: {
 1752:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1753:   rm -f conftest.$ac_objext
 1754:   if { { ac_try="$ac_compile"
 1755: case "(($ac_try" in
 1756:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1757:   *) ac_try_echo=$ac_try;;
 1758: esac
 1759: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1760: $as_echo "$ac_try_echo"; } >&5
 1761:   (eval "$ac_compile") 2>conftest.err
 1762:   ac_status=$?
 1763:   if test -s conftest.err; then
 1764:     grep -v '^ *+' conftest.err >conftest.er1
 1765:     cat conftest.er1 >&5
 1766:     mv -f conftest.er1 conftest.err
 1767:   fi
 1768:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1769:   test $ac_status = 0; } && {
 1770: 	 test -z "$ac_c_werror_flag" ||
 1771: 	 test ! -s conftest.err
 1772:        } && test -s conftest.$ac_objext; then :
 1773:   ac_retval=0
 1774: else
 1775:   $as_echo "$as_me: failed program was:" >&5
 1776: sed 's/^/| /' conftest.$ac_ext >&5
 1777: 
 1778: 	ac_retval=1
 1779: fi
 1780:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1781:   as_fn_set_status $ac_retval
 1782: 
 1783: } # ac_fn_c_try_compile
 1784: 
 1785: # ac_fn_c_try_link LINENO
 1786: # -----------------------
 1787: # Try to link conftest.$ac_ext, and return whether this succeeded.
 1788: ac_fn_c_try_link ()
 1789: {
 1790:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1791:   rm -f conftest.$ac_objext conftest$ac_exeext
 1792:   if { { ac_try="$ac_link"
 1793: case "(($ac_try" in
 1794:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1795:   *) ac_try_echo=$ac_try;;
 1796: esac
 1797: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1798: $as_echo "$ac_try_echo"; } >&5
 1799:   (eval "$ac_link") 2>conftest.err
 1800:   ac_status=$?
 1801:   if test -s conftest.err; then
 1802:     grep -v '^ *+' conftest.err >conftest.er1
 1803:     cat conftest.er1 >&5
 1804:     mv -f conftest.er1 conftest.err
 1805:   fi
 1806:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1807:   test $ac_status = 0; } && {
 1808: 	 test -z "$ac_c_werror_flag" ||
 1809: 	 test ! -s conftest.err
 1810:        } && test -s conftest$ac_exeext && {
 1811: 	 test "$cross_compiling" = yes ||
 1812: 	 $as_test_x conftest$ac_exeext
 1813:        }; then :
 1814:   ac_retval=0
 1815: else
 1816:   $as_echo "$as_me: failed program was:" >&5
 1817: sed 's/^/| /' conftest.$ac_ext >&5
 1818: 
 1819: 	ac_retval=1
 1820: fi
 1821:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 1822:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 1823:   # interfere with the next link command; also delete a directory that is
 1824:   # left behind by Apple's compiler.  We do this before executing the actions.
 1825:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1826:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1827:   as_fn_set_status $ac_retval
 1828: 
 1829: } # ac_fn_c_try_link
 1830: 
 1831: # ac_fn_c_try_cpp LINENO
 1832: # ----------------------
 1833: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 1834: ac_fn_c_try_cpp ()
 1835: {
 1836:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1837:   if { { ac_try="$ac_cpp conftest.$ac_ext"
 1838: case "(($ac_try" in
 1839:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1840:   *) ac_try_echo=$ac_try;;
 1841: esac
 1842: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1843: $as_echo "$ac_try_echo"; } >&5
 1844:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 1845:   ac_status=$?
 1846:   if test -s conftest.err; then
 1847:     grep -v '^ *+' conftest.err >conftest.er1
 1848:     cat conftest.er1 >&5
 1849:     mv -f conftest.er1 conftest.err
 1850:   fi
 1851:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1852:   test $ac_status = 0; } > conftest.i && {
 1853: 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 1854: 	 test ! -s conftest.err
 1855:        }; then :
 1856:   ac_retval=0
 1857: else
 1858:   $as_echo "$as_me: failed program was:" >&5
 1859: sed 's/^/| /' conftest.$ac_ext >&5
 1860: 
 1861:     ac_retval=1
 1862: fi
 1863:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1864:   as_fn_set_status $ac_retval
 1865: 
 1866: } # ac_fn_c_try_cpp
 1867: 
 1868: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 1869: # -------------------------------------------------------
 1870: # Tests whether HEADER exists and can be compiled using the include files in
 1871: # INCLUDES, setting the cache variable VAR accordingly.
 1872: ac_fn_c_check_header_compile ()
 1873: {
 1874:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1875:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1876: $as_echo_n "checking for $2... " >&6; }
 1877: if eval \${$3+:} false; then :
 1878:   $as_echo_n "(cached) " >&6
 1879: else
 1880:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1881: /* end confdefs.h.  */
 1882: $4
 1883: #include <$2>
 1884: _ACEOF
 1885: if ac_fn_c_try_compile "$LINENO"; then :
 1886:   eval "$3=yes"
 1887: else
 1888:   eval "$3=no"
 1889: fi
 1890: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1891: fi
 1892: eval ac_res=\$$3
 1893: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1894: $as_echo "$ac_res" >&6; }
 1895:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1896: 
 1897: } # ac_fn_c_check_header_compile
 1898: 
 1899: # ac_fn_c_try_run LINENO
 1900: # ----------------------
 1901: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 1902: # that executables *can* be run.
 1903: ac_fn_c_try_run ()
 1904: {
 1905:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1906:   if { { ac_try="$ac_link"
 1907: case "(($ac_try" in
 1908:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1909:   *) ac_try_echo=$ac_try;;
 1910: esac
 1911: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1912: $as_echo "$ac_try_echo"; } >&5
 1913:   (eval "$ac_link") 2>&5
 1914:   ac_status=$?
 1915:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1916:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 1917:   { { case "(($ac_try" in
 1918:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1919:   *) ac_try_echo=$ac_try;;
 1920: esac
 1921: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1922: $as_echo "$ac_try_echo"; } >&5
 1923:   (eval "$ac_try") 2>&5
 1924:   ac_status=$?
 1925:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1926:   test $ac_status = 0; }; }; then :
 1927:   ac_retval=0
 1928: else
 1929:   $as_echo "$as_me: program exited with status $ac_status" >&5
 1930:        $as_echo "$as_me: failed program was:" >&5
 1931: sed 's/^/| /' conftest.$ac_ext >&5
 1932: 
 1933:        ac_retval=$ac_status
 1934: fi
 1935:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1936:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1937:   as_fn_set_status $ac_retval
 1938: 
 1939: } # ac_fn_c_try_run
 1940: 
 1941: # ac_fn_c_check_func LINENO FUNC VAR
 1942: # ----------------------------------
 1943: # Tests whether FUNC exists, setting the cache variable VAR accordingly
 1944: ac_fn_c_check_func ()
 1945: {
 1946:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1947:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1948: $as_echo_n "checking for $2... " >&6; }
 1949: if eval \${$3+:} false; then :
 1950:   $as_echo_n "(cached) " >&6
 1951: else
 1952:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1953: /* end confdefs.h.  */
 1954: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 1955:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 1956: #define $2 innocuous_$2
 1957: 
 1958: /* System header to define __stub macros and hopefully few prototypes,
 1959:     which can conflict with char $2 (); below.
 1960:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 1961:     <limits.h> exists even on freestanding compilers.  */
 1962: 
 1963: #ifdef __STDC__
 1964: # include <limits.h>
 1965: #else
 1966: # include <assert.h>
 1967: #endif
 1968: 
 1969: #undef $2
 1970: 
 1971: /* Override any GCC internal prototype to avoid an error.
 1972:    Use char because int might match the return type of a GCC
 1973:    builtin and then its argument prototype would still apply.  */
 1974: #ifdef __cplusplus
 1975: extern "C"
 1976: #endif
 1977: char $2 ();
 1978: /* The GNU C library defines this for functions which it implements
 1979:     to always fail with ENOSYS.  Some functions are actually named
 1980:     something starting with __ and the normal name is an alias.  */
 1981: #if defined __stub_$2 || defined __stub___$2
 1982: choke me
 1983: #endif
 1984: 
 1985: int
 1986: main ()
 1987: {
 1988: return $2 ();
 1989:   ;
 1990:   return 0;
 1991: }
 1992: _ACEOF
 1993: if ac_fn_c_try_link "$LINENO"; then :
 1994:   eval "$3=yes"
 1995: else
 1996:   eval "$3=no"
 1997: fi
 1998: rm -f core conftest.err conftest.$ac_objext \
 1999:     conftest$ac_exeext conftest.$ac_ext
 2000: fi
 2001: eval ac_res=\$$3
 2002: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2003: $as_echo "$ac_res" >&6; }
 2004:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2005: 
 2006: } # ac_fn_c_check_func
 2007: 
 2008: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 2009: # -------------------------------------------
 2010: # Tests whether TYPE exists after having included INCLUDES, setting cache
 2011: # variable VAR accordingly.
 2012: ac_fn_c_check_type ()
 2013: {
 2014:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2015:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 2016: $as_echo_n "checking for $2... " >&6; }
 2017: if eval \${$3+:} false; then :
 2018:   $as_echo_n "(cached) " >&6
 2019: else
 2020:   eval "$3=no"
 2021:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2022: /* end confdefs.h.  */
 2023: $4
 2024: int
 2025: main ()
 2026: {
 2027: if (sizeof ($2))
 2028: 	 return 0;
 2029:   ;
 2030:   return 0;
 2031: }
 2032: _ACEOF
 2033: if ac_fn_c_try_compile "$LINENO"; then :
 2034:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2035: /* end confdefs.h.  */
 2036: $4
 2037: int
 2038: main ()
 2039: {
 2040: if (sizeof (($2)))
 2041: 	    return 0;
 2042:   ;
 2043:   return 0;
 2044: }
 2045: _ACEOF
 2046: if ac_fn_c_try_compile "$LINENO"; then :
 2047: 
 2048: else
 2049:   eval "$3=yes"
 2050: fi
 2051: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2052: fi
 2053: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2054: fi
 2055: eval ac_res=\$$3
 2056: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2057: $as_echo "$ac_res" >&6; }
 2058:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2059: 
 2060: } # ac_fn_c_check_type
 2061: 
 2062: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 2063: # -------------------------------------------------------
 2064: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
 2065: # the include files in INCLUDES and setting the cache variable VAR
 2066: # accordingly.
 2067: ac_fn_c_check_header_mongrel ()
 2068: {
 2069:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2070:   if eval \${$3+:} false; then :
 2071:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 2072: $as_echo_n "checking for $2... " >&6; }
 2073: if eval \${$3+:} false; then :
 2074:   $as_echo_n "(cached) " >&6
 2075: fi
 2076: eval ac_res=\$$3
 2077: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2078: $as_echo "$ac_res" >&6; }
 2079: else
 2080:   # Is the header compilable?
 2081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 2082: $as_echo_n "checking $2 usability... " >&6; }
 2083: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2084: /* end confdefs.h.  */
 2085: $4
 2086: #include <$2>
 2087: _ACEOF
 2088: if ac_fn_c_try_compile "$LINENO"; then :
 2089:   ac_header_compiler=yes
 2090: else
 2091:   ac_header_compiler=no
 2092: fi
 2093: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 2095: $as_echo "$ac_header_compiler" >&6; }
 2096: 
 2097: # Is the header present?
 2098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 2099: $as_echo_n "checking $2 presence... " >&6; }
 2100: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2101: /* end confdefs.h.  */
 2102: #include <$2>
 2103: _ACEOF
 2104: if ac_fn_c_try_cpp "$LINENO"; then :
 2105:   ac_header_preproc=yes
 2106: else
 2107:   ac_header_preproc=no
 2108: fi
 2109: rm -f conftest.err conftest.i conftest.$ac_ext
 2110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 2111: $as_echo "$ac_header_preproc" >&6; }
 2112: 
 2113: # So?  What about this header?
 2114: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 2115:   yes:no: )
 2116:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 2117: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 2118:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 2119: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 2120:     ;;
 2121:   no:yes:* )
 2122:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 2123: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 2124:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 2125: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 2126:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 2127: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 2128:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 2129: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 2130:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 2131: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 2132: ( $as_echo "## --------------------------------------- ##
 2133: ## Report this to http://www.sudo.ws/bugs/ ##
 2134: ## --------------------------------------- ##"
 2135:      ) | sed "s/^/$as_me: WARNING:     /" >&2
 2136:     ;;
 2137: esac
 2138:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 2139: $as_echo_n "checking for $2... " >&6; }
 2140: if eval \${$3+:} false; then :
 2141:   $as_echo_n "(cached) " >&6
 2142: else
 2143:   eval "$3=\$ac_header_compiler"
 2144: fi
 2145: eval ac_res=\$$3
 2146: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2147: $as_echo "$ac_res" >&6; }
 2148: fi
 2149:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2150: 
 2151: } # ac_fn_c_check_header_mongrel
 2152: 
 2153: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 2154: # ----------------------------------------------------
 2155: # Tries to find if the field MEMBER exists in type AGGR, after including
 2156: # INCLUDES, setting cache variable VAR accordingly.
 2157: ac_fn_c_check_member ()
 2158: {
 2159:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2160:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 2161: $as_echo_n "checking for $2.$3... " >&6; }
 2162: if eval \${$4+:} false; then :
 2163:   $as_echo_n "(cached) " >&6
 2164: else
 2165:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2166: /* end confdefs.h.  */
 2167: $5
 2168: int
 2169: main ()
 2170: {
 2171: static $2 ac_aggr;
 2172: if (ac_aggr.$3)
 2173: return 0;
 2174:   ;
 2175:   return 0;
 2176: }
 2177: _ACEOF
 2178: if ac_fn_c_try_compile "$LINENO"; then :
 2179:   eval "$4=yes"
 2180: else
 2181:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2182: /* end confdefs.h.  */
 2183: $5
 2184: int
 2185: main ()
 2186: {
 2187: static $2 ac_aggr;
 2188: if (sizeof ac_aggr.$3)
 2189: return 0;
 2190:   ;
 2191:   return 0;
 2192: }
 2193: _ACEOF
 2194: if ac_fn_c_try_compile "$LINENO"; then :
 2195:   eval "$4=yes"
 2196: else
 2197:   eval "$4=no"
 2198: fi
 2199: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2200: fi
 2201: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2202: fi
 2203: eval ac_res=\$$4
 2204: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2205: $as_echo "$ac_res" >&6; }
 2206:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2207: 
 2208: } # ac_fn_c_check_member
 2209: 
 2210: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 2211: # --------------------------------------------
 2212: # Tries to find the compile-time value of EXPR in a program that includes
 2213: # INCLUDES, setting VAR accordingly. Returns whether the value could be
 2214: # computed
 2215: ac_fn_c_compute_int ()
 2216: {
 2217:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2218:   if test "$cross_compiling" = yes; then
 2219:     # Depending upon the size, compute the lo and hi bounds.
 2220: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2221: /* end confdefs.h.  */
 2222: $4
 2223: int
 2224: main ()
 2225: {
 2226: static int test_array [1 - 2 * !(($2) >= 0)];
 2227: test_array [0] = 0
 2228: 
 2229:   ;
 2230:   return 0;
 2231: }
 2232: _ACEOF
 2233: if ac_fn_c_try_compile "$LINENO"; then :
 2234:   ac_lo=0 ac_mid=0
 2235:   while :; do
 2236:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2237: /* end confdefs.h.  */
 2238: $4
 2239: int
 2240: main ()
 2241: {
 2242: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 2243: test_array [0] = 0
 2244: 
 2245:   ;
 2246:   return 0;
 2247: }
 2248: _ACEOF
 2249: if ac_fn_c_try_compile "$LINENO"; then :
 2250:   ac_hi=$ac_mid; break
 2251: else
 2252:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 2253: 			if test $ac_lo -le $ac_mid; then
 2254: 			  ac_lo= ac_hi=
 2255: 			  break
 2256: 			fi
 2257: 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 2258: fi
 2259: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2260:   done
 2261: else
 2262:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2263: /* end confdefs.h.  */
 2264: $4
 2265: int
 2266: main ()
 2267: {
 2268: static int test_array [1 - 2 * !(($2) < 0)];
 2269: test_array [0] = 0
 2270: 
 2271:   ;
 2272:   return 0;
 2273: }
 2274: _ACEOF
 2275: if ac_fn_c_try_compile "$LINENO"; then :
 2276:   ac_hi=-1 ac_mid=-1
 2277:   while :; do
 2278:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2279: /* end confdefs.h.  */
 2280: $4
 2281: int
 2282: main ()
 2283: {
 2284: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 2285: test_array [0] = 0
 2286: 
 2287:   ;
 2288:   return 0;
 2289: }
 2290: _ACEOF
 2291: if ac_fn_c_try_compile "$LINENO"; then :
 2292:   ac_lo=$ac_mid; break
 2293: else
 2294:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 2295: 			if test $ac_mid -le $ac_hi; then
 2296: 			  ac_lo= ac_hi=
 2297: 			  break
 2298: 			fi
 2299: 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 2300: fi
 2301: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2302:   done
 2303: else
 2304:   ac_lo= ac_hi=
 2305: fi
 2306: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2307: fi
 2308: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2309: # Binary search between lo and hi bounds.
 2310: while test "x$ac_lo" != "x$ac_hi"; do
 2311:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 2312:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2313: /* end confdefs.h.  */
 2314: $4
 2315: int
 2316: main ()
 2317: {
 2318: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 2319: test_array [0] = 0
 2320: 
 2321:   ;
 2322:   return 0;
 2323: }
 2324: _ACEOF
 2325: if ac_fn_c_try_compile "$LINENO"; then :
 2326:   ac_hi=$ac_mid
 2327: else
 2328:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 2329: fi
 2330: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2331: done
 2332: case $ac_lo in #((
 2333: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 2334: '') ac_retval=1 ;;
 2335: esac
 2336:   else
 2337:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2338: /* end confdefs.h.  */
 2339: $4
 2340: static long int longval () { return $2; }
 2341: static unsigned long int ulongval () { return $2; }
 2342: #include <stdio.h>
 2343: #include <stdlib.h>
 2344: int
 2345: main ()
 2346: {
 2347: 
 2348:   FILE *f = fopen ("conftest.val", "w");
 2349:   if (! f)
 2350:     return 1;
 2351:   if (($2) < 0)
 2352:     {
 2353:       long int i = longval ();
 2354:       if (i != ($2))
 2355: 	return 1;
 2356:       fprintf (f, "%ld", i);
 2357:     }
 2358:   else
 2359:     {
 2360:       unsigned long int i = ulongval ();
 2361:       if (i != ($2))
 2362: 	return 1;
 2363:       fprintf (f, "%lu", i);
 2364:     }
 2365:   /* Do not output a trailing newline, as this causes \r\n confusion
 2366:      on some platforms.  */
 2367:   return ferror (f) || fclose (f) != 0;
 2368: 
 2369:   ;
 2370:   return 0;
 2371: }
 2372: _ACEOF
 2373: if ac_fn_c_try_run "$LINENO"; then :
 2374:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 2375: else
 2376:   ac_retval=1
 2377: fi
 2378: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 2379:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 2380: rm -f conftest.val
 2381: 
 2382:   fi
 2383:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2384:   as_fn_set_status $ac_retval
 2385: 
 2386: } # ac_fn_c_compute_int
 2387: 
 2388: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 2389: # ---------------------------------------------
 2390: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 2391: # accordingly.
 2392: ac_fn_c_check_decl ()
 2393: {
 2394:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2395:   as_decl_name=`echo $2|sed 's/ *(.*//'`
 2396:   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 2397:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 2398: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 2399: if eval \${$3+:} false; then :
 2400:   $as_echo_n "(cached) " >&6
 2401: else
 2402:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2403: /* end confdefs.h.  */
 2404: $4
 2405: int
 2406: main ()
 2407: {
 2408: #ifndef $as_decl_name
 2409: #ifdef __cplusplus
 2410:   (void) $as_decl_use;
 2411: #else
 2412:   (void) $as_decl_name;
 2413: #endif
 2414: #endif
 2415: 
 2416:   ;
 2417:   return 0;
 2418: }
 2419: _ACEOF
 2420: if ac_fn_c_try_compile "$LINENO"; then :
 2421:   eval "$3=yes"
 2422: else
 2423:   eval "$3=no"
 2424: fi
 2425: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2426: fi
 2427: eval ac_res=\$$3
 2428: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2429: $as_echo "$ac_res" >&6; }
 2430:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2431: 
 2432: } # ac_fn_c_check_decl
 2433: cat >config.log <<_ACEOF
 2434: This file contains any messages produced by compilers while
 2435: running configure, to aid debugging if configure makes a mistake.
 2436: 
 2437: It was created by sudo $as_me 1.8.5p1, which was
 2438: generated by GNU Autoconf 2.68.  Invocation command line was
 2439: 
 2440:   $ $0 $@
 2441: 
 2442: _ACEOF
 2443: exec 5>>config.log
 2444: {
 2445: cat <<_ASUNAME
 2446: ## --------- ##
 2447: ## Platform. ##
 2448: ## --------- ##
 2449: 
 2450: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 2451: uname -m = `(uname -m) 2>/dev/null || echo unknown`
 2452: uname -r = `(uname -r) 2>/dev/null || echo unknown`
 2453: uname -s = `(uname -s) 2>/dev/null || echo unknown`
 2454: uname -v = `(uname -v) 2>/dev/null || echo unknown`
 2455: 
 2456: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 2457: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 2458: 
 2459: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 2460: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 2461: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 2462: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 2463: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 2464: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 2465: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 2466: 
 2467: _ASUNAME
 2468: 
 2469: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2470: for as_dir in $PATH
 2471: do
 2472:   IFS=$as_save_IFS
 2473:   test -z "$as_dir" && as_dir=.
 2474:     $as_echo "PATH: $as_dir"
 2475:   done
 2476: IFS=$as_save_IFS
 2477: 
 2478: } >&5
 2479: 
 2480: cat >&5 <<_ACEOF
 2481: 
 2482: 
 2483: ## ----------- ##
 2484: ## Core tests. ##
 2485: ## ----------- ##
 2486: 
 2487: _ACEOF
 2488: 
 2489: 
 2490: # Keep a trace of the command line.
 2491: # Strip out --no-create and --no-recursion so they do not pile up.
 2492: # Strip out --silent because we don't want to record it for future runs.
 2493: # Also quote any args containing shell meta-characters.
 2494: # Make two passes to allow for proper duplicate-argument suppression.
 2495: ac_configure_args=
 2496: ac_configure_args0=
 2497: ac_configure_args1=
 2498: ac_must_keep_next=false
 2499: for ac_pass in 1 2
 2500: do
 2501:   for ac_arg
 2502:   do
 2503:     case $ac_arg in
 2504:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 2505:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 2506:     | -silent | --silent | --silen | --sile | --sil)
 2507:       continue ;;
 2508:     *\'*)
 2509:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 2510:     esac
 2511:     case $ac_pass in
 2512:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 2513:     2)
 2514:       as_fn_append ac_configure_args1 " '$ac_arg'"
 2515:       if test $ac_must_keep_next = true; then
 2516: 	ac_must_keep_next=false # Got value, back to normal.
 2517:       else
 2518: 	case $ac_arg in
 2519: 	  *=* | --config-cache | -C | -disable-* | --disable-* \
 2520: 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 2521: 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 2522: 	  | -with-* | --with-* | -without-* | --without-* | --x)
 2523: 	    case "$ac_configure_args0 " in
 2524: 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 2525: 	    esac
 2526: 	    ;;
 2527: 	  -* ) ac_must_keep_next=true ;;
 2528: 	esac
 2529:       fi
 2530:       as_fn_append ac_configure_args " '$ac_arg'"
 2531:       ;;
 2532:     esac
 2533:   done
 2534: done
 2535: { ac_configure_args0=; unset ac_configure_args0;}
 2536: { ac_configure_args1=; unset ac_configure_args1;}
 2537: 
 2538: # When interrupted or exit'd, cleanup temporary files, and complete
 2539: # config.log.  We remove comments because anyway the quotes in there
 2540: # would cause problems or look ugly.
 2541: # WARNING: Use '\'' to represent an apostrophe within the trap.
 2542: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 2543: trap 'exit_status=$?
 2544:   # Save into config.log some information that might help in debugging.
 2545:   {
 2546:     echo
 2547: 
 2548:     $as_echo "## ---------------- ##
 2549: ## Cache variables. ##
 2550: ## ---------------- ##"
 2551:     echo
 2552:     # The following way of writing the cache mishandles newlines in values,
 2553: (
 2554:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 2555:     eval ac_val=\$$ac_var
 2556:     case $ac_val in #(
 2557:     *${as_nl}*)
 2558:       case $ac_var in #(
 2559:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 2560: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 2561:       esac
 2562:       case $ac_var in #(
 2563:       _ | IFS | as_nl) ;; #(
 2564:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 2565:       *) { eval $ac_var=; unset $ac_var;} ;;
 2566:       esac ;;
 2567:     esac
 2568:   done
 2569:   (set) 2>&1 |
 2570:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 2571:     *${as_nl}ac_space=\ *)
 2572:       sed -n \
 2573: 	"s/'\''/'\''\\\\'\'''\''/g;
 2574: 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 2575:       ;; #(
 2576:     *)
 2577:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 2578:       ;;
 2579:     esac |
 2580:     sort
 2581: )
 2582:     echo
 2583: 
 2584:     $as_echo "## ----------------- ##
 2585: ## Output variables. ##
 2586: ## ----------------- ##"
 2587:     echo
 2588:     for ac_var in $ac_subst_vars
 2589:     do
 2590:       eval ac_val=\$$ac_var
 2591:       case $ac_val in
 2592:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2593:       esac
 2594:       $as_echo "$ac_var='\''$ac_val'\''"
 2595:     done | sort
 2596:     echo
 2597: 
 2598:     if test -n "$ac_subst_files"; then
 2599:       $as_echo "## ------------------- ##
 2600: ## File substitutions. ##
 2601: ## ------------------- ##"
 2602:       echo
 2603:       for ac_var in $ac_subst_files
 2604:       do
 2605: 	eval ac_val=\$$ac_var
 2606: 	case $ac_val in
 2607: 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2608: 	esac
 2609: 	$as_echo "$ac_var='\''$ac_val'\''"
 2610:       done | sort
 2611:       echo
 2612:     fi
 2613: 
 2614:     if test -s confdefs.h; then
 2615:       $as_echo "## ----------- ##
 2616: ## confdefs.h. ##
 2617: ## ----------- ##"
 2618:       echo
 2619:       cat confdefs.h
 2620:       echo
 2621:     fi
 2622:     test "$ac_signal" != 0 &&
 2623:       $as_echo "$as_me: caught signal $ac_signal"
 2624:     $as_echo "$as_me: exit $exit_status"
 2625:   } >&5
 2626:   rm -f core *.core core.conftest.* &&
 2627:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 2628:     exit $exit_status
 2629: ' 0
 2630: for ac_signal in 1 2 13 15; do
 2631:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 2632: done
 2633: ac_signal=0
 2634: 
 2635: # confdefs.h avoids OS command line length limits that DEFS can exceed.
 2636: rm -f -r conftest* confdefs.h
 2637: 
 2638: $as_echo "/* confdefs.h */" > confdefs.h
 2639: 
 2640: # Predefined preprocessor variables.
 2641: 
 2642: cat >>confdefs.h <<_ACEOF
 2643: #define PACKAGE_NAME "$PACKAGE_NAME"
 2644: _ACEOF
 2645: 
 2646: cat >>confdefs.h <<_ACEOF
 2647: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 2648: _ACEOF
 2649: 
 2650: cat >>confdefs.h <<_ACEOF
 2651: #define PACKAGE_VERSION "$PACKAGE_VERSION"
 2652: _ACEOF
 2653: 
 2654: cat >>confdefs.h <<_ACEOF
 2655: #define PACKAGE_STRING "$PACKAGE_STRING"
 2656: _ACEOF
 2657: 
 2658: cat >>confdefs.h <<_ACEOF
 2659: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 2660: _ACEOF
 2661: 
 2662: cat >>confdefs.h <<_ACEOF
 2663: #define PACKAGE_URL "$PACKAGE_URL"
 2664: _ACEOF
 2665: 
 2666: 
 2667: # Let the site file select an alternate cache file if it wants to.
 2668: # Prefer an explicitly selected file to automatically selected ones.
 2669: ac_site_file1=NONE
 2670: ac_site_file2=NONE
 2671: if test -n "$CONFIG_SITE"; then
 2672:   # We do not want a PATH search for config.site.
 2673:   case $CONFIG_SITE in #((
 2674:     -*)  ac_site_file1=./$CONFIG_SITE;;
 2675:     */*) ac_site_file1=$CONFIG_SITE;;
 2676:     *)   ac_site_file1=./$CONFIG_SITE;;
 2677:   esac
 2678: elif test "x$prefix" != xNONE; then
 2679:   ac_site_file1=$prefix/share/config.site
 2680:   ac_site_file2=$prefix/etc/config.site
 2681: else
 2682:   ac_site_file1=$ac_default_prefix/share/config.site
 2683:   ac_site_file2=$ac_default_prefix/etc/config.site
 2684: fi
 2685: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 2686: do
 2687:   test "x$ac_site_file" = xNONE && continue
 2688:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 2689:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 2690: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
 2691:     sed 's/^/| /' "$ac_site_file" >&5
 2692:     . "$ac_site_file" \
 2693:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2694: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2695: as_fn_error $? "failed to load site script $ac_site_file
 2696: See \`config.log' for more details" "$LINENO" 5; }
 2697:   fi
 2698: done
 2699: 
 2700: if test -r "$cache_file"; then
 2701:   # Some versions of bash will fail to source /dev/null (special files
 2702:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 2703:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 2704:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 2705: $as_echo "$as_me: loading cache $cache_file" >&6;}
 2706:     case $cache_file in
 2707:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
 2708:       *)                      . "./$cache_file";;
 2709:     esac
 2710:   fi
 2711: else
 2712:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 2713: $as_echo "$as_me: creating cache $cache_file" >&6;}
 2714:   >$cache_file
 2715: fi
 2716: 
 2717: # Check that the precious variables saved in the cache have kept the same
 2718: # value.
 2719: ac_cache_corrupted=false
 2720: for ac_var in $ac_precious_vars; do
 2721:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 2722:   eval ac_new_set=\$ac_env_${ac_var}_set
 2723:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
 2724:   eval ac_new_val=\$ac_env_${ac_var}_value
 2725:   case $ac_old_set,$ac_new_set in
 2726:     set,)
 2727:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 2728: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 2729:       ac_cache_corrupted=: ;;
 2730:     ,set)
 2731:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 2732: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 2733:       ac_cache_corrupted=: ;;
 2734:     ,);;
 2735:     *)
 2736:       if test "x$ac_old_val" != "x$ac_new_val"; then
 2737: 	# differences in whitespace do not lead to failure.
 2738: 	ac_old_val_w=`echo x $ac_old_val`
 2739: 	ac_new_val_w=`echo x $ac_new_val`
 2740: 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
 2741: 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 2742: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 2743: 	  ac_cache_corrupted=:
 2744: 	else
 2745: 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 2746: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 2747: 	  eval $ac_var=\$ac_old_val
 2748: 	fi
 2749: 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 2750: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 2751: 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 2752: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 2753:       fi;;
 2754:   esac
 2755:   # Pass precious variables to config.status.
 2756:   if test "$ac_new_set" = set; then
 2757:     case $ac_new_val in
 2758:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 2759:     *) ac_arg=$ac_var=$ac_new_val ;;
 2760:     esac
 2761:     case " $ac_configure_args " in
 2762:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 2763:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 2764:     esac
 2765:   fi
 2766: done
 2767: if $ac_cache_corrupted; then
 2768:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2769: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2770:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 2771: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 2772:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 2773: fi
 2774: ## -------------------- ##
 2775: ## Main body of script. ##
 2776: ## -------------------- ##
 2777: 
 2778: ac_ext=c
 2779: ac_cpp='$CPP $CPPFLAGS'
 2780: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2781: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2782: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2783: 
 2784: 
 2785: ac_config_headers="$ac_config_headers config.h pathnames.h"
 2786: 
 2787: { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
 2788: $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
 2789: 
 2790: 
 2791: 
 2792: 
 2793: 
 2794: 
 2795: 
 2796: 
 2797: 
 2798: 
 2799: 
 2800: 
 2801: 
 2802: 
 2803: 
 2804: 
 2805: 
 2806: 
 2807: 
 2808: 
 2809: 
 2810: 
 2811: 
 2812: 
 2813: 
 2814: 
 2815: 
 2816: 
 2817: 
 2818: 
 2819: 
 2820: 
 2821: 
 2822: 
 2823: 
 2824: 
 2825: 
 2826: 
 2827: 
 2828: 
 2829: 
 2830: 
 2831: 
 2832: 
 2833: 
 2834: 
 2835: 
 2836: 
 2837: 
 2838: 
 2839: 
 2840: 
 2841: 
 2842: 
 2843: 
 2844: 
 2845: 
 2846: 
 2847: 
 2848: 
 2849: 
 2850: 
 2851: 
 2852: 
 2853: 
 2854: 
 2855: 
 2856: 
 2857: 
 2858: 
 2859: 
 2860: 
 2861: 
 2862: 
 2863: 
 2864: 
 2865: 
 2866: 
 2867: 
 2868: 
 2869: 
 2870: 
 2871: 
 2872: 
 2873: 
 2874: 
 2875: 
 2876: 
 2877: #
 2878: # Begin initial values for man page substitution
 2879: #
 2880: iolog_dir=/var/log/sudo-io
 2881: timedir=/var/adm/sudo
 2882: timeout=5
 2883: password_timeout=5
 2884: sudo_umask=0022
 2885: umask_override=off
 2886: passprompt="Password:"
 2887: long_otp_prompt=off
 2888: lecture=once
 2889: logfac=auth
 2890: goodpri=notice
 2891: badpri=alert
 2892: loglen=80
 2893: ignore_dot=off
 2894: mail_no_user=on
 2895: mail_no_host=off
 2896: mail_no_perms=off
 2897: mailto=root
 2898: mailsub="*** SECURITY information for %h ***"
 2899: badpass_message="Sorry, try again."
 2900: fqdn=off
 2901: runas_default=root
 2902: env_editor=off
 2903: env_reset=on
 2904: editor=vi
 2905: passwd_tries=3
 2906: tty_tickets=on
 2907: insults=off
 2908: root_sudo=on
 2909: path_info=on
 2910: ldap_conf=/etc/ldap.conf
 2911: ldap_secret=/etc/ldap.secret
 2912: netsvc_conf=/etc/netsvc.conf
 2913: noexec_file=/usr/local/libexec/sudo_noexec.so
 2914: nsswitch_conf=/etc/nsswitch.conf
 2915: secure_path="not set"
 2916: #
 2917: # End initial values for man page substitution
 2918: #
 2919: INSTALL_NOEXEC=
 2920: devdir='$(srcdir)'
 2921: PROGS="sudo"
 2922: : ${MANTYPE='man'}
 2923: : ${mansrcdir='.'}
 2924: : ${SUDOERS_MODE='0440'}
 2925: : ${SUDOERS_UID='0'}
 2926: : ${SUDOERS_GID='0'}
 2927: DEVEL=
 2928: LDAP="#"
 2929: BAMAN=0
 2930: LCMAN=0
 2931: SEMAN=0
 2932: LIBINTL=
 2933: ZLIB=
 2934: ZLIB_SRC=
 2935: AUTH_OBJS=
 2936: AUTH_REG=
 2937: AUTH_EXCL=
 2938: AUTH_EXCL_DEF=
 2939: AUTH_DEF=passwd
 2940: SUDO_NLS=disabled
 2941: 
 2942: CHECKSHADOW=true
 2943: shadow_defs=
 2944: shadow_funcs=
 2945: shadow_libs=
 2946: shadow_libs_optional=
 2947: CONFIGURE_ARGS="$@"
 2948: 
 2949: RTLD_PRELOAD_VAR="LD_PRELOAD"
 2950: RTLD_PRELOAD_ENABLE_VAR=
 2951: RTLD_PRELOAD_DELIM=":"
 2952: RTLD_PRELOAD_DEFAULT=
 2953: 
 2954: 
 2955: 
 2956: 
 2957: 
 2958: # Check whether --with-otp-only was given.
 2959: if test "${with_otp_only+set}" = set; then :
 2960:   withval=$with_otp_only; case $with_otp_only in
 2961:     yes)	with_passwd="no"
 2962: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
 2963: $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
 2964: 		;;
 2965: esac
 2966: fi
 2967: 
 2968: 
 2969: 
 2970: # Check whether --with-alertmail was given.
 2971: if test "${with_alertmail+set}" = set; then :
 2972:   withval=$with_alertmail; case $with_alertmail in
 2973:     *)		with_mailto="$with_alertmail"
 2974: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
 2975: $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
 2976: 		;;
 2977: esac
 2978: fi
 2979: 
 2980: 
 2981: 
 2982: 
 2983: # Check whether --with-devel was given.
 2984: if test "${with_devel+set}" = set; then :
 2985:   withval=$with_devel; case $with_devel in
 2986:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
 2987: $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
 2988: 		OSDEFS="${OSDEFS} -DSUDO_DEVEL"
 2989: 		DEVEL="true"
 2990: 		devdir=.
 2991: 		;;
 2992:     no)		;;
 2993:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
 2994: $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
 2995: 		;;
 2996: esac
 2997: fi
 2998: 
 2999: 
 3000: 
 3001: # Check whether --with-CC was given.
 3002: if test "${with_CC+set}" = set; then :
 3003:   withval=$with_CC; case $with_CC in
 3004:     *)		as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5
 3005: 		;;
 3006: esac
 3007: fi
 3008: 
 3009: 
 3010: 
 3011: # Check whether --with-rpath was given.
 3012: if test "${with_rpath+set}" = set; then :
 3013:   withval=$with_rpath; case $with_rpath in
 3014:     yes|no)	;;
 3015:     *)		as_fn_error $? "\"--with-rpath does not take an argument.\"" "$LINENO" 5
 3016: 		;;
 3017: esac
 3018: fi
 3019: 
 3020: 
 3021: 
 3022: # Check whether --with-blibpath was given.
 3023: if test "${with_blibpath+set}" = set; then :
 3024:   withval=$with_blibpath; case $with_blibpath in
 3025:     yes|no)	;;
 3026:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
 3027: $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
 3028: 		;;
 3029: esac
 3030: fi
 3031: 
 3032: 
 3033: 
 3034: # Check whether --with-bsm-audit was given.
 3035: if test "${with_bsm_audit+set}" = set; then :
 3036:   withval=$with_bsm_audit; case $with_bsm_audit in
 3037:     yes)	$as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
 3038: 
 3039: 		SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
 3040: 		SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
 3041: 		;;
 3042:     no)		;;
 3043:     *)		as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
 3044: 		;;
 3045: esac
 3046: fi
 3047: 
 3048: 
 3049: ac_ext=c
 3050: ac_cpp='$CPP $CPPFLAGS'
 3051: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3052: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3053: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3054: if test -n "$ac_tool_prefix"; then
 3055:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 3056: set dummy ${ac_tool_prefix}gcc; ac_word=$2
 3057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3058: $as_echo_n "checking for $ac_word... " >&6; }
 3059: if ${ac_cv_prog_CC+:} false; then :
 3060:   $as_echo_n "(cached) " >&6
 3061: else
 3062:   if test -n "$CC"; then
 3063:   ac_cv_prog_CC="$CC" # Let the user override the test.
 3064: else
 3065: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3066: for as_dir in $PATH
 3067: do
 3068:   IFS=$as_save_IFS
 3069:   test -z "$as_dir" && as_dir=.
 3070:     for ac_exec_ext in '' $ac_executable_extensions; do
 3071:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 3072:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 3073:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3074:     break 2
 3075:   fi
 3076: done
 3077:   done
 3078: IFS=$as_save_IFS
 3079: 
 3080: fi
 3081: fi
 3082: CC=$ac_cv_prog_CC
 3083: if test -n "$CC"; then
 3084:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3085: $as_echo "$CC" >&6; }
 3086: else
 3087:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3088: $as_echo "no" >&6; }
 3089: fi
 3090: 
 3091: 
 3092: fi
 3093: if test -z "$ac_cv_prog_CC"; then
 3094:   ac_ct_CC=$CC
 3095:   # Extract the first word of "gcc", so it can be a program name with args.
 3096: set dummy gcc; ac_word=$2
 3097: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3098: $as_echo_n "checking for $ac_word... " >&6; }
 3099: if ${ac_cv_prog_ac_ct_CC+:} false; then :
 3100:   $as_echo_n "(cached) " >&6
 3101: else
 3102:   if test -n "$ac_ct_CC"; then
 3103:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3104: else
 3105: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3106: for as_dir in $PATH
 3107: do
 3108:   IFS=$as_save_IFS
 3109:   test -z "$as_dir" && as_dir=.
 3110:     for ac_exec_ext in '' $ac_executable_extensions; do
 3111:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 3112:     ac_cv_prog_ac_ct_CC="gcc"
 3113:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3114:     break 2
 3115:   fi
 3116: done
 3117:   done
 3118: IFS=$as_save_IFS
 3119: 
 3120: fi
 3121: fi
 3122: ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3123: if test -n "$ac_ct_CC"; then
 3124:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3125: $as_echo "$ac_ct_CC" >&6; }
 3126: else
 3127:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3128: $as_echo "no" >&6; }
 3129: fi
 3130: 
 3131:   if test "x$ac_ct_CC" = x; then
 3132:     CC=""
 3133:   else
 3134:     case $cross_compiling:$ac_tool_warned in
 3135: yes:)
 3136: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3137: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3138: ac_tool_warned=yes ;;
 3139: esac
 3140:     CC=$ac_ct_CC
 3141:   fi
 3142: else
 3143:   CC="$ac_cv_prog_CC"
 3144: fi
 3145: 
 3146: if test -z "$CC"; then
 3147:           if test -n "$ac_tool_prefix"; then
 3148:     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 3149: set dummy ${ac_tool_prefix}cc; ac_word=$2
 3150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3151: $as_echo_n "checking for $ac_word... " >&6; }
 3152: if ${ac_cv_prog_CC+:} false; then :
 3153:   $as_echo_n "(cached) " >&6
 3154: else
 3155:   if test -n "$CC"; then
 3156:   ac_cv_prog_CC="$CC" # Let the user override the test.
 3157: else
 3158: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3159: for as_dir in $PATH
 3160: do
 3161:   IFS=$as_save_IFS
 3162:   test -z "$as_dir" && as_dir=.
 3163:     for ac_exec_ext in '' $ac_executable_extensions; do
 3164:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 3165:     ac_cv_prog_CC="${ac_tool_prefix}cc"
 3166:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3167:     break 2
 3168:   fi
 3169: done
 3170:   done
 3171: IFS=$as_save_IFS
 3172: 
 3173: fi
 3174: fi
 3175: CC=$ac_cv_prog_CC
 3176: if test -n "$CC"; then
 3177:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3178: $as_echo "$CC" >&6; }
 3179: else
 3180:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3181: $as_echo "no" >&6; }
 3182: fi
 3183: 
 3184: 
 3185:   fi
 3186: fi
 3187: if test -z "$CC"; then
 3188:   # Extract the first word of "cc", so it can be a program name with args.
 3189: set dummy cc; ac_word=$2
 3190: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3191: $as_echo_n "checking for $ac_word... " >&6; }
 3192: if ${ac_cv_prog_CC+:} false; then :
 3193:   $as_echo_n "(cached) " >&6
 3194: else
 3195:   if test -n "$CC"; then
 3196:   ac_cv_prog_CC="$CC" # Let the user override the test.
 3197: else
 3198:   ac_prog_rejected=no
 3199: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3200: for as_dir in $PATH
 3201: do
 3202:   IFS=$as_save_IFS
 3203:   test -z "$as_dir" && as_dir=.
 3204:     for ac_exec_ext in '' $ac_executable_extensions; do
 3205:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 3206:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 3207:        ac_prog_rejected=yes
 3208:        continue
 3209:      fi
 3210:     ac_cv_prog_CC="cc"
 3211:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3212:     break 2
 3213:   fi
 3214: done
 3215:   done
 3216: IFS=$as_save_IFS
 3217: 
 3218: if test $ac_prog_rejected = yes; then
 3219:   # We found a bogon in the path, so make sure we never use it.
 3220:   set dummy $ac_cv_prog_CC
 3221:   shift
 3222:   if test $# != 0; then
 3223:     # We chose a different compiler from the bogus one.
 3224:     # However, it has the same basename, so the bogon will be chosen
 3225:     # first if we set CC to just the basename; use the full file name.
 3226:     shift
 3227:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 3228:   fi
 3229: fi
 3230: fi
 3231: fi
 3232: CC=$ac_cv_prog_CC
 3233: if test -n "$CC"; then
 3234:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3235: $as_echo "$CC" >&6; }
 3236: else
 3237:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3238: $as_echo "no" >&6; }
 3239: fi
 3240: 
 3241: 
 3242: fi
 3243: if test -z "$CC"; then
 3244:   if test -n "$ac_tool_prefix"; then
 3245:   for ac_prog in cl.exe
 3246:   do
 3247:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 3248: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 3249: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3250: $as_echo_n "checking for $ac_word... " >&6; }
 3251: if ${ac_cv_prog_CC+:} false; then :
 3252:   $as_echo_n "(cached) " >&6
 3253: else
 3254:   if test -n "$CC"; then
 3255:   ac_cv_prog_CC="$CC" # Let the user override the test.
 3256: else
 3257: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3258: for as_dir in $PATH
 3259: do
 3260:   IFS=$as_save_IFS
 3261:   test -z "$as_dir" && as_dir=.
 3262:     for ac_exec_ext in '' $ac_executable_extensions; do
 3263:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 3264:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 3265:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3266:     break 2
 3267:   fi
 3268: done
 3269:   done
 3270: IFS=$as_save_IFS
 3271: 
 3272: fi
 3273: fi
 3274: CC=$ac_cv_prog_CC
 3275: if test -n "$CC"; then
 3276:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3277: $as_echo "$CC" >&6; }
 3278: else
 3279:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3280: $as_echo "no" >&6; }
 3281: fi
 3282: 
 3283: 
 3284:     test -n "$CC" && break
 3285:   done
 3286: fi
 3287: if test -z "$CC"; then
 3288:   ac_ct_CC=$CC
 3289:   for ac_prog in cl.exe
 3290: do
 3291:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 3292: set dummy $ac_prog; ac_word=$2
 3293: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3294: $as_echo_n "checking for $ac_word... " >&6; }
 3295: if ${ac_cv_prog_ac_ct_CC+:} false; then :
 3296:   $as_echo_n "(cached) " >&6
 3297: else
 3298:   if test -n "$ac_ct_CC"; then
 3299:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3300: else
 3301: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3302: for as_dir in $PATH
 3303: do
 3304:   IFS=$as_save_IFS
 3305:   test -z "$as_dir" && as_dir=.
 3306:     for ac_exec_ext in '' $ac_executable_extensions; do
 3307:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 3308:     ac_cv_prog_ac_ct_CC="$ac_prog"
 3309:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3310:     break 2
 3311:   fi
 3312: done
 3313:   done
 3314: IFS=$as_save_IFS
 3315: 
 3316: fi
 3317: fi
 3318: ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3319: if test -n "$ac_ct_CC"; then
 3320:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3321: $as_echo "$ac_ct_CC" >&6; }
 3322: else
 3323:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3324: $as_echo "no" >&6; }
 3325: fi
 3326: 
 3327: 
 3328:   test -n "$ac_ct_CC" && break
 3329: done
 3330: 
 3331:   if test "x$ac_ct_CC" = x; then
 3332:     CC=""
 3333:   else
 3334:     case $cross_compiling:$ac_tool_warned in
 3335: yes:)
 3336: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3337: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3338: ac_tool_warned=yes ;;
 3339: esac
 3340:     CC=$ac_ct_CC
 3341:   fi
 3342: fi
 3343: 
 3344: fi
 3345: 
 3346: 
 3347: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3348: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3349: as_fn_error $? "no acceptable C compiler found in \$PATH
 3350: See \`config.log' for more details" "$LINENO" 5; }
 3351: 
 3352: # Provide some information about the compiler.
 3353: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 3354: set X $ac_compile
 3355: ac_compiler=$2
 3356: for ac_option in --version -v -V -qversion; do
 3357:   { { ac_try="$ac_compiler $ac_option >&5"
 3358: case "(($ac_try" in
 3359:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3360:   *) ac_try_echo=$ac_try;;
 3361: esac
 3362: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3363: $as_echo "$ac_try_echo"; } >&5
 3364:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 3365:   ac_status=$?
 3366:   if test -s conftest.err; then
 3367:     sed '10a\
 3368: ... rest of stderr output deleted ...
 3369:          10q' conftest.err >conftest.er1
 3370:     cat conftest.er1 >&5
 3371:   fi
 3372:   rm -f conftest.er1 conftest.err
 3373:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3374:   test $ac_status = 0; }
 3375: done
 3376: 
 3377: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3378: /* end confdefs.h.  */
 3379: 
 3380: int
 3381: main ()
 3382: {
 3383: 
 3384:   ;
 3385:   return 0;
 3386: }
 3387: _ACEOF
 3388: ac_clean_files_save=$ac_clean_files
 3389: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 3390: # Try to create an executable without -o first, disregard a.out.
 3391: # It will help us diagnose broken compilers, and finding out an intuition
 3392: # of exeext.
 3393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 3394: $as_echo_n "checking whether the C compiler works... " >&6; }
 3395: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 3396: 
 3397: # The possible output files:
 3398: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 3399: 
 3400: ac_rmfiles=
 3401: for ac_file in $ac_files
 3402: do
 3403:   case $ac_file in
 3404:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 3405:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 3406:   esac
 3407: done
 3408: rm -f $ac_rmfiles
 3409: 
 3410: if { { ac_try="$ac_link_default"
 3411: case "(($ac_try" in
 3412:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3413:   *) ac_try_echo=$ac_try;;
 3414: esac
 3415: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3416: $as_echo "$ac_try_echo"; } >&5
 3417:   (eval "$ac_link_default") 2>&5
 3418:   ac_status=$?
 3419:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3420:   test $ac_status = 0; }; then :
 3421:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 3422: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 3423: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 3424: # so that the user can short-circuit this test for compilers unknown to
 3425: # Autoconf.
 3426: for ac_file in $ac_files ''
 3427: do
 3428:   test -f "$ac_file" || continue
 3429:   case $ac_file in
 3430:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 3431: 	;;
 3432:     [ab].out )
 3433: 	# We found the default executable, but exeext='' is most
 3434: 	# certainly right.
 3435: 	break;;
 3436:     *.* )
 3437: 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 3438: 	then :; else
 3439: 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 3440: 	fi
 3441: 	# We set ac_cv_exeext here because the later test for it is not
 3442: 	# safe: cross compilers may not add the suffix if given an `-o'
 3443: 	# argument, so we may need to know it at that point already.
 3444: 	# Even if this section looks crufty: it has the advantage of
 3445: 	# actually working.
 3446: 	break;;
 3447:     * )
 3448: 	break;;
 3449:   esac
 3450: done
 3451: test "$ac_cv_exeext" = no && ac_cv_exeext=
 3452: 
 3453: else
 3454:   ac_file=''
 3455: fi
 3456: if test -z "$ac_file"; then :
 3457:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3458: $as_echo "no" >&6; }
 3459: $as_echo "$as_me: failed program was:" >&5
 3460: sed 's/^/| /' conftest.$ac_ext >&5
 3461: 
 3462: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3463: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3464: as_fn_error 77 "C compiler cannot create executables
 3465: See \`config.log' for more details" "$LINENO" 5; }
 3466: else
 3467:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3468: $as_echo "yes" >&6; }
 3469: fi
 3470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 3471: $as_echo_n "checking for C compiler default output file name... " >&6; }
 3472: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 3473: $as_echo "$ac_file" >&6; }
 3474: ac_exeext=$ac_cv_exeext
 3475: 
 3476: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 3477: ac_clean_files=$ac_clean_files_save
 3478: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 3479: $as_echo_n "checking for suffix of executables... " >&6; }
 3480: if { { ac_try="$ac_link"
 3481: case "(($ac_try" in
 3482:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3483:   *) ac_try_echo=$ac_try;;
 3484: esac
 3485: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3486: $as_echo "$ac_try_echo"; } >&5
 3487:   (eval "$ac_link") 2>&5
 3488:   ac_status=$?
 3489:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3490:   test $ac_status = 0; }; then :
 3491:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 3492: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 3493: # work properly (i.e., refer to `conftest.exe'), while it won't with
 3494: # `rm'.
 3495: for ac_file in conftest.exe conftest conftest.*; do
 3496:   test -f "$ac_file" || continue
 3497:   case $ac_file in
 3498:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 3499:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 3500: 	  break;;
 3501:     * ) break;;
 3502:   esac
 3503: done
 3504: else
 3505:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3506: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3507: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 3508: See \`config.log' for more details" "$LINENO" 5; }
 3509: fi
 3510: rm -f conftest conftest$ac_cv_exeext
 3511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 3512: $as_echo "$ac_cv_exeext" >&6; }
 3513: 
 3514: rm -f conftest.$ac_ext
 3515: EXEEXT=$ac_cv_exeext
 3516: ac_exeext=$EXEEXT
 3517: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3518: /* end confdefs.h.  */
 3519: #include <stdio.h>
 3520: int
 3521: main ()
 3522: {
 3523: FILE *f = fopen ("conftest.out", "w");
 3524:  return ferror (f) || fclose (f) != 0;
 3525: 
 3526:   ;
 3527:   return 0;
 3528: }
 3529: _ACEOF
 3530: ac_clean_files="$ac_clean_files conftest.out"
 3531: # Check that the compiler produces executables we can run.  If not, either
 3532: # the compiler is broken, or we cross compile.
 3533: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 3534: $as_echo_n "checking whether we are cross compiling... " >&6; }
 3535: if test "$cross_compiling" != yes; then
 3536:   { { ac_try="$ac_link"
 3537: case "(($ac_try" in
 3538:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3539:   *) ac_try_echo=$ac_try;;
 3540: esac
 3541: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3542: $as_echo "$ac_try_echo"; } >&5
 3543:   (eval "$ac_link") 2>&5
 3544:   ac_status=$?
 3545:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3546:   test $ac_status = 0; }
 3547:   if { ac_try='./conftest$ac_cv_exeext'
 3548:   { { case "(($ac_try" in
 3549:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3550:   *) ac_try_echo=$ac_try;;
 3551: esac
 3552: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3553: $as_echo "$ac_try_echo"; } >&5
 3554:   (eval "$ac_try") 2>&5
 3555:   ac_status=$?
 3556:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3557:   test $ac_status = 0; }; }; then
 3558:     cross_compiling=no
 3559:   else
 3560:     if test "$cross_compiling" = maybe; then
 3561: 	cross_compiling=yes
 3562:     else
 3563: 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3564: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3565: as_fn_error $? "cannot run C compiled programs.
 3566: If you meant to cross compile, use \`--host'.
 3567: See \`config.log' for more details" "$LINENO" 5; }
 3568:     fi
 3569:   fi
 3570: fi
 3571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 3572: $as_echo "$cross_compiling" >&6; }
 3573: 
 3574: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 3575: ac_clean_files=$ac_clean_files_save
 3576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 3577: $as_echo_n "checking for suffix of object files... " >&6; }
 3578: if ${ac_cv_objext+:} false; then :
 3579:   $as_echo_n "(cached) " >&6
 3580: else
 3581:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3582: /* end confdefs.h.  */
 3583: 
 3584: int
 3585: main ()
 3586: {
 3587: 
 3588:   ;
 3589:   return 0;
 3590: }
 3591: _ACEOF
 3592: rm -f conftest.o conftest.obj
 3593: if { { ac_try="$ac_compile"
 3594: case "(($ac_try" in
 3595:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3596:   *) ac_try_echo=$ac_try;;
 3597: esac
 3598: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3599: $as_echo "$ac_try_echo"; } >&5
 3600:   (eval "$ac_compile") 2>&5
 3601:   ac_status=$?
 3602:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3603:   test $ac_status = 0; }; then :
 3604:   for ac_file in conftest.o conftest.obj conftest.*; do
 3605:   test -f "$ac_file" || continue;
 3606:   case $ac_file in
 3607:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 3608:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 3609:        break;;
 3610:   esac
 3611: done
 3612: else
 3613:   $as_echo "$as_me: failed program was:" >&5
 3614: sed 's/^/| /' conftest.$ac_ext >&5
 3615: 
 3616: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3617: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3618: as_fn_error $? "cannot compute suffix of object files: cannot compile
 3619: See \`config.log' for more details" "$LINENO" 5; }
 3620: fi
 3621: rm -f conftest.$ac_cv_objext conftest.$ac_ext
 3622: fi
 3623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 3624: $as_echo "$ac_cv_objext" >&6; }
 3625: OBJEXT=$ac_cv_objext
 3626: ac_objext=$OBJEXT
 3627: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 3628: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 3629: if ${ac_cv_c_compiler_gnu+:} false; then :
 3630:   $as_echo_n "(cached) " >&6
 3631: else
 3632:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3633: /* end confdefs.h.  */
 3634: 
 3635: int
 3636: main ()
 3637: {
 3638: #ifndef __GNUC__
 3639:        choke me
 3640: #endif
 3641: 
 3642:   ;
 3643:   return 0;
 3644: }
 3645: _ACEOF
 3646: if ac_fn_c_try_compile "$LINENO"; then :
 3647:   ac_compiler_gnu=yes
 3648: else
 3649:   ac_compiler_gnu=no
 3650: fi
 3651: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3652: ac_cv_c_compiler_gnu=$ac_compiler_gnu
 3653: 
 3654: fi
 3655: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 3656: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 3657: if test $ac_compiler_gnu = yes; then
 3658:   GCC=yes
 3659: else
 3660:   GCC=
 3661: fi
 3662: ac_test_CFLAGS=${CFLAGS+set}
 3663: ac_save_CFLAGS=$CFLAGS
 3664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 3665: $as_echo_n "checking whether $CC accepts -g... " >&6; }
 3666: if ${ac_cv_prog_cc_g+:} false; then :
 3667:   $as_echo_n "(cached) " >&6
 3668: else
 3669:   ac_save_c_werror_flag=$ac_c_werror_flag
 3670:    ac_c_werror_flag=yes
 3671:    ac_cv_prog_cc_g=no
 3672:    CFLAGS="-g"
 3673:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3674: /* end confdefs.h.  */
 3675: 
 3676: int
 3677: main ()
 3678: {
 3679: 
 3680:   ;
 3681:   return 0;
 3682: }
 3683: _ACEOF
 3684: if ac_fn_c_try_compile "$LINENO"; then :
 3685:   ac_cv_prog_cc_g=yes
 3686: else
 3687:   CFLAGS=""
 3688:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3689: /* end confdefs.h.  */
 3690: 
 3691: int
 3692: main ()
 3693: {
 3694: 
 3695:   ;
 3696:   return 0;
 3697: }
 3698: _ACEOF
 3699: if ac_fn_c_try_compile "$LINENO"; then :
 3700: 
 3701: else
 3702:   ac_c_werror_flag=$ac_save_c_werror_flag
 3703: 	 CFLAGS="-g"
 3704: 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3705: /* end confdefs.h.  */
 3706: 
 3707: int
 3708: main ()
 3709: {
 3710: 
 3711:   ;
 3712:   return 0;
 3713: }
 3714: _ACEOF
 3715: if ac_fn_c_try_compile "$LINENO"; then :
 3716:   ac_cv_prog_cc_g=yes
 3717: fi
 3718: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3719: fi
 3720: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3721: fi
 3722: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3723:    ac_c_werror_flag=$ac_save_c_werror_flag
 3724: fi
 3725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 3726: $as_echo "$ac_cv_prog_cc_g" >&6; }
 3727: if test "$ac_test_CFLAGS" = set; then
 3728:   CFLAGS=$ac_save_CFLAGS
 3729: elif test $ac_cv_prog_cc_g = yes; then
 3730:   if test "$GCC" = yes; then
 3731:     CFLAGS="-g -O2"
 3732:   else
 3733:     CFLAGS="-g"
 3734:   fi
 3735: else
 3736:   if test "$GCC" = yes; then
 3737:     CFLAGS="-O2"
 3738:   else
 3739:     CFLAGS=
 3740:   fi
 3741: fi
 3742: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 3743: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 3744: if ${ac_cv_prog_cc_c89+:} false; then :
 3745:   $as_echo_n "(cached) " >&6
 3746: else
 3747:   ac_cv_prog_cc_c89=no
 3748: ac_save_CC=$CC
 3749: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3750: /* end confdefs.h.  */
 3751: #include <stdarg.h>
 3752: #include <stdio.h>
 3753: #include <sys/types.h>
 3754: #include <sys/stat.h>
 3755: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 3756: struct buf { int x; };
 3757: FILE * (*rcsopen) (struct buf *, struct stat *, int);
 3758: static char *e (p, i)
 3759:      char **p;
 3760:      int i;
 3761: {
 3762:   return p[i];
 3763: }
 3764: static char *f (char * (*g) (char **, int), char **p, ...)
 3765: {
 3766:   char *s;
 3767:   va_list v;
 3768:   va_start (v,p);
 3769:   s = g (p, va_arg (v,int));
 3770:   va_end (v);
 3771:   return s;
 3772: }
 3773: 
 3774: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 3775:    function prototypes and stuff, but not '\xHH' hex character constants.
 3776:    These don't provoke an error unfortunately, instead are silently treated
 3777:    as 'x'.  The following induces an error, until -std is added to get
 3778:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 3779:    array size at least.  It's necessary to write '\x00'==0 to get something
 3780:    that's true only with -std.  */
 3781: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 3782: 
 3783: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 3784:    inside strings and character constants.  */
 3785: #define FOO(x) 'x'
 3786: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 3787: 
 3788: int test (int i, double x);
 3789: struct s1 {int (*f) (int a);};
 3790: struct s2 {int (*f) (double a);};
 3791: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 3792: int argc;
 3793: char **argv;
 3794: int
 3795: main ()
 3796: {
 3797: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 3798:   ;
 3799:   return 0;
 3800: }
 3801: _ACEOF
 3802: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 3803: 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 3804: do
 3805:   CC="$ac_save_CC $ac_arg"
 3806:   if ac_fn_c_try_compile "$LINENO"; then :
 3807:   ac_cv_prog_cc_c89=$ac_arg
 3808: fi
 3809: rm -f core conftest.err conftest.$ac_objext
 3810:   test "x$ac_cv_prog_cc_c89" != "xno" && break
 3811: done
 3812: rm -f conftest.$ac_ext
 3813: CC=$ac_save_CC
 3814: 
 3815: fi
 3816: # AC_CACHE_VAL
 3817: case "x$ac_cv_prog_cc_c89" in
 3818:   x)
 3819:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 3820: $as_echo "none needed" >&6; } ;;
 3821:   xno)
 3822:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 3823: $as_echo "unsupported" >&6; } ;;
 3824:   *)
 3825:     CC="$CC $ac_cv_prog_cc_c89"
 3826:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 3827: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 3828: esac
 3829: if test "x$ac_cv_prog_cc_c89" != xno; then :
 3830: 
 3831: fi
 3832: 
 3833: ac_ext=c
 3834: ac_cpp='$CPP $CPPFLAGS'
 3835: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3836: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3837: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3838: 
 3839: 
 3840: 
 3841: # Check whether --with-linux-audit was given.
 3842: if test "${with_linux_audit+set}" = set; then :
 3843:   withval=$with_linux_audit; case $with_linux_audit in
 3844:     yes)	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3845: /* end confdefs.h.  */
 3846: #include <libaudit.h>
 3847: int
 3848: main ()
 3849: {
 3850: int i = AUDIT_USER_CMD; (void)i;
 3851:   ;
 3852:   return 0;
 3853: }
 3854: _ACEOF
 3855: if ac_fn_c_try_compile "$LINENO"; then :
 3856: 
 3857: 		    $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
 3858: 
 3859: 		    SUDO_LIBS="${SUDO_LIBS} -laudit"
 3860: 		    SUDOERS_LIBS="${SUDO_LIBS} -laudit"
 3861: 		    SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
 3862: 
 3863: else
 3864: 
 3865: 		    as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
 3866: 
 3867: fi
 3868: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3869: 		;;
 3870:     no)		;;
 3871:     *)		as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
 3872: 		;;
 3873: esac
 3874: fi
 3875: 
 3876: 
 3877: 
 3878: # Check whether --with-incpath was given.
 3879: if test "${with_incpath+set}" = set; then :
 3880:   withval=$with_incpath; case $with_incpath in
 3881:     yes)	as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
 3882: 		;;
 3883:     no)		as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
 3884: 		;;
 3885:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
 3886: $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
 3887: 		for i in ${with_incpath}; do
 3888: 		    CPPFLAGS="${CPPFLAGS} -I${i}"
 3889: 		done
 3890: 		;;
 3891: esac
 3892: fi
 3893: 
 3894: 
 3895: 
 3896: # Check whether --with-libpath was given.
 3897: if test "${with_libpath+set}" = set; then :
 3898:   withval=$with_libpath; case $with_libpath in
 3899:     yes)	as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
 3900: 		;;
 3901:     no)		as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
 3902: 		;;
 3903:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
 3904: $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
 3905: 		;;
 3906: esac
 3907: fi
 3908: 
 3909: 
 3910: 
 3911: # Check whether --with-libraries was given.
 3912: if test "${with_libraries+set}" = set; then :
 3913:   withval=$with_libraries; case $with_libraries in
 3914:     yes)	as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
 3915: 		;;
 3916:     no)		as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
 3917: 		;;
 3918:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
 3919: $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
 3920: 		;;
 3921: esac
 3922: fi
 3923: 
 3924: 
 3925: 
 3926: # Check whether --with-efence was given.
 3927: if test "${with_efence+set}" = set; then :
 3928:   withval=$with_efence; case $with_efence in
 3929:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
 3930: $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
 3931: 		LIBS="${LIBS} -lefence"
 3932: 		if test -f /usr/local/lib/libefence.a; then
 3933: 		    with_libpath="${with_libpath} /usr/local/lib"
 3934: 		fi
 3935: 		;;
 3936:     no)		;;
 3937:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
 3938: $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
 3939: 		;;
 3940: esac
 3941: fi
 3942: 
 3943: 
 3944: 
 3945: # Check whether --with-csops was given.
 3946: if test "${with_csops+set}" = set; then :
 3947:   withval=$with_csops; case $with_csops in
 3948:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
 3949: $as_echo "$as_me: Adding CSOps standard options" >&6;}
 3950: 		CHECKSIA=false
 3951: 		with_ignore_dot=yes
 3952: 		insults=on
 3953: 		with_classic_insults=yes
 3954: 		with_csops_insults=yes
 3955: 		with_env_editor=yes
 3956: 		: ${mansectsu='8'}
 3957: 		: ${mansectform='5'}
 3958: 		;;
 3959:     no)		;;
 3960:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
 3961: $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
 3962: 		;;
 3963: esac
 3964: fi
 3965: 
 3966: 
 3967: 
 3968: # Check whether --with-passwd was given.
 3969: if test "${with_passwd+set}" = set; then :
 3970:   withval=$with_passwd; case $with_passwd in
 3971:     yes|no)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
 3972: $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
 3973: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
 3974: $as_echo "$with_passwd" >&6; }
 3975: 		AUTH_DEF=""
 3976: 		test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
 3977: 		;;
 3978:     *)		as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
 3979: 		;;
 3980: esac
 3981: fi
 3982: 
 3983: 
 3984: 
 3985: # Check whether --with-skey was given.
 3986: if test "${with_skey+set}" = set; then :
 3987:   withval=$with_skey; case $with_skey in
 3988:     no)		;;
 3989:     *)		$as_echo "#define HAVE_SKEY 1" >>confdefs.h
 3990: 
 3991: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
 3992: $as_echo_n "checking whether to try S/Key authentication... " >&6; }
 3993: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3994: $as_echo "yes" >&6; }
 3995: 		AUTH_REG="$AUTH_REG S/Key"
 3996: 		;;
 3997: esac
 3998: fi
 3999: 
 4000: 
 4001: 
 4002: # Check whether --with-opie was given.
 4003: if test "${with_opie+set}" = set; then :
 4004:   withval=$with_opie; case $with_opie in
 4005:     no)		;;
 4006:     *)		$as_echo "#define HAVE_OPIE 1" >>confdefs.h
 4007: 
 4008: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
 4009: $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
 4010: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4011: $as_echo "yes" >&6; }
 4012: 		AUTH_REG="$AUTH_REG NRL_OPIE"
 4013: 		;;
 4014: esac
 4015: fi
 4016: 
 4017: 
 4018: 
 4019: # Check whether --with-long-otp-prompt was given.
 4020: if test "${with_long_otp_prompt+set}" = set; then :
 4021:   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
 4022:     yes)	$as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
 4023: 
 4024: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
 4025: $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
 4026: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4027: $as_echo "yes" >&6; }
 4028: 		long_otp_prompt=on
 4029: 		;;
 4030:     no)		long_otp_prompt=off
 4031: 		;;
 4032:     *)		as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
 4033: 		;;
 4034: esac
 4035: fi
 4036: 
 4037: 
 4038: 
 4039: # Check whether --with-SecurID was given.
 4040: if test "${with_SecurID+set}" = set; then :
 4041:   withval=$with_SecurID; case $with_SecurID in
 4042:     no)		;;
 4043:     *)		$as_echo "#define HAVE_SECURID 1" >>confdefs.h
 4044: 
 4045: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
 4046: $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
 4047: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4048: $as_echo "yes" >&6; }
 4049: 		AUTH_EXCL="$AUTH_EXCL SecurID"
 4050: 		;;
 4051: esac
 4052: fi
 4053: 
 4054: 
 4055: 
 4056: # Check whether --with-fwtk was given.
 4057: if test "${with_fwtk+set}" = set; then :
 4058:   withval=$with_fwtk; case $with_fwtk in
 4059:     no)		;;
 4060:     *)		$as_echo "#define HAVE_FWTK 1" >>confdefs.h
 4061: 
 4062: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
 4063: $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
 4064: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4065: $as_echo "yes" >&6; }
 4066: 		AUTH_EXCL="$AUTH_EXCL FWTK"
 4067: 		;;
 4068: esac
 4069: fi
 4070: 
 4071: 
 4072: 
 4073: # Check whether --with-kerb5 was given.
 4074: if test "${with_kerb5+set}" = set; then :
 4075:   withval=$with_kerb5; case $with_kerb5 in
 4076:     no)		;;
 4077:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
 4078: $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
 4079: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4080: $as_echo "yes" >&6; }
 4081: 		AUTH_REG="$AUTH_REG kerb5"
 4082: 		;;
 4083: esac
 4084: fi
 4085: 
 4086: 
 4087: 
 4088: # Check whether --with-aixauth was given.
 4089: if test "${with_aixauth+set}" = set; then :
 4090:   withval=$with_aixauth; case $with_aixauth in
 4091:     yes)	AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
 4092:     no)		;;
 4093:     *)		as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
 4094: 		;;
 4095: esac
 4096: fi
 4097: 
 4098: 
 4099: 
 4100: # Check whether --with-pam was given.
 4101: if test "${with_pam+set}" = set; then :
 4102:   withval=$with_pam; case $with_pam in
 4103:     yes)	AUTH_EXCL="$AUTH_EXCL PAM";;
 4104:     no)		;;
 4105:     *)		as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
 4106: 		;;
 4107: esac
 4108: fi
 4109: 
 4110: 
 4111: 
 4112: # Check whether --with-AFS was given.
 4113: if test "${with_AFS+set}" = set; then :
 4114:   withval=$with_AFS; case $with_AFS in
 4115:     yes)	$as_echo "#define HAVE_AFS 1" >>confdefs.h
 4116: 
 4117: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
 4118: $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
 4119: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4120: $as_echo "yes" >&6; }
 4121: 		AUTH_REG="$AUTH_REG AFS"
 4122: 		;;
 4123:     no)		;;
 4124:     *)		as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
 4125: 		;;
 4126: esac
 4127: fi
 4128: 
 4129: 
 4130: 
 4131: # Check whether --with-DCE was given.
 4132: if test "${with_DCE+set}" = set; then :
 4133:   withval=$with_DCE; case $with_DCE in
 4134:     yes)	$as_echo "#define HAVE_DCE 1" >>confdefs.h
 4135: 
 4136: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
 4137: $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
 4138: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4139: $as_echo "yes" >&6; }
 4140: 		AUTH_REG="$AUTH_REG DCE"
 4141: 		;;
 4142:     no)		;;
 4143:     *)		as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
 4144: 		;;
 4145: esac
 4146: fi
 4147: 
 4148: 
 4149: 
 4150: # Check whether --with-logincap was given.
 4151: if test "${with_logincap+set}" = set; then :
 4152:   withval=$with_logincap; case $with_logincap in
 4153:     yes|no)	;;
 4154:     *)		as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
 4155: 		;;
 4156: esac
 4157: fi
 4158: 
 4159: 
 4160: 
 4161: # Check whether --with-bsdauth was given.
 4162: if test "${with_bsdauth+set}" = set; then :
 4163:   withval=$with_bsdauth; case $with_bsdauth in
 4164:     yes)	AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
 4165:     no)		;;
 4166:     *)		as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
 4167: 		;;
 4168: esac
 4169: fi
 4170: 
 4171: 
 4172: 
 4173: # Check whether --with-project was given.
 4174: if test "${with_project+set}" = set; then :
 4175:   withval=$with_project; case $with_project in
 4176:     yes|no)	;;
 4177:     no)	;;
 4178:     *)		as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
 4179: 		;;
 4180: esac
 4181: fi
 4182: 
 4183: 
 4184: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
 4185: $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
 4186: 
 4187: # Check whether --with-lecture was given.
 4188: if test "${with_lecture+set}" = set; then :
 4189:   withval=$with_lecture; case $with_lecture in
 4190:     yes|short|always)	lecture=once
 4191: 		;;
 4192:     no|none|never)	lecture=never
 4193: 		;;
 4194:     *)		as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
 4195: 		;;
 4196: esac
 4197: fi
 4198: 
 4199: if test "$lecture" = "once"; then
 4200:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4201: $as_echo "yes" >&6; }
 4202: else
 4203:     $as_echo "#define NO_LECTURE 1" >>confdefs.h
 4204: 
 4205:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4206: $as_echo "no" >&6; }
 4207: fi
 4208: 
 4209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
 4210: $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
 4211: 
 4212: # Check whether --with-logging was given.
 4213: if test "${with_logging+set}" = set; then :
 4214:   withval=$with_logging; case $with_logging in
 4215:     yes)	as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
 4216: 		;;
 4217:     no)		as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
 4218: 		;;
 4219:     syslog)	$as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
 4220: 
 4221: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
 4222: $as_echo "syslog" >&6; }
 4223: 		;;
 4224:     file)	$as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
 4225: 
 4226: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
 4227: $as_echo "file" >&6; }
 4228: 		;;
 4229:     both)	$as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
 4230: 
 4231: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
 4232: $as_echo "both" >&6; }
 4233: 		;;
 4234:     *)		as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
 4235: 		;;
 4236: esac
 4237: else
 4238:   $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
 4239:  { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
 4240: $as_echo "syslog" >&6; }
 4241: fi
 4242: 
 4243: 
 4244: 
 4245: # Check whether --with-logfac was given.
 4246: if test "${with_logfac+set}" = set; then :
 4247:   withval=$with_logfac; case $with_logfac in
 4248:     yes)	as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
 4249: 		;;
 4250:     no)		as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
 4251: 		;;
 4252:     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)		logfac=$with_logfac
 4253: 		;;
 4254:     *)		as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
 4255: 		;;
 4256: esac
 4257: fi
 4258: 
 4259: 
 4260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
 4261: $as_echo_n "checking at which syslog priority to log commands... " >&6; }
 4262: 
 4263: # Check whether --with-goodpri was given.
 4264: if test "${with_goodpri+set}" = set; then :
 4265:   withval=$with_goodpri; case $with_goodpri in
 4266:     yes)	as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
 4267: 		;;
 4268:     no)		as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
 4269: 		;;
 4270:     alert|crit|debug|emerg|err|info|notice|warning)
 4271: 		goodpri=$with_goodpri
 4272: 		;;
 4273:     *)		as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
 4274: 		;;
 4275: esac
 4276: fi
 4277: 
 4278: 
 4279: cat >>confdefs.h <<_ACEOF
 4280: #define PRI_SUCCESS "$goodpri"
 4281: _ACEOF
 4282: 
 4283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
 4284: $as_echo "$goodpri" >&6; }
 4285: 
 4286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
 4287: $as_echo_n "checking at which syslog priority to log failures... " >&6; }
 4288: 
 4289: # Check whether --with-badpri was given.
 4290: if test "${with_badpri+set}" = set; then :
 4291:   withval=$with_badpri; case $with_badpri in
 4292:     yes)	as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
 4293: 		;;
 4294:     no)		as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
 4295: 		;;
 4296:     alert|crit|debug|emerg|err|info|notice|warning)
 4297: 		badpri=$with_badpri
 4298: 		;;
 4299:     *)		as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
 4300: 		;;
 4301: esac
 4302: fi
 4303: 
 4304: 
 4305: cat >>confdefs.h <<_ACEOF
 4306: #define PRI_FAILURE "$badpri"
 4307: _ACEOF
 4308: 
 4309: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
 4310: $as_echo "$badpri" >&6; }
 4311: 
 4312: 
 4313: # Check whether --with-logpath was given.
 4314: if test "${with_logpath+set}" = set; then :
 4315:   withval=$with_logpath; case $with_logpath in
 4316:     yes)	as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
 4317: 		;;
 4318:     no)		as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
 4319: 		;;
 4320: esac
 4321: fi
 4322: 
 4323: 
 4324: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
 4325: $as_echo_n "checking how long a line in the log file should be... " >&6; }
 4326: 
 4327: # Check whether --with-loglen was given.
 4328: if test "${with_loglen+set}" = set; then :
 4329:   withval=$with_loglen; case $with_loglen in
 4330:     yes)	as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
 4331: 		;;
 4332:     no)		as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
 4333: 		;;
 4334:     [0-9]*)	loglen=$with_loglen
 4335: 		;;
 4336:     *)		as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
 4337: 		;;
 4338: esac
 4339: fi
 4340: 
 4341: 
 4342: cat >>confdefs.h <<_ACEOF
 4343: #define MAXLOGFILELEN $loglen
 4344: _ACEOF
 4345: 
 4346: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
 4347: $as_echo "$loglen" >&6; }
 4348: 
 4349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
 4350: $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
 4351: 
 4352: # Check whether --with-ignore-dot was given.
 4353: if test "${with_ignore_dot+set}" = set; then :
 4354:   withval=$with_ignore_dot; case $with_ignore_dot in
 4355:     yes)	ignore_dot=on
 4356: 		;;
 4357:     no)		ignore_dot=off
 4358: 		;;
 4359:     *)		as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
 4360: 		;;
 4361: esac
 4362: fi
 4363: 
 4364: if test "$ignore_dot" = "on"; then
 4365:     $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
 4366: 
 4367:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4368: $as_echo "yes" >&6; }
 4369: else
 4370:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4371: $as_echo "no" >&6; }
 4372: fi
 4373: 
 4374: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
 4375: $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
 4376: 
 4377: # Check whether --with-mail-if-no-user was given.
 4378: if test "${with_mail_if_no_user+set}" = set; then :
 4379:   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
 4380:     yes)	mail_no_user=on
 4381: 		;;
 4382:     no)		mail_no_user=off
 4383: 		;;
 4384:     *)		as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
 4385: 		;;
 4386: esac
 4387: fi
 4388: 
 4389: if test "$mail_no_user" = "on"; then
 4390:     $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
 4391: 
 4392:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4393: $as_echo "yes" >&6; }
 4394: else
 4395:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4396: $as_echo "no" >&6; }
 4397: fi
 4398: 
 4399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
 4400: $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
 4401: 
 4402: # Check whether --with-mail-if-no-host was given.
 4403: if test "${with_mail_if_no_host+set}" = set; then :
 4404:   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
 4405:     yes)	mail_no_host=on
 4406: 		;;
 4407:     no)		mail_no_host=off
 4408: 		;;
 4409:     *)		as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
 4410: 		;;
 4411: esac
 4412: fi
 4413: 
 4414: if test "$mail_no_host" = "on"; then
 4415:     $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
 4416: 
 4417:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4418: $as_echo "yes" >&6; }
 4419: else
 4420:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4421: $as_echo "no" >&6; }
 4422: fi
 4423: 
 4424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
 4425: $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
 4426: 
 4427: # Check whether --with-mail-if-noperms was given.
 4428: if test "${with_mail_if_noperms+set}" = set; then :
 4429:   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
 4430:     yes)	mail_noperms=on
 4431: 		;;
 4432:     no)		mail_noperms=off
 4433: 		;;
 4434:     *)		as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
 4435: 		;;
 4436: esac
 4437: fi
 4438: 
 4439: if test "$mail_noperms" = "on"; then
 4440:     $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
 4441: 
 4442:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4443: $as_echo "yes" >&6; }
 4444: else
 4445:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4446: $as_echo "no" >&6; }
 4447: fi
 4448: 
 4449: { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
 4450: $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
 4451: 
 4452: # Check whether --with-mailto was given.
 4453: if test "${with_mailto+set}" = set; then :
 4454:   withval=$with_mailto; case $with_mailto in
 4455:     yes)	as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
 4456: 		;;
 4457:     no)		as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
 4458: 		;;
 4459:     *)		mailto=$with_mailto
 4460: 		;;
 4461: esac
 4462: fi
 4463: 
 4464: 
 4465: cat >>confdefs.h <<_ACEOF
 4466: #define MAILTO "$mailto"
 4467: _ACEOF
 4468: 
 4469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
 4470: $as_echo "$mailto" >&6; }
 4471: 
 4472: 
 4473: # Check whether --with-mailsubject was given.
 4474: if test "${with_mailsubject+set}" = set; then :
 4475:   withval=$with_mailsubject; case $with_mailsubject in
 4476:     yes)	as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
 4477: 		;;
 4478:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
 4479: $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
 4480: 		;;
 4481:     *)		mailsub="$with_mailsubject"
 4482: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
 4483: $as_echo_n "checking sudo mail subject... " >&6; }
 4484: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
 4485: $as_echo "Using alert mail subject: $mailsub" >&6; }
 4486: 		;;
 4487: esac
 4488: fi
 4489: 
 4490: 
 4491: cat >>confdefs.h <<_ACEOF
 4492: #define MAILSUBJECT "$mailsub"
 4493: _ACEOF
 4494: 
 4495: 
 4496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
 4497: $as_echo_n "checking for bad password prompt... " >&6; }
 4498: 
 4499: # Check whether --with-passprompt was given.
 4500: if test "${with_passprompt+set}" = set; then :
 4501:   withval=$with_passprompt; case $with_passprompt in
 4502:     yes)	as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
 4503: 		;;
 4504:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
 4505: $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
 4506: 		;;
 4507:     *)		passprompt="$with_passprompt"
 4508: esac
 4509: fi
 4510: 
 4511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
 4512: $as_echo "$passprompt" >&6; }
 4513: 
 4514: cat >>confdefs.h <<_ACEOF
 4515: #define PASSPROMPT "$passprompt"
 4516: _ACEOF
 4517: 
 4518: 
 4519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
 4520: $as_echo_n "checking for bad password message... " >&6; }
 4521: 
 4522: # Check whether --with-badpass-message was given.
 4523: if test "${with_badpass_message+set}" = set; then :
 4524:   withval=$with_badpass_message; case $with_badpass_message in
 4525:     yes)	as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
 4526: 		;;
 4527:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
 4528: $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
 4529: 		;;
 4530:     *)		badpass_message="$with_badpass_message"
 4531: 		;;
 4532: esac
 4533: fi
 4534: 
 4535: 
 4536: cat >>confdefs.h <<_ACEOF
 4537: #define INCORRECT_PASSWORD "$badpass_message"
 4538: _ACEOF
 4539: 
 4540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
 4541: $as_echo "$badpass_message" >&6; }
 4542: 
 4543: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
 4544: $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
 4545: 
 4546: # Check whether --with-fqdn was given.
 4547: if test "${with_fqdn+set}" = set; then :
 4548:   withval=$with_fqdn; case $with_fqdn in
 4549:     yes)	fqdn=on
 4550: 		;;
 4551:     no)		fqdn=off
 4552: 		;;
 4553:     *)		as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
 4554: 		;;
 4555: esac
 4556: fi
 4557: 
 4558: if test "$fqdn" = "on"; then
 4559:     $as_echo "#define FQDN 1" >>confdefs.h
 4560: 
 4561:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4562: $as_echo "yes" >&6; }
 4563: else
 4564:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4565: $as_echo "no" >&6; }
 4566: fi
 4567: 
 4568: 
 4569: # Check whether --with-timedir was given.
 4570: if test "${with_timedir+set}" = set; then :
 4571:   withval=$with_timedir; case $with_timedir in
 4572:     yes)	as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5
 4573: 		;;
 4574:     no)		as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5
 4575: 		;;
 4576: esac
 4577: fi
 4578: 
 4579: 
 4580: 
 4581: # Check whether --with-iologdir was given.
 4582: if test "${with_iologdir+set}" = set; then :
 4583:   withval=$with_iologdir; case $with_iologdir in
 4584:     yes)    ;;
 4585:     no)     as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
 4586: 	    ;;
 4587: esac
 4588: fi
 4589: 
 4590: 
 4591: 
 4592: # Check whether --with-sendmail was given.
 4593: if test "${with_sendmail+set}" = set; then :
 4594:   withval=$with_sendmail; case $with_sendmail in
 4595:     yes)	with_sendmail=""
 4596: 		;;
 4597:     no)		;;
 4598:     *)		cat >>confdefs.h <<EOF
 4599: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
 4600: EOF
 4601: 
 4602: 		;;
 4603: esac
 4604: fi
 4605: 
 4606: 
 4607: 
 4608: # Check whether --with-sudoers-mode was given.
 4609: if test "${with_sudoers_mode+set}" = set; then :
 4610:   withval=$with_sudoers_mode; case $with_sudoers_mode in
 4611:     yes)	as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
 4612: 		;;
 4613:     no)		as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
 4614: 		;;
 4615:     [1-9]*)	SUDOERS_MODE=0${with_sudoers_mode}
 4616: 		;;
 4617:     0*)		SUDOERS_MODE=$with_sudoers_mode
 4618: 		;;
 4619:     *)		as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
 4620: 		;;
 4621: esac
 4622: fi
 4623: 
 4624: 
 4625: 
 4626: # Check whether --with-sudoers-uid was given.
 4627: if test "${with_sudoers_uid+set}" = set; then :
 4628:   withval=$with_sudoers_uid; case $with_sudoers_uid in
 4629:     yes)	as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
 4630: 		;;
 4631:     no)		as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
 4632: 		;;
 4633:     [0-9]*)	SUDOERS_UID=$with_sudoers_uid
 4634: 		;;
 4635:     *)		as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
 4636: 		;;
 4637: esac
 4638: fi
 4639: 
 4640: 
 4641: 
 4642: # Check whether --with-sudoers-gid was given.
 4643: if test "${with_sudoers_gid+set}" = set; then :
 4644:   withval=$with_sudoers_gid; case $with_sudoers_gid in
 4645:     yes)	as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
 4646: 		;;
 4647:     no)		as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
 4648: 		;;
 4649:     [0-9]*)	SUDOERS_GID=$with_sudoers_gid
 4650: 		;;
 4651:     *)		as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
 4652: 		;;
 4653: esac
 4654: fi
 4655: 
 4656: 
 4657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
 4658: $as_echo_n "checking for umask programs should be run with... " >&6; }
 4659: 
 4660: # Check whether --with-umask was given.
 4661: if test "${with_umask+set}" = set; then :
 4662:   withval=$with_umask; case $with_umask in
 4663:     yes)	as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
 4664: 		;;
 4665:     no)		sudo_umask=0777
 4666: 		;;
 4667:     [0-9]*)	sudo_umask=$with_umask
 4668: 		;;
 4669:     *)		as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
 4670: 		;;
 4671: esac
 4672: fi
 4673: 
 4674: 
 4675: cat >>confdefs.h <<_ACEOF
 4676: #define SUDO_UMASK $sudo_umask
 4677: _ACEOF
 4678: 
 4679: if test "$sudo_umask" = "0777"; then
 4680:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
 4681: $as_echo "user" >&6; }
 4682: else
 4683:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
 4684: $as_echo "$sudo_umask" >&6; }
 4685: fi
 4686: 
 4687: 
 4688: # Check whether --with-umask-override was given.
 4689: if test "${with_umask_override+set}" = set; then :
 4690:   withval=$with_umask_override; case $with_umask_override in
 4691:     yes)	$as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
 4692: 
 4693: 		umask_override=on
 4694: 		;;
 4695:     no)		umask_override=off
 4696: 		;;
 4697:     *)		as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
 4698: 		;;
 4699: esac
 4700: fi
 4701: 
 4702: 
 4703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
 4704: $as_echo_n "checking for default user to run commands as... " >&6; }
 4705: 
 4706: # Check whether --with-runas-default was given.
 4707: if test "${with_runas_default+set}" = set; then :
 4708:   withval=$with_runas_default; case $with_runas_default in
 4709:     yes)	as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
 4710: 		;;
 4711:     no)		as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
 4712: 		;;
 4713:     *)		runas_default="$with_runas_default"
 4714: 		;;
 4715: esac
 4716: fi
 4717: 
 4718: 
 4719: cat >>confdefs.h <<_ACEOF
 4720: #define RUNAS_DEFAULT "$runas_default"
 4721: _ACEOF
 4722: 
 4723: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
 4724: $as_echo "$runas_default" >&6; }
 4725: 
 4726: 
 4727: # Check whether --with-exempt was given.
 4728: if test "${with_exempt+set}" = set; then :
 4729:   withval=$with_exempt; case $with_exempt in
 4730:     yes)	as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
 4731: 		;;
 4732:     no)		as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
 4733: 		;;
 4734:     *)
 4735: cat >>confdefs.h <<_ACEOF
 4736: #define EXEMPTGROUP "$with_exempt"
 4737: _ACEOF
 4738: 
 4739: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
 4740: $as_echo_n "checking for group to be exempt from password... " >&6; }
 4741: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
 4742: $as_echo "$with_exempt" >&6; }
 4743: 		;;
 4744: esac
 4745: fi
 4746: 
 4747: 
 4748: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
 4749: $as_echo_n "checking for editor that visudo should use... " >&6; }
 4750: 
 4751: # Check whether --with-editor was given.
 4752: if test "${with_editor+set}" = set; then :
 4753:   withval=$with_editor; case $with_editor in
 4754:     yes)	as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
 4755: 		;;
 4756:     no)		as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
 4757: 		;;
 4758:     *)
 4759: cat >>confdefs.h <<_ACEOF
 4760: #define EDITOR "$with_editor"
 4761: _ACEOF
 4762: 
 4763: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
 4764: $as_echo "$with_editor" >&6; }
 4765: 		editor="$with_editor"
 4766: 		;;
 4767: esac
 4768: else
 4769:   $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
 4770:  { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
 4771: $as_echo "vi" >&6; }
 4772: fi
 4773: 
 4774: 
 4775: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
 4776: $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
 4777: 
 4778: # Check whether --with-env-editor was given.
 4779: if test "${with_env_editor+set}" = set; then :
 4780:   withval=$with_env_editor; case $with_env_editor in
 4781:     yes)	env_editor=on
 4782: 		;;
 4783:     no)		env_editor=off
 4784: 		;;
 4785:     *)		as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
 4786: 		;;
 4787: esac
 4788: fi
 4789: 
 4790: if test "$env_editor" = "on"; then
 4791:     $as_echo "#define ENV_EDITOR 1" >>confdefs.h
 4792: 
 4793:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4794: $as_echo "yes" >&6; }
 4795: else
 4796:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4797: $as_echo "no" >&6; }
 4798: fi
 4799: 
 4800: { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
 4801: $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
 4802: 
 4803: # Check whether --with-passwd-tries was given.
 4804: if test "${with_passwd_tries+set}" = set; then :
 4805:   withval=$with_passwd_tries; case $with_passwd_tries in
 4806:     yes)	;;
 4807:     no)		as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
 4808: 		;;
 4809:     [1-9]*)	passwd_tries=$with_passwd_tries
 4810: 		;;
 4811:     *)		as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
 4812: 		;;
 4813: esac
 4814: fi
 4815: 
 4816: 
 4817: cat >>confdefs.h <<_ACEOF
 4818: #define TRIES_FOR_PASSWORD $passwd_tries
 4819: _ACEOF
 4820: 
 4821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
 4822: $as_echo "$passwd_tries" >&6; }
 4823: 
 4824: { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
 4825: $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
 4826: 
 4827: # Check whether --with-timeout was given.
 4828: if test "${with_timeout+set}" = set; then :
 4829:   withval=$with_timeout; case $with_timeout in
 4830:     yes)	;;
 4831:     no)		timeout=0
 4832: 		;;
 4833:     [0-9]*)	timeout=$with_timeout
 4834: 		;;
 4835:     *)		as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
 4836: 		;;
 4837: esac
 4838: fi
 4839: 
 4840: 
 4841: cat >>confdefs.h <<_ACEOF
 4842: #define TIMEOUT $timeout
 4843: _ACEOF
 4844: 
 4845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
 4846: $as_echo "$timeout" >&6; }
 4847: 
 4848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
 4849: $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
 4850: 
 4851: # Check whether --with-password-timeout was given.
 4852: if test "${with_password_timeout+set}" = set; then :
 4853:   withval=$with_password_timeout; case $with_password_timeout in
 4854:     yes)	;;
 4855:     no)		password_timeout=0
 4856: 		;;
 4857:     [0-9]*)	password_timeout=$with_password_timeout
 4858: 		;;
 4859:     *)		as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
 4860: 		;;
 4861: esac
 4862: fi
 4863: 
 4864: 
 4865: cat >>confdefs.h <<_ACEOF
 4866: #define PASSWORD_TIMEOUT $password_timeout
 4867: _ACEOF
 4868: 
 4869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
 4870: $as_echo "$password_timeout" >&6; }
 4871: 
 4872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
 4873: $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
 4874: 
 4875: # Check whether --with-tty-tickets was given.
 4876: if test "${with_tty_tickets+set}" = set; then :
 4877:   withval=$with_tty_tickets; case $with_tty_tickets in
 4878:     yes)	tty_tickets=on
 4879: 		;;
 4880:     no)		tty_tickets=off
 4881: 		;;
 4882:     *)		as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
 4883: 		;;
 4884: esac
 4885: fi
 4886: 
 4887: if test "$tty_tickets" = "off"; then
 4888:     $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
 4889: 
 4890:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4891: $as_echo "no" >&6; }
 4892: else
 4893:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4894: $as_echo "yes" >&6; }
 4895: fi
 4896: 
 4897: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
 4898: $as_echo_n "checking whether to include insults... " >&6; }
 4899: 
 4900: # Check whether --with-insults was given.
 4901: if test "${with_insults+set}" = set; then :
 4902:   withval=$with_insults; case $with_insults in
 4903:     yes)	insults=on
 4904: 		with_classic_insults=yes
 4905: 		with_csops_insults=yes
 4906: 		;;
 4907:     disabled)	insults=off
 4908: 		with_classic_insults=yes
 4909: 		with_csops_insults=yes
 4910: 		;;
 4911:     no)		insults=off
 4912: 		;;
 4913:     *)		as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
 4914: 		;;
 4915: esac
 4916: fi
 4917: 
 4918: if test "$insults" = "on"; then
 4919:     $as_echo "#define USE_INSULTS 1" >>confdefs.h
 4920: 
 4921:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4922: $as_echo "yes" >&6; }
 4923: else
 4924:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4925: $as_echo "no" >&6; }
 4926: fi
 4927: 
 4928: 
 4929: # Check whether --with-all-insults was given.
 4930: if test "${with_all_insults+set}" = set; then :
 4931:   withval=$with_all_insults; case $with_all_insults in
 4932:     yes)	with_classic_insults=yes
 4933: 		with_csops_insults=yes
 4934: 		with_hal_insults=yes
 4935: 		with_goons_insults=yes
 4936: 		;;
 4937:     no)		;;
 4938:     *)		as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
 4939: 		;;
 4940: esac
 4941: fi
 4942: 
 4943: 
 4944: 
 4945: # Check whether --with-classic-insults was given.
 4946: if test "${with_classic_insults+set}" = set; then :
 4947:   withval=$with_classic_insults; case $with_classic_insults in
 4948:     yes)	$as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
 4949: 
 4950: 		;;
 4951:     no)		;;
 4952:     *)		as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
 4953: 		;;
 4954: esac
 4955: fi
 4956: 
 4957: 
 4958: 
 4959: # Check whether --with-csops-insults was given.
 4960: if test "${with_csops_insults+set}" = set; then :
 4961:   withval=$with_csops_insults; case $with_csops_insults in
 4962:     yes)	$as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
 4963: 
 4964: 		;;
 4965:     no)		;;
 4966:     *)		as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
 4967: 		;;
 4968: esac
 4969: fi
 4970: 
 4971: 
 4972: 
 4973: # Check whether --with-hal-insults was given.
 4974: if test "${with_hal_insults+set}" = set; then :
 4975:   withval=$with_hal_insults; case $with_hal_insults in
 4976:     yes)	$as_echo "#define HAL_INSULTS 1" >>confdefs.h
 4977: 
 4978: 		;;
 4979:     no)		;;
 4980:     *)		as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
 4981: 		;;
 4982: esac
 4983: fi
 4984: 
 4985: 
 4986: 
 4987: # Check whether --with-goons-insults was given.
 4988: if test "${with_goons_insults+set}" = set; then :
 4989:   withval=$with_goons_insults; case $with_goons_insults in
 4990:     yes)	$as_echo "#define GOONS_INSULTS 1" >>confdefs.h
 4991: 
 4992: 		;;
 4993:     no)		;;
 4994:     *)		as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
 4995: 		;;
 4996: esac
 4997: fi
 4998: 
 4999: 
 5000: 
 5001: # Check whether --with-nsswitch was given.
 5002: if test "${with_nsswitch+set}" = set; then :
 5003:   withval=$with_nsswitch; case $with_nsswitch in
 5004:     no)		;;
 5005:     yes)	with_nsswitch="/etc/nsswitch.conf"
 5006: 		;;
 5007:     *)		;;
 5008: esac
 5009: fi
 5010: 
 5011: 
 5012: 
 5013: # Check whether --with-ldap was given.
 5014: if test "${with_ldap+set}" = set; then :
 5015:   withval=$with_ldap; case $with_ldap in
 5016:     no)		;;
 5017:     *)		$as_echo "#define HAVE_LDAP 1" >>confdefs.h
 5018: 
 5019: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
 5020: $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
 5021: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5022: $as_echo "yes" >&6; }
 5023: 		;;
 5024: esac
 5025: fi
 5026: 
 5027: 
 5028: 
 5029: # Check whether --with-ldap-conf-file was given.
 5030: if test "${with_ldap_conf_file+set}" = set; then :
 5031:   withval=$with_ldap_conf_file;
 5032: fi
 5033: 
 5034: test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
 5035: cat >>confdefs.h <<EOF
 5036: #define _PATH_LDAP_CONF "$ldap_conf"
 5037: EOF
 5038: 
 5039: 
 5040: 
 5041: # Check whether --with-ldap-secret-file was given.
 5042: if test "${with_ldap_secret_file+set}" = set; then :
 5043:   withval=$with_ldap_secret_file;
 5044: fi
 5045: 
 5046: test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
 5047: cat >>confdefs.h <<EOF
 5048: #define _PATH_LDAP_SECRET "$ldap_secret"
 5049: EOF
 5050: 
 5051: 
 5052: 
 5053: # Check whether --with-pc-insults was given.
 5054: if test "${with_pc_insults+set}" = set; then :
 5055:   withval=$with_pc_insults; case $with_pc_insults in
 5056:     yes)	$as_echo "#define PC_INSULTS 1" >>confdefs.h
 5057: 
 5058: 		;;
 5059:     no)		;;
 5060:     *)		as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
 5061: 		;;
 5062: esac
 5063: fi
 5064: 
 5065: 
 5066: if test "$insults" = "on"; then
 5067:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
 5068: $as_echo_n "checking which insult sets to include... " >&6; }
 5069:     i=""
 5070:     test "$with_goons_insults" = "yes" && i="goons ${i}"
 5071:     test "$with_hal_insults" = "yes" && i="hal ${i}"
 5072:     test "$with_csops_insults" = "yes" && i="csops ${i}"
 5073:     test "$with_classic_insults" = "yes" && i="classic ${i}"
 5074:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
 5075: $as_echo "$i" >&6; }
 5076: fi
 5077: 
 5078: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
 5079: $as_echo_n "checking whether to override the user's path... " >&6; }
 5080: 
 5081: # Check whether --with-secure-path was given.
 5082: if test "${with_secure_path+set}" = set; then :
 5083:   withval=$with_secure_path; case $with_secure_path in
 5084:     yes)	with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
 5085: 		cat >>confdefs.h <<_ACEOF
 5086: #define SECURE_PATH "$with_secure_path"
 5087: _ACEOF
 5088: 
 5089: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
 5090: $as_echo "$with_secure_path" >&6; }
 5091: 		secure_path="set to $with_secure_path"
 5092: 		;;
 5093:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5094: $as_echo "no" >&6; }
 5095: 		;;
 5096:     *)		cat >>confdefs.h <<_ACEOF
 5097: #define SECURE_PATH "$with_secure_path"
 5098: _ACEOF
 5099: 
 5100: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
 5101: $as_echo "$with_secure_path" >&6; }
 5102: 		secure_path="set to F<$with_secure_path>"
 5103: 		;;
 5104: esac
 5105: else
 5106:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5107: $as_echo "no" >&6; }
 5108: fi
 5109: 
 5110: 
 5111: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
 5112: $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
 5113: 
 5114: # Check whether --with-interfaces was given.
 5115: if test "${with_interfaces+set}" = set; then :
 5116:   withval=$with_interfaces; case $with_interfaces in
 5117:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5118: $as_echo "yes" >&6; }
 5119: 		;;
 5120:     no)		$as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
 5121: 
 5122: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5123: $as_echo "no" >&6; }
 5124: 		;;
 5125:     *)		as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
 5126: 		;;
 5127: esac
 5128: else
 5129:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5130: $as_echo "yes" >&6; }
 5131: fi
 5132: 
 5133: 
 5134: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
 5135: $as_echo_n "checking whether stow should be used... " >&6; }
 5136: 
 5137: # Check whether --with-stow was given.
 5138: if test "${with_stow+set}" = set; then :
 5139:   withval=$with_stow; case $with_stow in
 5140:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5141: $as_echo "yes" >&6; }
 5142: 		$as_echo "#define USE_STOW 1" >>confdefs.h
 5143: 
 5144: 		;;
 5145:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5146: $as_echo "no" >&6; }
 5147: 		;;
 5148:     *)		as_fn_error $? "\"--with-stow does not take an argument.\"" "$LINENO" 5
 5149: 		;;
 5150: esac
 5151: else
 5152:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5153: $as_echo "no" >&6; }
 5154: fi
 5155: 
 5156: 
 5157: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
 5158: $as_echo_n "checking whether to use an askpass helper... " >&6; }
 5159: 
 5160: # Check whether --with-askpass was given.
 5161: if test "${with_askpass+set}" = set; then :
 5162:   withval=$with_askpass; case $with_askpass in
 5163:     yes)	as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
 5164: 		;;
 5165:     no)		;;
 5166:     *)		cat >>confdefs.h <<EOF
 5167: #define _PATH_SUDO_ASKPASS "$with_askpass"
 5168: EOF
 5169: 
 5170: 		;;
 5171: esac
 5172: else
 5173:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5174: $as_echo "no" >&6; }
 5175: fi
 5176: 
 5177: 
 5178: 
 5179: # Check whether --with-plugindir was given.
 5180: if test "${with_plugindir+set}" = set; then :
 5181:   withval=$with_plugindir; case $with_plugindir in
 5182:     no)		as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
 5183: 		;;
 5184:     *)		;;
 5185: esac
 5186: else
 5187:   with_plugindir="$libexecdir"
 5188: fi
 5189: 
 5190: 
 5191: 
 5192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
 5193: $as_echo_n "checking whether to do user authentication by default... " >&6; }
 5194: # Check whether --enable-authentication was given.
 5195: if test "${enable_authentication+set}" = set; then :
 5196:   enableval=$enable_authentication;  case "$enableval" in
 5197:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5198: $as_echo "yes" >&6; }
 5199: 		;;
 5200:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5201: $as_echo "no" >&6; }
 5202: 		$as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
 5203: 
 5204: 		;;
 5205:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5206: $as_echo "no" >&6; }
 5207:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
 5208: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
 5209: 		;;
 5210:   esac
 5211: 
 5212: else
 5213:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5214: $as_echo "yes" >&6; }
 5215: fi
 5216: 
 5217: 
 5218: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
 5219: $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
 5220: # Check whether --enable-root-mailer was given.
 5221: if test "${enable_root_mailer+set}" = set; then :
 5222:   enableval=$enable_root_mailer;  case "$enableval" in
 5223:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5224: $as_echo "no" >&6; }
 5225: 		;;
 5226:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5227: $as_echo "yes" >&6; }
 5228: 		$as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
 5229: 
 5230: 		;;
 5231:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5232: $as_echo "no" >&6; }
 5233:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
 5234: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
 5235: 		;;
 5236:   esac
 5237: 
 5238: else
 5239:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5240: $as_echo "no" >&6; }
 5241: fi
 5242: 
 5243: 
 5244: # Check whether --enable-setreuid was given.
 5245: if test "${enable_setreuid+set}" = set; then :
 5246:   enableval=$enable_setreuid;  case "$enableval" in
 5247:     no)		SKIP_SETREUID=yes
 5248: 		;;
 5249:     *)		;;
 5250:   esac
 5251: 
 5252: fi
 5253: 
 5254: 
 5255: # Check whether --enable-setresuid was given.
 5256: if test "${enable_setresuid+set}" = set; then :
 5257:   enableval=$enable_setresuid;  case "$enableval" in
 5258:     no)		SKIP_SETRESUID=yes
 5259: 		;;
 5260:     *)		;;
 5261:   esac
 5262: 
 5263: fi
 5264: 
 5265: 
 5266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
 5267: $as_echo_n "checking whether to disable shadow password support... " >&6; }
 5268: # Check whether --enable-shadow was given.
 5269: if test "${enable_shadow+set}" = set; then :
 5270:   enableval=$enable_shadow;  case "$enableval" in
 5271:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5272: $as_echo "no" >&6; }
 5273: 		;;
 5274:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5275: $as_echo "yes" >&6; }
 5276: 		CHECKSHADOW="false"
 5277: 		;;
 5278:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5279: $as_echo "no" >&6; }
 5280:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
 5281: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
 5282: 		;;
 5283:   esac
 5284: 
 5285: else
 5286:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5287: $as_echo "no" >&6; }
 5288: fi
 5289: 
 5290: 
 5291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
 5292: $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
 5293: # Check whether --enable-root-sudo was given.
 5294: if test "${enable_root_sudo+set}" = set; then :
 5295:   enableval=$enable_root_sudo;  case "$enableval" in
 5296:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5297: $as_echo "yes" >&6; }
 5298: 		;;
 5299:     no)		$as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
 5300: 
 5301: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5302: $as_echo "no" >&6; }
 5303: 		root_sudo=off
 5304: 		;;
 5305:     *)		as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
 5306: 		;;
 5307:   esac
 5308: 
 5309: else
 5310:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5311: $as_echo "yes" >&6; }
 5312: fi
 5313: 
 5314: 
 5315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
 5316: $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
 5317: # Check whether --enable-log-host was given.
 5318: if test "${enable_log_host+set}" = set; then :
 5319:   enableval=$enable_log_host;  case "$enableval" in
 5320:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5321: $as_echo "yes" >&6; }
 5322: 		$as_echo "#define HOST_IN_LOG 1" >>confdefs.h
 5323: 
 5324: 		;;
 5325:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5326: $as_echo "no" >&6; }
 5327: 		;;
 5328:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5329: $as_echo "no" >&6; }
 5330:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
 5331: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
 5332: 		;;
 5333:   esac
 5334: 
 5335: else
 5336:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5337: $as_echo "no" >&6; }
 5338: fi
 5339: 
 5340: 
 5341: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
 5342: $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
 5343: # Check whether --enable-noargs-shell was given.
 5344: if test "${enable_noargs_shell+set}" = set; then :
 5345:   enableval=$enable_noargs_shell;  case "$enableval" in
 5346:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5347: $as_echo "yes" >&6; }
 5348: 		$as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
 5349: 
 5350: 		;;
 5351:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5352: $as_echo "no" >&6; }
 5353: 		;;
 5354:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5355: $as_echo "no" >&6; }
 5356:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
 5357: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
 5358: 		;;
 5359:   esac
 5360: 
 5361: else
 5362:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5363: $as_echo "no" >&6; }
 5364: fi
 5365: 
 5366: 
 5367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
 5368: $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
 5369: # Check whether --enable-shell-sets-home was given.
 5370: if test "${enable_shell_sets_home+set}" = set; then :
 5371:   enableval=$enable_shell_sets_home;  case "$enableval" in
 5372:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5373: $as_echo "yes" >&6; }
 5374: 		$as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
 5375: 
 5376: 		;;
 5377:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5378: $as_echo "no" >&6; }
 5379: 		;;
 5380:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5381: $as_echo "no" >&6; }
 5382:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
 5383: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
 5384: 		;;
 5385:   esac
 5386: 
 5387: else
 5388:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5389: $as_echo "no" >&6; }
 5390: fi
 5391: 
 5392: 
 5393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
 5394: $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
 5395: # Check whether --enable-path_info was given.
 5396: if test "${enable_path_info+set}" = set; then :
 5397:   enableval=$enable_path_info;  case "$enableval" in
 5398:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5399: $as_echo "no" >&6; }
 5400: 		;;
 5401:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5402: $as_echo "yes" >&6; }
 5403: 		$as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
 5404: 
 5405: 		path_info=off
 5406: 		;;
 5407:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5408: $as_echo "no" >&6; }
 5409: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
 5410: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
 5411: 		;;
 5412:   esac
 5413: 
 5414: else
 5415:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5416: $as_echo "no" >&6; }
 5417: fi
 5418: 
 5419: 
 5420: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
 5421: $as_echo_n "checking whether to enable environment debugging... " >&6; }
 5422: # Check whether --enable-env_debug was given.
 5423: if test "${enable_env_debug+set}" = set; then :
 5424:   enableval=$enable_env_debug;  case "$enableval" in
 5425:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5426: $as_echo "yes" >&6; }
 5427: 		$as_echo "#define ENV_DEBUG 1" >>confdefs.h
 5428: 
 5429: 		;;
 5430:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5431: $as_echo "no" >&6; }
 5432: 		;;
 5433:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5434: $as_echo "no" >&6; }
 5435:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
 5436: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
 5437: 		;;
 5438:   esac
 5439: 
 5440: else
 5441:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5442: $as_echo "no" >&6; }
 5443: fi
 5444: 
 5445: 
 5446: # Check whether --enable-zlib was given.
 5447: if test "${enable_zlib+set}" = set; then :
 5448:   enableval=$enable_zlib;
 5449: else
 5450:   enable_zlib=yes
 5451: fi
 5452: 
 5453: 
 5454: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
 5455: $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
 5456: # Check whether --enable-env_reset was given.
 5457: if test "${enable_env_reset+set}" = set; then :
 5458:   enableval=$enable_env_reset;  case "$enableval" in
 5459:     yes)	env_reset=on
 5460: 		;;
 5461:     no)		env_reset=off
 5462: 		;;
 5463:     *)		env_reset=on
 5464:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
 5465: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
 5466: 		;;
 5467:   esac
 5468: 
 5469: fi
 5470: 
 5471: if test "$env_reset" = "on"; then
 5472:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5473: $as_echo "yes" >&6; }
 5474:     $as_echo "#define ENV_RESET 1" >>confdefs.h
 5475: 
 5476: else
 5477:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5478: $as_echo "no" >&6; }
 5479:     $as_echo "#define ENV_RESET 0" >>confdefs.h
 5480: 
 5481: fi
 5482: 
 5483: # Check whether --enable-warnings was given.
 5484: if test "${enable_warnings+set}" = set; then :
 5485:   enableval=$enable_warnings;  case "$enableval" in
 5486:     yes)    ;;
 5487:     no)	    ;;
 5488:     *)	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
 5489: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
 5490: 	    ;;
 5491:   esac
 5492: 
 5493: fi
 5494: 
 5495: 
 5496: # Check whether --enable-werror was given.
 5497: if test "${enable_werror+set}" = set; then :
 5498:   enableval=$enable_werror;  case "$enableval" in
 5499:     yes)    ;;
 5500:     no)	    ;;
 5501:     *)	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&5
 5502: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&2;}
 5503: 	    ;;
 5504:   esac
 5505: 
 5506: fi
 5507: 
 5508: 
 5509: # Check whether --enable-admin-flag was given.
 5510: if test "${enable_admin_flag+set}" = set; then :
 5511:   enableval=$enable_admin_flag;  case "$enableval" in
 5512:     yes)    $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
 5513: 
 5514: 	    ;;
 5515:     no)	    ;;
 5516:     *)	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
 5517: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
 5518: 	    ;;
 5519:   esac
 5520: 
 5521: fi
 5522: 
 5523: 
 5524: # Check whether --enable-nls was given.
 5525: if test "${enable_nls+set}" = set; then :
 5526:   enableval=$enable_nls;
 5527: else
 5528:   enable_nls=yes
 5529: fi
 5530: 
 5531: 
 5532: 
 5533: # Check whether --with-selinux was given.
 5534: if test "${with_selinux+set}" = set; then :
 5535:   withval=$with_selinux; case $with_selinux in
 5536:     yes)	SELINUX_USAGE="[-r role] [-t type] "
 5537:     		$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
 5538: 
 5539: 		SUDO_LIBS="${SUDO_LIBS} -lselinux"
 5540: 		SUDO_OBJS="${SUDO_OBJS} selinux.o"
 5541: 		PROGS="${PROGS} sesh"
 5542: 		SEMAN=1
 5543: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
 5544: $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
 5545: if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
 5546:   $as_echo_n "(cached) " >&6
 5547: else
 5548:   ac_check_lib_save_LIBS=$LIBS
 5549: LIBS="-lselinux  $LIBS"
 5550: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5551: /* end confdefs.h.  */
 5552: 
 5553: /* Override any GCC internal prototype to avoid an error.
 5554:    Use char because int might match the return type of a GCC
 5555:    builtin and then its argument prototype would still apply.  */
 5556: #ifdef __cplusplus
 5557: extern "C"
 5558: #endif
 5559: char setkeycreatecon ();
 5560: int
 5561: main ()
 5562: {
 5563: return setkeycreatecon ();
 5564:   ;
 5565:   return 0;
 5566: }
 5567: _ACEOF
 5568: if ac_fn_c_try_link "$LINENO"; then :
 5569:   ac_cv_lib_selinux_setkeycreatecon=yes
 5570: else
 5571:   ac_cv_lib_selinux_setkeycreatecon=no
 5572: fi
 5573: rm -f core conftest.err conftest.$ac_objext \
 5574:     conftest$ac_exeext conftest.$ac_ext
 5575: LIBS=$ac_check_lib_save_LIBS
 5576: fi
 5577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
 5578: $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
 5579: if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
 5580:   $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
 5581: 
 5582: fi
 5583: 
 5584: 		;;
 5585:     no)		;;
 5586:     *)		as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
 5587: 		;;
 5588: esac
 5589: fi
 5590: 
 5591: 
 5592: # Check whether --enable-gss_krb5_ccache_name was given.
 5593: if test "${enable_gss_krb5_ccache_name+set}" = set; then :
 5594:   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
 5595: else
 5596:   check_gss_krb5_ccache_name=no
 5597: fi
 5598: 
 5599: 
 5600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
 5601: $as_echo_n "checking for library containing strerror... " >&6; }
 5602: if ${ac_cv_search_strerror+:} false; then :
 5603:   $as_echo_n "(cached) " >&6
 5604: else
 5605:   ac_func_search_save_LIBS=$LIBS
 5606: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5607: /* end confdefs.h.  */
 5608: 
 5609: /* Override any GCC internal prototype to avoid an error.
 5610:    Use char because int might match the return type of a GCC
 5611:    builtin and then its argument prototype would still apply.  */
 5612: #ifdef __cplusplus
 5613: extern "C"
 5614: #endif
 5615: char strerror ();
 5616: int
 5617: main ()
 5618: {
 5619: return strerror ();
 5620:   ;
 5621:   return 0;
 5622: }
 5623: _ACEOF
 5624: for ac_lib in '' cposix; do
 5625:   if test -z "$ac_lib"; then
 5626:     ac_res="none required"
 5627:   else
 5628:     ac_res=-l$ac_lib
 5629:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 5630:   fi
 5631:   if ac_fn_c_try_link "$LINENO"; then :
 5632:   ac_cv_search_strerror=$ac_res
 5633: fi
 5634: rm -f core conftest.err conftest.$ac_objext \
 5635:     conftest$ac_exeext
 5636:   if ${ac_cv_search_strerror+:} false; then :
 5637:   break
 5638: fi
 5639: done
 5640: if ${ac_cv_search_strerror+:} false; then :
 5641: 
 5642: else
 5643:   ac_cv_search_strerror=no
 5644: fi
 5645: rm conftest.$ac_ext
 5646: LIBS=$ac_func_search_save_LIBS
 5647: fi
 5648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
 5649: $as_echo "$ac_cv_search_strerror" >&6; }
 5650: ac_res=$ac_cv_search_strerror
 5651: if test "$ac_res" != no; then :
 5652:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 5653: 
 5654: fi
 5655: 
 5656: ac_ext=c
 5657: ac_cpp='$CPP $CPPFLAGS'
 5658: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 5659: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 5660: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 5661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 5662: $as_echo_n "checking how to run the C preprocessor... " >&6; }
 5663: # On Suns, sometimes $CPP names a directory.
 5664: if test -n "$CPP" && test -d "$CPP"; then
 5665:   CPP=
 5666: fi
 5667: if test -z "$CPP"; then
 5668:   if ${ac_cv_prog_CPP+:} false; then :
 5669:   $as_echo_n "(cached) " >&6
 5670: else
 5671:       # Double quotes because CPP needs to be expanded
 5672:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 5673:     do
 5674:       ac_preproc_ok=false
 5675: for ac_c_preproc_warn_flag in '' yes
 5676: do
 5677:   # Use a header file that comes with gcc, so configuring glibc
 5678:   # with a fresh cross-compiler works.
 5679:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 5680:   # <limits.h> exists even on freestanding compilers.
 5681:   # On the NeXT, cc -E runs the code through the compiler's parser,
 5682:   # not just through cpp. "Syntax error" is here to catch this case.
 5683:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5684: /* end confdefs.h.  */
 5685: #ifdef __STDC__
 5686: # include <limits.h>
 5687: #else
 5688: # include <assert.h>
 5689: #endif
 5690: 		     Syntax error
 5691: _ACEOF
 5692: if ac_fn_c_try_cpp "$LINENO"; then :
 5693: 
 5694: else
 5695:   # Broken: fails on valid input.
 5696: continue
 5697: fi
 5698: rm -f conftest.err conftest.i conftest.$ac_ext
 5699: 
 5700:   # OK, works on sane cases.  Now check whether nonexistent headers
 5701:   # can be detected and how.
 5702:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5703: /* end confdefs.h.  */
 5704: #include <ac_nonexistent.h>
 5705: _ACEOF
 5706: if ac_fn_c_try_cpp "$LINENO"; then :
 5707:   # Broken: success on invalid input.
 5708: continue
 5709: else
 5710:   # Passes both tests.
 5711: ac_preproc_ok=:
 5712: break
 5713: fi
 5714: rm -f conftest.err conftest.i conftest.$ac_ext
 5715: 
 5716: done
 5717: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 5718: rm -f conftest.i conftest.err conftest.$ac_ext
 5719: if $ac_preproc_ok; then :
 5720:   break
 5721: fi
 5722: 
 5723:     done
 5724:     ac_cv_prog_CPP=$CPP
 5725: 
 5726: fi
 5727:   CPP=$ac_cv_prog_CPP
 5728: else
 5729:   ac_cv_prog_CPP=$CPP
 5730: fi
 5731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 5732: $as_echo "$CPP" >&6; }
 5733: ac_preproc_ok=false
 5734: for ac_c_preproc_warn_flag in '' yes
 5735: do
 5736:   # Use a header file that comes with gcc, so configuring glibc
 5737:   # with a fresh cross-compiler works.
 5738:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 5739:   # <limits.h> exists even on freestanding compilers.
 5740:   # On the NeXT, cc -E runs the code through the compiler's parser,
 5741:   # not just through cpp. "Syntax error" is here to catch this case.
 5742:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5743: /* end confdefs.h.  */
 5744: #ifdef __STDC__
 5745: # include <limits.h>
 5746: #else
 5747: # include <assert.h>
 5748: #endif
 5749: 		     Syntax error
 5750: _ACEOF
 5751: if ac_fn_c_try_cpp "$LINENO"; then :
 5752: 
 5753: else
 5754:   # Broken: fails on valid input.
 5755: continue
 5756: fi
 5757: rm -f conftest.err conftest.i conftest.$ac_ext
 5758: 
 5759:   # OK, works on sane cases.  Now check whether nonexistent headers
 5760:   # can be detected and how.
 5761:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5762: /* end confdefs.h.  */
 5763: #include <ac_nonexistent.h>
 5764: _ACEOF
 5765: if ac_fn_c_try_cpp "$LINENO"; then :
 5766:   # Broken: success on invalid input.
 5767: continue
 5768: else
 5769:   # Passes both tests.
 5770: ac_preproc_ok=:
 5771: break
 5772: fi
 5773: rm -f conftest.err conftest.i conftest.$ac_ext
 5774: 
 5775: done
 5776: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 5777: rm -f conftest.i conftest.err conftest.$ac_ext
 5778: if $ac_preproc_ok; then :
 5779: 
 5780: else
 5781:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 5782: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 5783: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 5784: See \`config.log' for more details" "$LINENO" 5; }
 5785: fi
 5786: 
 5787: ac_ext=c
 5788: ac_cpp='$CPP $CPPFLAGS'
 5789: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 5790: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 5791: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 5792: 
 5793: if test -n "$ac_tool_prefix"; then
 5794:   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 5795: set dummy ${ac_tool_prefix}ar; ac_word=$2
 5796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5797: $as_echo_n "checking for $ac_word... " >&6; }
 5798: if ${ac_cv_prog_AR+:} false; then :
 5799:   $as_echo_n "(cached) " >&6
 5800: else
 5801:   if test -n "$AR"; then
 5802:   ac_cv_prog_AR="$AR" # Let the user override the test.
 5803: else
 5804: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5805: for as_dir in $PATH
 5806: do
 5807:   IFS=$as_save_IFS
 5808:   test -z "$as_dir" && as_dir=.
 5809:     for ac_exec_ext in '' $ac_executable_extensions; do
 5810:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 5811:     ac_cv_prog_AR="${ac_tool_prefix}ar"
 5812:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5813:     break 2
 5814:   fi
 5815: done
 5816:   done
 5817: IFS=$as_save_IFS
 5818: 
 5819: fi
 5820: fi
 5821: AR=$ac_cv_prog_AR
 5822: if test -n "$AR"; then
 5823:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 5824: $as_echo "$AR" >&6; }
 5825: else
 5826:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5827: $as_echo "no" >&6; }
 5828: fi
 5829: 
 5830: 
 5831: fi
 5832: if test -z "$ac_cv_prog_AR"; then
 5833:   ac_ct_AR=$AR
 5834:   # Extract the first word of "ar", so it can be a program name with args.
 5835: set dummy ar; ac_word=$2
 5836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5837: $as_echo_n "checking for $ac_word... " >&6; }
 5838: if ${ac_cv_prog_ac_ct_AR+:} false; then :
 5839:   $as_echo_n "(cached) " >&6
 5840: else
 5841:   if test -n "$ac_ct_AR"; then
 5842:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 5843: else
 5844: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5845: for as_dir in $PATH
 5846: do
 5847:   IFS=$as_save_IFS
 5848:   test -z "$as_dir" && as_dir=.
 5849:     for ac_exec_ext in '' $ac_executable_extensions; do
 5850:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 5851:     ac_cv_prog_ac_ct_AR="ar"
 5852:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5853:     break 2
 5854:   fi
 5855: done
 5856:   done
 5857: IFS=$as_save_IFS
 5858: 
 5859: fi
 5860: fi
 5861: ac_ct_AR=$ac_cv_prog_ac_ct_AR
 5862: if test -n "$ac_ct_AR"; then
 5863:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 5864: $as_echo "$ac_ct_AR" >&6; }
 5865: else
 5866:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5867: $as_echo "no" >&6; }
 5868: fi
 5869: 
 5870:   if test "x$ac_ct_AR" = x; then
 5871:     AR="false"
 5872:   else
 5873:     case $cross_compiling:$ac_tool_warned in
 5874: yes:)
 5875: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 5876: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 5877: ac_tool_warned=yes ;;
 5878: esac
 5879:     AR=$ac_ct_AR
 5880:   fi
 5881: else
 5882:   AR="$ac_cv_prog_AR"
 5883: fi
 5884: 
 5885: if test -n "$ac_tool_prefix"; then
 5886:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 5887: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 5888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5889: $as_echo_n "checking for $ac_word... " >&6; }
 5890: if ${ac_cv_prog_RANLIB+:} false; then :
 5891:   $as_echo_n "(cached) " >&6
 5892: else
 5893:   if test -n "$RANLIB"; then
 5894:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 5895: else
 5896: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5897: for as_dir in $PATH
 5898: do
 5899:   IFS=$as_save_IFS
 5900:   test -z "$as_dir" && as_dir=.
 5901:     for ac_exec_ext in '' $ac_executable_extensions; do
 5902:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 5903:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 5904:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5905:     break 2
 5906:   fi
 5907: done
 5908:   done
 5909: IFS=$as_save_IFS
 5910: 
 5911: fi
 5912: fi
 5913: RANLIB=$ac_cv_prog_RANLIB
 5914: if test -n "$RANLIB"; then
 5915:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 5916: $as_echo "$RANLIB" >&6; }
 5917: else
 5918:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5919: $as_echo "no" >&6; }
 5920: fi
 5921: 
 5922: 
 5923: fi
 5924: if test -z "$ac_cv_prog_RANLIB"; then
 5925:   ac_ct_RANLIB=$RANLIB
 5926:   # Extract the first word of "ranlib", so it can be a program name with args.
 5927: set dummy ranlib; ac_word=$2
 5928: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5929: $as_echo_n "checking for $ac_word... " >&6; }
 5930: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 5931:   $as_echo_n "(cached) " >&6
 5932: else
 5933:   if test -n "$ac_ct_RANLIB"; then
 5934:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 5935: else
 5936: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5937: for as_dir in $PATH
 5938: do
 5939:   IFS=$as_save_IFS
 5940:   test -z "$as_dir" && as_dir=.
 5941:     for ac_exec_ext in '' $ac_executable_extensions; do
 5942:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 5943:     ac_cv_prog_ac_ct_RANLIB="ranlib"
 5944:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5945:     break 2
 5946:   fi
 5947: done
 5948:   done
 5949: IFS=$as_save_IFS
 5950: 
 5951: fi
 5952: fi
 5953: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 5954: if test -n "$ac_ct_RANLIB"; then
 5955:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 5956: $as_echo "$ac_ct_RANLIB" >&6; }
 5957: else
 5958:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5959: $as_echo "no" >&6; }
 5960: fi
 5961: 
 5962:   if test "x$ac_ct_RANLIB" = x; then
 5963:     RANLIB=":"
 5964:   else
 5965:     case $cross_compiling:$ac_tool_warned in
 5966: yes:)
 5967: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 5968: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 5969: ac_tool_warned=yes ;;
 5970: esac
 5971:     RANLIB=$ac_ct_RANLIB
 5972:   fi
 5973: else
 5974:   RANLIB="$ac_cv_prog_RANLIB"
 5975: fi
 5976: 
 5977: if test X"$AR" = X"false"; then
 5978:     as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
 5979: fi
 5980: 
 5981: if test "x$ac_cv_prog_cc_c89" = "xno"; then
 5982:     as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
 5983: fi
 5984: 
 5985: if test "$enable_static" = "no"; then
 5986:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
 5987: $as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
 5988:     enable_static=yes
 5989: fi
 5990: 
 5991: ac_aux_dir=
 5992: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 5993:   if test -f "$ac_dir/install-sh"; then
 5994:     ac_aux_dir=$ac_dir
 5995:     ac_install_sh="$ac_aux_dir/install-sh -c"
 5996:     break
 5997:   elif test -f "$ac_dir/install.sh"; then
 5998:     ac_aux_dir=$ac_dir
 5999:     ac_install_sh="$ac_aux_dir/install.sh -c"
 6000:     break
 6001:   elif test -f "$ac_dir/shtool"; then
 6002:     ac_aux_dir=$ac_dir
 6003:     ac_install_sh="$ac_aux_dir/shtool install -c"
 6004:     break
 6005:   fi
 6006: done
 6007: if test -z "$ac_aux_dir"; then
 6008:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 6009: fi
 6010: 
 6011: # These three variables are undocumented and unsupported,
 6012: # and are intended to be withdrawn in a future Autoconf release.
 6013: # They can cause serious problems if a builder's source tree is in a directory
 6014: # whose full name contains unusual characters.
 6015: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 6016: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 6017: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 6018: 
 6019: 
 6020: # Make sure we can run config.sub.
 6021: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 6022:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 6023: 
 6024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 6025: $as_echo_n "checking build system type... " >&6; }
 6026: if ${ac_cv_build+:} false; then :
 6027:   $as_echo_n "(cached) " >&6
 6028: else
 6029:   ac_build_alias=$build_alias
 6030: test "x$ac_build_alias" = x &&
 6031:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 6032: test "x$ac_build_alias" = x &&
 6033:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 6034: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 6035:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 6036: 
 6037: fi
 6038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 6039: $as_echo "$ac_cv_build" >&6; }
 6040: case $ac_cv_build in
 6041: *-*-*) ;;
 6042: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 6043: esac
 6044: build=$ac_cv_build
 6045: ac_save_IFS=$IFS; IFS='-'
 6046: set x $ac_cv_build
 6047: shift
 6048: build_cpu=$1
 6049: build_vendor=$2
 6050: shift; shift
 6051: # Remember, the first character of IFS is used to create $*,
 6052: # except with old shells:
 6053: build_os=$*
 6054: IFS=$ac_save_IFS
 6055: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 6056: 
 6057: 
 6058: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 6059: $as_echo_n "checking host system type... " >&6; }
 6060: if ${ac_cv_host+:} false; then :
 6061:   $as_echo_n "(cached) " >&6
 6062: else
 6063:   if test "x$host_alias" = x; then
 6064:   ac_cv_host=$ac_cv_build
 6065: else
 6066:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 6067:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 6068: fi
 6069: 
 6070: fi
 6071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 6072: $as_echo "$ac_cv_host" >&6; }
 6073: case $ac_cv_host in
 6074: *-*-*) ;;
 6075: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 6076: esac
 6077: host=$ac_cv_host
 6078: ac_save_IFS=$IFS; IFS='-'
 6079: set x $ac_cv_host
 6080: shift
 6081: host_cpu=$1
 6082: host_vendor=$2
 6083: shift; shift
 6084: # Remember, the first character of IFS is used to create $*,
 6085: # except with old shells:
 6086: host_os=$*
 6087: IFS=$ac_save_IFS
 6088: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 6089: 
 6090: 
 6091: 
 6092: 
 6093: case `pwd` in
 6094:   *\ * | *\	*)
 6095:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 6096: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 6097: esac
 6098: 
 6099: 
 6100: 
 6101: macro_version='2.4.2'
 6102: macro_revision='1.3337'
 6103: 
 6104: 
 6105: 
 6106: 
 6107: 
 6108: 
 6109: 
 6110: 
 6111: 
 6112: 
 6113: 
 6114: 
 6115: 
 6116: ltmain="$ac_aux_dir/ltmain.sh"
 6117: 
 6118: # Backslashify metacharacters that are still active within
 6119: # double-quoted strings.
 6120: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 6121: 
 6122: # Same as above, but do not quote variable references.
 6123: double_quote_subst='s/\(["`\\]\)/\\\1/g'
 6124: 
 6125: # Sed substitution to delay expansion of an escaped shell variable in a
 6126: # double_quote_subst'ed string.
 6127: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 6128: 
 6129: # Sed substitution to delay expansion of an escaped single quote.
 6130: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 6131: 
 6132: # Sed substitution to avoid accidental globbing in evaled expressions
 6133: no_glob_subst='s/\*/\\\*/g'
 6134: 
 6135: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 6136: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 6137: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 6138: 
 6139: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 6140: $as_echo_n "checking how to print strings... " >&6; }
 6141: # Test print first, because it will be a builtin if present.
 6142: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 6143:    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 6144:   ECHO='print -r --'
 6145: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 6146:   ECHO='printf %s\n'
 6147: else
 6148:   # Use this function as a fallback that always works.
 6149:   func_fallback_echo ()
 6150:   {
 6151:     eval 'cat <<_LTECHO_EOF
 6152: $1
 6153: _LTECHO_EOF'
 6154:   }
 6155:   ECHO='func_fallback_echo'
 6156: fi
 6157: 
 6158: # func_echo_all arg...
 6159: # Invoke $ECHO with all args, space-separated.
 6160: func_echo_all ()
 6161: {
 6162:     $ECHO ""
 6163: }
 6164: 
 6165: case "$ECHO" in
 6166:   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 6167: $as_echo "printf" >&6; } ;;
 6168:   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 6169: $as_echo "print -r" >&6; } ;;
 6170:   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 6171: $as_echo "cat" >&6; } ;;
 6172: esac
 6173: 
 6174: 
 6175: 
 6176: 
 6177: 
 6178: 
 6179: 
 6180: 
 6181: 
 6182: 
 6183: 
 6184: 
 6185: 
 6186: 
 6187: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 6188: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
 6189: if ${ac_cv_path_SED+:} false; then :
 6190:   $as_echo_n "(cached) " >&6
 6191: else
 6192:             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 6193:      for ac_i in 1 2 3 4 5 6 7; do
 6194:        ac_script="$ac_script$as_nl$ac_script"
 6195:      done
 6196:      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 6197:      { ac_script=; unset ac_script;}
 6198:      if test -z "$SED"; then
 6199:   ac_path_SED_found=false
 6200:   # Loop through the user's path and test for each of PROGNAME-LIST
 6201:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6202: for as_dir in $PATH
 6203: do
 6204:   IFS=$as_save_IFS
 6205:   test -z "$as_dir" && as_dir=.
 6206:     for ac_prog in sed gsed; do
 6207:     for ac_exec_ext in '' $ac_executable_extensions; do
 6208:       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 6209:       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 6210: # Check for GNU ac_path_SED and select it if it is found.
 6211:   # Check for GNU $ac_path_SED
 6212: case `"$ac_path_SED" --version 2>&1` in
 6213: *GNU*)
 6214:   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 6215: *)
 6216:   ac_count=0
 6217:   $as_echo_n 0123456789 >"conftest.in"
 6218:   while :
 6219:   do
 6220:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 6221:     mv "conftest.tmp" "conftest.in"
 6222:     cp "conftest.in" "conftest.nl"
 6223:     $as_echo '' >> "conftest.nl"
 6224:     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 6225:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 6226:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 6227:     if test $ac_count -gt ${ac_path_SED_max-0}; then
 6228:       # Best one so far, save it but keep looking for a better one
 6229:       ac_cv_path_SED="$ac_path_SED"
 6230:       ac_path_SED_max=$ac_count
 6231:     fi
 6232:     # 10*(2^10) chars as input seems more than enough
 6233:     test $ac_count -gt 10 && break
 6234:   done
 6235:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 6236: esac
 6237: 
 6238:       $ac_path_SED_found && break 3
 6239:     done
 6240:   done
 6241:   done
 6242: IFS=$as_save_IFS
 6243:   if test -z "$ac_cv_path_SED"; then
 6244:     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 6245:   fi
 6246: else
 6247:   ac_cv_path_SED=$SED
 6248: fi
 6249: 
 6250: fi
 6251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 6252: $as_echo "$ac_cv_path_SED" >&6; }
 6253:  SED="$ac_cv_path_SED"
 6254:   rm -f conftest.sed
 6255: 
 6256: test -z "$SED" && SED=sed
 6257: Xsed="$SED -e 1s/^X//"
 6258: 
 6259: 
 6260: 
 6261: 
 6262: 
 6263: 
 6264: 
 6265: 
 6266: 
 6267: 
 6268: 
 6269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 6270: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 6271: if ${ac_cv_path_GREP+:} false; then :
 6272:   $as_echo_n "(cached) " >&6
 6273: else
 6274:   if test -z "$GREP"; then
 6275:   ac_path_GREP_found=false
 6276:   # Loop through the user's path and test for each of PROGNAME-LIST
 6277:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6278: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 6279: do
 6280:   IFS=$as_save_IFS
 6281:   test -z "$as_dir" && as_dir=.
 6282:     for ac_prog in grep ggrep; do
 6283:     for ac_exec_ext in '' $ac_executable_extensions; do
 6284:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 6285:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 6286: # Check for GNU ac_path_GREP and select it if it is found.
 6287:   # Check for GNU $ac_path_GREP
 6288: case `"$ac_path_GREP" --version 2>&1` in
 6289: *GNU*)
 6290:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 6291: *)
 6292:   ac_count=0
 6293:   $as_echo_n 0123456789 >"conftest.in"
 6294:   while :
 6295:   do
 6296:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 6297:     mv "conftest.tmp" "conftest.in"
 6298:     cp "conftest.in" "conftest.nl"
 6299:     $as_echo 'GREP' >> "conftest.nl"
 6300:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 6301:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 6302:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 6303:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
 6304:       # Best one so far, save it but keep looking for a better one
 6305:       ac_cv_path_GREP="$ac_path_GREP"
 6306:       ac_path_GREP_max=$ac_count
 6307:     fi
 6308:     # 10*(2^10) chars as input seems more than enough
 6309:     test $ac_count -gt 10 && break
 6310:   done
 6311:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 6312: esac
 6313: 
 6314:       $ac_path_GREP_found && break 3
 6315:     done
 6316:   done
 6317:   done
 6318: IFS=$as_save_IFS
 6319:   if test -z "$ac_cv_path_GREP"; then
 6320:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 6321:   fi
 6322: else
 6323:   ac_cv_path_GREP=$GREP
 6324: fi
 6325: 
 6326: fi
 6327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 6328: $as_echo "$ac_cv_path_GREP" >&6; }
 6329:  GREP="$ac_cv_path_GREP"
 6330: 
 6331: 
 6332: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 6333: $as_echo_n "checking for egrep... " >&6; }
 6334: if ${ac_cv_path_EGREP+:} false; then :
 6335:   $as_echo_n "(cached) " >&6
 6336: else
 6337:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 6338:    then ac_cv_path_EGREP="$GREP -E"
 6339:    else
 6340:      if test -z "$EGREP"; then
 6341:   ac_path_EGREP_found=false
 6342:   # Loop through the user's path and test for each of PROGNAME-LIST
 6343:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6344: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 6345: do
 6346:   IFS=$as_save_IFS
 6347:   test -z "$as_dir" && as_dir=.
 6348:     for ac_prog in egrep; do
 6349:     for ac_exec_ext in '' $ac_executable_extensions; do
 6350:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 6351:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 6352: # Check for GNU ac_path_EGREP and select it if it is found.
 6353:   # Check for GNU $ac_path_EGREP
 6354: case `"$ac_path_EGREP" --version 2>&1` in
 6355: *GNU*)
 6356:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 6357: *)
 6358:   ac_count=0
 6359:   $as_echo_n 0123456789 >"conftest.in"
 6360:   while :
 6361:   do
 6362:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 6363:     mv "conftest.tmp" "conftest.in"
 6364:     cp "conftest.in" "conftest.nl"
 6365:     $as_echo 'EGREP' >> "conftest.nl"
 6366:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 6367:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 6368:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 6369:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 6370:       # Best one so far, save it but keep looking for a better one
 6371:       ac_cv_path_EGREP="$ac_path_EGREP"
 6372:       ac_path_EGREP_max=$ac_count
 6373:     fi
 6374:     # 10*(2^10) chars as input seems more than enough
 6375:     test $ac_count -gt 10 && break
 6376:   done
 6377:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 6378: esac
 6379: 
 6380:       $ac_path_EGREP_found && break 3
 6381:     done
 6382:   done
 6383:   done
 6384: IFS=$as_save_IFS
 6385:   if test -z "$ac_cv_path_EGREP"; then
 6386:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 6387:   fi
 6388: else
 6389:   ac_cv_path_EGREP=$EGREP
 6390: fi
 6391: 
 6392:    fi
 6393: fi
 6394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 6395: $as_echo "$ac_cv_path_EGREP" >&6; }
 6396:  EGREP="$ac_cv_path_EGREP"
 6397: 
 6398: 
 6399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 6400: $as_echo_n "checking for fgrep... " >&6; }
 6401: if ${ac_cv_path_FGREP+:} false; then :
 6402:   $as_echo_n "(cached) " >&6
 6403: else
 6404:   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 6405:    then ac_cv_path_FGREP="$GREP -F"
 6406:    else
 6407:      if test -z "$FGREP"; then
 6408:   ac_path_FGREP_found=false
 6409:   # Loop through the user's path and test for each of PROGNAME-LIST
 6410:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6411: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 6412: do
 6413:   IFS=$as_save_IFS
 6414:   test -z "$as_dir" && as_dir=.
 6415:     for ac_prog in fgrep; do
 6416:     for ac_exec_ext in '' $ac_executable_extensions; do
 6417:       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 6418:       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 6419: # Check for GNU ac_path_FGREP and select it if it is found.
 6420:   # Check for GNU $ac_path_FGREP
 6421: case `"$ac_path_FGREP" --version 2>&1` in
 6422: *GNU*)
 6423:   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 6424: *)
 6425:   ac_count=0
 6426:   $as_echo_n 0123456789 >"conftest.in"
 6427:   while :
 6428:   do
 6429:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 6430:     mv "conftest.tmp" "conftest.in"
 6431:     cp "conftest.in" "conftest.nl"
 6432:     $as_echo 'FGREP' >> "conftest.nl"
 6433:     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 6434:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 6435:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 6436:     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 6437:       # Best one so far, save it but keep looking for a better one
 6438:       ac_cv_path_FGREP="$ac_path_FGREP"
 6439:       ac_path_FGREP_max=$ac_count
 6440:     fi
 6441:     # 10*(2^10) chars as input seems more than enough
 6442:     test $ac_count -gt 10 && break
 6443:   done
 6444:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 6445: esac
 6446: 
 6447:       $ac_path_FGREP_found && break 3
 6448:     done
 6449:   done
 6450:   done
 6451: IFS=$as_save_IFS
 6452:   if test -z "$ac_cv_path_FGREP"; then
 6453:     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 6454:   fi
 6455: else
 6456:   ac_cv_path_FGREP=$FGREP
 6457: fi
 6458: 
 6459:    fi
 6460: fi
 6461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 6462: $as_echo "$ac_cv_path_FGREP" >&6; }
 6463:  FGREP="$ac_cv_path_FGREP"
 6464: 
 6465: 
 6466: test -z "$GREP" && GREP=grep
 6467: 
 6468: 
 6469: 
 6470: 
 6471: 
 6472: 
 6473: 
 6474: 
 6475: 
 6476: 
 6477: 
 6478: 
 6479: 
 6480: 
 6481: 
 6482: 
 6483: 
 6484: 
 6485: 
 6486: # Check whether --with-gnu-ld was given.
 6487: if test "${with_gnu_ld+set}" = set; then :
 6488:   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 6489: else
 6490:   with_gnu_ld=no
 6491: fi
 6492: 
 6493: ac_prog=ld
 6494: if test "$GCC" = yes; then
 6495:   # Check if gcc -print-prog-name=ld gives a path.
 6496:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 6497: $as_echo_n "checking for ld used by $CC... " >&6; }
 6498:   case $host in
 6499:   *-*-mingw*)
 6500:     # gcc leaves a trailing carriage return which upsets mingw
 6501:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 6502:   *)
 6503:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 6504:   esac
 6505:   case $ac_prog in
 6506:     # Accept absolute paths.
 6507:     [\\/]* | ?:[\\/]*)
 6508:       re_direlt='/[^/][^/]*/\.\./'
 6509:       # Canonicalize the pathname of ld
 6510:       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 6511:       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 6512: 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 6513:       done
 6514:       test -z "$LD" && LD="$ac_prog"
 6515:       ;;
 6516:   "")
 6517:     # If it fails, then pretend we aren't using GCC.
 6518:     ac_prog=ld
 6519:     ;;
 6520:   *)
 6521:     # If it is relative, then search for the first ld in PATH.
 6522:     with_gnu_ld=unknown
 6523:     ;;
 6524:   esac
 6525: elif test "$with_gnu_ld" = yes; then
 6526:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 6527: $as_echo_n "checking for GNU ld... " >&6; }
 6528: else
 6529:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 6530: $as_echo_n "checking for non-GNU ld... " >&6; }
 6531: fi
 6532: if ${lt_cv_path_LD+:} false; then :
 6533:   $as_echo_n "(cached) " >&6
 6534: else
 6535:   if test -z "$LD"; then
 6536:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 6537:   for ac_dir in $PATH; do
 6538:     IFS="$lt_save_ifs"
 6539:     test -z "$ac_dir" && ac_dir=.
 6540:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 6541:       lt_cv_path_LD="$ac_dir/$ac_prog"
 6542:       # Check to see if the program is GNU ld.  I'd rather use --version,
 6543:       # but apparently some variants of GNU ld only accept -v.
 6544:       # Break only if it was the GNU/non-GNU ld that we prefer.
 6545:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 6546:       *GNU* | *'with BFD'*)
 6547: 	test "$with_gnu_ld" != no && break
 6548: 	;;
 6549:       *)
 6550: 	test "$with_gnu_ld" != yes && break
 6551: 	;;
 6552:       esac
 6553:     fi
 6554:   done
 6555:   IFS="$lt_save_ifs"
 6556: else
 6557:   lt_cv_path_LD="$LD" # Let the user override the test with a path.
 6558: fi
 6559: fi
 6560: 
 6561: LD="$lt_cv_path_LD"
 6562: if test -n "$LD"; then
 6563:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 6564: $as_echo "$LD" >&6; }
 6565: else
 6566:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 6567: $as_echo "no" >&6; }
 6568: fi
 6569: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 6570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 6571: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 6572: if ${lt_cv_prog_gnu_ld+:} false; then :
 6573:   $as_echo_n "(cached) " >&6
 6574: else
 6575:   # I'd rather use --version here, but apparently some GNU lds only accept -v.
 6576: case `$LD -v 2>&1 </dev/null` in
 6577: *GNU* | *'with BFD'*)
 6578:   lt_cv_prog_gnu_ld=yes
 6579:   ;;
 6580: *)
 6581:   lt_cv_prog_gnu_ld=no
 6582:   ;;
 6583: esac
 6584: fi
 6585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 6586: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
 6587: with_gnu_ld=$lt_cv_prog_gnu_ld
 6588: 
 6589: 
 6590: 
 6591: 
 6592: 
 6593: 
 6594: 
 6595: 
 6596: 
 6597: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 6598: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 6599: if ${lt_cv_path_NM+:} false; then :
 6600:   $as_echo_n "(cached) " >&6
 6601: else
 6602:   if test -n "$NM"; then
 6603:   # Let the user override the test.
 6604:   lt_cv_path_NM="$NM"
 6605: else
 6606:   lt_nm_to_check="${ac_tool_prefix}nm"
 6607:   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 6608:     lt_nm_to_check="$lt_nm_to_check nm"
 6609:   fi
 6610:   for lt_tmp_nm in $lt_nm_to_check; do
 6611:     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 6612:     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 6613:       IFS="$lt_save_ifs"
 6614:       test -z "$ac_dir" && ac_dir=.
 6615:       tmp_nm="$ac_dir/$lt_tmp_nm"
 6616:       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 6617: 	# Check to see if the nm accepts a BSD-compat flag.
 6618: 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
 6619: 	#   nm: unknown option "B" ignored
 6620: 	# Tru64's nm complains that /dev/null is an invalid object file
 6621: 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 6622: 	*/dev/null* | *'Invalid file or object type'*)
 6623: 	  lt_cv_path_NM="$tmp_nm -B"
 6624: 	  break
 6625: 	  ;;
 6626: 	*)
 6627: 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 6628: 	  */dev/null*)
 6629: 	    lt_cv_path_NM="$tmp_nm -p"
 6630: 	    break
 6631: 	    ;;
 6632: 	  *)
 6633: 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 6634: 	    continue # so that we can try to find one that supports BSD flags
 6635: 	    ;;
 6636: 	  esac
 6637: 	  ;;
 6638: 	esac
 6639:       fi
 6640:     done
 6641:     IFS="$lt_save_ifs"
 6642:   done
 6643:   : ${lt_cv_path_NM=no}
 6644: fi
 6645: fi
 6646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 6647: $as_echo "$lt_cv_path_NM" >&6; }
 6648: if test "$lt_cv_path_NM" != "no"; then
 6649:   NM="$lt_cv_path_NM"
 6650: else
 6651:   # Didn't find any BSD compatible name lister, look for dumpbin.
 6652:   if test -n "$DUMPBIN"; then :
 6653:     # Let the user override the test.
 6654:   else
 6655:     if test -n "$ac_tool_prefix"; then
 6656:   for ac_prog in dumpbin "link -dump"
 6657:   do
 6658:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 6659: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 6660: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 6661: $as_echo_n "checking for $ac_word... " >&6; }
 6662: if ${ac_cv_prog_DUMPBIN+:} false; then :
 6663:   $as_echo_n "(cached) " >&6
 6664: else
 6665:   if test -n "$DUMPBIN"; then
 6666:   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 6667: else
 6668: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6669: for as_dir in $PATH
 6670: do
 6671:   IFS=$as_save_IFS
 6672:   test -z "$as_dir" && as_dir=.
 6673:     for ac_exec_ext in '' $ac_executable_extensions; do
 6674:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 6675:     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 6676:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 6677:     break 2
 6678:   fi
 6679: done
 6680:   done
 6681: IFS=$as_save_IFS
 6682: 
 6683: fi
 6684: fi
 6685: DUMPBIN=$ac_cv_prog_DUMPBIN
 6686: if test -n "$DUMPBIN"; then
 6687:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 6688: $as_echo "$DUMPBIN" >&6; }
 6689: else
 6690:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 6691: $as_echo "no" >&6; }
 6692: fi
 6693: 
 6694: 
 6695:     test -n "$DUMPBIN" && break
 6696:   done
 6697: fi
 6698: if test -z "$DUMPBIN"; then
 6699:   ac_ct_DUMPBIN=$DUMPBIN
 6700:   for ac_prog in dumpbin "link -dump"
 6701: do
 6702:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 6703: set dummy $ac_prog; ac_word=$2
 6704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 6705: $as_echo_n "checking for $ac_word... " >&6; }
 6706: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 6707:   $as_echo_n "(cached) " >&6
 6708: else
 6709:   if test -n "$ac_ct_DUMPBIN"; then
 6710:   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 6711: else
 6712: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6713: for as_dir in $PATH
 6714: do
 6715:   IFS=$as_save_IFS
 6716:   test -z "$as_dir" && as_dir=.
 6717:     for ac_exec_ext in '' $ac_executable_extensions; do
 6718:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 6719:     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 6720:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 6721:     break 2
 6722:   fi
 6723: done
 6724:   done
 6725: IFS=$as_save_IFS
 6726: 
 6727: fi
 6728: fi
 6729: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 6730: if test -n "$ac_ct_DUMPBIN"; then
 6731:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 6732: $as_echo "$ac_ct_DUMPBIN" >&6; }
 6733: else
 6734:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 6735: $as_echo "no" >&6; }
 6736: fi
 6737: 
 6738: 
 6739:   test -n "$ac_ct_DUMPBIN" && break
 6740: done
 6741: 
 6742:   if test "x$ac_ct_DUMPBIN" = x; then
 6743:     DUMPBIN=":"
 6744:   else
 6745:     case $cross_compiling:$ac_tool_warned in
 6746: yes:)
 6747: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 6748: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 6749: ac_tool_warned=yes ;;
 6750: esac
 6751:     DUMPBIN=$ac_ct_DUMPBIN
 6752:   fi
 6753: fi
 6754: 
 6755:     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 6756:     *COFF*)
 6757:       DUMPBIN="$DUMPBIN -symbols"
 6758:       ;;
 6759:     *)
 6760:       DUMPBIN=:
 6761:       ;;
 6762:     esac
 6763:   fi
 6764: 
 6765:   if test "$DUMPBIN" != ":"; then
 6766:     NM="$DUMPBIN"
 6767:   fi
 6768: fi
 6769: test -z "$NM" && NM=nm
 6770: 
 6771: 
 6772: 
 6773: 
 6774: 
 6775: 
 6776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 6777: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
 6778: if ${lt_cv_nm_interface+:} false; then :
 6779:   $as_echo_n "(cached) " >&6
 6780: else
 6781:   lt_cv_nm_interface="BSD nm"
 6782:   echo "int some_variable = 0;" > conftest.$ac_ext
 6783:   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 6784:   (eval "$ac_compile" 2>conftest.err)
 6785:   cat conftest.err >&5
 6786:   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 6787:   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 6788:   cat conftest.err >&5
 6789:   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 6790:   cat conftest.out >&5
 6791:   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 6792:     lt_cv_nm_interface="MS dumpbin"
 6793:   fi
 6794:   rm -f conftest*
 6795: fi
 6796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 6797: $as_echo "$lt_cv_nm_interface" >&6; }
 6798: 
 6799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 6800: $as_echo_n "checking whether ln -s works... " >&6; }
 6801: LN_S=$as_ln_s
 6802: if test "$LN_S" = "ln -s"; then
 6803:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 6804: $as_echo "yes" >&6; }
 6805: else
 6806:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 6807: $as_echo "no, using $LN_S" >&6; }
 6808: fi
 6809: 
 6810: # find the maximum length of command line arguments
 6811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 6812: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
 6813: if ${lt_cv_sys_max_cmd_len+:} false; then :
 6814:   $as_echo_n "(cached) " >&6
 6815: else
 6816:     i=0
 6817:   teststring="ABCD"
 6818: 
 6819:   case $build_os in
 6820:   msdosdjgpp*)
 6821:     # On DJGPP, this test can blow up pretty badly due to problems in libc
 6822:     # (any single argument exceeding 2000 bytes causes a buffer overrun
 6823:     # during glob expansion).  Even if it were fixed, the result of this
 6824:     # check would be larger than it should be.
 6825:     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 6826:     ;;
 6827: 
 6828:   gnu*)
 6829:     # Under GNU Hurd, this test is not required because there is
 6830:     # no limit to the length of command line arguments.
 6831:     # Libtool will interpret -1 as no limit whatsoever
 6832:     lt_cv_sys_max_cmd_len=-1;
 6833:     ;;
 6834: 
 6835:   cygwin* | mingw* | cegcc*)
 6836:     # On Win9x/ME, this test blows up -- it succeeds, but takes
 6837:     # about 5 minutes as the teststring grows exponentially.
 6838:     # Worse, since 9x/ME are not pre-emptively multitasking,
 6839:     # you end up with a "frozen" computer, even though with patience
 6840:     # the test eventually succeeds (with a max line length of 256k).
 6841:     # Instead, let's just punt: use the minimum linelength reported by
 6842:     # all of the supported platforms: 8192 (on NT/2K/XP).
 6843:     lt_cv_sys_max_cmd_len=8192;
 6844:     ;;
 6845: 
 6846:   mint*)
 6847:     # On MiNT this can take a long time and run out of memory.
 6848:     lt_cv_sys_max_cmd_len=8192;
 6849:     ;;
 6850: 
 6851:   amigaos*)
 6852:     # On AmigaOS with pdksh, this test takes hours, literally.
 6853:     # So we just punt and use a minimum line length of 8192.
 6854:     lt_cv_sys_max_cmd_len=8192;
 6855:     ;;
 6856: 
 6857:   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 6858:     # This has been around since 386BSD, at least.  Likely further.
 6859:     if test -x /sbin/sysctl; then
 6860:       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 6861:     elif test -x /usr/sbin/sysctl; then
 6862:       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 6863:     else
 6864:       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
 6865:     fi
 6866:     # And add a safety zone
 6867:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 6868:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 6869:     ;;
 6870: 
 6871:   interix*)
 6872:     # We know the value 262144 and hardcode it with a safety zone (like BSD)
 6873:     lt_cv_sys_max_cmd_len=196608
 6874:     ;;
 6875: 
 6876:   os2*)
 6877:     # The test takes a long time on OS/2.
 6878:     lt_cv_sys_max_cmd_len=8192
 6879:     ;;
 6880: 
 6881:   osf*)
 6882:     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 6883:     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 6884:     # nice to cause kernel panics so lets avoid the loop below.
 6885:     # First set a reasonable default.
 6886:     lt_cv_sys_max_cmd_len=16384
 6887:     #
 6888:     if test -x /sbin/sysconfig; then
 6889:       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 6890:         *1*) lt_cv_sys_max_cmd_len=-1 ;;
 6891:       esac
 6892:     fi
 6893:     ;;
 6894:   sco3.2v5*)
 6895:     lt_cv_sys_max_cmd_len=102400
 6896:     ;;
 6897:   sysv5* | sco5v6* | sysv4.2uw2*)
 6898:     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 6899:     if test -n "$kargmax"; then
 6900:       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
 6901:     else
 6902:       lt_cv_sys_max_cmd_len=32768
 6903:     fi
 6904:     ;;
 6905:   *)
 6906:     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 6907:     if test -n "$lt_cv_sys_max_cmd_len"; then
 6908:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 6909:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 6910:     else
 6911:       # Make teststring a little bigger before we do anything with it.
 6912:       # a 1K string should be a reasonable start.
 6913:       for i in 1 2 3 4 5 6 7 8 ; do
 6914:         teststring=$teststring$teststring
 6915:       done
 6916:       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 6917:       # If test is not a shell built-in, we'll probably end up computing a
 6918:       # maximum length that is only half of the actual maximum length, but
 6919:       # we can't tell.
 6920:       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 6921: 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 6922: 	      test $i != 17 # 1/2 MB should be enough
 6923:       do
 6924:         i=`expr $i + 1`
 6925:         teststring=$teststring$teststring
 6926:       done
 6927:       # Only check the string length outside the loop.
 6928:       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 6929:       teststring=
 6930:       # Add a significant safety factor because C++ compilers can tack on
 6931:       # massive amounts of additional arguments before passing them to the
 6932:       # linker.  It appears as though 1/2 is a usable value.
 6933:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 6934:     fi
 6935:     ;;
 6936:   esac
 6937: 
 6938: fi
 6939: 
 6940: if test -n $lt_cv_sys_max_cmd_len ; then
 6941:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 6942: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 6943: else
 6944:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 6945: $as_echo "none" >&6; }
 6946: fi
 6947: max_cmd_len=$lt_cv_sys_max_cmd_len
 6948: 
 6949: 
 6950: 
 6951: 
 6952: 
 6953: 
 6954: : ${CP="cp -f"}
 6955: : ${MV="mv -f"}
 6956: : ${RM="rm -f"}
 6957: 
 6958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 6959: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 6960: # Try some XSI features
 6961: xsi_shell=no
 6962: ( _lt_dummy="a/b/c"
 6963:   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 6964:       = c,a/b,b/c, \
 6965:     && eval 'test $(( 1 + 1 )) -eq 2 \
 6966:     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 6967:   && xsi_shell=yes
 6968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 6969: $as_echo "$xsi_shell" >&6; }
 6970: 
 6971: 
 6972: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 6973: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 6974: lt_shell_append=no
 6975: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 6976:     >/dev/null 2>&1 \
 6977:   && lt_shell_append=yes
 6978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 6979: $as_echo "$lt_shell_append" >&6; }
 6980: 
 6981: 
 6982: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 6983:   lt_unset=unset
 6984: else
 6985:   lt_unset=false
 6986: fi
 6987: 
 6988: 
 6989: 
 6990: 
 6991: 
 6992: # test EBCDIC or ASCII
 6993: case `echo X|tr X '\101'` in
 6994:  A) # ASCII based system
 6995:     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 6996:   lt_SP2NL='tr \040 \012'
 6997:   lt_NL2SP='tr \015\012 \040\040'
 6998:   ;;
 6999:  *) # EBCDIC based system
 7000:   lt_SP2NL='tr \100 \n'
 7001:   lt_NL2SP='tr \r\n \100\100'
 7002:   ;;
 7003: esac
 7004: 
 7005: 
 7006: 
 7007: 
 7008: 
 7009: 
 7010: 
 7011: 
 7012: 
 7013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 7014: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 7015: if ${lt_cv_to_host_file_cmd+:} false; then :
 7016:   $as_echo_n "(cached) " >&6
 7017: else
 7018:   case $host in
 7019:   *-*-mingw* )
 7020:     case $build in
 7021:       *-*-mingw* ) # actually msys
 7022:         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 7023:         ;;
 7024:       *-*-cygwin* )
 7025:         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 7026:         ;;
 7027:       * ) # otherwise, assume *nix
 7028:         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 7029:         ;;
 7030:     esac
 7031:     ;;
 7032:   *-*-cygwin* )
 7033:     case $build in
 7034:       *-*-mingw* ) # actually msys
 7035:         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 7036:         ;;
 7037:       *-*-cygwin* )
 7038:         lt_cv_to_host_file_cmd=func_convert_file_noop
 7039:         ;;
 7040:       * ) # otherwise, assume *nix
 7041:         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 7042:         ;;
 7043:     esac
 7044:     ;;
 7045:   * ) # unhandled hosts (and "normal" native builds)
 7046:     lt_cv_to_host_file_cmd=func_convert_file_noop
 7047:     ;;
 7048: esac
 7049: 
 7050: fi
 7051: 
 7052: to_host_file_cmd=$lt_cv_to_host_file_cmd
 7053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 7054: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
 7055: 
 7056: 
 7057: 
 7058: 
 7059: 
 7060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 7061: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 7062: if ${lt_cv_to_tool_file_cmd+:} false; then :
 7063:   $as_echo_n "(cached) " >&6
 7064: else
 7065:   #assume ordinary cross tools, or native build.
 7066: lt_cv_to_tool_file_cmd=func_convert_file_noop
 7067: case $host in
 7068:   *-*-mingw* )
 7069:     case $build in
 7070:       *-*-mingw* ) # actually msys
 7071:         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 7072:         ;;
 7073:     esac
 7074:     ;;
 7075: esac
 7076: 
 7077: fi
 7078: 
 7079: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 7080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 7081: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 7082: 
 7083: 
 7084: 
 7085: 
 7086: 
 7087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 7088: $as_echo_n "checking for $LD option to reload object files... " >&6; }
 7089: if ${lt_cv_ld_reload_flag+:} false; then :
 7090:   $as_echo_n "(cached) " >&6
 7091: else
 7092:   lt_cv_ld_reload_flag='-r'
 7093: fi
 7094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 7095: $as_echo "$lt_cv_ld_reload_flag" >&6; }
 7096: reload_flag=$lt_cv_ld_reload_flag
 7097: case $reload_flag in
 7098: "" | " "*) ;;
 7099: *) reload_flag=" $reload_flag" ;;
 7100: esac
 7101: reload_cmds='$LD$reload_flag -o $output$reload_objs'
 7102: case $host_os in
 7103:   cygwin* | mingw* | pw32* | cegcc*)
 7104:     if test "$GCC" != yes; then
 7105:       reload_cmds=false
 7106:     fi
 7107:     ;;
 7108:   darwin*)
 7109:     if test "$GCC" = yes; then
 7110:       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 7111:     else
 7112:       reload_cmds='$LD$reload_flag -o $output$reload_objs'
 7113:     fi
 7114:     ;;
 7115: esac
 7116: 
 7117: 
 7118: 
 7119: 
 7120: 
 7121: 
 7122: 
 7123: 
 7124: 
 7125: if test -n "$ac_tool_prefix"; then
 7126:   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 7127: set dummy ${ac_tool_prefix}objdump; ac_word=$2
 7128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7129: $as_echo_n "checking for $ac_word... " >&6; }
 7130: if ${ac_cv_prog_OBJDUMP+:} false; then :
 7131:   $as_echo_n "(cached) " >&6
 7132: else
 7133:   if test -n "$OBJDUMP"; then
 7134:   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 7135: else
 7136: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7137: for as_dir in $PATH
 7138: do
 7139:   IFS=$as_save_IFS
 7140:   test -z "$as_dir" && as_dir=.
 7141:     for ac_exec_ext in '' $ac_executable_extensions; do
 7142:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7143:     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 7144:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7145:     break 2
 7146:   fi
 7147: done
 7148:   done
 7149: IFS=$as_save_IFS
 7150: 
 7151: fi
 7152: fi
 7153: OBJDUMP=$ac_cv_prog_OBJDUMP
 7154: if test -n "$OBJDUMP"; then
 7155:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 7156: $as_echo "$OBJDUMP" >&6; }
 7157: else
 7158:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7159: $as_echo "no" >&6; }
 7160: fi
 7161: 
 7162: 
 7163: fi
 7164: if test -z "$ac_cv_prog_OBJDUMP"; then
 7165:   ac_ct_OBJDUMP=$OBJDUMP
 7166:   # Extract the first word of "objdump", so it can be a program name with args.
 7167: set dummy objdump; ac_word=$2
 7168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7169: $as_echo_n "checking for $ac_word... " >&6; }
 7170: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 7171:   $as_echo_n "(cached) " >&6
 7172: else
 7173:   if test -n "$ac_ct_OBJDUMP"; then
 7174:   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 7175: else
 7176: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7177: for as_dir in $PATH
 7178: do
 7179:   IFS=$as_save_IFS
 7180:   test -z "$as_dir" && as_dir=.
 7181:     for ac_exec_ext in '' $ac_executable_extensions; do
 7182:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7183:     ac_cv_prog_ac_ct_OBJDUMP="objdump"
 7184:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7185:     break 2
 7186:   fi
 7187: done
 7188:   done
 7189: IFS=$as_save_IFS
 7190: 
 7191: fi
 7192: fi
 7193: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 7194: if test -n "$ac_ct_OBJDUMP"; then
 7195:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 7196: $as_echo "$ac_ct_OBJDUMP" >&6; }
 7197: else
 7198:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7199: $as_echo "no" >&6; }
 7200: fi
 7201: 
 7202:   if test "x$ac_ct_OBJDUMP" = x; then
 7203:     OBJDUMP="false"
 7204:   else
 7205:     case $cross_compiling:$ac_tool_warned in
 7206: yes:)
 7207: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 7208: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 7209: ac_tool_warned=yes ;;
 7210: esac
 7211:     OBJDUMP=$ac_ct_OBJDUMP
 7212:   fi
 7213: else
 7214:   OBJDUMP="$ac_cv_prog_OBJDUMP"
 7215: fi
 7216: 
 7217: test -z "$OBJDUMP" && OBJDUMP=objdump
 7218: 
 7219: 
 7220: 
 7221: 
 7222: 
 7223: 
 7224: 
 7225: 
 7226: 
 7227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 7228: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
 7229: if ${lt_cv_deplibs_check_method+:} false; then :
 7230:   $as_echo_n "(cached) " >&6
 7231: else
 7232:   lt_cv_file_magic_cmd='$MAGIC_CMD'
 7233: lt_cv_file_magic_test_file=
 7234: lt_cv_deplibs_check_method='unknown'
 7235: # Need to set the preceding variable on all platforms that support
 7236: # interlibrary dependencies.
 7237: # 'none' -- dependencies not supported.
 7238: # `unknown' -- same as none, but documents that we really don't know.
 7239: # 'pass_all' -- all dependencies passed with no checks.
 7240: # 'test_compile' -- check by making test program.
 7241: # 'file_magic [[regex]]' -- check by looking for files in library path
 7242: # which responds to the $file_magic_cmd with a given extended regex.
 7243: # If you have `file' or equivalent on your system and you're not sure
 7244: # whether `pass_all' will *always* work, you probably want this one.
 7245: 
 7246: case $host_os in
 7247: aix[4-9]*)
 7248:   lt_cv_deplibs_check_method=pass_all
 7249:   ;;
 7250: 
 7251: beos*)
 7252:   lt_cv_deplibs_check_method=pass_all
 7253:   ;;
 7254: 
 7255: bsdi[45]*)
 7256:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 7257:   lt_cv_file_magic_cmd='/usr/bin/file -L'
 7258:   lt_cv_file_magic_test_file=/shlib/libc.so
 7259:   ;;
 7260: 
 7261: cygwin*)
 7262:   # func_win32_libid is a shell function defined in ltmain.sh
 7263:   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 7264:   lt_cv_file_magic_cmd='func_win32_libid'
 7265:   ;;
 7266: 
 7267: mingw* | pw32*)
 7268:   # Base MSYS/MinGW do not provide the 'file' command needed by
 7269:   # func_win32_libid shell function, so use a weaker test based on 'objdump',
 7270:   # unless we find 'file', for example because we are cross-compiling.
 7271:   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 7272:   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 7273:     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 7274:     lt_cv_file_magic_cmd='func_win32_libid'
 7275:   else
 7276:     # Keep this pattern in sync with the one in func_win32_libid.
 7277:     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 7278:     lt_cv_file_magic_cmd='$OBJDUMP -f'
 7279:   fi
 7280:   ;;
 7281: 
 7282: cegcc*)
 7283:   # use the weaker test based on 'objdump'. See mingw*.
 7284:   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 7285:   lt_cv_file_magic_cmd='$OBJDUMP -f'
 7286:   ;;
 7287: 
 7288: darwin* | rhapsody*)
 7289:   lt_cv_deplibs_check_method=pass_all
 7290:   ;;
 7291: 
 7292: freebsd* | dragonfly*)
 7293:   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 7294:     case $host_cpu in
 7295:     i*86 )
 7296:       # Not sure whether the presence of OpenBSD here was a mistake.
 7297:       # Let's accept both of them until this is cleared up.
 7298:       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 7299:       lt_cv_file_magic_cmd=/usr/bin/file
 7300:       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 7301:       ;;
 7302:     esac
 7303:   else
 7304:     lt_cv_deplibs_check_method=pass_all
 7305:   fi
 7306:   ;;
 7307: 
 7308: gnu*)
 7309:   lt_cv_deplibs_check_method=pass_all
 7310:   ;;
 7311: 
 7312: haiku*)
 7313:   lt_cv_deplibs_check_method=pass_all
 7314:   ;;
 7315: 
 7316: hpux10.20* | hpux11*)
 7317:   lt_cv_file_magic_cmd=/usr/bin/file
 7318:   case $host_cpu in
 7319:   ia64*)
 7320:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 7321:     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 7322:     ;;
 7323:   hppa*64*)
 7324:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
 7325:     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 7326:     ;;
 7327:   *)
 7328:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 7329:     lt_cv_file_magic_test_file=/usr/lib/libc.sl
 7330:     ;;
 7331:   esac
 7332:   ;;
 7333: 
 7334: interix[3-9]*)
 7335:   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 7336:   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 7337:   ;;
 7338: 
 7339: irix5* | irix6* | nonstopux*)
 7340:   case $LD in
 7341:   *-32|*"-32 ") libmagic=32-bit;;
 7342:   *-n32|*"-n32 ") libmagic=N32;;
 7343:   *-64|*"-64 ") libmagic=64-bit;;
 7344:   *) libmagic=never-match;;
 7345:   esac
 7346:   lt_cv_deplibs_check_method=pass_all
 7347:   ;;
 7348: 
 7349: # This must be glibc/ELF.
 7350: linux* | k*bsd*-gnu | kopensolaris*-gnu)
 7351:   lt_cv_deplibs_check_method=pass_all
 7352:   ;;
 7353: 
 7354: netbsd*)
 7355:   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 7356:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 7357:   else
 7358:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 7359:   fi
 7360:   ;;
 7361: 
 7362: newos6*)
 7363:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 7364:   lt_cv_file_magic_cmd=/usr/bin/file
 7365:   lt_cv_file_magic_test_file=/usr/lib/libnls.so
 7366:   ;;
 7367: 
 7368: *nto* | *qnx*)
 7369:   lt_cv_deplibs_check_method=pass_all
 7370:   ;;
 7371: 
 7372: openbsd*)
 7373:   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 7374:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 7375:   else
 7376:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 7377:   fi
 7378:   ;;
 7379: 
 7380: osf3* | osf4* | osf5*)
 7381:   lt_cv_deplibs_check_method=pass_all
 7382:   ;;
 7383: 
 7384: rdos*)
 7385:   lt_cv_deplibs_check_method=pass_all
 7386:   ;;
 7387: 
 7388: solaris*)
 7389:   lt_cv_deplibs_check_method=pass_all
 7390:   ;;
 7391: 
 7392: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 7393:   lt_cv_deplibs_check_method=pass_all
 7394:   ;;
 7395: 
 7396: sysv4 | sysv4.3*)
 7397:   case $host_vendor in
 7398:   motorola)
 7399:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 7400:     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 7401:     ;;
 7402:   ncr)
 7403:     lt_cv_deplibs_check_method=pass_all
 7404:     ;;
 7405:   sequent)
 7406:     lt_cv_file_magic_cmd='/bin/file'
 7407:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 7408:     ;;
 7409:   sni)
 7410:     lt_cv_file_magic_cmd='/bin/file'
 7411:     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 7412:     lt_cv_file_magic_test_file=/lib/libc.so
 7413:     ;;
 7414:   siemens)
 7415:     lt_cv_deplibs_check_method=pass_all
 7416:     ;;
 7417:   pc)
 7418:     lt_cv_deplibs_check_method=pass_all
 7419:     ;;
 7420:   esac
 7421:   ;;
 7422: 
 7423: tpf*)
 7424:   lt_cv_deplibs_check_method=pass_all
 7425:   ;;
 7426: esac
 7427: 
 7428: fi
 7429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 7430: $as_echo "$lt_cv_deplibs_check_method" >&6; }
 7431: 
 7432: file_magic_glob=
 7433: want_nocaseglob=no
 7434: if test "$build" = "$host"; then
 7435:   case $host_os in
 7436:   mingw* | pw32*)
 7437:     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 7438:       want_nocaseglob=yes
 7439:     else
 7440:       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 7441:     fi
 7442:     ;;
 7443:   esac
 7444: fi
 7445: 
 7446: file_magic_cmd=$lt_cv_file_magic_cmd
 7447: deplibs_check_method=$lt_cv_deplibs_check_method
 7448: test -z "$deplibs_check_method" && deplibs_check_method=unknown
 7449: 
 7450: 
 7451: 
 7452: 
 7453: 
 7454: 
 7455: 
 7456: 
 7457: 
 7458: 
 7459: 
 7460: 
 7461: 
 7462: 
 7463: 
 7464: 
 7465: 
 7466: 
 7467: 
 7468: 
 7469: 
 7470: 
 7471: if test -n "$ac_tool_prefix"; then
 7472:   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 7473: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 7474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7475: $as_echo_n "checking for $ac_word... " >&6; }
 7476: if ${ac_cv_prog_DLLTOOL+:} false; then :
 7477:   $as_echo_n "(cached) " >&6
 7478: else
 7479:   if test -n "$DLLTOOL"; then
 7480:   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 7481: else
 7482: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7483: for as_dir in $PATH
 7484: do
 7485:   IFS=$as_save_IFS
 7486:   test -z "$as_dir" && as_dir=.
 7487:     for ac_exec_ext in '' $ac_executable_extensions; do
 7488:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7489:     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 7490:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7491:     break 2
 7492:   fi
 7493: done
 7494:   done
 7495: IFS=$as_save_IFS
 7496: 
 7497: fi
 7498: fi
 7499: DLLTOOL=$ac_cv_prog_DLLTOOL
 7500: if test -n "$DLLTOOL"; then
 7501:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 7502: $as_echo "$DLLTOOL" >&6; }
 7503: else
 7504:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7505: $as_echo "no" >&6; }
 7506: fi
 7507: 
 7508: 
 7509: fi
 7510: if test -z "$ac_cv_prog_DLLTOOL"; then
 7511:   ac_ct_DLLTOOL=$DLLTOOL
 7512:   # Extract the first word of "dlltool", so it can be a program name with args.
 7513: set dummy dlltool; ac_word=$2
 7514: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7515: $as_echo_n "checking for $ac_word... " >&6; }
 7516: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 7517:   $as_echo_n "(cached) " >&6
 7518: else
 7519:   if test -n "$ac_ct_DLLTOOL"; then
 7520:   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 7521: else
 7522: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7523: for as_dir in $PATH
 7524: do
 7525:   IFS=$as_save_IFS
 7526:   test -z "$as_dir" && as_dir=.
 7527:     for ac_exec_ext in '' $ac_executable_extensions; do
 7528:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7529:     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 7530:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7531:     break 2
 7532:   fi
 7533: done
 7534:   done
 7535: IFS=$as_save_IFS
 7536: 
 7537: fi
 7538: fi
 7539: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 7540: if test -n "$ac_ct_DLLTOOL"; then
 7541:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 7542: $as_echo "$ac_ct_DLLTOOL" >&6; }
 7543: else
 7544:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7545: $as_echo "no" >&6; }
 7546: fi
 7547: 
 7548:   if test "x$ac_ct_DLLTOOL" = x; then
 7549:     DLLTOOL="false"
 7550:   else
 7551:     case $cross_compiling:$ac_tool_warned in
 7552: yes:)
 7553: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 7554: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 7555: ac_tool_warned=yes ;;
 7556: esac
 7557:     DLLTOOL=$ac_ct_DLLTOOL
 7558:   fi
 7559: else
 7560:   DLLTOOL="$ac_cv_prog_DLLTOOL"
 7561: fi
 7562: 
 7563: test -z "$DLLTOOL" && DLLTOOL=dlltool
 7564: 
 7565: 
 7566: 
 7567: 
 7568: 
 7569: 
 7570: 
 7571: 
 7572: 
 7573: 
 7574: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 7575: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 7576: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 7577:   $as_echo_n "(cached) " >&6
 7578: else
 7579:   lt_cv_sharedlib_from_linklib_cmd='unknown'
 7580: 
 7581: case $host_os in
 7582: cygwin* | mingw* | pw32* | cegcc*)
 7583:   # two different shell functions defined in ltmain.sh
 7584:   # decide which to use based on capabilities of $DLLTOOL
 7585:   case `$DLLTOOL --help 2>&1` in
 7586:   *--identify-strict*)
 7587:     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 7588:     ;;
 7589:   *)
 7590:     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 7591:     ;;
 7592:   esac
 7593:   ;;
 7594: *)
 7595:   # fallback: assume linklib IS sharedlib
 7596:   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 7597:   ;;
 7598: esac
 7599: 
 7600: fi
 7601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 7602: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 7603: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 7604: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 7605: 
 7606: 
 7607: 
 7608: 
 7609: 
 7610: 
 7611: 
 7612: if test -n "$ac_tool_prefix"; then
 7613:   for ac_prog in ar
 7614:   do
 7615:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 7616: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 7617: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7618: $as_echo_n "checking for $ac_word... " >&6; }
 7619: if ${ac_cv_prog_AR+:} false; then :
 7620:   $as_echo_n "(cached) " >&6
 7621: else
 7622:   if test -n "$AR"; then
 7623:   ac_cv_prog_AR="$AR" # Let the user override the test.
 7624: else
 7625: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7626: for as_dir in $PATH
 7627: do
 7628:   IFS=$as_save_IFS
 7629:   test -z "$as_dir" && as_dir=.
 7630:     for ac_exec_ext in '' $ac_executable_extensions; do
 7631:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7632:     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 7633:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7634:     break 2
 7635:   fi
 7636: done
 7637:   done
 7638: IFS=$as_save_IFS
 7639: 
 7640: fi
 7641: fi
 7642: AR=$ac_cv_prog_AR
 7643: if test -n "$AR"; then
 7644:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 7645: $as_echo "$AR" >&6; }
 7646: else
 7647:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7648: $as_echo "no" >&6; }
 7649: fi
 7650: 
 7651: 
 7652:     test -n "$AR" && break
 7653:   done
 7654: fi
 7655: if test -z "$AR"; then
 7656:   ac_ct_AR=$AR
 7657:   for ac_prog in ar
 7658: do
 7659:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 7660: set dummy $ac_prog; ac_word=$2
 7661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7662: $as_echo_n "checking for $ac_word... " >&6; }
 7663: if ${ac_cv_prog_ac_ct_AR+:} false; then :
 7664:   $as_echo_n "(cached) " >&6
 7665: else
 7666:   if test -n "$ac_ct_AR"; then
 7667:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 7668: else
 7669: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7670: for as_dir in $PATH
 7671: do
 7672:   IFS=$as_save_IFS
 7673:   test -z "$as_dir" && as_dir=.
 7674:     for ac_exec_ext in '' $ac_executable_extensions; do
 7675:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7676:     ac_cv_prog_ac_ct_AR="$ac_prog"
 7677:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7678:     break 2
 7679:   fi
 7680: done
 7681:   done
 7682: IFS=$as_save_IFS
 7683: 
 7684: fi
 7685: fi
 7686: ac_ct_AR=$ac_cv_prog_ac_ct_AR
 7687: if test -n "$ac_ct_AR"; then
 7688:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 7689: $as_echo "$ac_ct_AR" >&6; }
 7690: else
 7691:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7692: $as_echo "no" >&6; }
 7693: fi
 7694: 
 7695: 
 7696:   test -n "$ac_ct_AR" && break
 7697: done
 7698: 
 7699:   if test "x$ac_ct_AR" = x; then
 7700:     AR="false"
 7701:   else
 7702:     case $cross_compiling:$ac_tool_warned in
 7703: yes:)
 7704: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 7705: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 7706: ac_tool_warned=yes ;;
 7707: esac
 7708:     AR=$ac_ct_AR
 7709:   fi
 7710: fi
 7711: 
 7712: : ${AR=ar}
 7713: : ${AR_FLAGS=cru}
 7714: 
 7715: 
 7716: 
 7717: 
 7718: 
 7719: 
 7720: 
 7721: 
 7722: 
 7723: 
 7724: 
 7725: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 7726: $as_echo_n "checking for archiver @FILE support... " >&6; }
 7727: if ${lt_cv_ar_at_file+:} false; then :
 7728:   $as_echo_n "(cached) " >&6
 7729: else
 7730:   lt_cv_ar_at_file=no
 7731:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 7732: /* end confdefs.h.  */
 7733: 
 7734: int
 7735: main ()
 7736: {
 7737: 
 7738:   ;
 7739:   return 0;
 7740: }
 7741: _ACEOF
 7742: if ac_fn_c_try_compile "$LINENO"; then :
 7743:   echo conftest.$ac_objext > conftest.lst
 7744:       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 7745:       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 7746:   (eval $lt_ar_try) 2>&5
 7747:   ac_status=$?
 7748:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 7749:   test $ac_status = 0; }
 7750:       if test "$ac_status" -eq 0; then
 7751: 	# Ensure the archiver fails upon bogus file names.
 7752: 	rm -f conftest.$ac_objext libconftest.a
 7753: 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 7754:   (eval $lt_ar_try) 2>&5
 7755:   ac_status=$?
 7756:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 7757:   test $ac_status = 0; }
 7758: 	if test "$ac_status" -ne 0; then
 7759:           lt_cv_ar_at_file=@
 7760:         fi
 7761:       fi
 7762:       rm -f conftest.* libconftest.a
 7763: 
 7764: fi
 7765: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 7766: 
 7767: fi
 7768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 7769: $as_echo "$lt_cv_ar_at_file" >&6; }
 7770: 
 7771: if test "x$lt_cv_ar_at_file" = xno; then
 7772:   archiver_list_spec=
 7773: else
 7774:   archiver_list_spec=$lt_cv_ar_at_file
 7775: fi
 7776: 
 7777: 
 7778: 
 7779: 
 7780: 
 7781: 
 7782: 
 7783: if test -n "$ac_tool_prefix"; then
 7784:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 7785: set dummy ${ac_tool_prefix}strip; ac_word=$2
 7786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7787: $as_echo_n "checking for $ac_word... " >&6; }
 7788: if ${ac_cv_prog_STRIP+:} false; then :
 7789:   $as_echo_n "(cached) " >&6
 7790: else
 7791:   if test -n "$STRIP"; then
 7792:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 7793: else
 7794: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7795: for as_dir in $PATH
 7796: do
 7797:   IFS=$as_save_IFS
 7798:   test -z "$as_dir" && as_dir=.
 7799:     for ac_exec_ext in '' $ac_executable_extensions; do
 7800:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7801:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 7802:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7803:     break 2
 7804:   fi
 7805: done
 7806:   done
 7807: IFS=$as_save_IFS
 7808: 
 7809: fi
 7810: fi
 7811: STRIP=$ac_cv_prog_STRIP
 7812: if test -n "$STRIP"; then
 7813:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 7814: $as_echo "$STRIP" >&6; }
 7815: else
 7816:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7817: $as_echo "no" >&6; }
 7818: fi
 7819: 
 7820: 
 7821: fi
 7822: if test -z "$ac_cv_prog_STRIP"; then
 7823:   ac_ct_STRIP=$STRIP
 7824:   # Extract the first word of "strip", so it can be a program name with args.
 7825: set dummy strip; ac_word=$2
 7826: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7827: $as_echo_n "checking for $ac_word... " >&6; }
 7828: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 7829:   $as_echo_n "(cached) " >&6
 7830: else
 7831:   if test -n "$ac_ct_STRIP"; then
 7832:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 7833: else
 7834: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7835: for as_dir in $PATH
 7836: do
 7837:   IFS=$as_save_IFS
 7838:   test -z "$as_dir" && as_dir=.
 7839:     for ac_exec_ext in '' $ac_executable_extensions; do
 7840:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7841:     ac_cv_prog_ac_ct_STRIP="strip"
 7842:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7843:     break 2
 7844:   fi
 7845: done
 7846:   done
 7847: IFS=$as_save_IFS
 7848: 
 7849: fi
 7850: fi
 7851: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 7852: if test -n "$ac_ct_STRIP"; then
 7853:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 7854: $as_echo "$ac_ct_STRIP" >&6; }
 7855: else
 7856:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7857: $as_echo "no" >&6; }
 7858: fi
 7859: 
 7860:   if test "x$ac_ct_STRIP" = x; then
 7861:     STRIP=":"
 7862:   else
 7863:     case $cross_compiling:$ac_tool_warned in
 7864: yes:)
 7865: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 7866: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 7867: ac_tool_warned=yes ;;
 7868: esac
 7869:     STRIP=$ac_ct_STRIP
 7870:   fi
 7871: else
 7872:   STRIP="$ac_cv_prog_STRIP"
 7873: fi
 7874: 
 7875: test -z "$STRIP" && STRIP=:
 7876: 
 7877: 
 7878: 
 7879: 
 7880: 
 7881: 
 7882: if test -n "$ac_tool_prefix"; then
 7883:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 7884: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 7885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7886: $as_echo_n "checking for $ac_word... " >&6; }
 7887: if ${ac_cv_prog_RANLIB+:} false; then :
 7888:   $as_echo_n "(cached) " >&6
 7889: else
 7890:   if test -n "$RANLIB"; then
 7891:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 7892: else
 7893: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7894: for as_dir in $PATH
 7895: do
 7896:   IFS=$as_save_IFS
 7897:   test -z "$as_dir" && as_dir=.
 7898:     for ac_exec_ext in '' $ac_executable_extensions; do
 7899:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7900:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 7901:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7902:     break 2
 7903:   fi
 7904: done
 7905:   done
 7906: IFS=$as_save_IFS
 7907: 
 7908: fi
 7909: fi
 7910: RANLIB=$ac_cv_prog_RANLIB
 7911: if test -n "$RANLIB"; then
 7912:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 7913: $as_echo "$RANLIB" >&6; }
 7914: else
 7915:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7916: $as_echo "no" >&6; }
 7917: fi
 7918: 
 7919: 
 7920: fi
 7921: if test -z "$ac_cv_prog_RANLIB"; then
 7922:   ac_ct_RANLIB=$RANLIB
 7923:   # Extract the first word of "ranlib", so it can be a program name with args.
 7924: set dummy ranlib; ac_word=$2
 7925: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7926: $as_echo_n "checking for $ac_word... " >&6; }
 7927: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 7928:   $as_echo_n "(cached) " >&6
 7929: else
 7930:   if test -n "$ac_ct_RANLIB"; then
 7931:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 7932: else
 7933: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7934: for as_dir in $PATH
 7935: do
 7936:   IFS=$as_save_IFS
 7937:   test -z "$as_dir" && as_dir=.
 7938:     for ac_exec_ext in '' $ac_executable_extensions; do
 7939:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7940:     ac_cv_prog_ac_ct_RANLIB="ranlib"
 7941:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7942:     break 2
 7943:   fi
 7944: done
 7945:   done
 7946: IFS=$as_save_IFS
 7947: 
 7948: fi
 7949: fi
 7950: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 7951: if test -n "$ac_ct_RANLIB"; then
 7952:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 7953: $as_echo "$ac_ct_RANLIB" >&6; }
 7954: else
 7955:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7956: $as_echo "no" >&6; }
 7957: fi
 7958: 
 7959:   if test "x$ac_ct_RANLIB" = x; then
 7960:     RANLIB=":"
 7961:   else
 7962:     case $cross_compiling:$ac_tool_warned in
 7963: yes:)
 7964: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 7965: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 7966: ac_tool_warned=yes ;;
 7967: esac
 7968:     RANLIB=$ac_ct_RANLIB
 7969:   fi
 7970: else
 7971:   RANLIB="$ac_cv_prog_RANLIB"
 7972: fi
 7973: 
 7974: test -z "$RANLIB" && RANLIB=:
 7975: 
 7976: 
 7977: 
 7978: 
 7979: 
 7980: 
 7981: # Determine commands to create old-style static archives.
 7982: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 7983: old_postinstall_cmds='chmod 644 $oldlib'
 7984: old_postuninstall_cmds=
 7985: 
 7986: if test -n "$RANLIB"; then
 7987:   case $host_os in
 7988:   openbsd*)
 7989:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 7990:     ;;
 7991:   *)
 7992:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 7993:     ;;
 7994:   esac
 7995:   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 7996: fi
 7997: 
 7998: case $host_os in
 7999:   darwin*)
 8000:     lock_old_archive_extraction=yes ;;
 8001:   *)
 8002:     lock_old_archive_extraction=no ;;
 8003: esac
 8004: 
 8005: 
 8006: 
 8007: 
 8008: 
 8009: 
 8010: 
 8011: 
 8012: 
 8013: 
 8014: 
 8015: 
 8016: 
 8017: 
 8018: 
 8019: 
 8020: 
 8021: 
 8022: 
 8023: 
 8024: 
 8025: for ac_prog in gawk mawk nawk awk
 8026: do
 8027:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 8028: set dummy $ac_prog; ac_word=$2
 8029: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8030: $as_echo_n "checking for $ac_word... " >&6; }
 8031: if ${ac_cv_prog_AWK+:} false; then :
 8032:   $as_echo_n "(cached) " >&6
 8033: else
 8034:   if test -n "$AWK"; then
 8035:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
 8036: else
 8037: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8038: for as_dir in $PATH
 8039: do
 8040:   IFS=$as_save_IFS
 8041:   test -z "$as_dir" && as_dir=.
 8042:     for ac_exec_ext in '' $ac_executable_extensions; do
 8043:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8044:     ac_cv_prog_AWK="$ac_prog"
 8045:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8046:     break 2
 8047:   fi
 8048: done
 8049:   done
 8050: IFS=$as_save_IFS
 8051: 
 8052: fi
 8053: fi
 8054: AWK=$ac_cv_prog_AWK
 8055: if test -n "$AWK"; then
 8056:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 8057: $as_echo "$AWK" >&6; }
 8058: else
 8059:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8060: $as_echo "no" >&6; }
 8061: fi
 8062: 
 8063: 
 8064:   test -n "$AWK" && break
 8065: done
 8066: 
 8067: 
 8068: 
 8069: 
 8070: 
 8071: 
 8072: 
 8073: 
 8074: 
 8075: 
 8076: 
 8077: 
 8078: 
 8079: 
 8080: 
 8081: 
 8082: 
 8083: 
 8084: 
 8085: # If no C compiler was specified, use CC.
 8086: LTCC=${LTCC-"$CC"}
 8087: 
 8088: # If no C compiler flags were specified, use CFLAGS.
 8089: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 8090: 
 8091: # Allow CC to be a program name with arguments.
 8092: compiler=$CC
 8093: 
 8094: 
 8095: # Check for command to grab the raw symbol name followed by C symbol from nm.
 8096: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 8097: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 8098: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 8099:   $as_echo_n "(cached) " >&6
 8100: else
 8101: 
 8102: # These are sane defaults that work on at least a few old systems.
 8103: # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 8104: 
 8105: # Character class describing NM global symbol codes.
 8106: symcode='[BCDEGRST]'
 8107: 
 8108: # Regexp to match symbols that can be accessed directly from C.
 8109: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 8110: 
 8111: # Define system-specific variables.
 8112: case $host_os in
 8113: aix*)
 8114:   symcode='[BCDT]'
 8115:   ;;
 8116: cygwin* | mingw* | pw32* | cegcc*)
 8117:   symcode='[ABCDGISTW]'
 8118:   ;;
 8119: hpux*)
 8120:   if test "$host_cpu" = ia64; then
 8121:     symcode='[ABCDEGRST]'
 8122:   fi
 8123:   ;;
 8124: irix* | nonstopux*)
 8125:   symcode='[BCDEGRST]'
 8126:   ;;
 8127: osf*)
 8128:   symcode='[BCDEGQRST]'
 8129:   ;;
 8130: solaris*)
 8131:   symcode='[BDRT]'
 8132:   ;;
 8133: sco3.2v5*)
 8134:   symcode='[DT]'
 8135:   ;;
 8136: sysv4.2uw2*)
 8137:   symcode='[DT]'
 8138:   ;;
 8139: sysv5* | sco5v6* | unixware* | OpenUNIX*)
 8140:   symcode='[ABDT]'
 8141:   ;;
 8142: sysv4)
 8143:   symcode='[DFNSTU]'
 8144:   ;;
 8145: esac
 8146: 
 8147: # If we're using GNU nm, then use its standard symbol codes.
 8148: case `$NM -V 2>&1` in
 8149: *GNU* | *'with BFD'*)
 8150:   symcode='[ABCDGIRSTW]' ;;
 8151: esac
 8152: 
 8153: # Transform an extracted symbol line into a proper C declaration.
 8154: # Some systems (esp. on ia64) link data and code symbols differently,
 8155: # so use this general approach.
 8156: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 8157: 
 8158: # Transform an extracted symbol line into symbol name and symbol address
 8159: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 8160: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 8161: 
 8162: # Handle CRLF in mingw tool chain
 8163: opt_cr=
 8164: case $build_os in
 8165: mingw*)
 8166:   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 8167:   ;;
 8168: esac
 8169: 
 8170: # Try without a prefix underscore, then with it.
 8171: for ac_symprfx in "" "_"; do
 8172: 
 8173:   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 8174:   symxfrm="\\1 $ac_symprfx\\2 \\2"
 8175: 
 8176:   # Write the raw and C identifiers.
 8177:   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 8178:     # Fake it for dumpbin and say T for any non-static function
 8179:     # and D for any global variable.
 8180:     # Also find C++ and __fastcall symbols from MSVC++,
 8181:     # which start with @ or ?.
 8182:     lt_cv_sys_global_symbol_pipe="$AWK '"\
 8183: "     {last_section=section; section=\$ 3};"\
 8184: "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 8185: "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 8186: "     \$ 0!~/External *\|/{next};"\
 8187: "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 8188: "     {if(hide[section]) next};"\
 8189: "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 8190: "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 8191: "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 8192: "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 8193: "     ' prfx=^$ac_symprfx"
 8194:   else
 8195:     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 8196:   fi
 8197:   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 8198: 
 8199:   # Check to see that the pipe works correctly.
 8200:   pipe_works=no
 8201: 
 8202:   rm -f conftest*
 8203:   cat > conftest.$ac_ext <<_LT_EOF
 8204: #ifdef __cplusplus
 8205: extern "C" {
 8206: #endif
 8207: char nm_test_var;
 8208: void nm_test_func(void);
 8209: void nm_test_func(void){}
 8210: #ifdef __cplusplus
 8211: }
 8212: #endif
 8213: int main(){nm_test_var='a';nm_test_func();return(0);}
 8214: _LT_EOF
 8215: 
 8216:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 8217:   (eval $ac_compile) 2>&5
 8218:   ac_status=$?
 8219:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8220:   test $ac_status = 0; }; then
 8221:     # Now try to grab the symbols.
 8222:     nlist=conftest.nm
 8223:     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 8224:   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 8225:   ac_status=$?
 8226:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8227:   test $ac_status = 0; } && test -s "$nlist"; then
 8228:       # Try sorting and uniquifying the output.
 8229:       if sort "$nlist" | uniq > "$nlist"T; then
 8230: 	mv -f "$nlist"T "$nlist"
 8231:       else
 8232: 	rm -f "$nlist"T
 8233:       fi
 8234: 
 8235:       # Make sure that we snagged all the symbols we need.
 8236:       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 8237: 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 8238: 	  cat <<_LT_EOF > conftest.$ac_ext
 8239: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 8240: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 8241: /* DATA imports from DLLs on WIN32 con't be const, because runtime
 8242:    relocations are performed -- see ld's documentation on pseudo-relocs.  */
 8243: # define LT_DLSYM_CONST
 8244: #elif defined(__osf__)
 8245: /* This system does not cope well with relocations in const data.  */
 8246: # define LT_DLSYM_CONST
 8247: #else
 8248: # define LT_DLSYM_CONST const
 8249: #endif
 8250: 
 8251: #ifdef __cplusplus
 8252: extern "C" {
 8253: #endif
 8254: 
 8255: _LT_EOF
 8256: 	  # Now generate the symbol file.
 8257: 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 8258: 
 8259: 	  cat <<_LT_EOF >> conftest.$ac_ext
 8260: 
 8261: /* The mapping between symbol names and symbols.  */
 8262: LT_DLSYM_CONST struct {
 8263:   const char *name;
 8264:   void       *address;
 8265: }
 8266: lt__PROGRAM__LTX_preloaded_symbols[] =
 8267: {
 8268:   { "@PROGRAM@", (void *) 0 },
 8269: _LT_EOF
 8270: 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 8271: 	  cat <<\_LT_EOF >> conftest.$ac_ext
 8272:   {0, (void *) 0}
 8273: };
 8274: 
 8275: /* This works around a problem in FreeBSD linker */
 8276: #ifdef FREEBSD_WORKAROUND
 8277: static const void *lt_preloaded_setup() {
 8278:   return lt__PROGRAM__LTX_preloaded_symbols;
 8279: }
 8280: #endif
 8281: 
 8282: #ifdef __cplusplus
 8283: }
 8284: #endif
 8285: _LT_EOF
 8286: 	  # Now try linking the two files.
 8287: 	  mv conftest.$ac_objext conftstm.$ac_objext
 8288: 	  lt_globsym_save_LIBS=$LIBS
 8289: 	  lt_globsym_save_CFLAGS=$CFLAGS
 8290: 	  LIBS="conftstm.$ac_objext"
 8291: 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 8292: 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 8293:   (eval $ac_link) 2>&5
 8294:   ac_status=$?
 8295:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8296:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 8297: 	    pipe_works=yes
 8298: 	  fi
 8299: 	  LIBS=$lt_globsym_save_LIBS
 8300: 	  CFLAGS=$lt_globsym_save_CFLAGS
 8301: 	else
 8302: 	  echo "cannot find nm_test_func in $nlist" >&5
 8303: 	fi
 8304:       else
 8305: 	echo "cannot find nm_test_var in $nlist" >&5
 8306:       fi
 8307:     else
 8308:       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 8309:     fi
 8310:   else
 8311:     echo "$progname: failed program was:" >&5
 8312:     cat conftest.$ac_ext >&5
 8313:   fi
 8314:   rm -rf conftest* conftst*
 8315: 
 8316:   # Do not use the global_symbol_pipe unless it works.
 8317:   if test "$pipe_works" = yes; then
 8318:     break
 8319:   else
 8320:     lt_cv_sys_global_symbol_pipe=
 8321:   fi
 8322: done
 8323: 
 8324: fi
 8325: 
 8326: if test -z "$lt_cv_sys_global_symbol_pipe"; then
 8327:   lt_cv_sys_global_symbol_to_cdecl=
 8328: fi
 8329: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 8330:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 8331: $as_echo "failed" >&6; }
 8332: else
 8333:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 8334: $as_echo "ok" >&6; }
 8335: fi
 8336: 
 8337: # Response file support.
 8338: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 8339:   nm_file_list_spec='@'
 8340: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 8341:   nm_file_list_spec='@'
 8342: fi
 8343: 
 8344: 
 8345: 
 8346: 
 8347: 
 8348: 
 8349: 
 8350: 
 8351: 
 8352: 
 8353: 
 8354: 
 8355: 
 8356: 
 8357: 
 8358: 
 8359: 
 8360: 
 8361: 
 8362: 
 8363: 
 8364: 
 8365: 
 8366: 
 8367: 
 8368: 
 8369: 
 8370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 8371: $as_echo_n "checking for sysroot... " >&6; }
 8372: 
 8373: # Check whether --with-sysroot was given.
 8374: if test "${with_sysroot+set}" = set; then :
 8375:   withval=$with_sysroot;
 8376: else
 8377:   with_sysroot=no
 8378: fi
 8379: 
 8380: 
 8381: lt_sysroot=
 8382: case ${with_sysroot} in #(
 8383:  yes)
 8384:    if test "$GCC" = yes; then
 8385:      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 8386:    fi
 8387:    ;; #(
 8388:  /*)
 8389:    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 8390:    ;; #(
 8391:  no|'')
 8392:    ;; #(
 8393:  *)
 8394:    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 8395: $as_echo "${with_sysroot}" >&6; }
 8396:    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 8397:    ;;
 8398: esac
 8399: 
 8400:  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 8401: $as_echo "${lt_sysroot:-no}" >&6; }
 8402: 
 8403: 
 8404: 
 8405: 
 8406: 
 8407: # Check whether --enable-libtool-lock was given.
 8408: if test "${enable_libtool_lock+set}" = set; then :
 8409:   enableval=$enable_libtool_lock;
 8410: fi
 8411: 
 8412: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 8413: 
 8414: # Some flags need to be propagated to the compiler or linker for good
 8415: # libtool support.
 8416: case $host in
 8417: ia64-*-hpux*)
 8418:   # Find out which ABI we are using.
 8419:   echo 'int i;' > conftest.$ac_ext
 8420:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 8421:   (eval $ac_compile) 2>&5
 8422:   ac_status=$?
 8423:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8424:   test $ac_status = 0; }; then
 8425:     case `/usr/bin/file conftest.$ac_objext` in
 8426:       *ELF-32*)
 8427: 	HPUX_IA64_MODE="32"
 8428: 	;;
 8429:       *ELF-64*)
 8430: 	HPUX_IA64_MODE="64"
 8431: 	;;
 8432:     esac
 8433:   fi
 8434:   rm -rf conftest*
 8435:   ;;
 8436: *-*-irix6*)
 8437:   # Find out which ABI we are using.
 8438:   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 8439:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 8440:   (eval $ac_compile) 2>&5
 8441:   ac_status=$?
 8442:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8443:   test $ac_status = 0; }; then
 8444:     if test "$lt_cv_prog_gnu_ld" = yes; then
 8445:       case `/usr/bin/file conftest.$ac_objext` in
 8446: 	*32-bit*)
 8447: 	  LD="${LD-ld} -melf32bsmip"
 8448: 	  ;;
 8449: 	*N32*)
 8450: 	  LD="${LD-ld} -melf32bmipn32"
 8451: 	  ;;
 8452: 	*64-bit*)
 8453: 	  LD="${LD-ld} -melf64bmip"
 8454: 	;;
 8455:       esac
 8456:     else
 8457:       case `/usr/bin/file conftest.$ac_objext` in
 8458: 	*32-bit*)
 8459: 	  LD="${LD-ld} -32"
 8460: 	  ;;
 8461: 	*N32*)
 8462: 	  LD="${LD-ld} -n32"
 8463: 	  ;;
 8464: 	*64-bit*)
 8465: 	  LD="${LD-ld} -64"
 8466: 	  ;;
 8467:       esac
 8468:     fi
 8469:   fi
 8470:   rm -rf conftest*
 8471:   ;;
 8472: 
 8473: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 8474: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 8475:   # Find out which ABI we are using.
 8476:   echo 'int i;' > conftest.$ac_ext
 8477:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 8478:   (eval $ac_compile) 2>&5
 8479:   ac_status=$?
 8480:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8481:   test $ac_status = 0; }; then
 8482:     case `/usr/bin/file conftest.o` in
 8483:       *32-bit*)
 8484: 	case $host in
 8485: 	  x86_64-*kfreebsd*-gnu)
 8486: 	    LD="${LD-ld} -m elf_i386_fbsd"
 8487: 	    ;;
 8488: 	  x86_64-*linux*)
 8489: 	    LD="${LD-ld} -m elf_i386"
 8490: 	    ;;
 8491: 	  ppc64-*linux*|powerpc64-*linux*)
 8492: 	    LD="${LD-ld} -m elf32ppclinux"
 8493: 	    ;;
 8494: 	  s390x-*linux*)
 8495: 	    LD="${LD-ld} -m elf_s390"
 8496: 	    ;;
 8497: 	  sparc64-*linux*)
 8498: 	    LD="${LD-ld} -m elf32_sparc"
 8499: 	    ;;
 8500: 	esac
 8501: 	;;
 8502:       *64-bit*)
 8503: 	case $host in
 8504: 	  x86_64-*kfreebsd*-gnu)
 8505: 	    LD="${LD-ld} -m elf_x86_64_fbsd"
 8506: 	    ;;
 8507: 	  x86_64-*linux*)
 8508: 	    LD="${LD-ld} -m elf_x86_64"
 8509: 	    ;;
 8510: 	  ppc*-*linux*|powerpc*-*linux*)
 8511: 	    LD="${LD-ld} -m elf64ppc"
 8512: 	    ;;
 8513: 	  s390*-*linux*|s390*-*tpf*)
 8514: 	    LD="${LD-ld} -m elf64_s390"
 8515: 	    ;;
 8516: 	  sparc*-*linux*)
 8517: 	    LD="${LD-ld} -m elf64_sparc"
 8518: 	    ;;
 8519: 	esac
 8520: 	;;
 8521:     esac
 8522:   fi
 8523:   rm -rf conftest*
 8524:   ;;
 8525: 
 8526: *-*-sco3.2v5*)
 8527:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 8528:   SAVE_CFLAGS="$CFLAGS"
 8529:   CFLAGS="$CFLAGS -belf"
 8530:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 8531: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 8532: if ${lt_cv_cc_needs_belf+:} false; then :
 8533:   $as_echo_n "(cached) " >&6
 8534: else
 8535:   ac_ext=c
 8536: ac_cpp='$CPP $CPPFLAGS'
 8537: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 8538: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 8539: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 8540: 
 8541:      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 8542: /* end confdefs.h.  */
 8543: 
 8544: int
 8545: main ()
 8546: {
 8547: 
 8548:   ;
 8549:   return 0;
 8550: }
 8551: _ACEOF
 8552: if ac_fn_c_try_link "$LINENO"; then :
 8553:   lt_cv_cc_needs_belf=yes
 8554: else
 8555:   lt_cv_cc_needs_belf=no
 8556: fi
 8557: rm -f core conftest.err conftest.$ac_objext \
 8558:     conftest$ac_exeext conftest.$ac_ext
 8559:      ac_ext=c
 8560: ac_cpp='$CPP $CPPFLAGS'
 8561: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 8562: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 8563: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 8564: 
 8565: fi
 8566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 8567: $as_echo "$lt_cv_cc_needs_belf" >&6; }
 8568:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 8569:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 8570:     CFLAGS="$SAVE_CFLAGS"
 8571:   fi
 8572:   ;;
 8573: *-*solaris*)
 8574:   # Find out which ABI we are using.
 8575:   echo 'int i;' > conftest.$ac_ext
 8576:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 8577:   (eval $ac_compile) 2>&5
 8578:   ac_status=$?
 8579:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8580:   test $ac_status = 0; }; then
 8581:     case `/usr/bin/file conftest.o` in
 8582:     *64-bit*)
 8583:       case $lt_cv_prog_gnu_ld in
 8584:       yes*)
 8585:         case $host in
 8586:         i?86-*-solaris*)
 8587:           LD="${LD-ld} -m elf_x86_64"
 8588:           ;;
 8589:         sparc*-*-solaris*)
 8590:           LD="${LD-ld} -m elf64_sparc"
 8591:           ;;
 8592:         esac
 8593:         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 8594:         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 8595:           LD="${LD-ld}_sol2"
 8596:         fi
 8597:         ;;
 8598:       *)
 8599: 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 8600: 	  LD="${LD-ld} -64"
 8601: 	fi
 8602: 	;;
 8603:       esac
 8604:       ;;
 8605:     esac
 8606:   fi
 8607:   rm -rf conftest*
 8608:   ;;
 8609: esac
 8610: 
 8611: need_locks="$enable_libtool_lock"
 8612: 
 8613: if test -n "$ac_tool_prefix"; then
 8614:   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 8615: set dummy ${ac_tool_prefix}mt; ac_word=$2
 8616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8617: $as_echo_n "checking for $ac_word... " >&6; }
 8618: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 8619:   $as_echo_n "(cached) " >&6
 8620: else
 8621:   if test -n "$MANIFEST_TOOL"; then
 8622:   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 8623: else
 8624: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8625: for as_dir in $PATH
 8626: do
 8627:   IFS=$as_save_IFS
 8628:   test -z "$as_dir" && as_dir=.
 8629:     for ac_exec_ext in '' $ac_executable_extensions; do
 8630:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8631:     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 8632:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8633:     break 2
 8634:   fi
 8635: done
 8636:   done
 8637: IFS=$as_save_IFS
 8638: 
 8639: fi
 8640: fi
 8641: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 8642: if test -n "$MANIFEST_TOOL"; then
 8643:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 8644: $as_echo "$MANIFEST_TOOL" >&6; }
 8645: else
 8646:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8647: $as_echo "no" >&6; }
 8648: fi
 8649: 
 8650: 
 8651: fi
 8652: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 8653:   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 8654:   # Extract the first word of "mt", so it can be a program name with args.
 8655: set dummy mt; ac_word=$2
 8656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8657: $as_echo_n "checking for $ac_word... " >&6; }
 8658: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 8659:   $as_echo_n "(cached) " >&6
 8660: else
 8661:   if test -n "$ac_ct_MANIFEST_TOOL"; then
 8662:   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 8663: else
 8664: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8665: for as_dir in $PATH
 8666: do
 8667:   IFS=$as_save_IFS
 8668:   test -z "$as_dir" && as_dir=.
 8669:     for ac_exec_ext in '' $ac_executable_extensions; do
 8670:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8671:     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 8672:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8673:     break 2
 8674:   fi
 8675: done
 8676:   done
 8677: IFS=$as_save_IFS
 8678: 
 8679: fi
 8680: fi
 8681: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 8682: if test -n "$ac_ct_MANIFEST_TOOL"; then
 8683:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 8684: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 8685: else
 8686:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8687: $as_echo "no" >&6; }
 8688: fi
 8689: 
 8690:   if test "x$ac_ct_MANIFEST_TOOL" = x; then
 8691:     MANIFEST_TOOL=":"
 8692:   else
 8693:     case $cross_compiling:$ac_tool_warned in
 8694: yes:)
 8695: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 8696: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 8697: ac_tool_warned=yes ;;
 8698: esac
 8699:     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 8700:   fi
 8701: else
 8702:   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 8703: fi
 8704: 
 8705: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 8706: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 8707: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 8708: if ${lt_cv_path_mainfest_tool+:} false; then :
 8709:   $as_echo_n "(cached) " >&6
 8710: else
 8711:   lt_cv_path_mainfest_tool=no
 8712:   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 8713:   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 8714:   cat conftest.err >&5
 8715:   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 8716:     lt_cv_path_mainfest_tool=yes
 8717:   fi
 8718:   rm -f conftest*
 8719: fi
 8720: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 8721: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
 8722: if test "x$lt_cv_path_mainfest_tool" != xyes; then
 8723:   MANIFEST_TOOL=:
 8724: fi
 8725: 
 8726: 
 8727: 
 8728: 
 8729: 
 8730: 
 8731:   case $host_os in
 8732:     rhapsody* | darwin*)
 8733:     if test -n "$ac_tool_prefix"; then
 8734:   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 8735: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 8736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8737: $as_echo_n "checking for $ac_word... " >&6; }
 8738: if ${ac_cv_prog_DSYMUTIL+:} false; then :
 8739:   $as_echo_n "(cached) " >&6
 8740: else
 8741:   if test -n "$DSYMUTIL"; then
 8742:   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 8743: else
 8744: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8745: for as_dir in $PATH
 8746: do
 8747:   IFS=$as_save_IFS
 8748:   test -z "$as_dir" && as_dir=.
 8749:     for ac_exec_ext in '' $ac_executable_extensions; do
 8750:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8751:     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 8752:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8753:     break 2
 8754:   fi
 8755: done
 8756:   done
 8757: IFS=$as_save_IFS
 8758: 
 8759: fi
 8760: fi
 8761: DSYMUTIL=$ac_cv_prog_DSYMUTIL
 8762: if test -n "$DSYMUTIL"; then
 8763:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 8764: $as_echo "$DSYMUTIL" >&6; }
 8765: else
 8766:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8767: $as_echo "no" >&6; }
 8768: fi
 8769: 
 8770: 
 8771: fi
 8772: if test -z "$ac_cv_prog_DSYMUTIL"; then
 8773:   ac_ct_DSYMUTIL=$DSYMUTIL
 8774:   # Extract the first word of "dsymutil", so it can be a program name with args.
 8775: set dummy dsymutil; ac_word=$2
 8776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8777: $as_echo_n "checking for $ac_word... " >&6; }
 8778: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 8779:   $as_echo_n "(cached) " >&6
 8780: else
 8781:   if test -n "$ac_ct_DSYMUTIL"; then
 8782:   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 8783: else
 8784: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8785: for as_dir in $PATH
 8786: do
 8787:   IFS=$as_save_IFS
 8788:   test -z "$as_dir" && as_dir=.
 8789:     for ac_exec_ext in '' $ac_executable_extensions; do
 8790:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8791:     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 8792:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8793:     break 2
 8794:   fi
 8795: done
 8796:   done
 8797: IFS=$as_save_IFS
 8798: 
 8799: fi
 8800: fi
 8801: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 8802: if test -n "$ac_ct_DSYMUTIL"; then
 8803:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 8804: $as_echo "$ac_ct_DSYMUTIL" >&6; }
 8805: else
 8806:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8807: $as_echo "no" >&6; }
 8808: fi
 8809: 
 8810:   if test "x$ac_ct_DSYMUTIL" = x; then
 8811:     DSYMUTIL=":"
 8812:   else
 8813:     case $cross_compiling:$ac_tool_warned in
 8814: yes:)
 8815: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 8816: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 8817: ac_tool_warned=yes ;;
 8818: esac
 8819:     DSYMUTIL=$ac_ct_DSYMUTIL
 8820:   fi
 8821: else
 8822:   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 8823: fi
 8824: 
 8825:     if test -n "$ac_tool_prefix"; then
 8826:   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 8827: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 8828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8829: $as_echo_n "checking for $ac_word... " >&6; }
 8830: if ${ac_cv_prog_NMEDIT+:} false; then :
 8831:   $as_echo_n "(cached) " >&6
 8832: else
 8833:   if test -n "$NMEDIT"; then
 8834:   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 8835: else
 8836: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8837: for as_dir in $PATH
 8838: do
 8839:   IFS=$as_save_IFS
 8840:   test -z "$as_dir" && as_dir=.
 8841:     for ac_exec_ext in '' $ac_executable_extensions; do
 8842:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8843:     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 8844:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8845:     break 2
 8846:   fi
 8847: done
 8848:   done
 8849: IFS=$as_save_IFS
 8850: 
 8851: fi
 8852: fi
 8853: NMEDIT=$ac_cv_prog_NMEDIT
 8854: if test -n "$NMEDIT"; then
 8855:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 8856: $as_echo "$NMEDIT" >&6; }
 8857: else
 8858:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8859: $as_echo "no" >&6; }
 8860: fi
 8861: 
 8862: 
 8863: fi
 8864: if test -z "$ac_cv_prog_NMEDIT"; then
 8865:   ac_ct_NMEDIT=$NMEDIT
 8866:   # Extract the first word of "nmedit", so it can be a program name with args.
 8867: set dummy nmedit; ac_word=$2
 8868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8869: $as_echo_n "checking for $ac_word... " >&6; }
 8870: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 8871:   $as_echo_n "(cached) " >&6
 8872: else
 8873:   if test -n "$ac_ct_NMEDIT"; then
 8874:   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 8875: else
 8876: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8877: for as_dir in $PATH
 8878: do
 8879:   IFS=$as_save_IFS
 8880:   test -z "$as_dir" && as_dir=.
 8881:     for ac_exec_ext in '' $ac_executable_extensions; do
 8882:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8883:     ac_cv_prog_ac_ct_NMEDIT="nmedit"
 8884:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8885:     break 2
 8886:   fi
 8887: done
 8888:   done
 8889: IFS=$as_save_IFS
 8890: 
 8891: fi
 8892: fi
 8893: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 8894: if test -n "$ac_ct_NMEDIT"; then
 8895:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 8896: $as_echo "$ac_ct_NMEDIT" >&6; }
 8897: else
 8898:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8899: $as_echo "no" >&6; }
 8900: fi
 8901: 
 8902:   if test "x$ac_ct_NMEDIT" = x; then
 8903:     NMEDIT=":"
 8904:   else
 8905:     case $cross_compiling:$ac_tool_warned in
 8906: yes:)
 8907: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 8908: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 8909: ac_tool_warned=yes ;;
 8910: esac
 8911:     NMEDIT=$ac_ct_NMEDIT
 8912:   fi
 8913: else
 8914:   NMEDIT="$ac_cv_prog_NMEDIT"
 8915: fi
 8916: 
 8917:     if test -n "$ac_tool_prefix"; then
 8918:   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 8919: set dummy ${ac_tool_prefix}lipo; ac_word=$2
 8920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8921: $as_echo_n "checking for $ac_word... " >&6; }
 8922: if ${ac_cv_prog_LIPO+:} false; then :
 8923:   $as_echo_n "(cached) " >&6
 8924: else
 8925:   if test -n "$LIPO"; then
 8926:   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 8927: else
 8928: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8929: for as_dir in $PATH
 8930: do
 8931:   IFS=$as_save_IFS
 8932:   test -z "$as_dir" && as_dir=.
 8933:     for ac_exec_ext in '' $ac_executable_extensions; do
 8934:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8935:     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 8936:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8937:     break 2
 8938:   fi
 8939: done
 8940:   done
 8941: IFS=$as_save_IFS
 8942: 
 8943: fi
 8944: fi
 8945: LIPO=$ac_cv_prog_LIPO
 8946: if test -n "$LIPO"; then
 8947:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 8948: $as_echo "$LIPO" >&6; }
 8949: else
 8950:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8951: $as_echo "no" >&6; }
 8952: fi
 8953: 
 8954: 
 8955: fi
 8956: if test -z "$ac_cv_prog_LIPO"; then
 8957:   ac_ct_LIPO=$LIPO
 8958:   # Extract the first word of "lipo", so it can be a program name with args.
 8959: set dummy lipo; ac_word=$2
 8960: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8961: $as_echo_n "checking for $ac_word... " >&6; }
 8962: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 8963:   $as_echo_n "(cached) " >&6
 8964: else
 8965:   if test -n "$ac_ct_LIPO"; then
 8966:   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 8967: else
 8968: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8969: for as_dir in $PATH
 8970: do
 8971:   IFS=$as_save_IFS
 8972:   test -z "$as_dir" && as_dir=.
 8973:     for ac_exec_ext in '' $ac_executable_extensions; do
 8974:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8975:     ac_cv_prog_ac_ct_LIPO="lipo"
 8976:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8977:     break 2
 8978:   fi
 8979: done
 8980:   done
 8981: IFS=$as_save_IFS
 8982: 
 8983: fi
 8984: fi
 8985: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 8986: if test -n "$ac_ct_LIPO"; then
 8987:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 8988: $as_echo "$ac_ct_LIPO" >&6; }
 8989: else
 8990:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8991: $as_echo "no" >&6; }
 8992: fi
 8993: 
 8994:   if test "x$ac_ct_LIPO" = x; then
 8995:     LIPO=":"
 8996:   else
 8997:     case $cross_compiling:$ac_tool_warned in
 8998: yes:)
 8999: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 9000: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 9001: ac_tool_warned=yes ;;
 9002: esac
 9003:     LIPO=$ac_ct_LIPO
 9004:   fi
 9005: else
 9006:   LIPO="$ac_cv_prog_LIPO"
 9007: fi
 9008: 
 9009:     if test -n "$ac_tool_prefix"; then
 9010:   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 9011: set dummy ${ac_tool_prefix}otool; ac_word=$2
 9012: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 9013: $as_echo_n "checking for $ac_word... " >&6; }
 9014: if ${ac_cv_prog_OTOOL+:} false; then :
 9015:   $as_echo_n "(cached) " >&6
 9016: else
 9017:   if test -n "$OTOOL"; then
 9018:   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 9019: else
 9020: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 9021: for as_dir in $PATH
 9022: do
 9023:   IFS=$as_save_IFS
 9024:   test -z "$as_dir" && as_dir=.
 9025:     for ac_exec_ext in '' $ac_executable_extensions; do
 9026:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 9027:     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 9028:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 9029:     break 2
 9030:   fi
 9031: done
 9032:   done
 9033: IFS=$as_save_IFS
 9034: 
 9035: fi
 9036: fi
 9037: OTOOL=$ac_cv_prog_OTOOL
 9038: if test -n "$OTOOL"; then
 9039:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 9040: $as_echo "$OTOOL" >&6; }
 9041: else
 9042:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9043: $as_echo "no" >&6; }
 9044: fi
 9045: 
 9046: 
 9047: fi
 9048: if test -z "$ac_cv_prog_OTOOL"; then
 9049:   ac_ct_OTOOL=$OTOOL
 9050:   # Extract the first word of "otool", so it can be a program name with args.
 9051: set dummy otool; ac_word=$2
 9052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 9053: $as_echo_n "checking for $ac_word... " >&6; }
 9054: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 9055:   $as_echo_n "(cached) " >&6
 9056: else
 9057:   if test -n "$ac_ct_OTOOL"; then
 9058:   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 9059: else
 9060: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 9061: for as_dir in $PATH
 9062: do
 9063:   IFS=$as_save_IFS
 9064:   test -z "$as_dir" && as_dir=.
 9065:     for ac_exec_ext in '' $ac_executable_extensions; do
 9066:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 9067:     ac_cv_prog_ac_ct_OTOOL="otool"
 9068:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 9069:     break 2
 9070:   fi
 9071: done
 9072:   done
 9073: IFS=$as_save_IFS
 9074: 
 9075: fi
 9076: fi
 9077: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 9078: if test -n "$ac_ct_OTOOL"; then
 9079:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 9080: $as_echo "$ac_ct_OTOOL" >&6; }
 9081: else
 9082:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9083: $as_echo "no" >&6; }
 9084: fi
 9085: 
 9086:   if test "x$ac_ct_OTOOL" = x; then
 9087:     OTOOL=":"
 9088:   else
 9089:     case $cross_compiling:$ac_tool_warned in
 9090: yes:)
 9091: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 9092: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 9093: ac_tool_warned=yes ;;
 9094: esac
 9095:     OTOOL=$ac_ct_OTOOL
 9096:   fi
 9097: else
 9098:   OTOOL="$ac_cv_prog_OTOOL"
 9099: fi
 9100: 
 9101:     if test -n "$ac_tool_prefix"; then
 9102:   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 9103: set dummy ${ac_tool_prefix}otool64; ac_word=$2
 9104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 9105: $as_echo_n "checking for $ac_word... " >&6; }
 9106: if ${ac_cv_prog_OTOOL64+:} false; then :
 9107:   $as_echo_n "(cached) " >&6
 9108: else
 9109:   if test -n "$OTOOL64"; then
 9110:   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 9111: else
 9112: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 9113: for as_dir in $PATH
 9114: do
 9115:   IFS=$as_save_IFS
 9116:   test -z "$as_dir" && as_dir=.
 9117:     for ac_exec_ext in '' $ac_executable_extensions; do
 9118:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 9119:     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 9120:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 9121:     break 2
 9122:   fi
 9123: done
 9124:   done
 9125: IFS=$as_save_IFS
 9126: 
 9127: fi
 9128: fi
 9129: OTOOL64=$ac_cv_prog_OTOOL64
 9130: if test -n "$OTOOL64"; then
 9131:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 9132: $as_echo "$OTOOL64" >&6; }
 9133: else
 9134:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9135: $as_echo "no" >&6; }
 9136: fi
 9137: 
 9138: 
 9139: fi
 9140: if test -z "$ac_cv_prog_OTOOL64"; then
 9141:   ac_ct_OTOOL64=$OTOOL64
 9142:   # Extract the first word of "otool64", so it can be a program name with args.
 9143: set dummy otool64; ac_word=$2
 9144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 9145: $as_echo_n "checking for $ac_word... " >&6; }
 9146: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 9147:   $as_echo_n "(cached) " >&6
 9148: else
 9149:   if test -n "$ac_ct_OTOOL64"; then
 9150:   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 9151: else
 9152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 9153: for as_dir in $PATH
 9154: do
 9155:   IFS=$as_save_IFS
 9156:   test -z "$as_dir" && as_dir=.
 9157:     for ac_exec_ext in '' $ac_executable_extensions; do
 9158:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 9159:     ac_cv_prog_ac_ct_OTOOL64="otool64"
 9160:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 9161:     break 2
 9162:   fi
 9163: done
 9164:   done
 9165: IFS=$as_save_IFS
 9166: 
 9167: fi
 9168: fi
 9169: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 9170: if test -n "$ac_ct_OTOOL64"; then
 9171:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 9172: $as_echo "$ac_ct_OTOOL64" >&6; }
 9173: else
 9174:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9175: $as_echo "no" >&6; }
 9176: fi
 9177: 
 9178:   if test "x$ac_ct_OTOOL64" = x; then
 9179:     OTOOL64=":"
 9180:   else
 9181:     case $cross_compiling:$ac_tool_warned in
 9182: yes:)
 9183: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 9184: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 9185: ac_tool_warned=yes ;;
 9186: esac
 9187:     OTOOL64=$ac_ct_OTOOL64
 9188:   fi
 9189: else
 9190:   OTOOL64="$ac_cv_prog_OTOOL64"
 9191: fi
 9192: 
 9193: 
 9194: 
 9195: 
 9196: 
 9197: 
 9198: 
 9199: 
 9200: 
 9201: 
 9202: 
 9203: 
 9204: 
 9205: 
 9206: 
 9207: 
 9208: 
 9209: 
 9210: 
 9211: 
 9212: 
 9213: 
 9214: 
 9215: 
 9216: 
 9217: 
 9218: 
 9219:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 9220: $as_echo_n "checking for -single_module linker flag... " >&6; }
 9221: if ${lt_cv_apple_cc_single_mod+:} false; then :
 9222:   $as_echo_n "(cached) " >&6
 9223: else
 9224:   lt_cv_apple_cc_single_mod=no
 9225:       if test -z "${LT_MULTI_MODULE}"; then
 9226: 	# By default we will add the -single_module flag. You can override
 9227: 	# by either setting the environment variable LT_MULTI_MODULE
 9228: 	# non-empty at configure time, or by adding -multi_module to the
 9229: 	# link flags.
 9230: 	rm -rf libconftest.dylib*
 9231: 	echo "int foo(void){return 1;}" > conftest.c
 9232: 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 9233: -dynamiclib -Wl,-single_module conftest.c" >&5
 9234: 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 9235: 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 9236:         _lt_result=$?
 9237: 	# If there is a non-empty error log, and "single_module"
 9238: 	# appears in it, assume the flag caused a linker warning
 9239:         if test -s conftest.err && $GREP single_module conftest.err; then
 9240: 	  cat conftest.err >&5
 9241: 	# Otherwise, if the output was created with a 0 exit code from
 9242: 	# the compiler, it worked.
 9243: 	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 9244: 	  lt_cv_apple_cc_single_mod=yes
 9245: 	else
 9246: 	  cat conftest.err >&5
 9247: 	fi
 9248: 	rm -rf libconftest.dylib*
 9249: 	rm -f conftest.*
 9250:       fi
 9251: fi
 9252: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 9253: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 9254: 
 9255:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 9256: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 9257: if ${lt_cv_ld_exported_symbols_list+:} false; then :
 9258:   $as_echo_n "(cached) " >&6
 9259: else
 9260:   lt_cv_ld_exported_symbols_list=no
 9261:       save_LDFLAGS=$LDFLAGS
 9262:       echo "_main" > conftest.sym
 9263:       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 9264:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 9265: /* end confdefs.h.  */
 9266: 
 9267: int
 9268: main ()
 9269: {
 9270: 
 9271:   ;
 9272:   return 0;
 9273: }
 9274: _ACEOF
 9275: if ac_fn_c_try_link "$LINENO"; then :
 9276:   lt_cv_ld_exported_symbols_list=yes
 9277: else
 9278:   lt_cv_ld_exported_symbols_list=no
 9279: fi
 9280: rm -f core conftest.err conftest.$ac_objext \
 9281:     conftest$ac_exeext conftest.$ac_ext
 9282: 	LDFLAGS="$save_LDFLAGS"
 9283: 
 9284: fi
 9285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 9286: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 9287: 
 9288:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 9289: $as_echo_n "checking for -force_load linker flag... " >&6; }
 9290: if ${lt_cv_ld_force_load+:} false; then :
 9291:   $as_echo_n "(cached) " >&6
 9292: else
 9293:   lt_cv_ld_force_load=no
 9294:       cat > conftest.c << _LT_EOF
 9295: int forced_loaded() { return 2;}
 9296: _LT_EOF
 9297:       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 9298:       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 9299:       echo "$AR cru libconftest.a conftest.o" >&5
 9300:       $AR cru libconftest.a conftest.o 2>&5
 9301:       echo "$RANLIB libconftest.a" >&5
 9302:       $RANLIB libconftest.a 2>&5
 9303:       cat > conftest.c << _LT_EOF
 9304: int main() { return 0;}
 9305: _LT_EOF
 9306:       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 9307:       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 9308:       _lt_result=$?
 9309:       if test -s conftest.err && $GREP force_load conftest.err; then
 9310: 	cat conftest.err >&5
 9311:       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 9312: 	lt_cv_ld_force_load=yes
 9313:       else
 9314: 	cat conftest.err >&5
 9315:       fi
 9316:         rm -f conftest.err libconftest.a conftest conftest.c
 9317:         rm -rf conftest.dSYM
 9318: 
 9319: fi
 9320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 9321: $as_echo "$lt_cv_ld_force_load" >&6; }
 9322:     case $host_os in
 9323:     rhapsody* | darwin1.[012])
 9324:       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 9325:     darwin1.*)
 9326:       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 9327:     darwin*) # darwin 5.x on
 9328:       # if running on 10.5 or later, the deployment target defaults
 9329:       # to the OS version, if on x86, and 10.4, the deployment
 9330:       # target defaults to 10.4. Don't you love it?
 9331:       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 9332: 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 9333: 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 9334: 	10.[012]*)
 9335: 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 9336: 	10.*)
 9337: 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 9338:       esac
 9339:     ;;
 9340:   esac
 9341:     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 9342:       _lt_dar_single_mod='$single_module'
 9343:     fi
 9344:     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 9345:       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 9346:     else
 9347:       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 9348:     fi
 9349:     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 9350:       _lt_dsymutil='~$DSYMUTIL $lib || :'
 9351:     else
 9352:       _lt_dsymutil=
 9353:     fi
 9354:     ;;
 9355:   esac
 9356: 
 9357: 
 9358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 9359: $as_echo_n "checking for ANSI C header files... " >&6; }
 9360: if ${ac_cv_header_stdc+:} false; then :
 9361:   $as_echo_n "(cached) " >&6
 9362: else
 9363:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 9364: /* end confdefs.h.  */
 9365: #include <stdlib.h>
 9366: #include <stdarg.h>
 9367: #include <string.h>
 9368: #include <float.h>
 9369: 
 9370: int
 9371: main ()
 9372: {
 9373: 
 9374:   ;
 9375:   return 0;
 9376: }
 9377: _ACEOF
 9378: if ac_fn_c_try_compile "$LINENO"; then :
 9379:   ac_cv_header_stdc=yes
 9380: else
 9381:   ac_cv_header_stdc=no
 9382: fi
 9383: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 9384: 
 9385: if test $ac_cv_header_stdc = yes; then
 9386:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 9387:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 9388: /* end confdefs.h.  */
 9389: #include <string.h>
 9390: 
 9391: _ACEOF
 9392: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 9393:   $EGREP "memchr" >/dev/null 2>&1; then :
 9394: 
 9395: else
 9396:   ac_cv_header_stdc=no
 9397: fi
 9398: rm -f conftest*
 9399: 
 9400: fi
 9401: 
 9402: if test $ac_cv_header_stdc = yes; then
 9403:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 9404:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 9405: /* end confdefs.h.  */
 9406: #include <stdlib.h>
 9407: 
 9408: _ACEOF
 9409: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 9410:   $EGREP "free" >/dev/null 2>&1; then :
 9411: 
 9412: else
 9413:   ac_cv_header_stdc=no
 9414: fi
 9415: rm -f conftest*
 9416: 
 9417: fi
 9418: 
 9419: if test $ac_cv_header_stdc = yes; then
 9420:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 9421:   if test "$cross_compiling" = yes; then :
 9422:   :
 9423: else
 9424:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 9425: /* end confdefs.h.  */
 9426: #include <ctype.h>
 9427: #include <stdlib.h>
 9428: #if ((' ' & 0x0FF) == 0x020)
 9429: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 9430: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 9431: #else
 9432: # define ISLOWER(c) \
 9433: 		   (('a' <= (c) && (c) <= 'i') \
 9434: 		     || ('j' <= (c) && (c) <= 'r') \
 9435: 		     || ('s' <= (c) && (c) <= 'z'))
 9436: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 9437: #endif
 9438: 
 9439: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 9440: int
 9441: main ()
 9442: {
 9443:   int i;
 9444:   for (i = 0; i < 256; i++)
 9445:     if (XOR (islower (i), ISLOWER (i))
 9446: 	|| toupper (i) != TOUPPER (i))
 9447:       return 2;
 9448:   return 0;
 9449: }
 9450: _ACEOF
 9451: if ac_fn_c_try_run "$LINENO"; then :
 9452: 
 9453: else
 9454:   ac_cv_header_stdc=no
 9455: fi
 9456: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 9457:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 9458: fi
 9459: 
 9460: fi
 9461: fi
 9462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 9463: $as_echo "$ac_cv_header_stdc" >&6; }
 9464: if test $ac_cv_header_stdc = yes; then
 9465: 
 9466: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 9467: 
 9468: fi
 9469: 
 9470: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 9471: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 9472: 		  inttypes.h stdint.h unistd.h
 9473: do :
 9474:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 9475: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 9476: "
 9477: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 9478:   cat >>confdefs.h <<_ACEOF
 9479: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 9480: _ACEOF
 9481: 
 9482: fi
 9483: 
 9484: done
 9485: 
 9486: 
 9487: for ac_header in dlfcn.h
 9488: do :
 9489:   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 9490: "
 9491: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 9492:   cat >>confdefs.h <<_ACEOF
 9493: #define HAVE_DLFCN_H 1
 9494: _ACEOF
 9495: 
 9496: fi
 9497: 
 9498: done
 9499: 
 9500: 
 9501: 
 9502: 
 9503: 
 9504: # Set options
 9505: enable_dlopen=yes
 9506: 
 9507: 
 9508: 
 9509: 
 9510:   enable_win32_dll=no
 9511: 
 9512: 
 9513:             # Check whether --enable-shared was given.
 9514: if test "${enable_shared+set}" = set; then :
 9515:   enableval=$enable_shared; p=${PACKAGE-default}
 9516:     case $enableval in
 9517:     yes) enable_shared=yes ;;
 9518:     no) enable_shared=no ;;
 9519:     *)
 9520:       enable_shared=no
 9521:       # Look at the argument we got.  We use all the common list separators.
 9522:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 9523:       for pkg in $enableval; do
 9524: 	IFS="$lt_save_ifs"
 9525: 	if test "X$pkg" = "X$p"; then
 9526: 	  enable_shared=yes
 9527: 	fi
 9528:       done
 9529:       IFS="$lt_save_ifs"
 9530:       ;;
 9531:     esac
 9532: else
 9533:   enable_shared=yes
 9534: fi
 9535: 
 9536: 
 9537: 
 9538: 
 9539: 
 9540: 
 9541: 
 9542: 
 9543: 
 9544:   # Check whether --enable-static was given.
 9545: if test "${enable_static+set}" = set; then :
 9546:   enableval=$enable_static; p=${PACKAGE-default}
 9547:     case $enableval in
 9548:     yes) enable_static=yes ;;
 9549:     no) enable_static=no ;;
 9550:     *)
 9551:      enable_static=no
 9552:       # Look at the argument we got.  We use all the common list separators.
 9553:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 9554:       for pkg in $enableval; do
 9555: 	IFS="$lt_save_ifs"
 9556: 	if test "X$pkg" = "X$p"; then
 9557: 	  enable_static=yes
 9558: 	fi
 9559:       done
 9560:       IFS="$lt_save_ifs"
 9561:       ;;
 9562:     esac
 9563: else
 9564:   enable_static=yes
 9565: fi
 9566: 
 9567: 
 9568: 
 9569: 
 9570: 
 9571: 
 9572: 
 9573: 
 9574: 
 9575: 
 9576: # Check whether --with-pic was given.
 9577: if test "${with_pic+set}" = set; then :
 9578:   withval=$with_pic; lt_p=${PACKAGE-default}
 9579:     case $withval in
 9580:     yes|no) pic_mode=$withval ;;
 9581:     *)
 9582:       pic_mode=default
 9583:       # Look at the argument we got.  We use all the common list separators.
 9584:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 9585:       for lt_pkg in $withval; do
 9586: 	IFS="$lt_save_ifs"
 9587: 	if test "X$lt_pkg" = "X$lt_p"; then
 9588: 	  pic_mode=yes
 9589: 	fi
 9590:       done
 9591:       IFS="$lt_save_ifs"
 9592:       ;;
 9593:     esac
 9594: else
 9595:   pic_mode=default
 9596: fi
 9597: 
 9598: 
 9599: test -z "$pic_mode" && pic_mode=default
 9600: 
 9601: 
 9602: 
 9603: 
 9604: 
 9605: 
 9606: 
 9607:   # Check whether --enable-fast-install was given.
 9608: if test "${enable_fast_install+set}" = set; then :
 9609:   enableval=$enable_fast_install; p=${PACKAGE-default}
 9610:     case $enableval in
 9611:     yes) enable_fast_install=yes ;;
 9612:     no) enable_fast_install=no ;;
 9613:     *)
 9614:       enable_fast_install=no
 9615:       # Look at the argument we got.  We use all the common list separators.
 9616:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 9617:       for pkg in $enableval; do
 9618: 	IFS="$lt_save_ifs"
 9619: 	if test "X$pkg" = "X$p"; then
 9620: 	  enable_fast_install=yes
 9621: 	fi
 9622:       done
 9623:       IFS="$lt_save_ifs"
 9624:       ;;
 9625:     esac
 9626: else
 9627:   enable_fast_install=yes
 9628: fi
 9629: 
 9630: 
 9631: 
 9632: 
 9633: 
 9634: 
 9635: 
 9636: 
 9637: 
 9638: 
 9639: 
 9640: # This can be used to rebuild libtool when needed
 9641: LIBTOOL_DEPS="$ltmain"
 9642: 
 9643: # Always use our own libtool.
 9644: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 9645: 
 9646: 
 9647: 
 9648: 
 9649: 
 9650: 
 9651: 
 9652: 
 9653: 
 9654: 
 9655: 
 9656: 
 9657: 
 9658: 
 9659: 
 9660: 
 9661: 
 9662: 
 9663: 
 9664: 
 9665: 
 9666: 
 9667: 
 9668: 
 9669: 
 9670: 
 9671: 
 9672: 
 9673: 
 9674: 
 9675: test -z "$LN_S" && LN_S="ln -s"
 9676: 
 9677: 
 9678: 
 9679: 
 9680: 
 9681: 
 9682: 
 9683: 
 9684: 
 9685: 
 9686: 
 9687: 
 9688: 
 9689: 
 9690: if test -n "${ZSH_VERSION+set}" ; then
 9691:    setopt NO_GLOB_SUBST
 9692: fi
 9693: 
 9694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 9695: $as_echo_n "checking for objdir... " >&6; }
 9696: if ${lt_cv_objdir+:} false; then :
 9697:   $as_echo_n "(cached) " >&6
 9698: else
 9699:   rm -f .libs 2>/dev/null
 9700: mkdir .libs 2>/dev/null
 9701: if test -d .libs; then
 9702:   lt_cv_objdir=.libs
 9703: else
 9704:   # MS-DOS does not allow filenames that begin with a dot.
 9705:   lt_cv_objdir=_libs
 9706: fi
 9707: rmdir .libs 2>/dev/null
 9708: fi
 9709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 9710: $as_echo "$lt_cv_objdir" >&6; }
 9711: objdir=$lt_cv_objdir
 9712: 
 9713: 
 9714: 
 9715: 
 9716: 
 9717: cat >>confdefs.h <<_ACEOF
 9718: #define LT_OBJDIR "$lt_cv_objdir/"
 9719: _ACEOF
 9720: 
 9721: 
 9722: 
 9723: 
 9724: case $host_os in
 9725: aix3*)
 9726:   # AIX sometimes has problems with the GCC collect2 program.  For some
 9727:   # reason, if we set the COLLECT_NAMES environment variable, the problems
 9728:   # vanish in a puff of smoke.
 9729:   if test "X${COLLECT_NAMES+set}" != Xset; then
 9730:     COLLECT_NAMES=
 9731:     export COLLECT_NAMES
 9732:   fi
 9733:   ;;
 9734: esac
 9735: 
 9736: # Global variables:
 9737: ofile=libtool
 9738: can_build_shared=yes
 9739: 
 9740: # All known linkers require a `.a' archive for static linking (except MSVC,
 9741: # which needs '.lib').
 9742: libext=a
 9743: 
 9744: with_gnu_ld="$lt_cv_prog_gnu_ld"
 9745: 
 9746: old_CC="$CC"
 9747: old_CFLAGS="$CFLAGS"
 9748: 
 9749: # Set sane defaults for various variables
 9750: test -z "$CC" && CC=cc
 9751: test -z "$LTCC" && LTCC=$CC
 9752: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 9753: test -z "$LD" && LD=ld
 9754: test -z "$ac_objext" && ac_objext=o
 9755: 
 9756: for cc_temp in $compiler""; do
 9757:   case $cc_temp in
 9758:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 9759:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 9760:     \-*) ;;
 9761:     *) break;;
 9762:   esac
 9763: done
 9764: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 9765: 
 9766: 
 9767: # Only perform the check for file, if the check method requires it
 9768: test -z "$MAGIC_CMD" && MAGIC_CMD=file
 9769: case $deplibs_check_method in
 9770: file_magic*)
 9771:   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 9772:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 9773: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 9774: if ${lt_cv_path_MAGIC_CMD+:} false; then :
 9775:   $as_echo_n "(cached) " >&6
 9776: else
 9777:   case $MAGIC_CMD in
 9778: [\\/*] |  ?:[\\/]*)
 9779:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 9780:   ;;
 9781: *)
 9782:   lt_save_MAGIC_CMD="$MAGIC_CMD"
 9783:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 9784:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 9785:   for ac_dir in $ac_dummy; do
 9786:     IFS="$lt_save_ifs"
 9787:     test -z "$ac_dir" && ac_dir=.
 9788:     if test -f $ac_dir/${ac_tool_prefix}file; then
 9789:       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 9790:       if test -n "$file_magic_test_file"; then
 9791: 	case $deplibs_check_method in
 9792: 	"file_magic "*)
 9793: 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 9794: 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 9795: 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 9796: 	    $EGREP "$file_magic_regex" > /dev/null; then
 9797: 	    :
 9798: 	  else
 9799: 	    cat <<_LT_EOF 1>&2
 9800: 
 9801: *** Warning: the command libtool uses to detect shared libraries,
 9802: *** $file_magic_cmd, produces output that libtool cannot recognize.
 9803: *** The result is that libtool may fail to recognize shared libraries
 9804: *** as such.  This will affect the creation of libtool libraries that
 9805: *** depend on shared libraries, but programs linked with such libtool
 9806: *** libraries will work regardless of this problem.  Nevertheless, you
 9807: *** may want to report the problem to your system manager and/or to
 9808: *** bug-libtool@gnu.org
 9809: 
 9810: _LT_EOF
 9811: 	  fi ;;
 9812: 	esac
 9813:       fi
 9814:       break
 9815:     fi
 9816:   done
 9817:   IFS="$lt_save_ifs"
 9818:   MAGIC_CMD="$lt_save_MAGIC_CMD"
 9819:   ;;
 9820: esac
 9821: fi
 9822: 
 9823: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 9824: if test -n "$MAGIC_CMD"; then
 9825:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 9826: $as_echo "$MAGIC_CMD" >&6; }
 9827: else
 9828:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9829: $as_echo "no" >&6; }
 9830: fi
 9831: 
 9832: 
 9833: 
 9834: 
 9835: 
 9836: if test -z "$lt_cv_path_MAGIC_CMD"; then
 9837:   if test -n "$ac_tool_prefix"; then
 9838:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 9839: $as_echo_n "checking for file... " >&6; }
 9840: if ${lt_cv_path_MAGIC_CMD+:} false; then :
 9841:   $as_echo_n "(cached) " >&6
 9842: else
 9843:   case $MAGIC_CMD in
 9844: [\\/*] |  ?:[\\/]*)
 9845:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 9846:   ;;
 9847: *)
 9848:   lt_save_MAGIC_CMD="$MAGIC_CMD"
 9849:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 9850:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 9851:   for ac_dir in $ac_dummy; do
 9852:     IFS="$lt_save_ifs"
 9853:     test -z "$ac_dir" && ac_dir=.
 9854:     if test -f $ac_dir/file; then
 9855:       lt_cv_path_MAGIC_CMD="$ac_dir/file"
 9856:       if test -n "$file_magic_test_file"; then
 9857: 	case $deplibs_check_method in
 9858: 	"file_magic "*)
 9859: 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 9860: 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 9861: 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 9862: 	    $EGREP "$file_magic_regex" > /dev/null; then
 9863: 	    :
 9864: 	  else
 9865: 	    cat <<_LT_EOF 1>&2
 9866: 
 9867: *** Warning: the command libtool uses to detect shared libraries,
 9868: *** $file_magic_cmd, produces output that libtool cannot recognize.
 9869: *** The result is that libtool may fail to recognize shared libraries
 9870: *** as such.  This will affect the creation of libtool libraries that
 9871: *** depend on shared libraries, but programs linked with such libtool
 9872: *** libraries will work regardless of this problem.  Nevertheless, you
 9873: *** may want to report the problem to your system manager and/or to
 9874: *** bug-libtool@gnu.org
 9875: 
 9876: _LT_EOF
 9877: 	  fi ;;
 9878: 	esac
 9879:       fi
 9880:       break
 9881:     fi
 9882:   done
 9883:   IFS="$lt_save_ifs"
 9884:   MAGIC_CMD="$lt_save_MAGIC_CMD"
 9885:   ;;
 9886: esac
 9887: fi
 9888: 
 9889: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 9890: if test -n "$MAGIC_CMD"; then
 9891:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 9892: $as_echo "$MAGIC_CMD" >&6; }
 9893: else
 9894:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9895: $as_echo "no" >&6; }
 9896: fi
 9897: 
 9898: 
 9899:   else
 9900:     MAGIC_CMD=:
 9901:   fi
 9902: fi
 9903: 
 9904:   fi
 9905:   ;;
 9906: esac
 9907: 
 9908: # Use C for the default configuration in the libtool script
 9909: 
 9910: lt_save_CC="$CC"
 9911: ac_ext=c
 9912: ac_cpp='$CPP $CPPFLAGS'
 9913: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 9914: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 9915: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 9916: 
 9917: 
 9918: # Source file extension for C test sources.
 9919: ac_ext=c
 9920: 
 9921: # Object file extension for compiled C test sources.
 9922: objext=o
 9923: objext=$objext
 9924: 
 9925: # Code to be used in simple compile tests
 9926: lt_simple_compile_test_code="int some_variable = 0;"
 9927: 
 9928: # Code to be used in simple link tests
 9929: lt_simple_link_test_code='int main(){return(0);}'
 9930: 
 9931: 
 9932: 
 9933: 
 9934: 
 9935: 
 9936: 
 9937: # If no C compiler was specified, use CC.
 9938: LTCC=${LTCC-"$CC"}
 9939: 
 9940: # If no C compiler flags were specified, use CFLAGS.
 9941: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 9942: 
 9943: # Allow CC to be a program name with arguments.
 9944: compiler=$CC
 9945: 
 9946: # Save the default compiler, since it gets overwritten when the other
 9947: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 9948: compiler_DEFAULT=$CC
 9949: 
 9950: # save warnings/boilerplate of simple test code
 9951: ac_outfile=conftest.$ac_objext
 9952: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 9953: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 9954: _lt_compiler_boilerplate=`cat conftest.err`
 9955: $RM conftest*
 9956: 
 9957: ac_outfile=conftest.$ac_objext
 9958: echo "$lt_simple_link_test_code" >conftest.$ac_ext
 9959: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 9960: _lt_linker_boilerplate=`cat conftest.err`
 9961: $RM -r conftest*
 9962: 
 9963: 
 9964: ## CAVEAT EMPTOR:
 9965: ## There is no encapsulation within the following macros, do not change
 9966: ## the running order or otherwise move them around unless you know exactly
 9967: ## what you are doing...
 9968: if test -n "$compiler"; then
 9969: 
 9970: lt_prog_compiler_no_builtin_flag=
 9971: 
 9972: if test "$GCC" = yes; then
 9973:   case $cc_basename in
 9974:   nvcc*)
 9975:     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 9976:   *)
 9977:     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 9978:   esac
 9979: 
 9980:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 9981: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 9982: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 9983:   $as_echo_n "(cached) " >&6
 9984: else
 9985:   lt_cv_prog_compiler_rtti_exceptions=no
 9986:    ac_outfile=conftest.$ac_objext
 9987:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 9988:    lt_compiler_flag="-fno-rtti -fno-exceptions"
 9989:    # Insert the option either (1) after the last *FLAGS variable, or
 9990:    # (2) before a word containing "conftest.", or (3) at the end.
 9991:    # Note that $ac_compile itself does not contain backslashes and begins
 9992:    # with a dollar sign (not a hyphen), so the echo should work correctly.
 9993:    # The option is referenced via a variable to avoid confusing sed.
 9994:    lt_compile=`echo "$ac_compile" | $SED \
 9995:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 9996:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 9997:    -e 's:$: $lt_compiler_flag:'`
 9998:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 9999:    (eval "$lt_compile" 2>conftest.err)
10000:    ac_status=$?
10001:    cat conftest.err >&5
10002:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003:    if (exit $ac_status) && test -s "$ac_outfile"; then
10004:      # The compiler can only warn and ignore the option if not recognized
10005:      # So say no if there are warnings other than the usual output.
10006:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10007:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10008:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10009:        lt_cv_prog_compiler_rtti_exceptions=yes
10010:      fi
10011:    fi
10012:    $RM conftest*
10013: 
10014: fi
10015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10016: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10017: 
10018: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10019:     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10020: else
10021:     :
10022: fi
10023: 
10024: fi
10025: 
10026: 
10027: 
10028: 
10029: 
10030: 
10031:   lt_prog_compiler_wl=
10032: lt_prog_compiler_pic=
10033: lt_prog_compiler_static=
10034: 
10035: 
10036:   if test "$GCC" = yes; then
10037:     lt_prog_compiler_wl='-Wl,'
10038:     lt_prog_compiler_static='-static'
10039: 
10040:     case $host_os in
10041:       aix*)
10042:       # All AIX code is PIC.
10043:       if test "$host_cpu" = ia64; then
10044: 	# AIX 5 now supports IA64 processor
10045: 	lt_prog_compiler_static='-Bstatic'
10046:       fi
10047:       ;;
10048: 
10049:     amigaos*)
10050:       case $host_cpu in
10051:       powerpc)
10052:             # see comment about AmigaOS4 .so support
10053:             lt_prog_compiler_pic='-fPIC'
10054:         ;;
10055:       m68k)
10056:             # FIXME: we need at least 68020 code to build shared libraries, but
10057:             # adding the `-m68020' flag to GCC prevents building anything better,
10058:             # like `-m68040'.
10059:             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10060:         ;;
10061:       esac
10062:       ;;
10063: 
10064:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10065:       # PIC is the default for these OSes.
10066:       ;;
10067: 
10068:     mingw* | cygwin* | pw32* | os2* | cegcc*)
10069:       # This hack is so that the source file can tell whether it is being
10070:       # built for inclusion in a dll (and should export symbols for example).
10071:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10072:       # (--disable-auto-import) libraries
10073:       lt_prog_compiler_pic='-DDLL_EXPORT'
10074:       ;;
10075: 
10076:     darwin* | rhapsody*)
10077:       # PIC is the default on this platform
10078:       # Common symbols not allowed in MH_DYLIB files
10079:       lt_prog_compiler_pic='-fno-common'
10080:       ;;
10081: 
10082:     haiku*)
10083:       # PIC is the default for Haiku.
10084:       # The "-static" flag exists, but is broken.
10085:       lt_prog_compiler_static=
10086:       ;;
10087: 
10088:     hpux*)
10089:       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10090:       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10091:       # sets the default TLS model and affects inlining.
10092:       case $host_cpu in
10093:       hppa*64*)
10094: 	# +Z the default
10095: 	;;
10096:       *)
10097: 	lt_prog_compiler_pic='-fPIC'
10098: 	;;
10099:       esac
10100:       ;;
10101: 
10102:     interix[3-9]*)
10103:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10104:       # Instead, we relocate shared libraries at runtime.
10105:       ;;
10106: 
10107:     msdosdjgpp*)
10108:       # Just because we use GCC doesn't mean we suddenly get shared libraries
10109:       # on systems that don't support them.
10110:       lt_prog_compiler_can_build_shared=no
10111:       enable_shared=no
10112:       ;;
10113: 
10114:     *nto* | *qnx*)
10115:       # QNX uses GNU C++, but need to define -shared option too, otherwise
10116:       # it will coredump.
10117:       lt_prog_compiler_pic='-fPIC -shared'
10118:       ;;
10119: 
10120:     sysv4*MP*)
10121:       if test -d /usr/nec; then
10122: 	lt_prog_compiler_pic=-Kconform_pic
10123:       fi
10124:       ;;
10125: 
10126:     *)
10127:       lt_prog_compiler_pic='-fPIC'
10128:       ;;
10129:     esac
10130: 
10131:     case $cc_basename in
10132:     nvcc*) # Cuda Compiler Driver 2.2
10133:       lt_prog_compiler_wl='-Xlinker '
10134:       if test -n "$lt_prog_compiler_pic"; then
10135:         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10136:       fi
10137:       ;;
10138:     esac
10139:   else
10140:     # PORTME Check for flag to pass linker flags through the system compiler.
10141:     case $host_os in
10142:     aix*)
10143:       lt_prog_compiler_wl='-Wl,'
10144:       if test "$host_cpu" = ia64; then
10145: 	# AIX 5 now supports IA64 processor
10146: 	lt_prog_compiler_static='-Bstatic'
10147:       else
10148: 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10149:       fi
10150:       ;;
10151: 
10152:     mingw* | cygwin* | pw32* | os2* | cegcc*)
10153:       # This hack is so that the source file can tell whether it is being
10154:       # built for inclusion in a dll (and should export symbols for example).
10155:       lt_prog_compiler_pic='-DDLL_EXPORT'
10156:       ;;
10157: 
10158:     hpux9* | hpux10* | hpux11*)
10159:       lt_prog_compiler_wl='-Wl,'
10160:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10161:       # not for PA HP-UX.
10162:       case $host_cpu in
10163:       hppa*64*|ia64*)
10164: 	# +Z the default
10165: 	;;
10166:       *)
10167: 	lt_prog_compiler_pic='+Z'
10168: 	;;
10169:       esac
10170:       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10171:       lt_prog_compiler_static='${wl}-a ${wl}archive'
10172:       ;;
10173: 
10174:     irix5* | irix6* | nonstopux*)
10175:       lt_prog_compiler_wl='-Wl,'
10176:       # PIC (with -KPIC) is the default.
10177:       lt_prog_compiler_static='-non_shared'
10178:       ;;
10179: 
10180:     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10181:       case $cc_basename in
10182:       # old Intel for x86_64 which still supported -KPIC.
10183:       ecc*)
10184: 	lt_prog_compiler_wl='-Wl,'
10185: 	lt_prog_compiler_pic='-KPIC'
10186: 	lt_prog_compiler_static='-static'
10187:         ;;
10188:       # icc used to be incompatible with GCC.
10189:       # ICC 10 doesn't accept -KPIC any more.
10190:       icc* | ifort*)
10191: 	lt_prog_compiler_wl='-Wl,'
10192: 	lt_prog_compiler_pic='-fPIC'
10193: 	lt_prog_compiler_static='-static'
10194:         ;;
10195:       # Lahey Fortran 8.1.
10196:       lf95*)
10197: 	lt_prog_compiler_wl='-Wl,'
10198: 	lt_prog_compiler_pic='--shared'
10199: 	lt_prog_compiler_static='--static'
10200: 	;;
10201:       nagfor*)
10202: 	# NAG Fortran compiler
10203: 	lt_prog_compiler_wl='-Wl,-Wl,,'
10204: 	lt_prog_compiler_pic='-PIC'
10205: 	lt_prog_compiler_static='-Bstatic'
10206: 	;;
10207:       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10208:         # Portland Group compilers (*not* the Pentium gcc compiler,
10209: 	# which looks to be a dead project)
10210: 	lt_prog_compiler_wl='-Wl,'
10211: 	lt_prog_compiler_pic='-fpic'
10212: 	lt_prog_compiler_static='-Bstatic'
10213:         ;;
10214:       ccc*)
10215:         lt_prog_compiler_wl='-Wl,'
10216:         # All Alpha code is PIC.
10217:         lt_prog_compiler_static='-non_shared'
10218:         ;;
10219:       xl* | bgxl* | bgf* | mpixl*)
10220: 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10221: 	lt_prog_compiler_wl='-Wl,'
10222: 	lt_prog_compiler_pic='-qpic'
10223: 	lt_prog_compiler_static='-qstaticlink'
10224: 	;;
10225:       *)
10226: 	case `$CC -V 2>&1 | sed 5q` in
10227: 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10228: 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10229: 	  lt_prog_compiler_pic='-KPIC'
10230: 	  lt_prog_compiler_static='-Bstatic'
10231: 	  lt_prog_compiler_wl=''
10232: 	  ;;
10233: 	*Sun\ F* | *Sun*Fortran*)
10234: 	  lt_prog_compiler_pic='-KPIC'
10235: 	  lt_prog_compiler_static='-Bstatic'
10236: 	  lt_prog_compiler_wl='-Qoption ld '
10237: 	  ;;
10238: 	*Sun\ C*)
10239: 	  # Sun C 5.9
10240: 	  lt_prog_compiler_pic='-KPIC'
10241: 	  lt_prog_compiler_static='-Bstatic'
10242: 	  lt_prog_compiler_wl='-Wl,'
10243: 	  ;;
10244:         *Intel*\ [CF]*Compiler*)
10245: 	  lt_prog_compiler_wl='-Wl,'
10246: 	  lt_prog_compiler_pic='-fPIC'
10247: 	  lt_prog_compiler_static='-static'
10248: 	  ;;
10249: 	*Portland\ Group*)
10250: 	  lt_prog_compiler_wl='-Wl,'
10251: 	  lt_prog_compiler_pic='-fpic'
10252: 	  lt_prog_compiler_static='-Bstatic'
10253: 	  ;;
10254: 	esac
10255: 	;;
10256:       esac
10257:       ;;
10258: 
10259:     newsos6)
10260:       lt_prog_compiler_pic='-KPIC'
10261:       lt_prog_compiler_static='-Bstatic'
10262:       ;;
10263: 
10264:     *nto* | *qnx*)
10265:       # QNX uses GNU C++, but need to define -shared option too, otherwise
10266:       # it will coredump.
10267:       lt_prog_compiler_pic='-fPIC -shared'
10268:       ;;
10269: 
10270:     osf3* | osf4* | osf5*)
10271:       lt_prog_compiler_wl='-Wl,'
10272:       # All OSF/1 code is PIC.
10273:       lt_prog_compiler_static='-non_shared'
10274:       ;;
10275: 
10276:     rdos*)
10277:       lt_prog_compiler_static='-non_shared'
10278:       ;;
10279: 
10280:     solaris*)
10281:       lt_prog_compiler_pic='-KPIC'
10282:       lt_prog_compiler_static='-Bstatic'
10283:       case $cc_basename in
10284:       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10285: 	lt_prog_compiler_wl='-Qoption ld ';;
10286:       *)
10287: 	lt_prog_compiler_wl='-Wl,';;
10288:       esac
10289:       ;;
10290: 
10291:     sunos4*)
10292:       lt_prog_compiler_wl='-Qoption ld '
10293:       lt_prog_compiler_pic='-PIC'
10294:       lt_prog_compiler_static='-Bstatic'
10295:       ;;
10296: 
10297:     sysv4 | sysv4.2uw2* | sysv4.3*)
10298:       lt_prog_compiler_wl='-Wl,'
10299:       lt_prog_compiler_pic='-KPIC'
10300:       lt_prog_compiler_static='-Bstatic'
10301:       ;;
10302: 
10303:     sysv4*MP*)
10304:       if test -d /usr/nec ;then
10305: 	lt_prog_compiler_pic='-Kconform_pic'
10306: 	lt_prog_compiler_static='-Bstatic'
10307:       fi
10308:       ;;
10309: 
10310:     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10311:       lt_prog_compiler_wl='-Wl,'
10312:       lt_prog_compiler_pic='-KPIC'
10313:       lt_prog_compiler_static='-Bstatic'
10314:       ;;
10315: 
10316:     unicos*)
10317:       lt_prog_compiler_wl='-Wl,'
10318:       lt_prog_compiler_can_build_shared=no
10319:       ;;
10320: 
10321:     uts4*)
10322:       lt_prog_compiler_pic='-pic'
10323:       lt_prog_compiler_static='-Bstatic'
10324:       ;;
10325: 
10326:     *)
10327:       lt_prog_compiler_can_build_shared=no
10328:       ;;
10329:     esac
10330:   fi
10331: 
10332: case $host_os in
10333:   # For platforms which do not support PIC, -DPIC is meaningless:
10334:   *djgpp*)
10335:     lt_prog_compiler_pic=
10336:     ;;
10337:   *)
10338:     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10339:     ;;
10340: esac
10341: 
10342: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10343: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10344: if ${lt_cv_prog_compiler_pic+:} false; then :
10345:   $as_echo_n "(cached) " >&6
10346: else
10347:   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10348: fi
10349: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10350: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10351: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10352: 
10353: #
10354: # Check to make sure the PIC flag actually works.
10355: #
10356: if test -n "$lt_prog_compiler_pic"; then
10357:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10358: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10359: if ${lt_cv_prog_compiler_pic_works+:} false; then :
10360:   $as_echo_n "(cached) " >&6
10361: else
10362:   lt_cv_prog_compiler_pic_works=no
10363:    ac_outfile=conftest.$ac_objext
10364:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10365:    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10366:    # Insert the option either (1) after the last *FLAGS variable, or
10367:    # (2) before a word containing "conftest.", or (3) at the end.
10368:    # Note that $ac_compile itself does not contain backslashes and begins
10369:    # with a dollar sign (not a hyphen), so the echo should work correctly.
10370:    # The option is referenced via a variable to avoid confusing sed.
10371:    lt_compile=`echo "$ac_compile" | $SED \
10372:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10373:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10374:    -e 's:$: $lt_compiler_flag:'`
10375:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10376:    (eval "$lt_compile" 2>conftest.err)
10377:    ac_status=$?
10378:    cat conftest.err >&5
10379:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380:    if (exit $ac_status) && test -s "$ac_outfile"; then
10381:      # The compiler can only warn and ignore the option if not recognized
10382:      # So say no if there are warnings other than the usual output.
10383:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10384:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10385:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10386:        lt_cv_prog_compiler_pic_works=yes
10387:      fi
10388:    fi
10389:    $RM conftest*
10390: 
10391: fi
10392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10393: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10394: 
10395: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10396:     case $lt_prog_compiler_pic in
10397:      "" | " "*) ;;
10398:      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10399:      esac
10400: else
10401:     lt_prog_compiler_pic=
10402:      lt_prog_compiler_can_build_shared=no
10403: fi
10404: 
10405: fi
10406: 
10407: 
10408: 
10409: 
10410: 
10411: 
10412: 
10413: 
10414: 
10415: 
10416: 
10417: #
10418: # Check to make sure the static flag actually works.
10419: #
10420: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10422: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10423: if ${lt_cv_prog_compiler_static_works+:} false; then :
10424:   $as_echo_n "(cached) " >&6
10425: else
10426:   lt_cv_prog_compiler_static_works=no
10427:    save_LDFLAGS="$LDFLAGS"
10428:    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10429:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10430:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10431:      # The linker can only warn and ignore the option if not recognized
10432:      # So say no if there are warnings
10433:      if test -s conftest.err; then
10434:        # Append any errors to the config.log.
10435:        cat conftest.err 1>&5
10436:        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10437:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10438:        if diff conftest.exp conftest.er2 >/dev/null; then
10439:          lt_cv_prog_compiler_static_works=yes
10440:        fi
10441:      else
10442:        lt_cv_prog_compiler_static_works=yes
10443:      fi
10444:    fi
10445:    $RM -r conftest*
10446:    LDFLAGS="$save_LDFLAGS"
10447: 
10448: fi
10449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10450: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10451: 
10452: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10453:     :
10454: else
10455:     lt_prog_compiler_static=
10456: fi
10457: 
10458: 
10459: 
10460: 
10461: 
10462: 
10463: 
10464:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10465: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10466: if ${lt_cv_prog_compiler_c_o+:} false; then :
10467:   $as_echo_n "(cached) " >&6
10468: else
10469:   lt_cv_prog_compiler_c_o=no
10470:    $RM -r conftest 2>/dev/null
10471:    mkdir conftest
10472:    cd conftest
10473:    mkdir out
10474:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10475: 
10476:    lt_compiler_flag="-o out/conftest2.$ac_objext"
10477:    # Insert the option either (1) after the last *FLAGS variable, or
10478:    # (2) before a word containing "conftest.", or (3) at the end.
10479:    # Note that $ac_compile itself does not contain backslashes and begins
10480:    # with a dollar sign (not a hyphen), so the echo should work correctly.
10481:    lt_compile=`echo "$ac_compile" | $SED \
10482:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10483:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10484:    -e 's:$: $lt_compiler_flag:'`
10485:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10486:    (eval "$lt_compile" 2>out/conftest.err)
10487:    ac_status=$?
10488:    cat out/conftest.err >&5
10489:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10491:    then
10492:      # The compiler can only warn and ignore the option if not recognized
10493:      # So say no if there are warnings
10494:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10495:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10496:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10497:        lt_cv_prog_compiler_c_o=yes
10498:      fi
10499:    fi
10500:    chmod u+w . 2>&5
10501:    $RM conftest*
10502:    # SGI C++ compiler will create directory out/ii_files/ for
10503:    # template instantiation
10504:    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10505:    $RM out/* && rmdir out
10506:    cd ..
10507:    $RM -r conftest
10508:    $RM conftest*
10509: 
10510: fi
10511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10512: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10513: 
10514: 
10515: 
10516: 
10517: 
10518: 
10519:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10520: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10521: if ${lt_cv_prog_compiler_c_o+:} false; then :
10522:   $as_echo_n "(cached) " >&6
10523: else
10524:   lt_cv_prog_compiler_c_o=no
10525:    $RM -r conftest 2>/dev/null
10526:    mkdir conftest
10527:    cd conftest
10528:    mkdir out
10529:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10530: 
10531:    lt_compiler_flag="-o out/conftest2.$ac_objext"
10532:    # Insert the option either (1) after the last *FLAGS variable, or
10533:    # (2) before a word containing "conftest.", or (3) at the end.
10534:    # Note that $ac_compile itself does not contain backslashes and begins
10535:    # with a dollar sign (not a hyphen), so the echo should work correctly.
10536:    lt_compile=`echo "$ac_compile" | $SED \
10537:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10538:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10539:    -e 's:$: $lt_compiler_flag:'`
10540:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10541:    (eval "$lt_compile" 2>out/conftest.err)
10542:    ac_status=$?
10543:    cat out/conftest.err >&5
10544:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10546:    then
10547:      # The compiler can only warn and ignore the option if not recognized
10548:      # So say no if there are warnings
10549:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10550:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10551:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10552:        lt_cv_prog_compiler_c_o=yes
10553:      fi
10554:    fi
10555:    chmod u+w . 2>&5
10556:    $RM conftest*
10557:    # SGI C++ compiler will create directory out/ii_files/ for
10558:    # template instantiation
10559:    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10560:    $RM out/* && rmdir out
10561:    cd ..
10562:    $RM -r conftest
10563:    $RM conftest*
10564: 
10565: fi
10566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10567: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10568: 
10569: 
10570: 
10571: 
10572: hard_links="nottested"
10573: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10574:   # do not overwrite the value of need_locks provided by the user
10575:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10576: $as_echo_n "checking if we can lock with hard links... " >&6; }
10577:   hard_links=yes
10578:   $RM conftest*
10579:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10580:   touch conftest.a
10581:   ln conftest.a conftest.b 2>&5 || hard_links=no
10582:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10583:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10584: $as_echo "$hard_links" >&6; }
10585:   if test "$hard_links" = no; then
10586:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10587: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10588:     need_locks=warn
10589:   fi
10590: else
10591:   need_locks=no
10592: fi
10593: 
10594: 
10595: 
10596: 
10597: 
10598: 
10599:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10600: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10601: 
10602:   runpath_var=
10603:   allow_undefined_flag=
10604:   always_export_symbols=no
10605:   archive_cmds=
10606:   archive_expsym_cmds=
10607:   compiler_needs_object=no
10608:   enable_shared_with_static_runtimes=no
10609:   export_dynamic_flag_spec=
10610:   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10611:   hardcode_automatic=no
10612:   hardcode_direct=no
10613:   hardcode_direct_absolute=no
10614:   hardcode_libdir_flag_spec=
10615:   hardcode_libdir_separator=
10616:   hardcode_minus_L=no
10617:   hardcode_shlibpath_var=unsupported
10618:   inherit_rpath=no
10619:   link_all_deplibs=unknown
10620:   module_cmds=
10621:   module_expsym_cmds=
10622:   old_archive_from_new_cmds=
10623:   old_archive_from_expsyms_cmds=
10624:   thread_safe_flag_spec=
10625:   whole_archive_flag_spec=
10626:   # include_expsyms should be a list of space-separated symbols to be *always*
10627:   # included in the symbol list
10628:   include_expsyms=
10629:   # exclude_expsyms can be an extended regexp of symbols to exclude
10630:   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10631:   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10632:   # as well as any symbol that contains `d'.
10633:   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10634:   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10635:   # platforms (ab)use it in PIC code, but their linkers get confused if
10636:   # the symbol is explicitly referenced.  Since portable code cannot
10637:   # rely on this symbol name, it's probably fine to never include it in
10638:   # preloaded symbol tables.
10639:   # Exclude shared library initialization/finalization symbols.
10640:   extract_expsyms_cmds=
10641: 
10642:   case $host_os in
10643:   cygwin* | mingw* | pw32* | cegcc*)
10644:     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10645:     # When not using gcc, we currently assume that we are using
10646:     # Microsoft Visual C++.
10647:     if test "$GCC" != yes; then
10648:       with_gnu_ld=no
10649:     fi
10650:     ;;
10651:   interix*)
10652:     # we just hope/assume this is gcc and not c89 (= MSVC++)
10653:     with_gnu_ld=yes
10654:     ;;
10655:   openbsd*)
10656:     with_gnu_ld=no
10657:     ;;
10658:   esac
10659: 
10660:   ld_shlibs=yes
10661: 
10662:   # On some targets, GNU ld is compatible enough with the native linker
10663:   # that we're better off using the native interface for both.
10664:   lt_use_gnu_ld_interface=no
10665:   if test "$with_gnu_ld" = yes; then
10666:     case $host_os in
10667:       aix*)
10668: 	# The AIX port of GNU ld has always aspired to compatibility
10669: 	# with the native linker.  However, as the warning in the GNU ld
10670: 	# block says, versions before 2.19.5* couldn't really create working
10671: 	# shared libraries, regardless of the interface used.
10672: 	case `$LD -v 2>&1` in
10673: 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10674: 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10675: 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10676: 	  *)
10677: 	    lt_use_gnu_ld_interface=yes
10678: 	    ;;
10679: 	esac
10680: 	;;
10681:       *)
10682: 	lt_use_gnu_ld_interface=yes
10683: 	;;
10684:     esac
10685:   fi
10686: 
10687:   if test "$lt_use_gnu_ld_interface" = yes; then
10688:     # If archive_cmds runs LD, not CC, wlarc should be empty
10689:     wlarc='${wl}'
10690: 
10691:     # Set some defaults for GNU ld with shared library support. These
10692:     # are reset later if shared libraries are not supported. Putting them
10693:     # here allows them to be overridden if necessary.
10694:     runpath_var=LD_RUN_PATH
10695:     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10696:     export_dynamic_flag_spec='${wl}--export-dynamic'
10697:     # ancient GNU ld didn't support --whole-archive et. al.
10698:     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10699:       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10700:     else
10701:       whole_archive_flag_spec=
10702:     fi
10703:     supports_anon_versioning=no
10704:     case `$LD -v 2>&1` in
10705:       *GNU\ gold*) supports_anon_versioning=yes ;;
10706:       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10707:       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10708:       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10709:       *\ 2.11.*) ;; # other 2.11 versions
10710:       *) supports_anon_versioning=yes ;;
10711:     esac
10712: 
10713:     # See if GNU ld supports shared libraries.
10714:     case $host_os in
10715:     aix[3-9]*)
10716:       # On AIX/PPC, the GNU linker is very broken
10717:       if test "$host_cpu" != ia64; then
10718: 	ld_shlibs=no
10719: 	cat <<_LT_EOF 1>&2
10720: 
10721: *** Warning: the GNU linker, at least up to release 2.19, is reported
10722: *** to be unable to reliably create shared libraries on AIX.
10723: *** Therefore, libtool is disabling shared libraries support.  If you
10724: *** really care for shared libraries, you may want to install binutils
10725: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10726: *** You will then need to restart the configuration process.
10727: 
10728: _LT_EOF
10729:       fi
10730:       ;;
10731: 
10732:     amigaos*)
10733:       case $host_cpu in
10734:       powerpc)
10735:             # see comment about AmigaOS4 .so support
10736:             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10737:             archive_expsym_cmds=''
10738:         ;;
10739:       m68k)
10740:             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10741:             hardcode_libdir_flag_spec='-L$libdir'
10742:             hardcode_minus_L=yes
10743:         ;;
10744:       esac
10745:       ;;
10746: 
10747:     beos*)
10748:       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10749: 	allow_undefined_flag=unsupported
10750: 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10751: 	# support --undefined.  This deserves some investigation.  FIXME
10752: 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10753:       else
10754: 	ld_shlibs=no
10755:       fi
10756:       ;;
10757: 
10758:     cygwin* | mingw* | pw32* | cegcc*)
10759:       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10760:       # as there is no search path for DLLs.
10761:       hardcode_libdir_flag_spec='-L$libdir'
10762:       export_dynamic_flag_spec='${wl}--export-all-symbols'
10763:       allow_undefined_flag=unsupported
10764:       always_export_symbols=no
10765:       enable_shared_with_static_runtimes=yes
10766:       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10767:       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10768: 
10769:       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10770:         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10771: 	# If the export-symbols file already is a .def file (1st line
10772: 	# is EXPORTS), use it as is; otherwise, prepend...
10773: 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10774: 	  cp $export_symbols $output_objdir/$soname.def;
10775: 	else
10776: 	  echo EXPORTS > $output_objdir/$soname.def;
10777: 	  cat $export_symbols >> $output_objdir/$soname.def;
10778: 	fi~
10779: 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10780:       else
10781: 	ld_shlibs=no
10782:       fi
10783:       ;;
10784: 
10785:     haiku*)
10786:       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10787:       link_all_deplibs=yes
10788:       ;;
10789: 
10790:     interix[3-9]*)
10791:       hardcode_direct=no
10792:       hardcode_shlibpath_var=no
10793:       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10794:       export_dynamic_flag_spec='${wl}-E'
10795:       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10796:       # Instead, shared libraries are loaded at an image base (0x10000000 by
10797:       # default) and relocated if they conflict, which is a slow very memory
10798:       # consuming and fragmenting process.  To avoid this, we pick a random,
10799:       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10800:       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10801:       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10802:       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10803:       ;;
10804: 
10805:     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10806:       tmp_diet=no
10807:       if test "$host_os" = linux-dietlibc; then
10808: 	case $cc_basename in
10809: 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10810: 	esac
10811:       fi
10812:       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10813: 	 && test "$tmp_diet" = no
10814:       then
10815: 	tmp_addflag=' $pic_flag'
10816: 	tmp_sharedflag='-shared'
10817: 	case $cc_basename,$host_cpu in
10818:         pgcc*)				# Portland Group C compiler
10819: 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10820: 	  tmp_addflag=' $pic_flag'
10821: 	  ;;
10822: 	pgf77* | pgf90* | pgf95* | pgfortran*)
10823: 					# Portland Group f77 and f90 compilers
10824: 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10825: 	  tmp_addflag=' $pic_flag -Mnomain' ;;
10826: 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10827: 	  tmp_addflag=' -i_dynamic' ;;
10828: 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10829: 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10830: 	ifc* | ifort*)			# Intel Fortran compiler
10831: 	  tmp_addflag=' -nofor_main' ;;
10832: 	lf95*)				# Lahey Fortran 8.1
10833: 	  whole_archive_flag_spec=
10834: 	  tmp_sharedflag='--shared' ;;
10835: 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10836: 	  tmp_sharedflag='-qmkshrobj'
10837: 	  tmp_addflag= ;;
10838: 	nvcc*)	# Cuda Compiler Driver 2.2
10839: 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10840: 	  compiler_needs_object=yes
10841: 	  ;;
10842: 	esac
10843: 	case `$CC -V 2>&1 | sed 5q` in
10844: 	*Sun\ C*)			# Sun C 5.9
10845: 	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10846: 	  compiler_needs_object=yes
10847: 	  tmp_sharedflag='-G' ;;
10848: 	*Sun\ F*)			# Sun Fortran 8.3
10849: 	  tmp_sharedflag='-G' ;;
10850: 	esac
10851: 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10852: 
10853:         if test "x$supports_anon_versioning" = xyes; then
10854:           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10855: 	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10856: 	    echo "local: *; };" >> $output_objdir/$libname.ver~
10857: 	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10858:         fi
10859: 
10860: 	case $cc_basename in
10861: 	xlf* | bgf* | bgxlf* | mpixlf*)
10862: 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10863: 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10864: 	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10865: 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10866: 	  if test "x$supports_anon_versioning" = xyes; then
10867: 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10868: 	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10869: 	      echo "local: *; };" >> $output_objdir/$libname.ver~
10870: 	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10871: 	  fi
10872: 	  ;;
10873: 	esac
10874:       else
10875:         ld_shlibs=no
10876:       fi
10877:       ;;
10878: 
10879:     netbsd*)
10880:       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10881: 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10882: 	wlarc=
10883:       else
10884: 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10885: 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10886:       fi
10887:       ;;
10888: 
10889:     solaris*)
10890:       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10891: 	ld_shlibs=no
10892: 	cat <<_LT_EOF 1>&2
10893: 
10894: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10895: *** create shared libraries on Solaris systems.  Therefore, libtool
10896: *** is disabling shared libraries support.  We urge you to upgrade GNU
10897: *** binutils to release 2.9.1 or newer.  Another option is to modify
10898: *** your PATH or compiler configuration so that the native linker is
10899: *** used, and then restart.
10900: 
10901: _LT_EOF
10902:       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10903: 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10904: 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10905:       else
10906: 	ld_shlibs=no
10907:       fi
10908:       ;;
10909: 
10910:     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10911:       case `$LD -v 2>&1` in
10912:         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10913: 	ld_shlibs=no
10914: 	cat <<_LT_EOF 1>&2
10915: 
10916: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10917: *** reliably create shared libraries on SCO systems.  Therefore, libtool
10918: *** is disabling shared libraries support.  We urge you to upgrade GNU
10919: *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10920: *** your PATH or compiler configuration so that the native linker is
10921: *** used, and then restart.
10922: 
10923: _LT_EOF
10924: 	;;
10925: 	*)
10926: 	  # For security reasons, it is highly recommended that you always
10927: 	  # use absolute paths for naming shared libraries, and exclude the
10928: 	  # DT_RUNPATH tag from executables and libraries.  But doing so
10929: 	  # requires that you compile everything twice, which is a pain.
10930: 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10931: 	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10932: 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10933: 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10934: 	  else
10935: 	    ld_shlibs=no
10936: 	  fi
10937: 	;;
10938:       esac
10939:       ;;
10940: 
10941:     sunos4*)
10942:       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10943:       wlarc=
10944:       hardcode_direct=yes
10945:       hardcode_shlibpath_var=no
10946:       ;;
10947: 
10948:     *)
10949:       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10950: 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10951: 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10952:       else
10953: 	ld_shlibs=no
10954:       fi
10955:       ;;
10956:     esac
10957: 
10958:     if test "$ld_shlibs" = no; then
10959:       runpath_var=
10960:       hardcode_libdir_flag_spec=
10961:       export_dynamic_flag_spec=
10962:       whole_archive_flag_spec=
10963:     fi
10964:   else
10965:     # PORTME fill in a description of your system's linker (not GNU ld)
10966:     case $host_os in
10967:     aix3*)
10968:       allow_undefined_flag=unsupported
10969:       always_export_symbols=yes
10970:       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10971:       # Note: this linker hardcodes the directories in LIBPATH if there
10972:       # are no directories specified by -L.
10973:       hardcode_minus_L=yes
10974:       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10975: 	# Neither direct hardcoding nor static linking is supported with a
10976: 	# broken collect2.
10977: 	hardcode_direct=unsupported
10978:       fi
10979:       ;;
10980: 
10981:     aix[4-9]*)
10982:       if test "$host_cpu" = ia64; then
10983: 	# On IA64, the linker does run time linking by default, so we don't
10984: 	# have to do anything special.
10985: 	aix_use_runtimelinking=no
10986: 	exp_sym_flag='-Bexport'
10987: 	no_entry_flag=""
10988:       else
10989: 	# If we're using GNU nm, then we don't want the "-C" option.
10990: 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10991: 	# Also, AIX nm treats weak defined symbols like other global
10992: 	# defined symbols, whereas GNU nm marks them as "W".
10993: 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10994: 	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10995: 	else
10996: 	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10997: 	fi
10998: 	aix_use_runtimelinking=no
10999: 
11000: 	# Test if we are trying to use run time linking or normal
11001: 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11002: 	# need to do runtime linking.
11003: 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11004: 	  for ld_flag in $LDFLAGS; do
11005: 	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11006: 	    aix_use_runtimelinking=yes
11007: 	    break
11008: 	  fi
11009: 	  done
11010: 	  ;;
11011: 	esac
11012: 
11013: 	exp_sym_flag='-bexport'
11014: 	no_entry_flag='-bnoentry'
11015:       fi
11016: 
11017:       # When large executables or shared objects are built, AIX ld can
11018:       # have problems creating the table of contents.  If linking a library
11019:       # or program results in "error TOC overflow" add -mminimal-toc to
11020:       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11021:       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11022: 
11023:       archive_cmds=''
11024:       hardcode_direct=yes
11025:       hardcode_direct_absolute=yes
11026:       hardcode_libdir_separator=':'
11027:       link_all_deplibs=yes
11028:       file_list_spec='${wl}-f,'
11029: 
11030:       if test "$GCC" = yes; then
11031: 	case $host_os in aix4.[012]|aix4.[012].*)
11032: 	# We only want to do this on AIX 4.2 and lower, the check
11033: 	# below for broken collect2 doesn't work under 4.3+
11034: 	  collect2name=`${CC} -print-prog-name=collect2`
11035: 	  if test -f "$collect2name" &&
11036: 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11037: 	  then
11038: 	  # We have reworked collect2
11039: 	  :
11040: 	  else
11041: 	  # We have old collect2
11042: 	  hardcode_direct=unsupported
11043: 	  # It fails to find uninstalled libraries when the uninstalled
11044: 	  # path is not listed in the libpath.  Setting hardcode_minus_L
11045: 	  # to unsupported forces relinking
11046: 	  hardcode_minus_L=yes
11047: 	  hardcode_libdir_flag_spec='-L$libdir'
11048: 	  hardcode_libdir_separator=
11049: 	  fi
11050: 	  ;;
11051: 	esac
11052: 	shared_flag='-shared'
11053: 	if test "$aix_use_runtimelinking" = yes; then
11054: 	  shared_flag="$shared_flag "'${wl}-G'
11055: 	fi
11056:       else
11057: 	# not using gcc
11058: 	if test "$host_cpu" = ia64; then
11059: 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11060: 	# chokes on -Wl,-G. The following line is correct:
11061: 	  shared_flag='-G'
11062: 	else
11063: 	  if test "$aix_use_runtimelinking" = yes; then
11064: 	    shared_flag='${wl}-G'
11065: 	  else
11066: 	    shared_flag='${wl}-bM:SRE'
11067: 	  fi
11068: 	fi
11069:       fi
11070: 
11071:       export_dynamic_flag_spec='${wl}-bexpall'
11072:       # It seems that -bexpall does not export symbols beginning with
11073:       # underscore (_), so it is better to generate a list of symbols to export.
11074:       always_export_symbols=yes
11075:       if test "$aix_use_runtimelinking" = yes; then
11076: 	# Warning - without using the other runtime loading flags (-brtl),
11077: 	# -berok will link without error, but may produce a broken library.
11078: 	allow_undefined_flag='-berok'
11079:         # Determine the default libpath from the value encoded in an
11080:         # empty executable.
11081:         if test "${lt_cv_aix_libpath+set}" = set; then
11082:   aix_libpath=$lt_cv_aix_libpath
11083: else
11084:   if ${lt_cv_aix_libpath_+:} false; then :
11085:   $as_echo_n "(cached) " >&6
11086: else
11087:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088: /* end confdefs.h.  */
11089: 
11090: int
11091: main ()
11092: {
11093: 
11094:   ;
11095:   return 0;
11096: }
11097: _ACEOF
11098: if ac_fn_c_try_link "$LINENO"; then :
11099: 
11100:   lt_aix_libpath_sed='
11101:       /Import File Strings/,/^$/ {
11102: 	  /^0/ {
11103: 	      s/^0  *\([^ ]*\) *$/\1/
11104: 	      p
11105: 	  }
11106:       }'
11107:   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11108:   # Check for a 64-bit object if we didn't find anything.
11109:   if test -z "$lt_cv_aix_libpath_"; then
11110:     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11111:   fi
11112: fi
11113: rm -f core conftest.err conftest.$ac_objext \
11114:     conftest$ac_exeext conftest.$ac_ext
11115:   if test -z "$lt_cv_aix_libpath_"; then
11116:     lt_cv_aix_libpath_="/usr/lib:/lib"
11117:   fi
11118: 
11119: fi
11120: 
11121:   aix_libpath=$lt_cv_aix_libpath_
11122: fi
11123: 
11124:         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11125:         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11126:       else
11127: 	if test "$host_cpu" = ia64; then
11128: 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11129: 	  allow_undefined_flag="-z nodefs"
11130: 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11131: 	else
11132: 	 # Determine the default libpath from the value encoded in an
11133: 	 # empty executable.
11134: 	 if test "${lt_cv_aix_libpath+set}" = set; then
11135:   aix_libpath=$lt_cv_aix_libpath
11136: else
11137:   if ${lt_cv_aix_libpath_+:} false; then :
11138:   $as_echo_n "(cached) " >&6
11139: else
11140:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141: /* end confdefs.h.  */
11142: 
11143: int
11144: main ()
11145: {
11146: 
11147:   ;
11148:   return 0;
11149: }
11150: _ACEOF
11151: if ac_fn_c_try_link "$LINENO"; then :
11152: 
11153:   lt_aix_libpath_sed='
11154:       /Import File Strings/,/^$/ {
11155: 	  /^0/ {
11156: 	      s/^0  *\([^ ]*\) *$/\1/
11157: 	      p
11158: 	  }
11159:       }'
11160:   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11161:   # Check for a 64-bit object if we didn't find anything.
11162:   if test -z "$lt_cv_aix_libpath_"; then
11163:     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11164:   fi
11165: fi
11166: rm -f core conftest.err conftest.$ac_objext \
11167:     conftest$ac_exeext conftest.$ac_ext
11168:   if test -z "$lt_cv_aix_libpath_"; then
11169:     lt_cv_aix_libpath_="/usr/lib:/lib"
11170:   fi
11171: 
11172: fi
11173: 
11174:   aix_libpath=$lt_cv_aix_libpath_
11175: fi
11176: 
11177: 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11178: 	  # Warning - without using the other run time loading flags,
11179: 	  # -berok will link without error, but may produce a broken library.
11180: 	  no_undefined_flag=' ${wl}-bernotok'
11181: 	  allow_undefined_flag=' ${wl}-berok'
11182: 	  if test "$with_gnu_ld" = yes; then
11183: 	    # We only use this code for GNU lds that support --whole-archive.
11184: 	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11185: 	  else
11186: 	    # Exported symbols can be pulled into shared objects from archives
11187: 	    whole_archive_flag_spec='$convenience'
11188: 	  fi
11189: 	  archive_cmds_need_lc=yes
11190: 	  # This is similar to how AIX traditionally builds its shared libraries.
11191: 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11192: 	fi
11193:       fi
11194:       ;;
11195: 
11196:     amigaos*)
11197:       case $host_cpu in
11198:       powerpc)
11199:             # see comment about AmigaOS4 .so support
11200:             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11201:             archive_expsym_cmds=''
11202:         ;;
11203:       m68k)
11204:             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11205:             hardcode_libdir_flag_spec='-L$libdir'
11206:             hardcode_minus_L=yes
11207:         ;;
11208:       esac
11209:       ;;
11210: 
11211:     bsdi[45]*)
11212:       export_dynamic_flag_spec=-rdynamic
11213:       ;;
11214: 
11215:     cygwin* | mingw* | pw32* | cegcc*)
11216:       # When not using gcc, we currently assume that we are using
11217:       # Microsoft Visual C++.
11218:       # hardcode_libdir_flag_spec is actually meaningless, as there is
11219:       # no search path for DLLs.
11220:       case $cc_basename in
11221:       cl*)
11222: 	# Native MSVC
11223: 	hardcode_libdir_flag_spec=' '
11224: 	allow_undefined_flag=unsupported
11225: 	always_export_symbols=yes
11226: 	file_list_spec='@'
11227: 	# Tell ltmain to make .lib files, not .a files.
11228: 	libext=lib
11229: 	# Tell ltmain to make .dll files, not .so files.
11230: 	shrext_cmds=".dll"
11231: 	# FIXME: Setting linknames here is a bad hack.
11232: 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11233: 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11234: 	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11235: 	  else
11236: 	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11237: 	  fi~
11238: 	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11239: 	  linknames='
11240: 	# The linker will not automatically build a static lib if we build a DLL.
11241: 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11242: 	enable_shared_with_static_runtimes=yes
11243: 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11244: 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11245: 	# Don't use ranlib
11246: 	old_postinstall_cmds='chmod 644 $oldlib'
11247: 	postlink_cmds='lt_outputfile="@OUTPUT@"~
11248: 	  lt_tool_outputfile="@TOOL_OUTPUT@"~
11249: 	  case $lt_outputfile in
11250: 	    *.exe|*.EXE) ;;
11251: 	    *)
11252: 	      lt_outputfile="$lt_outputfile.exe"
11253: 	      lt_tool_outputfile="$lt_tool_outputfile.exe"
11254: 	      ;;
11255: 	  esac~
11256: 	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11257: 	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11258: 	    $RM "$lt_outputfile.manifest";
11259: 	  fi'
11260: 	;;
11261:       *)
11262: 	# Assume MSVC wrapper
11263: 	hardcode_libdir_flag_spec=' '
11264: 	allow_undefined_flag=unsupported
11265: 	# Tell ltmain to make .lib files, not .a files.
11266: 	libext=lib
11267: 	# Tell ltmain to make .dll files, not .so files.
11268: 	shrext_cmds=".dll"
11269: 	# FIXME: Setting linknames here is a bad hack.
11270: 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11271: 	# The linker will automatically build a .lib file if we build a DLL.
11272: 	old_archive_from_new_cmds='true'
11273: 	# FIXME: Should let the user specify the lib program.
11274: 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11275: 	enable_shared_with_static_runtimes=yes
11276: 	;;
11277:       esac
11278:       ;;
11279: 
11280:     darwin* | rhapsody*)
11281: 
11282: 
11283:   archive_cmds_need_lc=no
11284:   hardcode_direct=no
11285:   hardcode_automatic=yes
11286:   hardcode_shlibpath_var=unsupported
11287:   if test "$lt_cv_ld_force_load" = "yes"; then
11288:     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11289: 
11290:   else
11291:     whole_archive_flag_spec=''
11292:   fi
11293:   link_all_deplibs=yes
11294:   allow_undefined_flag="$_lt_dar_allow_undefined"
11295:   case $cc_basename in
11296:      ifort*) _lt_dar_can_shared=yes ;;
11297:      *) _lt_dar_can_shared=$GCC ;;
11298:   esac
11299:   if test "$_lt_dar_can_shared" = "yes"; then
11300:     output_verbose_link_cmd=func_echo_all
11301:     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11302:     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11303:     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11304:     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11305: 
11306:   else
11307:   ld_shlibs=no
11308:   fi
11309: 
11310:       ;;
11311: 
11312:     dgux*)
11313:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11314:       hardcode_libdir_flag_spec='-L$libdir'
11315:       hardcode_shlibpath_var=no
11316:       ;;
11317: 
11318:     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11319:     # support.  Future versions do this automatically, but an explicit c++rt0.o
11320:     # does not break anything, and helps significantly (at the cost of a little
11321:     # extra space).
11322:     freebsd2.2*)
11323:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11324:       hardcode_libdir_flag_spec='-R$libdir'
11325:       hardcode_direct=yes
11326:       hardcode_shlibpath_var=no
11327:       ;;
11328: 
11329:     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11330:     freebsd2.*)
11331:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11332:       hardcode_direct=yes
11333:       hardcode_minus_L=yes
11334:       hardcode_shlibpath_var=no
11335:       ;;
11336: 
11337:     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11338:     freebsd* | dragonfly*)
11339:       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11340:       hardcode_libdir_flag_spec='-R$libdir'
11341:       hardcode_direct=yes
11342:       hardcode_shlibpath_var=no
11343:       ;;
11344: 
11345:     hpux9*)
11346:       if test "$GCC" = yes; then
11347: 	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11348:       else
11349: 	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11350:       fi
11351:       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11352:       hardcode_libdir_separator=:
11353:       hardcode_direct=yes
11354: 
11355:       # hardcode_minus_L: Not really in the search PATH,
11356:       # but as the default location of the library.
11357:       hardcode_minus_L=yes
11358:       export_dynamic_flag_spec='${wl}-E'
11359:       ;;
11360: 
11361:     hpux10*)
11362:       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11363: 	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11364:       else
11365: 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11366:       fi
11367:       if test "$with_gnu_ld" = no; then
11368: 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11369: 	hardcode_libdir_separator=:
11370: 	hardcode_direct=yes
11371: 	hardcode_direct_absolute=yes
11372: 	export_dynamic_flag_spec='${wl}-E'
11373: 	# hardcode_minus_L: Not really in the search PATH,
11374: 	# but as the default location of the library.
11375: 	hardcode_minus_L=yes
11376:       fi
11377:       ;;
11378: 
11379:     hpux11*)
11380:       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11381: 	case $host_cpu in
11382: 	hppa*64*)
11383: 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11384: 	  ;;
11385: 	ia64*)
11386: 	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11387: 	  ;;
11388: 	*)
11389: 	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11390: 	  ;;
11391: 	esac
11392:       else
11393: 	case $host_cpu in
11394: 	hppa*64*)
11395: 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11396: 	  ;;
11397: 	ia64*)
11398: 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11399: 	  ;;
11400: 	*)
11401: 
11402: 	  # Older versions of the 11.00 compiler do not understand -b yet
11403: 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11404: 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11405: $as_echo_n "checking if $CC understands -b... " >&6; }
11406: if ${lt_cv_prog_compiler__b+:} false; then :
11407:   $as_echo_n "(cached) " >&6
11408: else
11409:   lt_cv_prog_compiler__b=no
11410:    save_LDFLAGS="$LDFLAGS"
11411:    LDFLAGS="$LDFLAGS -b"
11412:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11413:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11414:      # The linker can only warn and ignore the option if not recognized
11415:      # So say no if there are warnings
11416:      if test -s conftest.err; then
11417:        # Append any errors to the config.log.
11418:        cat conftest.err 1>&5
11419:        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11420:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11421:        if diff conftest.exp conftest.er2 >/dev/null; then
11422:          lt_cv_prog_compiler__b=yes
11423:        fi
11424:      else
11425:        lt_cv_prog_compiler__b=yes
11426:      fi
11427:    fi
11428:    $RM -r conftest*
11429:    LDFLAGS="$save_LDFLAGS"
11430: 
11431: fi
11432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11433: $as_echo "$lt_cv_prog_compiler__b" >&6; }
11434: 
11435: if test x"$lt_cv_prog_compiler__b" = xyes; then
11436:     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11437: else
11438:     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11439: fi
11440: 
11441: 	  ;;
11442: 	esac
11443:       fi
11444:       if test "$with_gnu_ld" = no; then
11445: 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11446: 	hardcode_libdir_separator=:
11447: 
11448: 	case $host_cpu in
11449: 	hppa*64*|ia64*)
11450: 	  hardcode_direct=no
11451: 	  hardcode_shlibpath_var=no
11452: 	  ;;
11453: 	*)
11454: 	  hardcode_direct=yes
11455: 	  hardcode_direct_absolute=yes
11456: 	  export_dynamic_flag_spec='${wl}-E'
11457: 
11458: 	  # hardcode_minus_L: Not really in the search PATH,
11459: 	  # but as the default location of the library.
11460: 	  hardcode_minus_L=yes
11461: 	  ;;
11462: 	esac
11463:       fi
11464:       ;;
11465: 
11466:     irix5* | irix6* | nonstopux*)
11467:       if test "$GCC" = yes; then
11468: 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11469: 	# Try to use the -exported_symbol ld option, if it does not
11470: 	# work, assume that -exports_file does not work either and
11471: 	# implicitly export all symbols.
11472: 	# This should be the same for all languages, so no per-tag cache variable.
11473: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11474: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11475: if ${lt_cv_irix_exported_symbol+:} false; then :
11476:   $as_echo_n "(cached) " >&6
11477: else
11478:   save_LDFLAGS="$LDFLAGS"
11479: 	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11480: 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481: /* end confdefs.h.  */
11482: int foo (void) { return 0; }
11483: _ACEOF
11484: if ac_fn_c_try_link "$LINENO"; then :
11485:   lt_cv_irix_exported_symbol=yes
11486: else
11487:   lt_cv_irix_exported_symbol=no
11488: fi
11489: rm -f core conftest.err conftest.$ac_objext \
11490:     conftest$ac_exeext conftest.$ac_ext
11491:            LDFLAGS="$save_LDFLAGS"
11492: fi
11493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11494: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11495: 	if test "$lt_cv_irix_exported_symbol" = yes; then
11496:           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11497: 	fi
11498:       else
11499: 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11500: 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11501:       fi
11502:       archive_cmds_need_lc='no'
11503:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11504:       hardcode_libdir_separator=:
11505:       inherit_rpath=yes
11506:       link_all_deplibs=yes
11507:       ;;
11508: 
11509:     netbsd*)
11510:       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11511: 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11512:       else
11513: 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11514:       fi
11515:       hardcode_libdir_flag_spec='-R$libdir'
11516:       hardcode_direct=yes
11517:       hardcode_shlibpath_var=no
11518:       ;;
11519: 
11520:     newsos6)
11521:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11522:       hardcode_direct=yes
11523:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11524:       hardcode_libdir_separator=:
11525:       hardcode_shlibpath_var=no
11526:       ;;
11527: 
11528:     *nto* | *qnx*)
11529:       ;;
11530: 
11531:     openbsd*)
11532:       if test -f /usr/libexec/ld.so; then
11533: 	hardcode_direct=yes
11534: 	hardcode_shlibpath_var=no
11535: 	hardcode_direct_absolute=yes
11536: 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11537: 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11538: 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11539: 	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11540: 	  export_dynamic_flag_spec='${wl}-E'
11541: 	else
11542: 	  case $host_os in
11543: 	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11544: 	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11545: 	     hardcode_libdir_flag_spec='-R$libdir'
11546: 	     ;;
11547: 	   *)
11548: 	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11549: 	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11550: 	     ;;
11551: 	  esac
11552: 	fi
11553:       else
11554: 	ld_shlibs=no
11555:       fi
11556:       ;;
11557: 
11558:     os2*)
11559:       hardcode_libdir_flag_spec='-L$libdir'
11560:       hardcode_minus_L=yes
11561:       allow_undefined_flag=unsupported
11562:       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11563:       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11564:       ;;
11565: 
11566:     osf3*)
11567:       if test "$GCC" = yes; then
11568: 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11569: 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11570:       else
11571: 	allow_undefined_flag=' -expect_unresolved \*'
11572: 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11573:       fi
11574:       archive_cmds_need_lc='no'
11575:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11576:       hardcode_libdir_separator=:
11577:       ;;
11578: 
11579:     osf4* | osf5*)	# as osf3* with the addition of -msym flag
11580:       if test "$GCC" = yes; then
11581: 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11582: 	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11583: 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11584:       else
11585: 	allow_undefined_flag=' -expect_unresolved \*'
11586: 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11587: 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11588: 	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11589: 
11590: 	# Both c and cxx compiler support -rpath directly
11591: 	hardcode_libdir_flag_spec='-rpath $libdir'
11592:       fi
11593:       archive_cmds_need_lc='no'
11594:       hardcode_libdir_separator=:
11595:       ;;
11596: 
11597:     solaris*)
11598:       no_undefined_flag=' -z defs'
11599:       if test "$GCC" = yes; then
11600: 	wlarc='${wl}'
11601: 	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11602: 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11603: 	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11604:       else
11605: 	case `$CC -V 2>&1` in
11606: 	*"Compilers 5.0"*)
11607: 	  wlarc=''
11608: 	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11609: 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11610: 	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11611: 	  ;;
11612: 	*)
11613: 	  wlarc='${wl}'
11614: 	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11615: 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11616: 	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11617: 	  ;;
11618: 	esac
11619:       fi
11620:       hardcode_libdir_flag_spec='-R$libdir'
11621:       hardcode_shlibpath_var=no
11622:       case $host_os in
11623:       solaris2.[0-5] | solaris2.[0-5].*) ;;
11624:       *)
11625: 	# The compiler driver will combine and reorder linker options,
11626: 	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11627: 	# but is careful enough not to reorder.
11628: 	# Supported since Solaris 2.6 (maybe 2.5.1?)
11629: 	if test "$GCC" = yes; then
11630: 	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11631: 	else
11632: 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11633: 	fi
11634: 	;;
11635:       esac
11636:       link_all_deplibs=yes
11637:       ;;
11638: 
11639:     sunos4*)
11640:       if test "x$host_vendor" = xsequent; then
11641: 	# Use $CC to link under sequent, because it throws in some extra .o
11642: 	# files that make .init and .fini sections work.
11643: 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11644:       else
11645: 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11646:       fi
11647:       hardcode_libdir_flag_spec='-L$libdir'
11648:       hardcode_direct=yes
11649:       hardcode_minus_L=yes
11650:       hardcode_shlibpath_var=no
11651:       ;;
11652: 
11653:     sysv4)
11654:       case $host_vendor in
11655: 	sni)
11656: 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11657: 	  hardcode_direct=yes # is this really true???
11658: 	;;
11659: 	siemens)
11660: 	  ## LD is ld it makes a PLAMLIB
11661: 	  ## CC just makes a GrossModule.
11662: 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11663: 	  reload_cmds='$CC -r -o $output$reload_objs'
11664: 	  hardcode_direct=no
11665:         ;;
11666: 	motorola)
11667: 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11668: 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11669: 	;;
11670:       esac
11671:       runpath_var='LD_RUN_PATH'
11672:       hardcode_shlibpath_var=no
11673:       ;;
11674: 
11675:     sysv4.3*)
11676:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11677:       hardcode_shlibpath_var=no
11678:       export_dynamic_flag_spec='-Bexport'
11679:       ;;
11680: 
11681:     sysv4*MP*)
11682:       if test -d /usr/nec; then
11683: 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11684: 	hardcode_shlibpath_var=no
11685: 	runpath_var=LD_RUN_PATH
11686: 	hardcode_runpath_var=yes
11687: 	ld_shlibs=yes
11688:       fi
11689:       ;;
11690: 
11691:     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11692:       no_undefined_flag='${wl}-z,text'
11693:       archive_cmds_need_lc=no
11694:       hardcode_shlibpath_var=no
11695:       runpath_var='LD_RUN_PATH'
11696: 
11697:       if test "$GCC" = yes; then
11698: 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11699: 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11700:       else
11701: 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11702: 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11703:       fi
11704:       ;;
11705: 
11706:     sysv5* | sco3.2v5* | sco5v6*)
11707:       # Note: We can NOT use -z defs as we might desire, because we do not
11708:       # link with -lc, and that would cause any symbols used from libc to
11709:       # always be unresolved, which means just about no library would
11710:       # ever link correctly.  If we're not using GNU ld we use -z text
11711:       # though, which does catch some bad symbols but isn't as heavy-handed
11712:       # as -z defs.
11713:       no_undefined_flag='${wl}-z,text'
11714:       allow_undefined_flag='${wl}-z,nodefs'
11715:       archive_cmds_need_lc=no
11716:       hardcode_shlibpath_var=no
11717:       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11718:       hardcode_libdir_separator=':'
11719:       link_all_deplibs=yes
11720:       export_dynamic_flag_spec='${wl}-Bexport'
11721:       runpath_var='LD_RUN_PATH'
11722: 
11723:       if test "$GCC" = yes; then
11724: 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11725: 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11726:       else
11727: 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11728: 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11729:       fi
11730:       ;;
11731: 
11732:     uts4*)
11733:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11734:       hardcode_libdir_flag_spec='-L$libdir'
11735:       hardcode_shlibpath_var=no
11736:       ;;
11737: 
11738:     *)
11739:       ld_shlibs=no
11740:       ;;
11741:     esac
11742: 
11743:     if test x$host_vendor = xsni; then
11744:       case $host in
11745:       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11746: 	export_dynamic_flag_spec='${wl}-Blargedynsym'
11747: 	;;
11748:       esac
11749:     fi
11750:   fi
11751: 
11752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11753: $as_echo "$ld_shlibs" >&6; }
11754: test "$ld_shlibs" = no && can_build_shared=no
11755: 
11756: with_gnu_ld=$with_gnu_ld
11757: 
11758: 
11759: 
11760: 
11761: 
11762: 
11763: 
11764: 
11765: 
11766: 
11767: 
11768: 
11769: 
11770: 
11771: 
11772: #
11773: # Do we need to explicitly link libc?
11774: #
11775: case "x$archive_cmds_need_lc" in
11776: x|xyes)
11777:   # Assume -lc should be added
11778:   archive_cmds_need_lc=yes
11779: 
11780:   if test "$enable_shared" = yes && test "$GCC" = yes; then
11781:     case $archive_cmds in
11782:     *'~'*)
11783:       # FIXME: we may have to deal with multi-command sequences.
11784:       ;;
11785:     '$CC '*)
11786:       # Test whether the compiler implicitly links with -lc since on some
11787:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11788:       # to ld, don't add -lc before -lgcc.
11789:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11790: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11791: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11792:   $as_echo_n "(cached) " >&6
11793: else
11794:   $RM conftest*
11795: 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11796: 
11797: 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11798:   (eval $ac_compile) 2>&5
11799:   ac_status=$?
11800:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801:   test $ac_status = 0; } 2>conftest.err; then
11802: 	  soname=conftest
11803: 	  lib=conftest
11804: 	  libobjs=conftest.$ac_objext
11805: 	  deplibs=
11806: 	  wl=$lt_prog_compiler_wl
11807: 	  pic_flag=$lt_prog_compiler_pic
11808: 	  compiler_flags=-v
11809: 	  linker_flags=-v
11810: 	  verstring=
11811: 	  output_objdir=.
11812: 	  libname=conftest
11813: 	  lt_save_allow_undefined_flag=$allow_undefined_flag
11814: 	  allow_undefined_flag=
11815: 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11816:   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11817:   ac_status=$?
11818:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11819:   test $ac_status = 0; }
11820: 	  then
11821: 	    lt_cv_archive_cmds_need_lc=no
11822: 	  else
11823: 	    lt_cv_archive_cmds_need_lc=yes
11824: 	  fi
11825: 	  allow_undefined_flag=$lt_save_allow_undefined_flag
11826: 	else
11827: 	  cat conftest.err 1>&5
11828: 	fi
11829: 	$RM conftest*
11830: 
11831: fi
11832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11833: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11834:       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11835:       ;;
11836:     esac
11837:   fi
11838:   ;;
11839: esac
11840: 
11841: 
11842: 
11843: 
11844: 
11845: 
11846: 
11847: 
11848: 
11849: 
11850: 
11851: 
11852: 
11853: 
11854: 
11855: 
11856: 
11857: 
11858: 
11859: 
11860: 
11861: 
11862: 
11863: 
11864: 
11865: 
11866: 
11867: 
11868: 
11869: 
11870: 
11871: 
11872: 
11873: 
11874: 
11875: 
11876: 
11877: 
11878: 
11879: 
11880: 
11881: 
11882: 
11883: 
11884: 
11885: 
11886: 
11887: 
11888: 
11889: 
11890: 
11891: 
11892: 
11893: 
11894: 
11895: 
11896: 
11897: 
11898: 
11899: 
11900: 
11901: 
11902: 
11903: 
11904: 
11905: 
11906: 
11907: 
11908: 
11909: 
11910: 
11911: 
11912: 
11913: 
11914: 
11915: 
11916: 
11917: 
11918: 
11919: 
11920: 
11921: 
11922: 
11923: 
11924: 
11925: 
11926: 
11927: 
11928: 
11929: 
11930: 
11931: 
11932: 
11933: 
11934: 
11935: 
11936: 
11937: 
11938: 
11939: 
11940: 
11941: 
11942: 
11943: 
11944: 
11945: 
11946: 
11947: 
11948: 
11949: 
11950: 
11951: 
11952: 
11953: 
11954: 
11955: 
11956: 
11957: 
11958: 
11959: 
11960: 
11961: 
11962: 
11963: 
11964: 
11965: 
11966: 
11967: 
11968: 
11969: 
11970: 
11971: 
11972: 
11973: 
11974: 
11975: 
11976: 
11977: 
11978: 
11979: 
11980: 
11981: 
11982: 
11983: 
11984: 
11985: 
11986: 
11987: 
11988: 
11989: 
11990: 
11991: 
11992:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11993: $as_echo_n "checking dynamic linker characteristics... " >&6; }
11994: 
11995: if test "$GCC" = yes; then
11996:   case $host_os in
11997:     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11998:     *) lt_awk_arg="/^libraries:/" ;;
11999:   esac
12000:   case $host_os in
12001:     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12002:     *) lt_sed_strip_eq="s,=/,/,g" ;;
12003:   esac
12004:   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12005:   case $lt_search_path_spec in
12006:   *\;*)
12007:     # if the path contains ";" then we assume it to be the separator
12008:     # otherwise default to the standard path separator (i.e. ":") - it is
12009:     # assumed that no part of a normal pathname contains ";" but that should
12010:     # okay in the real world where ";" in dirpaths is itself problematic.
12011:     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12012:     ;;
12013:   *)
12014:     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12015:     ;;
12016:   esac
12017:   # Ok, now we have the path, separated by spaces, we can step through it
12018:   # and add multilib dir if necessary.
12019:   lt_tmp_lt_search_path_spec=
12020:   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12021:   for lt_sys_path in $lt_search_path_spec; do
12022:     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12023:       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12024:     else
12025:       test -d "$lt_sys_path" && \
12026: 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12027:     fi
12028:   done
12029:   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12030: BEGIN {RS=" "; FS="/|\n";} {
12031:   lt_foo="";
12032:   lt_count=0;
12033:   for (lt_i = NF; lt_i > 0; lt_i--) {
12034:     if ($lt_i != "" && $lt_i != ".") {
12035:       if ($lt_i == "..") {
12036:         lt_count++;
12037:       } else {
12038:         if (lt_count == 0) {
12039:           lt_foo="/" $lt_i lt_foo;
12040:         } else {
12041:           lt_count--;
12042:         }
12043:       }
12044:     }
12045:   }
12046:   if (lt_foo != "") { lt_freq[lt_foo]++; }
12047:   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12048: }'`
12049:   # AWK program above erroneously prepends '/' to C:/dos/paths
12050:   # for these hosts.
12051:   case $host_os in
12052:     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12053:       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12054:   esac
12055:   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12056: else
12057:   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12058: fi
12059: library_names_spec=
12060: libname_spec='lib$name'
12061: soname_spec=
12062: shrext_cmds=".so"
12063: postinstall_cmds=
12064: postuninstall_cmds=
12065: finish_cmds=
12066: finish_eval=
12067: shlibpath_var=
12068: shlibpath_overrides_runpath=unknown
12069: version_type=none
12070: dynamic_linker="$host_os ld.so"
12071: sys_lib_dlsearch_path_spec="/lib /usr/lib"
12072: need_lib_prefix=unknown
12073: hardcode_into_libs=no
12074: 
12075: # when you set need_version to no, make sure it does not cause -set_version
12076: # flags to be left without arguments
12077: need_version=unknown
12078: 
12079: case $host_os in
12080: aix3*)
12081:   version_type=linux # correct to gnu/linux during the next big refactor
12082:   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12083:   shlibpath_var=LIBPATH
12084: 
12085:   # AIX 3 has no versioning support, so we append a major version to the name.
12086:   soname_spec='${libname}${release}${shared_ext}$major'
12087:   ;;
12088: 
12089: aix[4-9]*)
12090:   version_type=linux # correct to gnu/linux during the next big refactor
12091:   need_lib_prefix=no
12092:   need_version=no
12093:   hardcode_into_libs=yes
12094:   if test "$host_cpu" = ia64; then
12095:     # AIX 5 supports IA64
12096:     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12097:     shlibpath_var=LD_LIBRARY_PATH
12098:   else
12099:     # With GCC up to 2.95.x, collect2 would create an import file
12100:     # for dependence libraries.  The import file would start with
12101:     # the line `#! .'.  This would cause the generated library to
12102:     # depend on `.', always an invalid library.  This was fixed in
12103:     # development snapshots of GCC prior to 3.0.
12104:     case $host_os in
12105:       aix4 | aix4.[01] | aix4.[01].*)
12106:       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12107: 	   echo ' yes '
12108: 	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12109: 	:
12110:       else
12111: 	can_build_shared=no
12112:       fi
12113:       ;;
12114:     esac
12115:     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12116:     # soname into executable. Probably we can add versioning support to
12117:     # collect2, so additional links can be useful in future.
12118:     if test "$aix_use_runtimelinking" = yes; then
12119:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12120:       # instead of lib<name>.a to let people know that these are not
12121:       # typical AIX shared libraries.
12122:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123:     else
12124:       # We preserve .a as extension for shared libraries through AIX4.2
12125:       # and later when we are not doing run time linking.
12126:       library_names_spec='${libname}${release}.a $libname.a'
12127:       soname_spec='${libname}${release}${shared_ext}$major'
12128:     fi
12129:     shlibpath_var=LIBPATH
12130:   fi
12131:   ;;
12132: 
12133: amigaos*)
12134:   case $host_cpu in
12135:   powerpc)
12136:     # Since July 2007 AmigaOS4 officially supports .so libraries.
12137:     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12138:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139:     ;;
12140:   m68k)
12141:     library_names_spec='$libname.ixlibrary $libname.a'
12142:     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12143:     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12144:     ;;
12145:   esac
12146:   ;;
12147: 
12148: beos*)
12149:   library_names_spec='${libname}${shared_ext}'
12150:   dynamic_linker="$host_os ld.so"
12151:   shlibpath_var=LIBRARY_PATH
12152:   ;;
12153: 
12154: bsdi[45]*)
12155:   version_type=linux # correct to gnu/linux during the next big refactor
12156:   need_version=no
12157:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12158:   soname_spec='${libname}${release}${shared_ext}$major'
12159:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12160:   shlibpath_var=LD_LIBRARY_PATH
12161:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12162:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12163:   # the default ld.so.conf also contains /usr/contrib/lib and
12164:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12165:   # libtool to hard-code these into programs
12166:   ;;
12167: 
12168: cygwin* | mingw* | pw32* | cegcc*)
12169:   version_type=windows
12170:   shrext_cmds=".dll"
12171:   need_version=no
12172:   need_lib_prefix=no
12173: 
12174:   case $GCC,$cc_basename in
12175:   yes,*)
12176:     # gcc
12177:     library_names_spec='$libname.dll.a'
12178:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12179:     postinstall_cmds='base_file=`basename \${file}`~
12180:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12181:       dldir=$destdir/`dirname \$dlpath`~
12182:       test -d \$dldir || mkdir -p \$dldir~
12183:       $install_prog $dir/$dlname \$dldir/$dlname~
12184:       chmod a+x \$dldir/$dlname~
12185:       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12186:         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12187:       fi'
12188:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12189:       dlpath=$dir/\$dldll~
12190:        $RM \$dlpath'
12191:     shlibpath_overrides_runpath=yes
12192: 
12193:     case $host_os in
12194:     cygwin*)
12195:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12196:       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12197: 
12198:       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12199:       ;;
12200:     mingw* | cegcc*)
12201:       # MinGW DLLs use traditional 'lib' prefix
12202:       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12203:       ;;
12204:     pw32*)
12205:       # pw32 DLLs use 'pw' prefix rather than 'lib'
12206:       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12207:       ;;
12208:     esac
12209:     dynamic_linker='Win32 ld.exe'
12210:     ;;
12211: 
12212:   *,cl*)
12213:     # Native MSVC
12214:     libname_spec='$name'
12215:     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12216:     library_names_spec='${libname}.dll.lib'
12217: 
12218:     case $build_os in
12219:     mingw*)
12220:       sys_lib_search_path_spec=
12221:       lt_save_ifs=$IFS
12222:       IFS=';'
12223:       for lt_path in $LIB
12224:       do
12225:         IFS=$lt_save_ifs
12226:         # Let DOS variable expansion print the short 8.3 style file name.
12227:         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12228:         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12229:       done
12230:       IFS=$lt_save_ifs
12231:       # Convert to MSYS style.
12232:       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12233:       ;;
12234:     cygwin*)
12235:       # Convert to unix form, then to dos form, then back to unix form
12236:       # but this time dos style (no spaces!) so that the unix form looks
12237:       # like /cygdrive/c/PROGRA~1:/cygdr...
12238:       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12239:       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12240:       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12241:       ;;
12242:     *)
12243:       sys_lib_search_path_spec="$LIB"
12244:       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12245:         # It is most probably a Windows format PATH.
12246:         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12247:       else
12248:         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12249:       fi
12250:       # FIXME: find the short name or the path components, as spaces are
12251:       # common. (e.g. "Program Files" -> "PROGRA~1")
12252:       ;;
12253:     esac
12254: 
12255:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12256:     postinstall_cmds='base_file=`basename \${file}`~
12257:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12258:       dldir=$destdir/`dirname \$dlpath`~
12259:       test -d \$dldir || mkdir -p \$dldir~
12260:       $install_prog $dir/$dlname \$dldir/$dlname'
12261:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12262:       dlpath=$dir/\$dldll~
12263:        $RM \$dlpath'
12264:     shlibpath_overrides_runpath=yes
12265:     dynamic_linker='Win32 link.exe'
12266:     ;;
12267: 
12268:   *)
12269:     # Assume MSVC wrapper
12270:     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12271:     dynamic_linker='Win32 ld.exe'
12272:     ;;
12273:   esac
12274:   # FIXME: first we should search . and the directory the executable is in
12275:   shlibpath_var=PATH
12276:   ;;
12277: 
12278: darwin* | rhapsody*)
12279:   dynamic_linker="$host_os dyld"
12280:   version_type=darwin
12281:   need_lib_prefix=no
12282:   need_version=no
12283:   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12284:   soname_spec='${libname}${release}${major}$shared_ext'
12285:   shlibpath_overrides_runpath=yes
12286:   shlibpath_var=DYLD_LIBRARY_PATH
12287:   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12288: 
12289:   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12290:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12291:   ;;
12292: 
12293: dgux*)
12294:   version_type=linux # correct to gnu/linux during the next big refactor
12295:   need_lib_prefix=no
12296:   need_version=no
12297:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12298:   soname_spec='${libname}${release}${shared_ext}$major'
12299:   shlibpath_var=LD_LIBRARY_PATH
12300:   ;;
12301: 
12302: freebsd* | dragonfly*)
12303:   # DragonFly does not have aout.  When/if they implement a new
12304:   # versioning mechanism, adjust this.
12305:   if test -x /usr/bin/objformat; then
12306:     objformat=`/usr/bin/objformat`
12307:   else
12308:     case $host_os in
12309:     freebsd[23].*) objformat=aout ;;
12310:     *) objformat=elf ;;
12311:     esac
12312:   fi
12313:   version_type=freebsd-$objformat
12314:   case $version_type in
12315:     freebsd-elf*)
12316:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12317:       need_version=no
12318:       need_lib_prefix=no
12319:       ;;
12320:     freebsd-*)
12321:       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12322:       need_version=yes
12323:       ;;
12324:   esac
12325:   shlibpath_var=LD_LIBRARY_PATH
12326:   case $host_os in
12327:   freebsd2.*)
12328:     shlibpath_overrides_runpath=yes
12329:     ;;
12330:   freebsd3.[01]* | freebsdelf3.[01]*)
12331:     shlibpath_overrides_runpath=yes
12332:     hardcode_into_libs=yes
12333:     ;;
12334:   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12335:   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12336:     shlibpath_overrides_runpath=no
12337:     hardcode_into_libs=yes
12338:     ;;
12339:   *) # from 4.6 on, and DragonFly
12340:     shlibpath_overrides_runpath=yes
12341:     hardcode_into_libs=yes
12342:     ;;
12343:   esac
12344:   ;;
12345: 
12346: gnu*)
12347:   version_type=linux # correct to gnu/linux during the next big refactor
12348:   need_lib_prefix=no
12349:   need_version=no
12350:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12351:   soname_spec='${libname}${release}${shared_ext}$major'
12352:   shlibpath_var=LD_LIBRARY_PATH
12353:   shlibpath_overrides_runpath=no
12354:   hardcode_into_libs=yes
12355:   ;;
12356: 
12357: haiku*)
12358:   version_type=linux # correct to gnu/linux during the next big refactor
12359:   need_lib_prefix=no
12360:   need_version=no
12361:   dynamic_linker="$host_os runtime_loader"
12362:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12363:   soname_spec='${libname}${release}${shared_ext}$major'
12364:   shlibpath_var=LIBRARY_PATH
12365:   shlibpath_overrides_runpath=yes
12366:   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12367:   hardcode_into_libs=yes
12368:   ;;
12369: 
12370: hpux9* | hpux10* | hpux11*)
12371:   # Give a soname corresponding to the major version so that dld.sl refuses to
12372:   # link against other versions.
12373:   version_type=sunos
12374:   need_lib_prefix=no
12375:   need_version=no
12376:   case $host_cpu in
12377:   ia64*)
12378:     shrext_cmds='.so'
12379:     hardcode_into_libs=yes
12380:     dynamic_linker="$host_os dld.so"
12381:     shlibpath_var=LD_LIBRARY_PATH
12382:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12383:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384:     soname_spec='${libname}${release}${shared_ext}$major'
12385:     if test "X$HPUX_IA64_MODE" = X32; then
12386:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12387:     else
12388:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12389:     fi
12390:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12391:     ;;
12392:   hppa*64*)
12393:     shrext_cmds='.sl'
12394:     hardcode_into_libs=yes
12395:     dynamic_linker="$host_os dld.sl"
12396:     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12397:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12398:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12399:     soname_spec='${libname}${release}${shared_ext}$major'
12400:     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12401:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12402:     ;;
12403:   *)
12404:     shrext_cmds='.sl'
12405:     dynamic_linker="$host_os dld.sl"
12406:     shlibpath_var=SHLIB_PATH
12407:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12408:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12409:     soname_spec='${libname}${release}${shared_ext}$major'
12410:     ;;
12411:   esac
12412:   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12413:   postinstall_cmds='chmod 555 $lib'
12414:   # or fails outright, so override atomically:
12415:   install_override_mode=555
12416:   ;;
12417: 
12418: interix[3-9]*)
12419:   version_type=linux # correct to gnu/linux during the next big refactor
12420:   need_lib_prefix=no
12421:   need_version=no
12422:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12423:   soname_spec='${libname}${release}${shared_ext}$major'
12424:   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12425:   shlibpath_var=LD_LIBRARY_PATH
12426:   shlibpath_overrides_runpath=no
12427:   hardcode_into_libs=yes
12428:   ;;
12429: 
12430: irix5* | irix6* | nonstopux*)
12431:   case $host_os in
12432:     nonstopux*) version_type=nonstopux ;;
12433:     *)
12434: 	if test "$lt_cv_prog_gnu_ld" = yes; then
12435: 		version_type=linux # correct to gnu/linux during the next big refactor
12436: 	else
12437: 		version_type=irix
12438: 	fi ;;
12439:   esac
12440:   need_lib_prefix=no
12441:   need_version=no
12442:   soname_spec='${libname}${release}${shared_ext}$major'
12443:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12444:   case $host_os in
12445:   irix5* | nonstopux*)
12446:     libsuff= shlibsuff=
12447:     ;;
12448:   *)
12449:     case $LD in # libtool.m4 will add one of these switches to LD
12450:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12451:       libsuff= shlibsuff= libmagic=32-bit;;
12452:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12453:       libsuff=32 shlibsuff=N32 libmagic=N32;;
12454:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12455:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12456:     *) libsuff= shlibsuff= libmagic=never-match;;
12457:     esac
12458:     ;;
12459:   esac
12460:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12461:   shlibpath_overrides_runpath=no
12462:   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12463:   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12464:   hardcode_into_libs=yes
12465:   ;;
12466: 
12467: # No shared lib support for Linux oldld, aout, or coff.
12468: linux*oldld* | linux*aout* | linux*coff*)
12469:   dynamic_linker=no
12470:   ;;
12471: 
12472: # This must be glibc/ELF.
12473: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12474:   version_type=linux # correct to gnu/linux during the next big refactor
12475:   need_lib_prefix=no
12476:   need_version=no
12477:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12478:   soname_spec='${libname}${release}${shared_ext}$major'
12479:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12480:   shlibpath_var=LD_LIBRARY_PATH
12481:   shlibpath_overrides_runpath=no
12482: 
12483:   # Some binutils ld are patched to set DT_RUNPATH
12484:   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12485:   $as_echo_n "(cached) " >&6
12486: else
12487:   lt_cv_shlibpath_overrides_runpath=no
12488:     save_LDFLAGS=$LDFLAGS
12489:     save_libdir=$libdir
12490:     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12491: 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12492:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493: /* end confdefs.h.  */
12494: 
12495: int
12496: main ()
12497: {
12498: 
12499:   ;
12500:   return 0;
12501: }
12502: _ACEOF
12503: if ac_fn_c_try_link "$LINENO"; then :
12504:   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12505:   lt_cv_shlibpath_overrides_runpath=yes
12506: fi
12507: fi
12508: rm -f core conftest.err conftest.$ac_objext \
12509:     conftest$ac_exeext conftest.$ac_ext
12510:     LDFLAGS=$save_LDFLAGS
12511:     libdir=$save_libdir
12512: 
12513: fi
12514: 
12515:   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12516: 
12517:   # This implies no fast_install, which is unacceptable.
12518:   # Some rework will be needed to allow for fast_install
12519:   # before this can be enabled.
12520:   hardcode_into_libs=yes
12521: 
12522:   # Append ld.so.conf contents to the search path
12523:   if test -f /etc/ld.so.conf; then
12524:     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12525:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12526:   fi
12527: 
12528:   # We used to test for /lib/ld.so.1 and disable shared libraries on
12529:   # powerpc, because MkLinux only supported shared libraries with the
12530:   # GNU dynamic linker.  Since this was broken with cross compilers,
12531:   # most powerpc-linux boxes support dynamic linking these days and
12532:   # people can always --disable-shared, the test was removed, and we
12533:   # assume the GNU/Linux dynamic linker is in use.
12534:   dynamic_linker='GNU/Linux ld.so'
12535:   ;;
12536: 
12537: netbsd*)
12538:   version_type=sunos
12539:   need_lib_prefix=no
12540:   need_version=no
12541:   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12542:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12543:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12544:     dynamic_linker='NetBSD (a.out) ld.so'
12545:   else
12546:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12547:     soname_spec='${libname}${release}${shared_ext}$major'
12548:     dynamic_linker='NetBSD ld.elf_so'
12549:   fi
12550:   shlibpath_var=LD_LIBRARY_PATH
12551:   shlibpath_overrides_runpath=yes
12552:   hardcode_into_libs=yes
12553:   ;;
12554: 
12555: newsos6)
12556:   version_type=linux # correct to gnu/linux during the next big refactor
12557:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12558:   shlibpath_var=LD_LIBRARY_PATH
12559:   shlibpath_overrides_runpath=yes
12560:   ;;
12561: 
12562: *nto* | *qnx*)
12563:   version_type=qnx
12564:   need_lib_prefix=no
12565:   need_version=no
12566:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12567:   soname_spec='${libname}${release}${shared_ext}$major'
12568:   shlibpath_var=LD_LIBRARY_PATH
12569:   shlibpath_overrides_runpath=no
12570:   hardcode_into_libs=yes
12571:   dynamic_linker='ldqnx.so'
12572:   ;;
12573: 
12574: openbsd*)
12575:   version_type=sunos
12576:   sys_lib_dlsearch_path_spec="/usr/lib"
12577:   need_lib_prefix=no
12578:   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12579:   case $host_os in
12580:     openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12581:     *)				need_version=no  ;;
12582:   esac
12583:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12584:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12585:   shlibpath_var=LD_LIBRARY_PATH
12586:   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12587:     case $host_os in
12588:       openbsd2.[89] | openbsd2.[89].*)
12589: 	shlibpath_overrides_runpath=no
12590: 	;;
12591:       *)
12592: 	shlibpath_overrides_runpath=yes
12593: 	;;
12594:       esac
12595:   else
12596:     shlibpath_overrides_runpath=yes
12597:   fi
12598:   ;;
12599: 
12600: os2*)
12601:   libname_spec='$name'
12602:   shrext_cmds=".dll"
12603:   need_lib_prefix=no
12604:   library_names_spec='$libname${shared_ext} $libname.a'
12605:   dynamic_linker='OS/2 ld.exe'
12606:   shlibpath_var=LIBPATH
12607:   ;;
12608: 
12609: osf3* | osf4* | osf5*)
12610:   version_type=osf
12611:   need_lib_prefix=no
12612:   need_version=no
12613:   soname_spec='${libname}${release}${shared_ext}$major'
12614:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12615:   shlibpath_var=LD_LIBRARY_PATH
12616:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12617:   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12618:   ;;
12619: 
12620: rdos*)
12621:   dynamic_linker=no
12622:   ;;
12623: 
12624: solaris*)
12625:   version_type=linux # correct to gnu/linux during the next big refactor
12626:   need_lib_prefix=no
12627:   need_version=no
12628:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12629:   soname_spec='${libname}${release}${shared_ext}$major'
12630:   shlibpath_var=LD_LIBRARY_PATH
12631:   shlibpath_overrides_runpath=yes
12632:   hardcode_into_libs=yes
12633:   # ldd complains unless libraries are executable
12634:   postinstall_cmds='chmod +x $lib'
12635:   ;;
12636: 
12637: sunos4*)
12638:   version_type=sunos
12639:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12640:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12641:   shlibpath_var=LD_LIBRARY_PATH
12642:   shlibpath_overrides_runpath=yes
12643:   if test "$with_gnu_ld" = yes; then
12644:     need_lib_prefix=no
12645:   fi
12646:   need_version=yes
12647:   ;;
12648: 
12649: sysv4 | sysv4.3*)
12650:   version_type=linux # correct to gnu/linux during the next big refactor
12651:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12652:   soname_spec='${libname}${release}${shared_ext}$major'
12653:   shlibpath_var=LD_LIBRARY_PATH
12654:   case $host_vendor in
12655:     sni)
12656:       shlibpath_overrides_runpath=no
12657:       need_lib_prefix=no
12658:       runpath_var=LD_RUN_PATH
12659:       ;;
12660:     siemens)
12661:       need_lib_prefix=no
12662:       ;;
12663:     motorola)
12664:       need_lib_prefix=no
12665:       need_version=no
12666:       shlibpath_overrides_runpath=no
12667:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12668:       ;;
12669:   esac
12670:   ;;
12671: 
12672: sysv4*MP*)
12673:   if test -d /usr/nec ;then
12674:     version_type=linux # correct to gnu/linux during the next big refactor
12675:     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12676:     soname_spec='$libname${shared_ext}.$major'
12677:     shlibpath_var=LD_LIBRARY_PATH
12678:   fi
12679:   ;;
12680: 
12681: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12682:   version_type=freebsd-elf
12683:   need_lib_prefix=no
12684:   need_version=no
12685:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12686:   soname_spec='${libname}${release}${shared_ext}$major'
12687:   shlibpath_var=LD_LIBRARY_PATH
12688:   shlibpath_overrides_runpath=yes
12689:   hardcode_into_libs=yes
12690:   if test "$with_gnu_ld" = yes; then
12691:     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12692:   else
12693:     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12694:     case $host_os in
12695:       sco3.2v5*)
12696:         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12697: 	;;
12698:     esac
12699:   fi
12700:   sys_lib_dlsearch_path_spec='/usr/lib'
12701:   ;;
12702: 
12703: tpf*)
12704:   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12705:   version_type=linux # correct to gnu/linux during the next big refactor
12706:   need_lib_prefix=no
12707:   need_version=no
12708:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12709:   shlibpath_var=LD_LIBRARY_PATH
12710:   shlibpath_overrides_runpath=no
12711:   hardcode_into_libs=yes
12712:   ;;
12713: 
12714: uts4*)
12715:   version_type=linux # correct to gnu/linux during the next big refactor
12716:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12717:   soname_spec='${libname}${release}${shared_ext}$major'
12718:   shlibpath_var=LD_LIBRARY_PATH
12719:   ;;
12720: 
12721: *)
12722:   dynamic_linker=no
12723:   ;;
12724: esac
12725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12726: $as_echo "$dynamic_linker" >&6; }
12727: test "$dynamic_linker" = no && can_build_shared=no
12728: 
12729: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12730: if test "$GCC" = yes; then
12731:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12732: fi
12733: 
12734: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12735:   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12736: fi
12737: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12738:   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12739: fi
12740: 
12741: 
12742: 
12743: 
12744: 
12745: 
12746: 
12747: 
12748: 
12749: 
12750: 
12751: 
12752: 
12753: 
12754: 
12755: 
12756: 
12757: 
12758: 
12759: 
12760: 
12761: 
12762: 
12763: 
12764: 
12765: 
12766: 
12767: 
12768: 
12769: 
12770: 
12771: 
12772: 
12773: 
12774: 
12775: 
12776: 
12777: 
12778: 
12779: 
12780: 
12781: 
12782: 
12783: 
12784: 
12785: 
12786: 
12787: 
12788: 
12789: 
12790: 
12791: 
12792: 
12793: 
12794: 
12795: 
12796: 
12797: 
12798: 
12799: 
12800: 
12801: 
12802: 
12803: 
12804: 
12805: 
12806: 
12807: 
12808: 
12809: 
12810: 
12811: 
12812: 
12813: 
12814: 
12815: 
12816: 
12817: 
12818: 
12819: 
12820: 
12821: 
12822: 
12823: 
12824: 
12825: 
12826: 
12827: 
12828: 
12829: 
12830: 
12831: 
12832:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12833: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12834: hardcode_action=
12835: if test -n "$hardcode_libdir_flag_spec" ||
12836:    test -n "$runpath_var" ||
12837:    test "X$hardcode_automatic" = "Xyes" ; then
12838: 
12839:   # We can hardcode non-existent directories.
12840:   if test "$hardcode_direct" != no &&
12841:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12842:      # have to relink, otherwise we might link with an installed library
12843:      # when we should be linking with a yet-to-be-installed one
12844:      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12845:      test "$hardcode_minus_L" != no; then
12846:     # Linking always hardcodes the temporary library directory.
12847:     hardcode_action=relink
12848:   else
12849:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12850:     hardcode_action=immediate
12851:   fi
12852: else
12853:   # We cannot hardcode anything, or else we can only hardcode existing
12854:   # directories.
12855:   hardcode_action=unsupported
12856: fi
12857: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12858: $as_echo "$hardcode_action" >&6; }
12859: 
12860: if test "$hardcode_action" = relink ||
12861:    test "$inherit_rpath" = yes; then
12862:   # Fast installation is not supported
12863:   enable_fast_install=no
12864: elif test "$shlibpath_overrides_runpath" = yes ||
12865:      test "$enable_shared" = no; then
12866:   # Fast installation is not necessary
12867:   enable_fast_install=needless
12868: fi
12869: 
12870: 
12871: 
12872: 
12873: 
12874: 
12875:   if test "x$enable_dlopen" != xyes; then
12876:   enable_dlopen=unknown
12877:   enable_dlopen_self=unknown
12878:   enable_dlopen_self_static=unknown
12879: else
12880:   lt_cv_dlopen=no
12881:   lt_cv_dlopen_libs=
12882: 
12883:   case $host_os in
12884:   beos*)
12885:     lt_cv_dlopen="load_add_on"
12886:     lt_cv_dlopen_libs=
12887:     lt_cv_dlopen_self=yes
12888:     ;;
12889: 
12890:   mingw* | pw32* | cegcc*)
12891:     lt_cv_dlopen="LoadLibrary"
12892:     lt_cv_dlopen_libs=
12893:     ;;
12894: 
12895:   cygwin*)
12896:     lt_cv_dlopen="dlopen"
12897:     lt_cv_dlopen_libs=
12898:     ;;
12899: 
12900:   darwin*)
12901:   # if libdl is installed we need to link against it
12902:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12903: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12904: if ${ac_cv_lib_dl_dlopen+:} false; then :
12905:   $as_echo_n "(cached) " >&6
12906: else
12907:   ac_check_lib_save_LIBS=$LIBS
12908: LIBS="-ldl  $LIBS"
12909: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910: /* end confdefs.h.  */
12911: 
12912: /* Override any GCC internal prototype to avoid an error.
12913:    Use char because int might match the return type of a GCC
12914:    builtin and then its argument prototype would still apply.  */
12915: #ifdef __cplusplus
12916: extern "C"
12917: #endif
12918: char dlopen ();
12919: int
12920: main ()
12921: {
12922: return dlopen ();
12923:   ;
12924:   return 0;
12925: }
12926: _ACEOF
12927: if ac_fn_c_try_link "$LINENO"; then :
12928:   ac_cv_lib_dl_dlopen=yes
12929: else
12930:   ac_cv_lib_dl_dlopen=no
12931: fi
12932: rm -f core conftest.err conftest.$ac_objext \
12933:     conftest$ac_exeext conftest.$ac_ext
12934: LIBS=$ac_check_lib_save_LIBS
12935: fi
12936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12937: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12938: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12939:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12940: else
12941: 
12942:     lt_cv_dlopen="dyld"
12943:     lt_cv_dlopen_libs=
12944:     lt_cv_dlopen_self=yes
12945: 
12946: fi
12947: 
12948:     ;;
12949: 
12950:   *)
12951:     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12952: if test "x$ac_cv_func_shl_load" = xyes; then :
12953:   lt_cv_dlopen="shl_load"
12954: else
12955:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12956: $as_echo_n "checking for shl_load in -ldld... " >&6; }
12957: if ${ac_cv_lib_dld_shl_load+:} false; then :
12958:   $as_echo_n "(cached) " >&6
12959: else
12960:   ac_check_lib_save_LIBS=$LIBS
12961: LIBS="-ldld  $LIBS"
12962: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963: /* end confdefs.h.  */
12964: 
12965: /* Override any GCC internal prototype to avoid an error.
12966:    Use char because int might match the return type of a GCC
12967:    builtin and then its argument prototype would still apply.  */
12968: #ifdef __cplusplus
12969: extern "C"
12970: #endif
12971: char shl_load ();
12972: int
12973: main ()
12974: {
12975: return shl_load ();
12976:   ;
12977:   return 0;
12978: }
12979: _ACEOF
12980: if ac_fn_c_try_link "$LINENO"; then :
12981:   ac_cv_lib_dld_shl_load=yes
12982: else
12983:   ac_cv_lib_dld_shl_load=no
12984: fi
12985: rm -f core conftest.err conftest.$ac_objext \
12986:     conftest$ac_exeext conftest.$ac_ext
12987: LIBS=$ac_check_lib_save_LIBS
12988: fi
12989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12990: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12991: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12992:   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12993: else
12994:   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12995: if test "x$ac_cv_func_dlopen" = xyes; then :
12996:   lt_cv_dlopen="dlopen"
12997: else
12998:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12999: $as_echo_n "checking for dlopen in -ldl... " >&6; }
13000: if ${ac_cv_lib_dl_dlopen+:} false; then :
13001:   $as_echo_n "(cached) " >&6
13002: else
13003:   ac_check_lib_save_LIBS=$LIBS
13004: LIBS="-ldl  $LIBS"
13005: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006: /* end confdefs.h.  */
13007: 
13008: /* Override any GCC internal prototype to avoid an error.
13009:    Use char because int might match the return type of a GCC
13010:    builtin and then its argument prototype would still apply.  */
13011: #ifdef __cplusplus
13012: extern "C"
13013: #endif
13014: char dlopen ();
13015: int
13016: main ()
13017: {
13018: return dlopen ();
13019:   ;
13020:   return 0;
13021: }
13022: _ACEOF
13023: if ac_fn_c_try_link "$LINENO"; then :
13024:   ac_cv_lib_dl_dlopen=yes
13025: else
13026:   ac_cv_lib_dl_dlopen=no
13027: fi
13028: rm -f core conftest.err conftest.$ac_objext \
13029:     conftest$ac_exeext conftest.$ac_ext
13030: LIBS=$ac_check_lib_save_LIBS
13031: fi
13032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13033: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13034: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13035:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13036: else
13037:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13038: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13039: if ${ac_cv_lib_svld_dlopen+:} false; then :
13040:   $as_echo_n "(cached) " >&6
13041: else
13042:   ac_check_lib_save_LIBS=$LIBS
13043: LIBS="-lsvld  $LIBS"
13044: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045: /* end confdefs.h.  */
13046: 
13047: /* Override any GCC internal prototype to avoid an error.
13048:    Use char because int might match the return type of a GCC
13049:    builtin and then its argument prototype would still apply.  */
13050: #ifdef __cplusplus
13051: extern "C"
13052: #endif
13053: char dlopen ();
13054: int
13055: main ()
13056: {
13057: return dlopen ();
13058:   ;
13059:   return 0;
13060: }
13061: _ACEOF
13062: if ac_fn_c_try_link "$LINENO"; then :
13063:   ac_cv_lib_svld_dlopen=yes
13064: else
13065:   ac_cv_lib_svld_dlopen=no
13066: fi
13067: rm -f core conftest.err conftest.$ac_objext \
13068:     conftest$ac_exeext conftest.$ac_ext
13069: LIBS=$ac_check_lib_save_LIBS
13070: fi
13071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13072: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13073: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13074:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13075: else
13076:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13077: $as_echo_n "checking for dld_link in -ldld... " >&6; }
13078: if ${ac_cv_lib_dld_dld_link+:} false; then :
13079:   $as_echo_n "(cached) " >&6
13080: else
13081:   ac_check_lib_save_LIBS=$LIBS
13082: LIBS="-ldld  $LIBS"
13083: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084: /* end confdefs.h.  */
13085: 
13086: /* Override any GCC internal prototype to avoid an error.
13087:    Use char because int might match the return type of a GCC
13088:    builtin and then its argument prototype would still apply.  */
13089: #ifdef __cplusplus
13090: extern "C"
13091: #endif
13092: char dld_link ();
13093: int
13094: main ()
13095: {
13096: return dld_link ();
13097:   ;
13098:   return 0;
13099: }
13100: _ACEOF
13101: if ac_fn_c_try_link "$LINENO"; then :
13102:   ac_cv_lib_dld_dld_link=yes
13103: else
13104:   ac_cv_lib_dld_dld_link=no
13105: fi
13106: rm -f core conftest.err conftest.$ac_objext \
13107:     conftest$ac_exeext conftest.$ac_ext
13108: LIBS=$ac_check_lib_save_LIBS
13109: fi
13110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13111: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13112: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13113:   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13114: fi
13115: 
13116: 
13117: fi
13118: 
13119: 
13120: fi
13121: 
13122: 
13123: fi
13124: 
13125: 
13126: fi
13127: 
13128: 
13129: fi
13130: 
13131:     ;;
13132:   esac
13133: 
13134:   if test "x$lt_cv_dlopen" != xno; then
13135:     enable_dlopen=yes
13136:   else
13137:     enable_dlopen=no
13138:   fi
13139: 
13140:   case $lt_cv_dlopen in
13141:   dlopen)
13142:     save_CPPFLAGS="$CPPFLAGS"
13143:     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13144: 
13145:     save_LDFLAGS="$LDFLAGS"
13146:     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13147: 
13148:     save_LIBS="$LIBS"
13149:     LIBS="$lt_cv_dlopen_libs $LIBS"
13150: 
13151:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13152: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13153: if ${lt_cv_dlopen_self+:} false; then :
13154:   $as_echo_n "(cached) " >&6
13155: else
13156:   	  if test "$cross_compiling" = yes; then :
13157:   lt_cv_dlopen_self=cross
13158: else
13159:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13160:   lt_status=$lt_dlunknown
13161:   cat > conftest.$ac_ext <<_LT_EOF
13162: #line $LINENO "configure"
13163: #include "confdefs.h"
13164: 
13165: #if HAVE_DLFCN_H
13166: #include <dlfcn.h>
13167: #endif
13168: 
13169: #include <stdio.h>
13170: 
13171: #ifdef RTLD_GLOBAL
13172: #  define LT_DLGLOBAL		RTLD_GLOBAL
13173: #else
13174: #  ifdef DL_GLOBAL
13175: #    define LT_DLGLOBAL		DL_GLOBAL
13176: #  else
13177: #    define LT_DLGLOBAL		0
13178: #  endif
13179: #endif
13180: 
13181: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13182:    find out it does not work in some platform. */
13183: #ifndef LT_DLLAZY_OR_NOW
13184: #  ifdef RTLD_LAZY
13185: #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13186: #  else
13187: #    ifdef DL_LAZY
13188: #      define LT_DLLAZY_OR_NOW		DL_LAZY
13189: #    else
13190: #      ifdef RTLD_NOW
13191: #        define LT_DLLAZY_OR_NOW	RTLD_NOW
13192: #      else
13193: #        ifdef DL_NOW
13194: #          define LT_DLLAZY_OR_NOW	DL_NOW
13195: #        else
13196: #          define LT_DLLAZY_OR_NOW	0
13197: #        endif
13198: #      endif
13199: #    endif
13200: #  endif
13201: #endif
13202: 
13203: /* When -fvisbility=hidden is used, assume the code has been annotated
13204:    correspondingly for the symbols needed.  */
13205: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13206: int fnord () __attribute__((visibility("default")));
13207: #endif
13208: 
13209: int fnord () { return 42; }
13210: int main ()
13211: {
13212:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13213:   int status = $lt_dlunknown;
13214: 
13215:   if (self)
13216:     {
13217:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13218:       else
13219:         {
13220: 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13221:           else puts (dlerror ());
13222: 	}
13223:       /* dlclose (self); */
13224:     }
13225:   else
13226:     puts (dlerror ());
13227: 
13228:   return status;
13229: }
13230: _LT_EOF
13231:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13232:   (eval $ac_link) 2>&5
13233:   ac_status=$?
13234:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13235:   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13236:     (./conftest; exit; ) >&5 2>/dev/null
13237:     lt_status=$?
13238:     case x$lt_status in
13239:       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13240:       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13241:       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13242:     esac
13243:   else :
13244:     # compilation failed
13245:     lt_cv_dlopen_self=no
13246:   fi
13247: fi
13248: rm -fr conftest*
13249: 
13250: 
13251: fi
13252: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13253: $as_echo "$lt_cv_dlopen_self" >&6; }
13254: 
13255:     if test "x$lt_cv_dlopen_self" = xyes; then
13256:       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13257:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13258: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13259: if ${lt_cv_dlopen_self_static+:} false; then :
13260:   $as_echo_n "(cached) " >&6
13261: else
13262:   	  if test "$cross_compiling" = yes; then :
13263:   lt_cv_dlopen_self_static=cross
13264: else
13265:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13266:   lt_status=$lt_dlunknown
13267:   cat > conftest.$ac_ext <<_LT_EOF
13268: #line $LINENO "configure"
13269: #include "confdefs.h"
13270: 
13271: #if HAVE_DLFCN_H
13272: #include <dlfcn.h>
13273: #endif
13274: 
13275: #include <stdio.h>
13276: 
13277: #ifdef RTLD_GLOBAL
13278: #  define LT_DLGLOBAL		RTLD_GLOBAL
13279: #else
13280: #  ifdef DL_GLOBAL
13281: #    define LT_DLGLOBAL		DL_GLOBAL
13282: #  else
13283: #    define LT_DLGLOBAL		0
13284: #  endif
13285: #endif
13286: 
13287: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13288:    find out it does not work in some platform. */
13289: #ifndef LT_DLLAZY_OR_NOW
13290: #  ifdef RTLD_LAZY
13291: #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13292: #  else
13293: #    ifdef DL_LAZY
13294: #      define LT_DLLAZY_OR_NOW		DL_LAZY
13295: #    else
13296: #      ifdef RTLD_NOW
13297: #        define LT_DLLAZY_OR_NOW	RTLD_NOW
13298: #      else
13299: #        ifdef DL_NOW
13300: #          define LT_DLLAZY_OR_NOW	DL_NOW
13301: #        else
13302: #          define LT_DLLAZY_OR_NOW	0
13303: #        endif
13304: #      endif
13305: #    endif
13306: #  endif
13307: #endif
13308: 
13309: /* When -fvisbility=hidden is used, assume the code has been annotated
13310:    correspondingly for the symbols needed.  */
13311: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13312: int fnord () __attribute__((visibility("default")));
13313: #endif
13314: 
13315: int fnord () { return 42; }
13316: int main ()
13317: {
13318:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13319:   int status = $lt_dlunknown;
13320: 
13321:   if (self)
13322:     {
13323:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13324:       else
13325:         {
13326: 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13327:           else puts (dlerror ());
13328: 	}
13329:       /* dlclose (self); */
13330:     }
13331:   else
13332:     puts (dlerror ());
13333: 
13334:   return status;
13335: }
13336: _LT_EOF
13337:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13338:   (eval $ac_link) 2>&5
13339:   ac_status=$?
13340:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13341:   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13342:     (./conftest; exit; ) >&5 2>/dev/null
13343:     lt_status=$?
13344:     case x$lt_status in
13345:       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13346:       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13347:       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13348:     esac
13349:   else :
13350:     # compilation failed
13351:     lt_cv_dlopen_self_static=no
13352:   fi
13353: fi
13354: rm -fr conftest*
13355: 
13356: 
13357: fi
13358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13359: $as_echo "$lt_cv_dlopen_self_static" >&6; }
13360:     fi
13361: 
13362:     CPPFLAGS="$save_CPPFLAGS"
13363:     LDFLAGS="$save_LDFLAGS"
13364:     LIBS="$save_LIBS"
13365:     ;;
13366:   esac
13367: 
13368:   case $lt_cv_dlopen_self in
13369:   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13370:   *) enable_dlopen_self=unknown ;;
13371:   esac
13372: 
13373:   case $lt_cv_dlopen_self_static in
13374:   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13375:   *) enable_dlopen_self_static=unknown ;;
13376:   esac
13377: fi
13378: 
13379: 
13380: 
13381: 
13382: 
13383: 
13384: 
13385: 
13386: 
13387: 
13388: 
13389: 
13390: 
13391: 
13392: 
13393: 
13394: 
13395: striplib=
13396: old_striplib=
13397: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13398: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13399: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13400:   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13401:   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13402:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13403: $as_echo "yes" >&6; }
13404: else
13405: # FIXME - insert some real tests, host_os isn't really good enough
13406:   case $host_os in
13407:   darwin*)
13408:     if test -n "$STRIP" ; then
13409:       striplib="$STRIP -x"
13410:       old_striplib="$STRIP -S"
13411:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13412: $as_echo "yes" >&6; }
13413:     else
13414:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415: $as_echo "no" >&6; }
13416:     fi
13417:     ;;
13418:   *)
13419:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420: $as_echo "no" >&6; }
13421:     ;;
13422:   esac
13423: fi
13424: 
13425: 
13426: 
13427: 
13428: 
13429: 
13430: 
13431: 
13432: 
13433: 
13434: 
13435: 
13436:   # Report which library types will actually be built
13437:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13438: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13439:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13440: $as_echo "$can_build_shared" >&6; }
13441: 
13442:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13443: $as_echo_n "checking whether to build shared libraries... " >&6; }
13444:   test "$can_build_shared" = "no" && enable_shared=no
13445: 
13446:   # On AIX, shared libraries and static libraries use the same namespace, and
13447:   # are all built from PIC.
13448:   case $host_os in
13449:   aix3*)
13450:     test "$enable_shared" = yes && enable_static=no
13451:     if test -n "$RANLIB"; then
13452:       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13453:       postinstall_cmds='$RANLIB $lib'
13454:     fi
13455:     ;;
13456: 
13457:   aix[4-9]*)
13458:     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13459:       test "$enable_shared" = yes && enable_static=no
13460:     fi
13461:     ;;
13462:   esac
13463:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13464: $as_echo "$enable_shared" >&6; }
13465: 
13466:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13467: $as_echo_n "checking whether to build static libraries... " >&6; }
13468:   # Make sure either enable_shared or enable_static is yes.
13469:   test "$enable_shared" = yes || enable_static=yes
13470:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13471: $as_echo "$enable_static" >&6; }
13472: 
13473: 
13474: 
13475: 
13476: fi
13477: ac_ext=c
13478: ac_cpp='$CPP $CPPFLAGS'
13479: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13480: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13481: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13482: 
13483: CC="$lt_save_CC"
13484: 
13485: 
13486: 
13487: 
13488: 
13489: 
13490: 
13491: 
13492: 
13493: 
13494: 
13495: 
13496: 
13497: 
13498: 
13499:         ac_config_commands="$ac_config_commands libtool"
13500: 
13501: 
13502: 
13503: 
13504: # Only expand once:
13505: 
13506: 
13507: 
13508: if test "$enable_shared" = "no"; then
13509:     with_noexec=no
13510:     enable_dlopen=no
13511:     lt_cv_dlopen=none
13512:     lt_cv_dlopen_libs=
13513:     ac_cv_func_dlopen=no
13514: else
13515:     eval _shrext="$shrext_cmds"
13516:     # Darwin uses .dylib for libraries but .so for modules
13517:     if test X"$_shrext" = X".dylib"; then
13518: 	SOEXT=".so"
13519:     else
13520: 	SOEXT="$_shrext"
13521:     fi
13522: fi
13523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
13524: $as_echo_n "checking path to sudo_noexec.so... " >&6; }
13525: 
13526: # Check whether --with-noexec was given.
13527: if test "${with_noexec+set}" = set; then :
13528:   withval=$with_noexec; case $with_noexec in
13529:     yes)	with_noexec="$libexecdir/sudo_noexec$_shrext"
13530: 		;;
13531:     no)		;;
13532:     *)		;;
13533: esac
13534: else
13535:   with_noexec="$libexecdir/sudo_noexec$_shrext"
13536: fi
13537: 
13538: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
13539: $as_echo "$with_noexec" >&6; }
13540: NOEXECFILE="sudo_noexec$_shrext"
13541: NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
13542: 
13543: # Extract the first word of "uname", so it can be a program name with args.
13544: set dummy uname; ac_word=$2
13545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13546: $as_echo_n "checking for $ac_word... " >&6; }
13547: if ${ac_cv_prog_UNAMEPROG+:} false; then :
13548:   $as_echo_n "(cached) " >&6
13549: else
13550:   if test -n "$UNAMEPROG"; then
13551:   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
13552: else
13553: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13554: for as_dir in $PATH
13555: do
13556:   IFS=$as_save_IFS
13557:   test -z "$as_dir" && as_dir=.
13558:     for ac_exec_ext in '' $ac_executable_extensions; do
13559:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13560:     ac_cv_prog_UNAMEPROG="uname"
13561:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13562:     break 2
13563:   fi
13564: done
13565:   done
13566: IFS=$as_save_IFS
13567: 
13568: fi
13569: fi
13570: UNAMEPROG=$ac_cv_prog_UNAMEPROG
13571: if test -n "$UNAMEPROG"; then
13572:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
13573: $as_echo "$UNAMEPROG" >&6; }
13574: else
13575:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576: $as_echo "no" >&6; }
13577: fi
13578: 
13579: 
13580: # Extract the first word of "tr", so it can be a program name with args.
13581: set dummy tr; ac_word=$2
13582: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13583: $as_echo_n "checking for $ac_word... " >&6; }
13584: if ${ac_cv_prog_TRPROG+:} false; then :
13585:   $as_echo_n "(cached) " >&6
13586: else
13587:   if test -n "$TRPROG"; then
13588:   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
13589: else
13590: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591: for as_dir in $PATH
13592: do
13593:   IFS=$as_save_IFS
13594:   test -z "$as_dir" && as_dir=.
13595:     for ac_exec_ext in '' $ac_executable_extensions; do
13596:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13597:     ac_cv_prog_TRPROG="tr"
13598:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13599:     break 2
13600:   fi
13601: done
13602:   done
13603: IFS=$as_save_IFS
13604: 
13605: fi
13606: fi
13607: TRPROG=$ac_cv_prog_TRPROG
13608: if test -n "$TRPROG"; then
13609:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
13610: $as_echo "$TRPROG" >&6; }
13611: else
13612:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613: $as_echo "no" >&6; }
13614: fi
13615: 
13616: 
13617: for ac_prog in nroff mandoc
13618: do
13619:   # Extract the first word of "$ac_prog", so it can be a program name with args.
13620: set dummy $ac_prog; ac_word=$2
13621: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622: $as_echo_n "checking for $ac_word... " >&6; }
13623: if ${ac_cv_prog_NROFFPROG+:} false; then :
13624:   $as_echo_n "(cached) " >&6
13625: else
13626:   if test -n "$NROFFPROG"; then
13627:   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
13628: else
13629: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630: for as_dir in $PATH
13631: do
13632:   IFS=$as_save_IFS
13633:   test -z "$as_dir" && as_dir=.
13634:     for ac_exec_ext in '' $ac_executable_extensions; do
13635:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13636:     ac_cv_prog_NROFFPROG="$ac_prog"
13637:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13638:     break 2
13639:   fi
13640: done
13641:   done
13642: IFS=$as_save_IFS
13643: 
13644: fi
13645: fi
13646: NROFFPROG=$ac_cv_prog_NROFFPROG
13647: if test -n "$NROFFPROG"; then
13648:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
13649: $as_echo "$NROFFPROG" >&6; }
13650: else
13651:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652: $as_echo "no" >&6; }
13653: fi
13654: 
13655: 
13656:   test -n "$NROFFPROG" && break
13657: done
13658: 
13659: if test -n "$NROFFPROG"; then
13660:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -c option" >&5
13661: $as_echo_n "checking whether $NROFFPROG supports the -c option... " >&6; }
13662: if ${sudo_cv_var_nroff_opt_c+:} false; then :
13663:   $as_echo_n "(cached) " >&6
13664: else
13665:   if $NROFFPROG -c </dev/null >/dev/null 2>&1; then
13666: 	    sudo_cv_var_nroff_opt_c=yes
13667: 	else
13668: 	    sudo_cv_var_nroff_opt_c=no
13669: 	fi
13670: 
13671: fi
13672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_c" >&5
13673: $as_echo "$sudo_cv_var_nroff_opt_c" >&6; }
13674:     if test "$sudo_cv_var_nroff_opt_c" = "yes"; then
13675: 	NROFFPROG="$NROFFPROG -c"
13676:     fi
13677:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -Tascii option" >&5
13678: $as_echo_n "checking whether $NROFFPROG supports the -Tascii option... " >&6; }
13679: if ${sudo_cv_var_nroff_opt_Tascii+:} false; then :
13680:   $as_echo_n "(cached) " >&6
13681: else
13682:   if $NROFFPROG -Tascii </dev/null >/dev/null 2>&1; then
13683: 	    sudo_cv_var_nroff_opt_Tascii=yes
13684: 	else
13685: 	    sudo_cv_var_nroff_opt_Tascii=no
13686: 	fi
13687:     if test "$sudo_cv_var_nroff_opt_Tascii" = "yes"; then
13688: 	NROFFPROG="$NROFFPROG -Tascii"
13689:     fi
13690: 
13691: fi
13692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_Tascii" >&5
13693: $as_echo "$sudo_cv_var_nroff_opt_Tascii" >&6; }
13694: else
13695:     MANTYPE="cat"
13696:     mansrcdir='$(srcdir)'
13697: fi
13698: 
13699: if test -n "$sudo_cv_prev_host"; then
13700:     if test "$sudo_cv_prev_host" != "$host"; then
13701: 	as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
13702:     else
13703: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
13704: $as_echo_n "checking previous host type... " >&6; }
13705: 	if ${sudo_cv_prev_host+:} false; then :
13706:   $as_echo_n "(cached) " >&6
13707: else
13708:   sudo_cv_prev_host="$host"
13709: fi
13710: 
13711: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
13712: $as_echo "$sudo_cv_prev_host" >&6; }
13713:     fi
13714: else
13715:     # this will produce no output since there is no cached value
13716:     if ${sudo_cv_prev_host+:} false; then :
13717:   $as_echo_n "(cached) " >&6
13718: else
13719:   sudo_cv_prev_host="$host"
13720: fi
13721: 
13722: fi
13723: 
13724: if test -n "$host_os"; then
13725:     OS=`echo $host_os | sed 's/[0-9].*//'`
13726:     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
13727:     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
13728: else
13729:     OS="unknown"
13730:     OSREV=0
13731:     OSMAJOR=0
13732: fi
13733: 
13734: case "$host" in
13735:     *-*-sunos4*)
13736: 		# LD_PRELOAD is space-delimited
13737: 		RTLD_PRELOAD_DELIM=" "
13738: 
13739: 		# getcwd(3) opens a pipe to getpwd(1)!?!
13740: 		BROKEN_GETCWD=1
13741: 
13742: 		# system headers lack prototypes but gcc helps...
13743: 		if test -n "$GCC"; then
13744: 		    OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
13745: 		fi
13746: 
13747: 		shadow_funcs="getpwanam issecure"
13748: 		;;
13749:     *-*-solaris2*)
13750: 		# LD_PRELOAD is space-delimited
13751: 		RTLD_PRELOAD_DELIM=" "
13752: 
13753: 		# To get the crypt(3) prototype (so we pass -Wall)
13754: 		OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13755: 		# AFS support needs -lucb
13756: 		if test "$with_AFS" = "yes"; then
13757: 		    AFS_LIBS="-lc -lucb"
13758: 		fi
13759: 		: ${mansectsu='1m'}
13760: 		: ${mansectform='4'}
13761: 		: ${with_rpath='yes'}
13762: 		test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13763: 		for ac_func in priv_set
13764: do :
13765:   ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
13766: if test "x$ac_cv_func_priv_set" = xyes; then :
13767:   cat >>confdefs.h <<_ACEOF
13768: #define HAVE_PRIV_SET 1
13769: _ACEOF
13770: 
13771: fi
13772: done
13773: 
13774: 		;;
13775:     *-*-aix*)
13776: 		# To get all prototypes (so we pass -Wall)
13777: 		OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
13778: 		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
13779: 		if test X"$with_blibpath" != X"no"; then
13780: 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
13781: $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
13782: 		    O_LDFLAGS="$LDFLAGS"
13783: 		    LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
13784: 		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785: /* end confdefs.h.  */
13786: 
13787: int
13788: main ()
13789: {
13790: 
13791:   ;
13792:   return 0;
13793: }
13794: _ACEOF
13795: if ac_fn_c_try_link "$LINENO"; then :
13796: 
13797: 			if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
13798: 			    blibpath="$with_blibpath"
13799: 			elif test -n "$GCC"; then
13800: 			    blibpath="/usr/lib:/lib:/usr/local/lib"
13801: 			else
13802: 			    blibpath="/usr/lib:/lib"
13803: 			fi
13804: 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13805: $as_echo "yes" >&6; }
13806: 
13807: else
13808:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809: $as_echo "no" >&6; }
13810: fi
13811: rm -f core conftest.err conftest.$ac_objext \
13812:     conftest$ac_exeext conftest.$ac_ext
13813: 		fi
13814: 		LDFLAGS="$O_LDFLAGS"
13815: 
13816: 		# On AIX 6 and higher default to PAM, else default to LAM
13817: 		if test $OSMAJOR -ge 6; then
13818: 		    if test X"$with_pam" = X""; then
13819: 			AUTH_EXCL_DEF="PAM"
13820: 		    fi
13821: 		else
13822: 		    if test X"$with_aixauth" = X""; then
13823: 			for ac_func in authenticate
13824: do :
13825:   ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
13826: if test "x$ac_cv_func_authenticate" = xyes; then :
13827:   cat >>confdefs.h <<_ACEOF
13828: #define HAVE_AUTHENTICATE 1
13829: _ACEOF
13830:  AUTH_EXCL_DEF="AIX_AUTH"
13831: fi
13832: done
13833: 
13834: 		    fi
13835: 		fi
13836: 
13837: 		# AIX analog of nsswitch.conf, enabled by default
13838: 
13839: # Check whether --with-netsvc was given.
13840: if test "${with_netsvc+set}" = set; then :
13841:   withval=$with_netsvc; case $with_netsvc in
13842: 		    no)		;;
13843: 		    yes)	with_netsvc="/etc/netsvc.conf"
13844: 				;;
13845: 		    *)		;;
13846: 		esac
13847: fi
13848: 
13849: 		if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
13850: 		    with_netsvc="/etc/netsvc.conf"
13851: 		fi
13852: 
13853: 		# For implementing getgrouplist()
13854: 		for ac_func in getgrset
13855: do :
13856:   ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
13857: if test "x$ac_cv_func_getgrset" = xyes; then :
13858:   cat >>confdefs.h <<_ACEOF
13859: #define HAVE_GETGRSET 1
13860: _ACEOF
13861: 
13862: fi
13863: done
13864: 
13865: 
13866: 		# LDR_PRELOAD is only supported in AIX 5.3 and later
13867: 		if test $OSMAJOR -lt 5; then
13868: 		    with_noexec=no
13869: 		else
13870: 		    RTLD_PRELOAD_VAR="LDR_PRELOAD"
13871: 		fi
13872: 
13873: 		# AIX-specific functions
13874: 		for ac_func in getuserattr setauthdb
13875: do :
13876:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13877: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13878: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13879:   cat >>confdefs.h <<_ACEOF
13880: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13881: _ACEOF
13882: 
13883: fi
13884: done
13885: 
13886: 		COMMON_OBJS="$COMMON_OBJS aix.lo"
13887: 		;;
13888:     *-*-hiuxmpp*)
13889: 		: ${mansectsu='1m'}
13890: 		: ${mansectform='4'}
13891: 		;;
13892:     *-*-hpux*)
13893: 		# AFS support needs -lBSD
13894: 		if test "$with_AFS" = "yes"; then
13895: 		    AFS_LIBS="-lc -lBSD"
13896: 		fi
13897: 		: ${mansectsu='1m'}
13898: 		: ${mansectform='4'}
13899: 
13900: 		# The HP bundled compiler cannot generate shared libs
13901: 		if test -z "$GCC"; then
13902: 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
13903: $as_echo_n "checking for HP bundled C compiler... " >&6; }
13904: if ${sudo_cv_var_hpccbundled+:} false; then :
13905:   $as_echo_n "(cached) " >&6
13906: else
13907:   if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
13908: 			    sudo_cv_var_hpccbundled=yes
13909: 			else
13910: 			    sudo_cv_var_hpccbundled=no
13911: 			fi
13912: 
13913: fi
13914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
13915: $as_echo "$sudo_cv_var_hpccbundled" >&6; }
13916: 		    if test "$sudo_cv_var_hpccbundled" = "yes"; then
13917: 			as_fn_error $? "The HP bundled C compiler is unable to build Sudo, you must use gcc or the HP ANSI C compiler instead." "$LINENO" 5
13918: 		    fi
13919: 		fi
13920: 
13921: 		# Build PA-RISC1.1 objects for better portability
13922: 		case "$host_cpu" in
13923: 		    hppa[2-9]*)
13924: 			_CFLAGS="$CFLAGS"
13925: 			if test -n "$GCC"; then
13926: 			    portable_flag="-march=1.1"
13927: 			else
13928: 			    portable_flag="+DAportable"
13929: 			fi
13930: 			CFLAGS="$CFLAGS $portable_flag"
13931: 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
13932: $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
13933: if ${sudo_cv_var_daportable+:} false; then :
13934:   $as_echo_n "(cached) " >&6
13935: else
13936:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937: /* end confdefs.h.  */
13938: 
13939: int
13940: main ()
13941: {
13942: 
13943:   ;
13944:   return 0;
13945: }
13946: _ACEOF
13947: if ac_fn_c_try_link "$LINENO"; then :
13948:   sudo_cv_var_daportable=yes
13949: else
13950:   sudo_cv_var_daportable=no
13951: 
13952: fi
13953: rm -f core conftest.err conftest.$ac_objext \
13954:     conftest$ac_exeext conftest.$ac_ext
13955: 
13956: 
13957: fi
13958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
13959: $as_echo "$sudo_cv_var_daportable" >&6; }
13960: 			if test X"$sudo_cv_var_daportable" != X"yes"; then
13961: 			    CFLAGS="$_CFLAGS"
13962: 			fi
13963: 			;;
13964: 		esac
13965: 
13966: 		case "$host" in
13967: 			*-*-hpux[1-8].*)
13968: 			    $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13969: 
13970: 			;;
13971: 			*-*-hpux9.*)
13972: 			    $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13973: 
13974: 
13975: 			    shadow_funcs="getspwuid"
13976: 
13977: 			    # DCE support (requires ANSI C compiler)
13978: 			    if test "$with_DCE" = "yes"; then
13979: 				# order of libs in 9.X is important. -lc_r must be last
13980: 				SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
13981: 				LIBS="${LIBS} -ldce -lM -lc_r"
13982: 				CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
13983: 			    fi
13984: 			;;
13985: 			*-*-hpux10.*)
13986: 			    shadow_funcs="getprpwnam iscomsec"
13987: 			    shadow_libs="-lsec"
13988: 			    # HP-UX 10.20 libc has an incompatible getline
13989: 			    ac_cv_func_getline="no"
13990: 			;;
13991: 			*)
13992: 			    shadow_funcs="getspnam iscomsec"
13993: 			    shadow_libs="-lsec"
13994: 			    test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13995: 			;;
13996: 		esac
13997: 		;;
13998:     *-dec-osf*)
13999: 		# ignore envariables wrt dynamic lib path
14000: 		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
14001: 
14002: 		: ${CHECKSIA='true'}
14003: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
14004: $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
14005: 		# Check whether --enable-sia was given.
14006: if test "${enable_sia+set}" = set; then :
14007:   enableval=$enable_sia;  case "$enableval" in
14008: 		    yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009: $as_echo "no" >&6; }
14010: 				CHECKSIA=true
14011: 				;;
14012: 		    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14013: $as_echo "yes" >&6; }
14014: 				CHECKSIA=false
14015: 				;;
14016: 		    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017: $as_echo "no" >&6; }
14018: 				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
14019: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
14020: 				;;
14021: 		  esac
14022: 
14023: else
14024:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14025: $as_echo "no" >&6; }
14026: fi
14027: 
14028: 
14029: 		shadow_funcs="getprpwnam dispcrypt"
14030: 		# OSF/1 4.x and higher need -ldb too
14031: 		if test $OSMAJOR -lt 4; then
14032: 		    shadow_libs="-lsecurity -laud -lm"
14033: 		else
14034: 		    shadow_libs="-lsecurity -ldb -laud -lm"
14035: 		fi
14036: 
14037: 		# use SIA by default, if we have it
14038: 		test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
14039: 
14040: 		#
14041: 		# Some versions of Digital Unix ship with a broken
14042: 		# copy of prot.h, which we need for shadow passwords.
14043: 		# XXX - make should remove this as part of distclean
14044: 		#
14045: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
14046: $as_echo_n "checking for broken prot.h... " >&6; }
14047: 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048: /* end confdefs.h.  */
14049: 
14050: #include <sys/types.h>
14051: #include <sys/security.h>
14052: #include <prot.h>
14053: 
14054: int
14055: main ()
14056: {
14057: exit(0);
14058:   ;
14059:   return 0;
14060: }
14061: _ACEOF
14062: if ac_fn_c_try_compile "$LINENO"; then :
14063:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14064: $as_echo "no" >&6; }
14065: else
14066:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
14067: $as_echo "yes, fixing locally" >&6; }
14068: 		sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
14069: 
14070: fi
14071: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072: 		# ":DEFAULT" must be appended to _RLD_LIST
14073: 		RTLD_PRELOAD_VAR="_RLD_LIST"
14074: 		RTLD_PRELOAD_DEFAULT="DEFAULT"
14075: 		: ${mansectsu='8'}
14076: 		: ${mansectform='4'}
14077: 		;;
14078:     *-*-irix*)
14079: 		OSDEFS="${OSDEFS} -D_BSD_TYPES"
14080: 		if test -z "$NROFFPROG"; then
14081: 		    MAN_POSTINSTALL='	/bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
14082: 		    if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14083: 			if test -d /usr/share/catman/local; then
14084: 			    mandir="/usr/share/catman/local"
14085: 			else
14086: 			    mandir="/usr/catman/local"
14087: 			fi
14088: 		    fi
14089: 		else
14090: 		    if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14091: 			if test -d "/usr/share/man/local"; then
14092: 			    mandir="/usr/share/man/local"
14093: 			else
14094: 			    mandir="/usr/man/local"
14095: 			fi
14096: 		    fi
14097: 		fi
14098: 		# IRIX <= 4 needs -lsun
14099: 		if test "$OSMAJOR" -le 4; then
14100: 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
14101: $as_echo_n "checking for getpwnam in -lsun... " >&6; }
14102: if ${ac_cv_lib_sun_getpwnam+:} false; then :
14103:   $as_echo_n "(cached) " >&6
14104: else
14105:   ac_check_lib_save_LIBS=$LIBS
14106: LIBS="-lsun  $LIBS"
14107: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108: /* end confdefs.h.  */
14109: 
14110: /* Override any GCC internal prototype to avoid an error.
14111:    Use char because int might match the return type of a GCC
14112:    builtin and then its argument prototype would still apply.  */
14113: #ifdef __cplusplus
14114: extern "C"
14115: #endif
14116: char getpwnam ();
14117: int
14118: main ()
14119: {
14120: return getpwnam ();
14121:   ;
14122:   return 0;
14123: }
14124: _ACEOF
14125: if ac_fn_c_try_link "$LINENO"; then :
14126:   ac_cv_lib_sun_getpwnam=yes
14127: else
14128:   ac_cv_lib_sun_getpwnam=no
14129: fi
14130: rm -f core conftest.err conftest.$ac_objext \
14131:     conftest$ac_exeext conftest.$ac_ext
14132: LIBS=$ac_check_lib_save_LIBS
14133: fi
14134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
14135: $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
14136: if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
14137:   LIBS="${LIBS} -lsun"
14138: fi
14139: 
14140: 		fi
14141: 		# ":DEFAULT" must be appended to _RLD_LIST
14142: 		RTLD_PRELOAD_VAR="_RLD_LIST"
14143: 		RTLD_PRELOAD_DEFAULT="DEFAULT"
14144: 		: ${mansectsu='1m'}
14145: 		: ${mansectform='4'}
14146: 		;;
14147:     *-*-linux*|*-*-k*bsd*-gnu)
14148: 		OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14149: 		# Some Linux versions need to link with -lshadow
14150: 		shadow_funcs="getspnam"
14151: 		shadow_libs_optional="-lshadow"
14152: 		test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14153: 		;;
14154:     *-convex-bsd*)
14155: 		OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
14156: 		if test -z "$GCC"; then
14157: 		    CFLAGS="${CFLAGS} -D__STDC__"
14158: 		fi
14159: 
14160: 		shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
14161: 		shadow_funcs="getprpwnam"
14162: 		shadow_libs="-lprot"
14163: 		;;
14164:     *-*-ultrix*)
14165: 		OS="ultrix"
14166: 		shadow_funcs="getauthuid"
14167: 		shadow_libs="-lauth"
14168: 		;;
14169:     *-*-riscos*)
14170: 		LIBS="${LIBS} -lsun -lbsd"
14171: 		CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
14172: 		OSDEFS="${OSDEFS} -D_MIPS"
14173: 		: ${mansectsu='1m'}
14174: 		: ${mansectform='4'}
14175: 		;;
14176:     *-*-isc*)
14177: 		OSDEFS="${OSDEFS} -D_ISC"
14178: 		LIB_CRYPT=1
14179: 		SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
14180: 
14181: 		shadow_funcs="getspnam"
14182: 		shadow_libs="-lsec"
14183: 
14184: 		: ${mansectsu='1m'}
14185: 		: ${mansectform='4'}
14186: 		;;
14187:     *-*-sco*|*-sco-*)
14188: 		shadow_funcs="getprpwnam"
14189: 		shadow_libs="-lprot -lx"
14190: 		: ${mansectsu='1m'}
14191: 		: ${mansectform='4'}
14192: 		;;
14193:     m88k-motorola-sysv*)
14194: 		# motorolla's cc (a variant of gcc) does -O but not -O2
14195: 		CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
14196: 		: ${mansectsu='1m'}
14197: 		: ${mansectform='4'}
14198: 		;;
14199:     *-sequent-sysv*)
14200: 		shadow_funcs="getspnam"
14201: 		shadow_libs="-lsec"
14202: 		: ${mansectsu='1m'}
14203: 		: ${mansectform='4'}
14204: 		: ${with_rpath='yes'}
14205: 		;;
14206:     *-ncr-sysv4*|*-ncr-sysvr4*)
14207: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
14208: $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
14209: if ${ac_cv_lib_c89_strcasecmp+:} false; then :
14210:   $as_echo_n "(cached) " >&6
14211: else
14212:   ac_check_lib_save_LIBS=$LIBS
14213: LIBS="-lc89  $LIBS"
14214: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215: /* end confdefs.h.  */
14216: 
14217: /* Override any GCC internal prototype to avoid an error.
14218:    Use char because int might match the return type of a GCC
14219:    builtin and then its argument prototype would still apply.  */
14220: #ifdef __cplusplus
14221: extern "C"
14222: #endif
14223: char strcasecmp ();
14224: int
14225: main ()
14226: {
14227: return strcasecmp ();
14228:   ;
14229:   return 0;
14230: }
14231: _ACEOF
14232: if ac_fn_c_try_link "$LINENO"; then :
14233:   ac_cv_lib_c89_strcasecmp=yes
14234: else
14235:   ac_cv_lib_c89_strcasecmp=no
14236: fi
14237: rm -f core conftest.err conftest.$ac_objext \
14238:     conftest$ac_exeext conftest.$ac_ext
14239: LIBS=$ac_check_lib_save_LIBS
14240: fi
14241: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
14242: $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
14243: if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
14244:   LIBS="${LIBS} -lc89"
14245: fi
14246: 
14247: 		: ${mansectsu='1m'}
14248: 		: ${mansectform='4'}
14249: 		: ${with_rpath='yes'}
14250: 		;;
14251:     *-ccur-sysv4*|*-ccur-sysvr4*)
14252: 		LIBS="${LIBS} -lgen"
14253: 		: ${mansectsu='1m'}
14254: 		: ${mansectform='4'}
14255: 		: ${with_rpath='yes'}
14256: 		;;
14257:     *-*-bsdi*)
14258: 		SKIP_SETREUID=yes
14259: 		# Check for newer BSD auth API
14260: 		if test -z "$with_bsdauth"; then
14261: 		    for ac_func in auth_challenge
14262: do :
14263:   ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
14264: if test "x$ac_cv_func_auth_challenge" = xyes; then :
14265:   cat >>confdefs.h <<_ACEOF
14266: #define HAVE_AUTH_CHALLENGE 1
14267: _ACEOF
14268:  AUTH_EXCL_DEF="BSD_AUTH"
14269: fi
14270: done
14271: 
14272: 		fi
14273: 		;;
14274:     *-*-freebsd*)
14275: 		# FreeBSD has a real setreuid(2) starting with 2.1 and
14276: 		# backported to 2.0.5.  We just take 2.1 and above...
14277: 		case "$OSREV" in
14278: 		0.*|1.*|2.0*)
14279: 		    SKIP_SETREUID=yes
14280: 		    ;;
14281: 		esac
14282: 		OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14283: 		if test "${with_skey-'no'}" = "yes"; then
14284: 		     SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14285: 		fi
14286: 		CHECKSHADOW="false"
14287: 		test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14288: 		: ${with_logincap='maybe'}
14289: 		;;
14290:     *-*-*openbsd*)
14291: 		# OpenBSD has a real setreuid(2) starting with 3.3 but
14292: 		# we will use setresuid(2) instead.
14293: 		SKIP_SETREUID=yes
14294: 		OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14295: 		CHECKSHADOW="false"
14296: 		# OpenBSD >= 3.0 supports BSD auth
14297: 		if test -z "$with_bsdauth"; then
14298: 		    if test "$OSMAJOR" -ge 3; then
14299: 			AUTH_EXCL_DEF="BSD_AUTH"
14300: 		    fi
14301: 		fi
14302: 		: ${with_logincap='maybe'}
14303: 		;;
14304:     *-*-*netbsd*)
14305: 		# NetBSD has a real setreuid(2) starting with 1.3.2
14306: 		case "$OSREV" in
14307: 		0.9*|1.[012]*|1.3|1.3.1)
14308: 		    SKIP_SETREUID=yes
14309: 		    ;;
14310: 		esac
14311: 		CHECKSHADOW="false"
14312: 		test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14313: 		: ${with_logincap='maybe'}
14314: 		;;
14315:     *-*-dragonfly*)
14316: 		OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14317: 		if test "${with_skey-'no'}" = "yes"; then
14318: 		     SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14319: 		fi
14320: 		CHECKSHADOW="false"
14321: 		test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14322: 		: ${with_logincap='yes'}
14323: 		;;
14324:     *-*-*bsd*)
14325: 		CHECKSHADOW="false"
14326: 		;;
14327:     *-*-darwin*)
14328: 		# Darwin has a real setreuid(2) starting with 9.0
14329: 		if test $OSMAJOR -lt 9; then
14330: 		    SKIP_SETREUID=yes
14331: 		fi
14332: 		CHECKSHADOW="false"
14333: 		test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14334: 		: ${with_logincap='yes'}
14335: 		RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14336: 		RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14337: 		;;
14338:     *-*-nextstep*)
14339: 		# lockf() on is broken on the NeXT -- use flock instead
14340: 		ac_cv_func_lockf=no
14341: 		ac_cv_func_flock=yes
14342: 		RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14343: 		RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14344: 		;;
14345:     *-*-*sysv4*)
14346: 		: ${mansectsu='1m'}
14347: 		: ${mansectform='4'}
14348: 		: ${with_rpath='yes'}
14349: 		;;
14350:     *-*-sysv*)
14351: 		: ${mansectsu='1m'}
14352: 		: ${mansectform='4'}
14353: 		;;
14354:     *-gnu*)
14355: 		OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14356: 		;;
14357: esac
14358: 
14359: if test -n "$with_noexec"; then
14360:     cat >>confdefs.h <<EOF
14361: #define RTLD_PRELOAD_VAR "$RTLD_PRELOAD_VAR"
14362: EOF
14363: 
14364:     cat >>confdefs.h <<EOF
14365: #define RTLD_PRELOAD_DELIM "$RTLD_PRELOAD_DELIM"
14366: EOF
14367: 
14368:     if test -n "$RTLD_PRELOAD_DEFAULT"; then
14369: 	cat >>confdefs.h <<EOF
14370: #define RTLD_PRELOAD_DEFAULT "$RTLD_PRELOAD_DEFAULT"
14371: EOF
14372: 
14373:     fi
14374:     if test -n "$RTLD_PRELOAD_ENABLE_VAR"; then
14375: 	cat >>confdefs.h <<EOF
14376: #define RTLD_PRELOAD_ENABLE_VAR "$RTLD_PRELOAD_ENABLE_VAR"
14377: EOF
14378: 
14379:     fi
14380: fi
14381: 
14382: AUTH_REG=${AUTH_REG# }
14383: AUTH_EXCL=${AUTH_EXCL# }
14384: if test -n "$AUTH_EXCL"; then
14385:     set -- $AUTH_EXCL
14386:     if test $# != 1; then
14387: 	as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
14388:     fi
14389:     if test -n "$AUTH_REG"; then
14390: 	as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
14391:     fi
14392: fi
14393: if test X"${with_skey}${with_opie}" = X"yesyes"; then
14394:     as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
14395: fi
14396: 
14397: : ${mansectsu='8'}
14398: : ${mansectform='5'}
14399: 
14400: if test -n "$with_libpath"; then
14401:     for i in ${with_libpath}; do
14402: 
14403:     if test X"$with_rpath" = X"yes"; then
14404: 	case "$host" in
14405: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
14406: 			;;
14407: 	    *)		LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
14408: 			;;
14409: 	esac
14410:     else
14411: 	LDFLAGS="${LDFLAGS} -L$i"
14412:     fi
14413:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
14414: 	blibpath_add="${blibpath_add}:$i"
14415:     fi
14416: 
14417:     done
14418: fi
14419: if test -n "$with_libraries"; then
14420:     for i in ${with_libraries}; do
14421: 	case $i in
14422: 	    -l*)	;;
14423: 	    *.a)	;;
14424: 	    *.o)	;;
14425: 	    *)	i="-l${i}";;
14426: 	esac
14427: 	LIBS="${LIBS} ${i}"
14428:     done
14429: fi
14430: 
14431: if test $ac_cv_c_compiler_gnu = yes; then
14432:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14433: $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14434: if ${ac_cv_prog_gcc_traditional+:} false; then :
14435:   $as_echo_n "(cached) " >&6
14436: else
14437:     ac_pattern="Autoconf.*'x'"
14438:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439: /* end confdefs.h.  */
14440: #include <sgtty.h>
14441: Autoconf TIOCGETP
14442: _ACEOF
14443: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14444:   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14445:   ac_cv_prog_gcc_traditional=yes
14446: else
14447:   ac_cv_prog_gcc_traditional=no
14448: fi
14449: rm -f conftest*
14450: 
14451: 
14452:   if test $ac_cv_prog_gcc_traditional = no; then
14453:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454: /* end confdefs.h.  */
14455: #include <termio.h>
14456: Autoconf TCGETA
14457: _ACEOF
14458: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14459:   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14460:   ac_cv_prog_gcc_traditional=yes
14461: fi
14462: rm -f conftest*
14463: 
14464:   fi
14465: fi
14466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14467: $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14468:   if test $ac_cv_prog_gcc_traditional = yes; then
14469:     CC="$CC -traditional"
14470:   fi
14471: fi
14472: 
14473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14474: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14475: if ${ac_cv_c_const+:} false; then :
14476:   $as_echo_n "(cached) " >&6
14477: else
14478:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479: /* end confdefs.h.  */
14480: 
14481: int
14482: main ()
14483: {
14484: /* FIXME: Include the comments suggested by Paul. */
14485: #ifndef __cplusplus
14486:   /* Ultrix mips cc rejects this.  */
14487:   typedef int charset[2];
14488:   const charset cs;
14489:   /* SunOS 4.1.1 cc rejects this.  */
14490:   char const *const *pcpcc;
14491:   char **ppc;
14492:   /* NEC SVR4.0.2 mips cc rejects this.  */
14493:   struct point {int x, y;};
14494:   static struct point const zero = {0,0};
14495:   /* AIX XL C 1.02.0.0 rejects this.
14496:      It does not let you subtract one const X* pointer from another in
14497:      an arm of an if-expression whose if-part is not a constant
14498:      expression */
14499:   const char *g = "string";
14500:   pcpcc = &g + (g ? g-g : 0);
14501:   /* HPUX 7.0 cc rejects these. */
14502:   ++pcpcc;
14503:   ppc = (char**) pcpcc;
14504:   pcpcc = (char const *const *) ppc;
14505:   { /* SCO 3.2v4 cc rejects this.  */
14506:     char *t;
14507:     char const *s = 0 ? (char *) 0 : (char const *) 0;
14508: 
14509:     *t++ = 0;
14510:     if (s) return 0;
14511:   }
14512:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14513:     int x[] = {25, 17};
14514:     const int *foo = &x[0];
14515:     ++foo;
14516:   }
14517:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14518:     typedef const int *iptr;
14519:     iptr p = 0;
14520:     ++p;
14521:   }
14522:   { /* AIX XL C 1.02.0.0 rejects this saying
14523:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14524:     struct s { int j; const int *ap[3]; };
14525:     struct s *b; b->j = 5;
14526:   }
14527:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14528:     const int foo = 10;
14529:     if (!foo) return 0;
14530:   }
14531:   return !cs[0] && !zero.x;
14532: #endif
14533: 
14534:   ;
14535:   return 0;
14536: }
14537: _ACEOF
14538: if ac_fn_c_try_compile "$LINENO"; then :
14539:   ac_cv_c_const=yes
14540: else
14541:   ac_cv_c_const=no
14542: fi
14543: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544: fi
14545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14546: $as_echo "$ac_cv_c_const" >&6; }
14547: if test $ac_cv_c_const = no; then
14548: 
14549: $as_echo "#define const /**/" >>confdefs.h
14550: 
14551: fi
14552: 
14553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14554: $as_echo_n "checking for working volatile... " >&6; }
14555: if ${ac_cv_c_volatile+:} false; then :
14556:   $as_echo_n "(cached) " >&6
14557: else
14558:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559: /* end confdefs.h.  */
14560: 
14561: int
14562: main ()
14563: {
14564: 
14565: volatile int x;
14566: int * volatile y = (int *) 0;
14567: return !x && !y;
14568:   ;
14569:   return 0;
14570: }
14571: _ACEOF
14572: if ac_fn_c_try_compile "$LINENO"; then :
14573:   ac_cv_c_volatile=yes
14574: else
14575:   ac_cv_c_volatile=no
14576: fi
14577: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578: fi
14579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14580: $as_echo "$ac_cv_c_volatile" >&6; }
14581: if test $ac_cv_c_volatile = no; then
14582: 
14583: $as_echo "#define volatile /**/" >>confdefs.h
14584: 
14585: fi
14586: 
14587: # Check for variadic macro support in cpp
14588: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589: /* end confdefs.h.  */
14590: 
14591: $ac_includes_default
14592: #if defined(__GNUC__) && __GNUC__ == 2
14593: # define sudo_fprintf(fp, fmt...) fprintf((fp), (fmt))
14594: #else
14595: # define sudo_fprintf(fp, ...) fprintf((fp), __VA_ARGS__)
14596: #endif
14597: 
14598: int
14599: main ()
14600: {
14601: sudo_fprintf(stderr, "a %s", "test");
14602:   ;
14603:   return 0;
14604: }
14605: _ACEOF
14606: if ac_fn_c_try_compile "$LINENO"; then :
14607: 
14608: else
14609:   as_fn_error $? "Your C compiler doesn't support variadic macros, try building with gcc instead" "$LINENO" 5
14610: fi
14611: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14612: if test X"$with_gnu_ld" != "yes" -a -n "$GCC"; then
14613:     _CFLAGS="$CFLAGS"
14614:     CFLAGS="$CFLAGS -static-libgcc"
14615:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -static-libgcc" >&5
14616: $as_echo_n "checking whether $CC understands -static-libgcc... " >&6; }
14617: if ${sudo_cv_var_gcc_static_libgcc+:} false; then :
14618:   $as_echo_n "(cached) " >&6
14619: else
14620:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621: /* end confdefs.h.  */
14622: 
14623: int
14624: main ()
14625: {
14626: 
14627:   ;
14628:   return 0;
14629: }
14630: _ACEOF
14631: if ac_fn_c_try_link "$LINENO"; then :
14632:   sudo_cv_var_gcc_static_libgcc=yes
14633: else
14634:   sudo_cv_var_gcc_static_libgcc=no
14635: 
14636: fi
14637: rm -f core conftest.err conftest.$ac_objext \
14638:     conftest$ac_exeext conftest.$ac_ext
14639: 
14640: 
14641: fi
14642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gcc_static_libgcc" >&5
14643: $as_echo "$sudo_cv_var_gcc_static_libgcc" >&6; }
14644:     CFLAGS="$_CFLAGS"
14645:     if test "$sudo_cv_var_gcc_static_libgcc" = "yes"; then
14646: 	LTLDFLAGS="$LTLDFLAGS -Wc,-static-libgcc"
14647:     fi
14648: fi
14649: for ac_prog in 'bison -y' byacc
14650: do
14651:   # Extract the first word of "$ac_prog", so it can be a program name with args.
14652: set dummy $ac_prog; ac_word=$2
14653: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14654: $as_echo_n "checking for $ac_word... " >&6; }
14655: if ${ac_cv_prog_YACC+:} false; then :
14656:   $as_echo_n "(cached) " >&6
14657: else
14658:   if test -n "$YACC"; then
14659:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
14660: else
14661: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14662: for as_dir in $PATH
14663: do
14664:   IFS=$as_save_IFS
14665:   test -z "$as_dir" && as_dir=.
14666:     for ac_exec_ext in '' $ac_executable_extensions; do
14667:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14668:     ac_cv_prog_YACC="$ac_prog"
14669:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14670:     break 2
14671:   fi
14672: done
14673:   done
14674: IFS=$as_save_IFS
14675: 
14676: fi
14677: fi
14678: YACC=$ac_cv_prog_YACC
14679: if test -n "$YACC"; then
14680:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14681: $as_echo "$YACC" >&6; }
14682: else
14683:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14684: $as_echo "no" >&6; }
14685: fi
14686: 
14687: 
14688:   test -n "$YACC" && break
14689: done
14690: test -n "$YACC" || YACC="yacc"
14691: 
14692: # Extract the first word of "flex", so it can be a program name with args.
14693: set dummy flex; ac_word=$2
14694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14695: $as_echo_n "checking for $ac_word... " >&6; }
14696: if ${ac_cv_path_FLEX+:} false; then :
14697:   $as_echo_n "(cached) " >&6
14698: else
14699:   case $FLEX in
14700:   [\\/]* | ?:[\\/]*)
14701:   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14702:   ;;
14703:   *)
14704:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14705: for as_dir in $PATH
14706: do
14707:   IFS=$as_save_IFS
14708:   test -z "$as_dir" && as_dir=.
14709:     for ac_exec_ext in '' $ac_executable_extensions; do
14710:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14711:     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14712:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14713:     break 2
14714:   fi
14715: done
14716:   done
14717: IFS=$as_save_IFS
14718: 
14719:   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
14720:   ;;
14721: esac
14722: fi
14723: FLEX=$ac_cv_path_FLEX
14724: if test -n "$FLEX"; then
14725:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14726: $as_echo "$FLEX" >&6; }
14727: else
14728:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14729: $as_echo "no" >&6; }
14730: fi
14731: 
14732: 
14733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
14734: $as_echo_n "checking for mv... " >&6; }
14735: found=no
14736: for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
14737:     if test -f "$p"; then
14738: 	found=yes
14739: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14740: $as_echo "$p" >&6; }
14741: 	cat >>confdefs.h <<EOF
14742: #define _PATH_MV "$p"
14743: EOF
14744: 
14745: 	break
14746:     fi
14747: done
14748: if test X"$found" != X"yes"; then
14749:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14750: $as_echo "not found" >&6; }
14751: fi
14752: 
14753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
14754: $as_echo_n "checking for bourne shell... " >&6; }
14755: found=no
14756: for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
14757:     if test -f "$p"; then
14758: 	found=yes
14759: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14760: $as_echo "$p" >&6; }
14761: 	cat >>confdefs.h <<EOF
14762: #define _PATH_BSHELL "$p"
14763: EOF
14764: 
14765: 	break
14766:     fi
14767: done
14768: if test X"$found" != X"yes"; then
14769:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14770: $as_echo "not found" >&6; }
14771: fi
14772: 
14773: if test -z "$with_sendmail"; then
14774:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
14775: $as_echo_n "checking for sendmail... " >&6; }
14776: found=no
14777: for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
14778:     if test -f "$p"; then
14779: 	found=yes
14780: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14781: $as_echo "$p" >&6; }
14782: 	cat >>confdefs.h <<EOF
14783: #define _PATH_SUDO_SENDMAIL "$p"
14784: EOF
14785: 
14786: 	break
14787:     fi
14788: done
14789: if test X"$found" != X"yes"; then
14790:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14791: $as_echo "not found" >&6; }
14792: fi
14793: 
14794: fi
14795: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
14796: $as_echo_n "checking for vi... " >&6; }
14797: found=no
14798: for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
14799:     if test -f "$editor"; then
14800: 	found=yes
14801: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
14802: $as_echo "$editor" >&6; }
14803: 	cat >>confdefs.h <<EOF
14804: #define _PATH_VI "$editor"
14805: EOF
14806: 
14807: 	break
14808:     fi
14809: done
14810: if test X"$found" != X"yes"; then
14811:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14812: $as_echo "not found" >&6; }
14813: fi
14814: 
14815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
14816: $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
14817: if test X"$with_logfac" = X""; then
14818:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819: /* end confdefs.h.  */
14820: #include <syslog.h>
14821: int
14822: main ()
14823: {
14824: int i = LOG_AUTHPRIV; (void)i;
14825:   ;
14826:   return 0;
14827: }
14828: _ACEOF
14829: if ac_fn_c_try_compile "$LINENO"; then :
14830:   logfac=authpriv
14831: fi
14832: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833: fi
14834: 
14835: cat >>confdefs.h <<_ACEOF
14836: #define LOGFAC "$logfac"
14837: _ACEOF
14838: 
14839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
14840: $as_echo "$logfac" >&6; }
14841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14842: $as_echo_n "checking for ANSI C header files... " >&6; }
14843: if ${ac_cv_header_stdc+:} false; then :
14844:   $as_echo_n "(cached) " >&6
14845: else
14846:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847: /* end confdefs.h.  */
14848: #include <stdlib.h>
14849: #include <stdarg.h>
14850: #include <string.h>
14851: #include <float.h>
14852: 
14853: int
14854: main ()
14855: {
14856: 
14857:   ;
14858:   return 0;
14859: }
14860: _ACEOF
14861: if ac_fn_c_try_compile "$LINENO"; then :
14862:   ac_cv_header_stdc=yes
14863: else
14864:   ac_cv_header_stdc=no
14865: fi
14866: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867: 
14868: if test $ac_cv_header_stdc = yes; then
14869:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14870:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871: /* end confdefs.h.  */
14872: #include <string.h>
14873: 
14874: _ACEOF
14875: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14876:   $EGREP "memchr" >/dev/null 2>&1; then :
14877: 
14878: else
14879:   ac_cv_header_stdc=no
14880: fi
14881: rm -f conftest*
14882: 
14883: fi
14884: 
14885: if test $ac_cv_header_stdc = yes; then
14886:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14887:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888: /* end confdefs.h.  */
14889: #include <stdlib.h>
14890: 
14891: _ACEOF
14892: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14893:   $EGREP "free" >/dev/null 2>&1; then :
14894: 
14895: else
14896:   ac_cv_header_stdc=no
14897: fi
14898: rm -f conftest*
14899: 
14900: fi
14901: 
14902: if test $ac_cv_header_stdc = yes; then
14903:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14904:   if test "$cross_compiling" = yes; then :
14905:   :
14906: else
14907:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908: /* end confdefs.h.  */
14909: #include <ctype.h>
14910: #include <stdlib.h>
14911: #if ((' ' & 0x0FF) == 0x020)
14912: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14913: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14914: #else
14915: # define ISLOWER(c) \
14916: 		   (('a' <= (c) && (c) <= 'i') \
14917: 		     || ('j' <= (c) && (c) <= 'r') \
14918: 		     || ('s' <= (c) && (c) <= 'z'))
14919: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14920: #endif
14921: 
14922: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14923: int
14924: main ()
14925: {
14926:   int i;
14927:   for (i = 0; i < 256; i++)
14928:     if (XOR (islower (i), ISLOWER (i))
14929: 	|| toupper (i) != TOUPPER (i))
14930:       return 2;
14931:   return 0;
14932: }
14933: _ACEOF
14934: if ac_fn_c_try_run "$LINENO"; then :
14935: 
14936: else
14937:   ac_cv_header_stdc=no
14938: fi
14939: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14940:   conftest.$ac_objext conftest.beam conftest.$ac_ext
14941: fi
14942: 
14943: fi
14944: fi
14945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14946: $as_echo "$ac_cv_header_stdc" >&6; }
14947: if test $ac_cv_header_stdc = yes; then
14948: 
14949: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14950: 
14951: fi
14952: 
14953: ac_header_dirent=no
14954: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14955:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14956: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14957: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14958: if eval \${$as_ac_Header+:} false; then :
14959:   $as_echo_n "(cached) " >&6
14960: else
14961:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962: /* end confdefs.h.  */
14963: #include <sys/types.h>
14964: #include <$ac_hdr>
14965: 
14966: int
14967: main ()
14968: {
14969: if ((DIR *) 0)
14970: return 0;
14971:   ;
14972:   return 0;
14973: }
14974: _ACEOF
14975: if ac_fn_c_try_compile "$LINENO"; then :
14976:   eval "$as_ac_Header=yes"
14977: else
14978:   eval "$as_ac_Header=no"
14979: fi
14980: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14981: fi
14982: eval ac_res=\$$as_ac_Header
14983: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14984: $as_echo "$ac_res" >&6; }
14985: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14986:   cat >>confdefs.h <<_ACEOF
14987: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14988: _ACEOF
14989: 
14990: ac_header_dirent=$ac_hdr; break
14991: fi
14992: 
14993: done
14994: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14995: if test $ac_header_dirent = dirent.h; then
14996:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14997: $as_echo_n "checking for library containing opendir... " >&6; }
14998: if ${ac_cv_search_opendir+:} false; then :
14999:   $as_echo_n "(cached) " >&6
15000: else
15001:   ac_func_search_save_LIBS=$LIBS
15002: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003: /* end confdefs.h.  */
15004: 
15005: /* Override any GCC internal prototype to avoid an error.
15006:    Use char because int might match the return type of a GCC
15007:    builtin and then its argument prototype would still apply.  */
15008: #ifdef __cplusplus
15009: extern "C"
15010: #endif
15011: char opendir ();
15012: int
15013: main ()
15014: {
15015: return opendir ();
15016:   ;
15017:   return 0;
15018: }
15019: _ACEOF
15020: for ac_lib in '' dir; do
15021:   if test -z "$ac_lib"; then
15022:     ac_res="none required"
15023:   else
15024:     ac_res=-l$ac_lib
15025:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15026:   fi
15027:   if ac_fn_c_try_link "$LINENO"; then :
15028:   ac_cv_search_opendir=$ac_res
15029: fi
15030: rm -f core conftest.err conftest.$ac_objext \
15031:     conftest$ac_exeext
15032:   if ${ac_cv_search_opendir+:} false; then :
15033:   break
15034: fi
15035: done
15036: if ${ac_cv_search_opendir+:} false; then :
15037: 
15038: else
15039:   ac_cv_search_opendir=no
15040: fi
15041: rm conftest.$ac_ext
15042: LIBS=$ac_func_search_save_LIBS
15043: fi
15044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15045: $as_echo "$ac_cv_search_opendir" >&6; }
15046: ac_res=$ac_cv_search_opendir
15047: if test "$ac_res" != no; then :
15048:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15049: 
15050: fi
15051: 
15052: else
15053:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15054: $as_echo_n "checking for library containing opendir... " >&6; }
15055: if ${ac_cv_search_opendir+:} false; then :
15056:   $as_echo_n "(cached) " >&6
15057: else
15058:   ac_func_search_save_LIBS=$LIBS
15059: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060: /* end confdefs.h.  */
15061: 
15062: /* Override any GCC internal prototype to avoid an error.
15063:    Use char because int might match the return type of a GCC
15064:    builtin and then its argument prototype would still apply.  */
15065: #ifdef __cplusplus
15066: extern "C"
15067: #endif
15068: char opendir ();
15069: int
15070: main ()
15071: {
15072: return opendir ();
15073:   ;
15074:   return 0;
15075: }
15076: _ACEOF
15077: for ac_lib in '' x; do
15078:   if test -z "$ac_lib"; then
15079:     ac_res="none required"
15080:   else
15081:     ac_res=-l$ac_lib
15082:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15083:   fi
15084:   if ac_fn_c_try_link "$LINENO"; then :
15085:   ac_cv_search_opendir=$ac_res
15086: fi
15087: rm -f core conftest.err conftest.$ac_objext \
15088:     conftest$ac_exeext
15089:   if ${ac_cv_search_opendir+:} false; then :
15090:   break
15091: fi
15092: done
15093: if ${ac_cv_search_opendir+:} false; then :
15094: 
15095: else
15096:   ac_cv_search_opendir=no
15097: fi
15098: rm conftest.$ac_ext
15099: LIBS=$ac_func_search_save_LIBS
15100: fi
15101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15102: $as_echo "$ac_cv_search_opendir" >&6; }
15103: ac_res=$ac_cv_search_opendir
15104: if test "$ac_res" != no; then :
15105:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15106: 
15107: fi
15108: 
15109: fi
15110: 
15111: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15112: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15113: if ${ac_cv_header_time+:} false; then :
15114:   $as_echo_n "(cached) " >&6
15115: else
15116:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117: /* end confdefs.h.  */
15118: #include <sys/types.h>
15119: #include <sys/time.h>
15120: #include <time.h>
15121: 
15122: int
15123: main ()
15124: {
15125: if ((struct tm *) 0)
15126: return 0;
15127:   ;
15128:   return 0;
15129: }
15130: _ACEOF
15131: if ac_fn_c_try_compile "$LINENO"; then :
15132:   ac_cv_header_time=yes
15133: else
15134:   ac_cv_header_time=no
15135: fi
15136: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137: fi
15138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15139: $as_echo "$ac_cv_header_time" >&6; }
15140: if test $ac_cv_header_time = yes; then
15141: 
15142: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15143: 
15144: fi
15145: 
15146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15147: $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15148: if ${ac_cv_header_stdbool_h+:} false; then :
15149:   $as_echo_n "(cached) " >&6
15150: else
15151:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152: /* end confdefs.h.  */
15153: 
15154: #include <stdbool.h>
15155: #ifndef bool
15156:  "error: bool is not defined"
15157: #endif
15158: #ifndef false
15159:  "error: false is not defined"
15160: #endif
15161: #if false
15162:  "error: false is not 0"
15163: #endif
15164: #ifndef true
15165:  "error: true is not defined"
15166: #endif
15167: #if true != 1
15168:  "error: true is not 1"
15169: #endif
15170: #ifndef __bool_true_false_are_defined
15171:  "error: __bool_true_false_are_defined is not defined"
15172: #endif
15173: 
15174: 	struct s { _Bool s: 1; _Bool t; } s;
15175: 
15176: 	char a[true == 1 ? 1 : -1];
15177: 	char b[false == 0 ? 1 : -1];
15178: 	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15179: 	char d[(bool) 0.5 == true ? 1 : -1];
15180: 	/* See body of main program for 'e'.  */
15181: 	char f[(_Bool) 0.0 == false ? 1 : -1];
15182: 	char g[true];
15183: 	char h[sizeof (_Bool)];
15184: 	char i[sizeof s.t];
15185: 	enum { j = false, k = true, l = false * true, m = true * 256 };
15186: 	/* The following fails for
15187: 	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15188: 	_Bool n[m];
15189: 	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15190: 	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15191: 	/* Catch a bug in an HP-UX C compiler.  See
15192: 	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15193: 	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15194: 	 */
15195: 	_Bool q = true;
15196: 	_Bool *pq = &q;
15197: 
15198: int
15199: main ()
15200: {
15201: 
15202: 	bool e = &s;
15203: 	*pq |= q;
15204: 	*pq |= ! q;
15205: 	/* Refer to every declared value, to avoid compiler optimizations.  */
15206: 	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15207: 		+ !m + !n + !o + !p + !q + !pq);
15208: 
15209:   ;
15210:   return 0;
15211: }
15212: _ACEOF
15213: if ac_fn_c_try_compile "$LINENO"; then :
15214:   ac_cv_header_stdbool_h=yes
15215: else
15216:   ac_cv_header_stdbool_h=no
15217: fi
15218: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219: fi
15220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15221: $as_echo "$ac_cv_header_stdbool_h" >&6; }
15222: ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15223: if test "x$ac_cv_type__Bool" = xyes; then :
15224: 
15225: cat >>confdefs.h <<_ACEOF
15226: #define HAVE__BOOL 1
15227: _ACEOF
15228: 
15229: 
15230: fi
15231: 
15232: if test $ac_cv_header_stdbool_h = yes; then
15233: 
15234: $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15235: 
15236: fi
15237: 
15238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
15239: $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
15240: if ${ac_cv_header_sys_types_h_makedev+:} false; then :
15241:   $as_echo_n "(cached) " >&6
15242: else
15243:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244: /* end confdefs.h.  */
15245: #include <sys/types.h>
15246: int
15247: main ()
15248: {
15249: return makedev(0, 0);
15250:   ;
15251:   return 0;
15252: }
15253: _ACEOF
15254: if ac_fn_c_try_link "$LINENO"; then :
15255:   ac_cv_header_sys_types_h_makedev=yes
15256: else
15257:   ac_cv_header_sys_types_h_makedev=no
15258: fi
15259: rm -f core conftest.err conftest.$ac_objext \
15260:     conftest$ac_exeext conftest.$ac_ext
15261: 
15262: fi
15263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
15264: $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
15265: 
15266: if test $ac_cv_header_sys_types_h_makedev = no; then
15267: ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
15268: if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
15269: 
15270: $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
15271: 
15272: fi
15273: 
15274: 
15275: 
15276:   if test $ac_cv_header_sys_mkdev_h = no; then
15277:     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
15278: if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
15279: 
15280: $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
15281: 
15282: fi
15283: 
15284: 
15285:   fi
15286: fi
15287: 
15288: for ac_header in malloc.h netgroup.h paths.h spawn.h utime.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
15289: do :
15290:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15291: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15292: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15293:   cat >>confdefs.h <<_ACEOF
15294: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15295: _ACEOF
15296: 
15297: fi
15298: 
15299: done
15300: 
15301: for ac_header in procfs.h sys/procfs.h
15302: do :
15303:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15304: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15305: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15306:   cat >>confdefs.h <<_ACEOF
15307: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15308: _ACEOF
15309:  ac_fn_c_check_member "$LINENO" "struct psinfo" "pr_ttydev" "ac_cv_member_struct_psinfo_pr_ttydev" "$ac_includes_default
15310: #ifdef HAVE_PROCFS_H
15311: #include <procfs.h>
15312: #endif
15313: #ifdef HAVE_SYS_PROCFS_H
15314: #include <sys/procfs.h>
15315: #endif
15316: 
15317: "
15318: if test "x$ac_cv_member_struct_psinfo_pr_ttydev" = xyes; then :
15319: 
15320: cat >>confdefs.h <<_ACEOF
15321: #define HAVE_STRUCT_PSINFO_PR_TTYDEV 1
15322: _ACEOF
15323: 
15324: for ac_func in _ttyname_dev
15325: do :
15326:   ac_fn_c_check_func "$LINENO" "_ttyname_dev" "ac_cv_func__ttyname_dev"
15327: if test "x$ac_cv_func__ttyname_dev" = xyes; then :
15328:   cat >>confdefs.h <<_ACEOF
15329: #define HAVE__TTYNAME_DEV 1
15330: _ACEOF
15331: 
15332: fi
15333: done
15334: 
15335: fi
15336: 
15337: break
15338: fi
15339: 
15340: done
15341: 
15342: # Check whether --enable-largefile was given.
15343: if test "${enable_largefile+set}" = set; then :
15344:   enableval=$enable_largefile;
15345: fi
15346: 
15347: if test "$enable_largefile" != no; then
15348: 
15349:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15350: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15351: if ${ac_cv_sys_largefile_CC+:} false; then :
15352:   $as_echo_n "(cached) " >&6
15353: else
15354:   ac_cv_sys_largefile_CC=no
15355:      if test "$GCC" != yes; then
15356:        ac_save_CC=$CC
15357:        while :; do
15358: 	 # IRIX 6.2 and later do not support large files by default,
15359: 	 # so use the C compiler's -n32 option if that helps.
15360: 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361: /* end confdefs.h.  */
15362: #include <sys/types.h>
15363:  /* Check that off_t can represent 2**63 - 1 correctly.
15364:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15365:     since some C++ compilers masquerading as C compilers
15366:     incorrectly reject 9223372036854775807.  */
15367: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15368:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15369: 		       && LARGE_OFF_T % 2147483647 == 1)
15370: 		      ? 1 : -1];
15371: int
15372: main ()
15373: {
15374: 
15375:   ;
15376:   return 0;
15377: }
15378: _ACEOF
15379: 	 if ac_fn_c_try_compile "$LINENO"; then :
15380:   break
15381: fi
15382: rm -f core conftest.err conftest.$ac_objext
15383: 	 CC="$CC -n32"
15384: 	 if ac_fn_c_try_compile "$LINENO"; then :
15385:   ac_cv_sys_largefile_CC=' -n32'; break
15386: fi
15387: rm -f core conftest.err conftest.$ac_objext
15388: 	 break
15389:        done
15390:        CC=$ac_save_CC
15391:        rm -f conftest.$ac_ext
15392:     fi
15393: fi
15394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15395: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15396:   if test "$ac_cv_sys_largefile_CC" != no; then
15397:     CC=$CC$ac_cv_sys_largefile_CC
15398:   fi
15399: 
15400:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15401: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15402: if ${ac_cv_sys_file_offset_bits+:} false; then :
15403:   $as_echo_n "(cached) " >&6
15404: else
15405:   while :; do
15406:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407: /* end confdefs.h.  */
15408: #include <sys/types.h>
15409:  /* Check that off_t can represent 2**63 - 1 correctly.
15410:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15411:     since some C++ compilers masquerading as C compilers
15412:     incorrectly reject 9223372036854775807.  */
15413: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15414:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15415: 		       && LARGE_OFF_T % 2147483647 == 1)
15416: 		      ? 1 : -1];
15417: int
15418: main ()
15419: {
15420: 
15421:   ;
15422:   return 0;
15423: }
15424: _ACEOF
15425: if ac_fn_c_try_compile "$LINENO"; then :
15426:   ac_cv_sys_file_offset_bits=no; break
15427: fi
15428: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15429:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430: /* end confdefs.h.  */
15431: #define _FILE_OFFSET_BITS 64
15432: #include <sys/types.h>
15433:  /* Check that off_t can represent 2**63 - 1 correctly.
15434:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15435:     since some C++ compilers masquerading as C compilers
15436:     incorrectly reject 9223372036854775807.  */
15437: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15438:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15439: 		       && LARGE_OFF_T % 2147483647 == 1)
15440: 		      ? 1 : -1];
15441: int
15442: main ()
15443: {
15444: 
15445:   ;
15446:   return 0;
15447: }
15448: _ACEOF
15449: if ac_fn_c_try_compile "$LINENO"; then :
15450:   ac_cv_sys_file_offset_bits=64; break
15451: fi
15452: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453:   ac_cv_sys_file_offset_bits=unknown
15454:   break
15455: done
15456: fi
15457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15458: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15459: case $ac_cv_sys_file_offset_bits in #(
15460:   no | unknown) ;;
15461:   *)
15462: cat >>confdefs.h <<_ACEOF
15463: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15464: _ACEOF
15465: ;;
15466: esac
15467: rm -rf conftest*
15468:   if test $ac_cv_sys_file_offset_bits = unknown; then
15469:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15470: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15471: if ${ac_cv_sys_large_files+:} false; then :
15472:   $as_echo_n "(cached) " >&6
15473: else
15474:   while :; do
15475:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476: /* end confdefs.h.  */
15477: #include <sys/types.h>
15478:  /* Check that off_t can represent 2**63 - 1 correctly.
15479:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15480:     since some C++ compilers masquerading as C compilers
15481:     incorrectly reject 9223372036854775807.  */
15482: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15483:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15484: 		       && LARGE_OFF_T % 2147483647 == 1)
15485: 		      ? 1 : -1];
15486: int
15487: main ()
15488: {
15489: 
15490:   ;
15491:   return 0;
15492: }
15493: _ACEOF
15494: if ac_fn_c_try_compile "$LINENO"; then :
15495:   ac_cv_sys_large_files=no; break
15496: fi
15497: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499: /* end confdefs.h.  */
15500: #define _LARGE_FILES 1
15501: #include <sys/types.h>
15502:  /* Check that off_t can represent 2**63 - 1 correctly.
15503:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15504:     since some C++ compilers masquerading as C compilers
15505:     incorrectly reject 9223372036854775807.  */
15506: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15507:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15508: 		       && LARGE_OFF_T % 2147483647 == 1)
15509: 		      ? 1 : -1];
15510: int
15511: main ()
15512: {
15513: 
15514:   ;
15515:   return 0;
15516: }
15517: _ACEOF
15518: if ac_fn_c_try_compile "$LINENO"; then :
15519:   ac_cv_sys_large_files=1; break
15520: fi
15521: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15522:   ac_cv_sys_large_files=unknown
15523:   break
15524: done
15525: fi
15526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15527: $as_echo "$ac_cv_sys_large_files" >&6; }
15528: case $ac_cv_sys_large_files in #(
15529:   no | unknown) ;;
15530:   *)
15531: cat >>confdefs.h <<_ACEOF
15532: #define _LARGE_FILES $ac_cv_sys_large_files
15533: _ACEOF
15534: ;;
15535: esac
15536: rm -rf conftest*
15537:   fi
15538: fi
15539: 
15540: case "$host" in
15541:     *-*-hpux11.*)
15542: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
15543: $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
15544: if ${sudo_cv_xopen_source_extended+:} false; then :
15545:   $as_echo_n "(cached) " >&6
15546: else
15547:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548: /* end confdefs.h.  */
15549: $ac_includes_default
15550: 	#include <sys/socket.h>
15551: int
15552: main ()
15553: {
15554: 
15555:   ;
15556:   return 0;
15557: }
15558: _ACEOF
15559: if ac_fn_c_try_compile "$LINENO"; then :
15560:   sudo_cv_xopen_source_extended=no
15561: else
15562: 
15563: 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564: /* end confdefs.h.  */
15565: #define _XOPEN_SOURCE_EXTENDED
15566: 	    $ac_includes_default
15567: 	    #include <sys/socket.h>
15568: int
15569: main ()
15570: {
15571: 
15572:   ;
15573:   return 0;
15574: }
15575: _ACEOF
15576: if ac_fn_c_try_compile "$LINENO"; then :
15577:   sudo_cv_xopen_source_extended=yes
15578: else
15579:   sudo_cv_xopen_source_extended=error
15580: fi
15581: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582: 
15583: fi
15584: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15585: fi
15586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
15587: $as_echo "$sudo_cv_xopen_source_extended" >&6; }
15588: 	if test "$sudo_cv_xopen_source_extended" = "yes"; then
15589: 	    OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
15590: 	    cat >>confdefs.h <<\EOF
15591: #define _XOPEN_SOURCE_EXTENDED 1
15592: EOF
15593: 
15594: 	fi
15595: 	;;
15596: esac
15597: { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15598: $as_echo_n "checking POSIX termios... " >&6; }
15599: if ${ac_cv_sys_posix_termios+:} false; then :
15600:   $as_echo_n "(cached) " >&6
15601: else
15602:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603: /* end confdefs.h.  */
15604: #include <sys/types.h>
15605: #include <unistd.h>
15606: #include <termios.h>
15607: 
15608: int
15609: main ()
15610: {
15611: /* SunOS 4.0.3 has termios.h but not the library calls.  */
15612:    tcgetattr(0, 0);
15613:   ;
15614:   return 0;
15615: }
15616: _ACEOF
15617: if ac_fn_c_try_link "$LINENO"; then :
15618:   ac_cv_sys_posix_termios=yes
15619: else
15620:   ac_cv_sys_posix_termios=no
15621: fi
15622: rm -f core conftest.err conftest.$ac_objext \
15623:     conftest$ac_exeext conftest.$ac_ext
15624: fi
15625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15626: $as_echo "$ac_cv_sys_posix_termios" >&6; }
15627: 
15628: if test "$ac_cv_sys_posix_termios" != "yes"; then
15629:     as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
15630: fi
15631: 
15632: maildir=no
15633: if test X"$ac_cv_header_paths_h" = X"yes"; then
15634: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15635: /* end confdefs.h.  */
15636: $ac_includes_default
15637: #include <paths.h>
15638: int
15639: main ()
15640: {
15641: char *p = _PATH_MAILDIR;
15642:   ;
15643:   return 0;
15644: }
15645: _ACEOF
15646: if ac_fn_c_try_compile "$LINENO"; then :
15647:   maildir=yes
15648: fi
15649: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650: fi
15651: if test $maildir = no; then
15652:     # Solaris has maillock.h which defines MAILDIR
15653:     for ac_header in maillock.h
15654: do :
15655:   ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
15656: if test "x$ac_cv_header_maillock_h" = xyes; then :
15657:   cat >>confdefs.h <<_ACEOF
15658: #define HAVE_MAILLOCK_H 1
15659: _ACEOF
15660: 
15661: 	cat >>confdefs.h <<\EOF
15662: #define _PATH_MAILDIR MAILDIR
15663: EOF
15664: 
15665: 	maildir=yes
15666: 
15667: fi
15668: 
15669: done
15670: 
15671:     if test $maildir = no; then
15672: 	for d in /var/mail /var/spool/mail /usr/spool/mail; do
15673: 	    if test -d "$d"; then
15674: 		maildir=yes
15675: 		cat >>confdefs.h <<EOF
15676: #define _PATH_MAILDIR "$d"
15677: EOF
15678: 
15679: 		break
15680: 	    fi
15681: 	done
15682: 	if test $maildir = no; then
15683: 	    # unable to find mail dir, hope for the best
15684: 	    cat >>confdefs.h <<EOF
15685: #define _PATH_MAILDIR "/var/mail"
15686: EOF
15687: 
15688: 	fi
15689:     fi
15690: fi
15691: 
15692: if test ${with_logincap-'no'} != "no"; then
15693:     for ac_header in login_cap.h
15694: do :
15695:   ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
15696: if test "x$ac_cv_header_login_cap_h" = xyes; then :
15697:   cat >>confdefs.h <<_ACEOF
15698: #define HAVE_LOGIN_CAP_H 1
15699: _ACEOF
15700:  LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
15701: 	case "$OS" in
15702: 	    freebsd|netbsd)
15703: 		SUDO_LIBS="${SUDO_LIBS} -lutil"
15704: 		SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
15705: 		;;
15706: 	esac
15707: 
15708: fi
15709: 
15710: done
15711: 
15712: fi
15713: if test ${with_project-'no'} != "no"; then
15714:     ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
15715: if test "x$ac_cv_header_project_h" = xyes; then :
15716: 
15717: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
15718: $as_echo_n "checking for setproject in -lproject... " >&6; }
15719: if ${ac_cv_lib_project_setproject+:} false; then :
15720:   $as_echo_n "(cached) " >&6
15721: else
15722:   ac_check_lib_save_LIBS=$LIBS
15723: LIBS="-lproject  $LIBS"
15724: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725: /* end confdefs.h.  */
15726: 
15727: /* Override any GCC internal prototype to avoid an error.
15728:    Use char because int might match the return type of a GCC
15729:    builtin and then its argument prototype would still apply.  */
15730: #ifdef __cplusplus
15731: extern "C"
15732: #endif
15733: char setproject ();
15734: int
15735: main ()
15736: {
15737: return setproject ();
15738:   ;
15739:   return 0;
15740: }
15741: _ACEOF
15742: if ac_fn_c_try_link "$LINENO"; then :
15743:   ac_cv_lib_project_setproject=yes
15744: else
15745:   ac_cv_lib_project_setproject=no
15746: fi
15747: rm -f core conftest.err conftest.$ac_objext \
15748:     conftest$ac_exeext conftest.$ac_ext
15749: LIBS=$ac_check_lib_save_LIBS
15750: fi
15751: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
15752: $as_echo "$ac_cv_lib_project_setproject" >&6; }
15753: if test "x$ac_cv_lib_project_setproject" = xyes; then :
15754: 
15755: 	    $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
15756: 
15757: 	    SUDO_LIBS="${SUDO_LIBS} -lproject"
15758: 
15759: fi
15760: 
15761: 
15762: fi
15763: 
15764: 
15765: fi
15766: ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15767: if test "x$ac_cv_type_mode_t" = xyes; then :
15768: 
15769: else
15770: 
15771: cat >>confdefs.h <<_ACEOF
15772: #define mode_t int
15773: _ACEOF
15774: 
15775: fi
15776: 
15777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15778: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15779: if ${ac_cv_type_uid_t+:} false; then :
15780:   $as_echo_n "(cached) " >&6
15781: else
15782:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783: /* end confdefs.h.  */
15784: #include <sys/types.h>
15785: 
15786: _ACEOF
15787: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15788:   $EGREP "uid_t" >/dev/null 2>&1; then :
15789:   ac_cv_type_uid_t=yes
15790: else
15791:   ac_cv_type_uid_t=no
15792: fi
15793: rm -f conftest*
15794: 
15795: fi
15796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15797: $as_echo "$ac_cv_type_uid_t" >&6; }
15798: if test $ac_cv_type_uid_t = no; then
15799: 
15800: $as_echo "#define uid_t int" >>confdefs.h
15801: 
15802: 
15803: $as_echo "#define gid_t int" >>confdefs.h
15804: 
15805: fi
15806: 
15807: ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
15808: if test "x$ac_cv_type___signed_char" = xyes; then :
15809: 
15810: else
15811:   ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
15812: if test "x$ac_cv_type_signed_char" = xyes; then :
15813:   $as_echo "#define __signed signed" >>confdefs.h
15814: 
15815: else
15816:   $as_echo "#define __signed /**/" >>confdefs.h
15817: 
15818: fi
15819: 
15820: fi
15821: 
15822: ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
15823: #include <signal.h>
15824: "
15825: if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15826: 
15827: else
15828:   $as_echo "#define sig_atomic_t int" >>confdefs.h
15829: 
15830: fi
15831: 
15832: ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
15833: #include <signal.h>
15834: "
15835: if test "x$ac_cv_type_sigaction_t" = xyes; then :
15836: 
15837: cat >>confdefs.h <<_ACEOF
15838: #define HAVE_SIGACTION_T 1
15839: _ACEOF
15840: 
15841: 
15842: fi
15843: 
15844: ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
15845: #if TIME_WITH_SYS_TIME
15846: # include <sys/time.h>
15847: #endif
15848: #include <time.h>
15849: "
15850: if test "x$ac_cv_type_struct_timespec" = xyes; then :
15851: 
15852: cat >>confdefs.h <<_ACEOF
15853: #define HAVE_STRUCT_TIMESPEC 1
15854: _ACEOF
15855: 
15856: 
15857: fi
15858: 
15859: ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
15860: #include <netinet/in.h>
15861: "
15862: if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
15863: 
15864: cat >>confdefs.h <<_ACEOF
15865: #define HAVE_STRUCT_IN6_ADDR 1
15866: _ACEOF
15867: 
15868: 
15869: fi
15870: 
15871: 
15872:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15873: $as_echo_n "checking for long long int... " >&6; }
15874: if ${ac_cv_type_long_long_int+:} false; then :
15875:   $as_echo_n "(cached) " >&6
15876: else
15877:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878: /* end confdefs.h.  */
15879: 
15880:   /* For now, do not test the preprocessor; as of 2007 there are too many
15881: 	 implementations with broken preprocessors.  Perhaps this can
15882: 	 be revisited in 2012.  In the meantime, code should not expect
15883: 	 #if to work with literals wider than 32 bits.  */
15884:       /* Test literals.  */
15885:       long long int ll = 9223372036854775807ll;
15886:       long long int nll = -9223372036854775807LL;
15887:       unsigned long long int ull = 18446744073709551615ULL;
15888:       /* Test constant expressions.   */
15889:       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15890: 		     ? 1 : -1)];
15891:       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15892: 		     ? 1 : -1)];
15893:       int i = 63;
15894: int
15895: main ()
15896: {
15897: /* Test availability of runtime routines for shift and division.  */
15898:       long long int llmax = 9223372036854775807ll;
15899:       unsigned long long int ullmax = 18446744073709551615ull;
15900:       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15901: 	      | (llmax / ll) | (llmax % ll)
15902: 	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15903: 	      | (ullmax / ull) | (ullmax % ull));
15904:   ;
15905:   return 0;
15906: }
15907: 
15908: _ACEOF
15909: if ac_fn_c_try_link "$LINENO"; then :
15910:   			if test "$cross_compiling" = yes; then :
15911:   ac_cv_type_long_long_int=yes
15912: else
15913:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914: /* end confdefs.h.  */
15915: #include <limits.h>
15916: 	       #ifndef LLONG_MAX
15917: 	       # define HALF \
15918: 			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
15919: 	       # define LLONG_MAX (HALF - 1 + HALF)
15920: 	       #endif
15921: int
15922: main ()
15923: {
15924: long long int n = 1;
15925: 	       int i;
15926: 	       for (i = 0; ; i++)
15927: 		 {
15928: 		   long long int m = n << i;
15929: 		   if (m >> i != n)
15930: 		     return 1;
15931: 		   if (LLONG_MAX / 2 < m)
15932: 		     break;
15933: 		 }
15934: 	       return 0;
15935:   ;
15936:   return 0;
15937: }
15938: _ACEOF
15939: if ac_fn_c_try_run "$LINENO"; then :
15940:   ac_cv_type_long_long_int=yes
15941: else
15942:   ac_cv_type_long_long_int=no
15943: fi
15944: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15945:   conftest.$ac_objext conftest.beam conftest.$ac_ext
15946: fi
15947: 
15948: else
15949:   ac_cv_type_long_long_int=no
15950: fi
15951: rm -f core conftest.err conftest.$ac_objext \
15952:     conftest$ac_exeext conftest.$ac_ext
15953: fi
15954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15955: $as_echo "$ac_cv_type_long_long_int" >&6; }
15956:   if test $ac_cv_type_long_long_int = yes; then
15957: 
15958: $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15959: 
15960:   fi
15961: 
15962: # The cast to long int works around a bug in the HP C Compiler
15963: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15964: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15965: # This bug is HP SR number 8606223364.
15966: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
15967: $as_echo_n "checking size of long int... " >&6; }
15968: if ${ac_cv_sizeof_long_int+:} false; then :
15969:   $as_echo_n "(cached) " >&6
15970: else
15971:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
15972: 
15973: else
15974:   if test "$ac_cv_type_long_int" = yes; then
15975:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15976: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15977: as_fn_error 77 "cannot compute sizeof (long int)
15978: See \`config.log' for more details" "$LINENO" 5; }
15979:    else
15980:      ac_cv_sizeof_long_int=0
15981:    fi
15982: fi
15983: 
15984: fi
15985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
15986: $as_echo "$ac_cv_sizeof_long_int" >&6; }
15987: 
15988: 
15989: 
15990: cat >>confdefs.h <<_ACEOF
15991: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15992: _ACEOF
15993: 
15994: 
15995: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15996: if test "x$ac_cv_type_size_t" = xyes; then :
15997: 
15998: else
15999: 
16000: cat >>confdefs.h <<_ACEOF
16001: #define size_t unsigned int
16002: _ACEOF
16003: 
16004: fi
16005: 
16006: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16007: if test "x$ac_cv_type_ssize_t" = xyes; then :
16008: 
16009: else
16010: 
16011: cat >>confdefs.h <<_ACEOF
16012: #define ssize_t int
16013: _ACEOF
16014: 
16015: fi
16016: 
16017: ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
16018: if test "x$ac_cv_type_dev_t" = xyes; then :
16019: 
16020: else
16021: 
16022: cat >>confdefs.h <<_ACEOF
16023: #define dev_t int
16024: _ACEOF
16025: 
16026: fi
16027: 
16028: ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
16029: if test "x$ac_cv_type_ino_t" = xyes; then :
16030: 
16031: else
16032: 
16033: cat >>confdefs.h <<_ACEOF
16034: #define ino_t unsigned int
16035: _ACEOF
16036: 
16037: fi
16038: 
16039: ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16040: $ac_includes_default
16041: #include <sys/socket.h>
16042: "
16043: if test "x$ac_cv_type_socklen_t" = xyes; then :
16044: 
16045: else
16046:   $as_echo "#define socklen_t unsigned int" >>confdefs.h
16047: 
16048: fi
16049: 
16050: 
16051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
16052: $as_echo_n "checking max length of uid_t... " >&6; }
16053: if ${sudo_cv_uid_t_len+:} false; then :
16054:   $as_echo_n "(cached) " >&6
16055: else
16056:   rm -f conftestdata
16057: if test "$cross_compiling" = yes; then :
16058:   sudo_cv_uid_t_len=10
16059: else
16060:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061: /* end confdefs.h.  */
16062: #include <stdio.h>
16063: #include <pwd.h>
16064: #include <limits.h>
16065: #include <sys/types.h>
16066: #include <sys/param.h>
16067: main() {
16068:   FILE *f;
16069:   char b[1024];
16070:   uid_t u = (uid_t) -1;
16071: 
16072:   if ((f = fopen("conftestdata", "w")) == NULL)
16073:     exit(1);
16074: 
16075:   (void) sprintf(b, "%lu", (unsigned long) u);
16076:   (void) fprintf(f, "%d\n", strlen(b));
16077:   (void) fclose(f);
16078:   exit(0);
16079: }
16080: _ACEOF
16081: if ac_fn_c_try_run "$LINENO"; then :
16082:   sudo_cv_uid_t_len=`cat conftestdata`
16083: else
16084:   sudo_cv_uid_t_len=10
16085: fi
16086: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16087:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16088: fi
16089: 
16090: 
16091: fi
16092: 
16093: rm -f conftestdata
16094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
16095: $as_echo "$sudo_cv_uid_t_len" >&6; }
16096: 
16097: cat >>confdefs.h <<_ACEOF
16098: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
16099: _ACEOF
16100: 
16101: 
16102: 
16103:     ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
16104: 	  #include <sys/socket.h>
16105: 
16106: "
16107: if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
16108: 
16109: $as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
16110: 
16111: fi
16112: 
16113: 
16114: _CFLAGS="$CFLAGS"
16115: CFLAGS="$CFLAGS $OSDEFS"
16116: if test $ac_cv_header_utmpx_h = "yes"; then
16117:     ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
16118: 	#include <sys/types.h>
16119: 	#include <utmpx.h>
16120: 
16121: "
16122: if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
16123: 
16124: cat >>confdefs.h <<_ACEOF
16125: #define HAVE_STRUCT_UTMPX_UT_ID 1
16126: _ACEOF
16127: 
16128: 
16129: fi
16130: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
16131: 	#include <sys/types.h>
16132: 	#include <utmpx.h>
16133: 
16134: "
16135: if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
16136: 
16137: cat >>confdefs.h <<_ACEOF
16138: #define HAVE_STRUCT_UTMPX_UT_PID 1
16139: _ACEOF
16140: 
16141: 
16142: fi
16143: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
16144: 	#include <sys/types.h>
16145: 	#include <utmpx.h>
16146: 
16147: "
16148: if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
16149: 
16150: cat >>confdefs.h <<_ACEOF
16151: #define HAVE_STRUCT_UTMPX_UT_TV 1
16152: _ACEOF
16153: 
16154: 
16155: fi
16156: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
16157: 	#include <sys/types.h>
16158: 	#include <utmpx.h>
16159: 
16160: "
16161: if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
16162: 
16163: cat >>confdefs.h <<_ACEOF
16164: #define HAVE_STRUCT_UTMPX_UT_TYPE 1
16165: _ACEOF
16166: 
16167: 
16168: fi
16169: 
16170:                 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
16171: 	#include <sys/types.h>
16172: 	#include <utmpx.h>
16173: 
16174: "
16175: if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
16176: 
16177: cat >>confdefs.h <<_ACEOF
16178: #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
16179: _ACEOF
16180: 
16181: $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16182: 
16183: else
16184: 
16185: 	ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
16186: 	    #include <sys/types.h>
16187: 	    #include <utmpx.h>
16188: 
16189: "
16190: if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
16191: 
16192: cat >>confdefs.h <<_ACEOF
16193: #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16194: _ACEOF
16195: 
16196: $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16197: 
16198: fi
16199: 
16200: 
16201: fi
16202: 
16203: else
16204:     ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
16205: 	#include <sys/types.h>
16206: 	#include <utmp.h>
16207: 
16208: "
16209: if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
16210: 
16211: cat >>confdefs.h <<_ACEOF
16212: #define HAVE_STRUCT_UTMP_UT_ID 1
16213: _ACEOF
16214: 
16215: 
16216: fi
16217: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
16218: 	#include <sys/types.h>
16219: 	#include <utmp.h>
16220: 
16221: "
16222: if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
16223: 
16224: cat >>confdefs.h <<_ACEOF
16225: #define HAVE_STRUCT_UTMP_UT_PID 1
16226: _ACEOF
16227: 
16228: 
16229: fi
16230: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
16231: 	#include <sys/types.h>
16232: 	#include <utmp.h>
16233: 
16234: "
16235: if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
16236: 
16237: cat >>confdefs.h <<_ACEOF
16238: #define HAVE_STRUCT_UTMP_UT_TV 1
16239: _ACEOF
16240: 
16241: 
16242: fi
16243: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
16244: 	#include <sys/types.h>
16245: 	#include <utmp.h>
16246: 
16247: "
16248: if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
16249: 
16250: cat >>confdefs.h <<_ACEOF
16251: #define HAVE_STRUCT_UTMP_UT_TYPE 1
16252: _ACEOF
16253: 
16254: 
16255: fi
16256: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
16257: 	#include <sys/types.h>
16258: 	#include <utmp.h>
16259: 
16260: "
16261: if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
16262: 
16263: cat >>confdefs.h <<_ACEOF
16264: #define HAVE_STRUCT_UTMP_UT_USER 1
16265: _ACEOF
16266: 
16267: 
16268: fi
16269: 
16270:                 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
16271: 	#include <sys/types.h>
16272: 	#include <utmp.h>
16273: 
16274: "
16275: if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
16276: 
16277: cat >>confdefs.h <<_ACEOF
16278: #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
16279: _ACEOF
16280: 
16281: $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16282: 
16283: else
16284: 
16285: 	ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
16286: 	    #include <sys/types.h>
16287: 	    #include <utmp.h>
16288: 
16289: "
16290: if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
16291: 
16292: cat >>confdefs.h <<_ACEOF
16293: #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16294: _ACEOF
16295: 
16296: $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16297: 
16298: fi
16299: 
16300: 
16301: fi
16302: 
16303: fi
16304: CFLAGS="$_CFLAGS"
16305: 
16306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
16307: $as_echo_n "checking type of array argument to getgroups... " >&6; }
16308: if ${ac_cv_type_getgroups+:} false; then :
16309:   $as_echo_n "(cached) " >&6
16310: else
16311:   if test "$cross_compiling" = yes; then :
16312:   ac_cv_type_getgroups=cross
16313: else
16314:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315: /* end confdefs.h.  */
16316: /* Thanks to Mike Rendell for this test.  */
16317: $ac_includes_default
16318: #define NGID 256
16319: #undef MAX
16320: #define MAX(x, y) ((x) > (y) ? (x) : (y))
16321: 
16322: int
16323: main ()
16324: {
16325:   gid_t gidset[NGID];
16326:   int i, n;
16327:   union { gid_t gval; long int lval; }  val;
16328: 
16329:   val.lval = -1;
16330:   for (i = 0; i < NGID; i++)
16331:     gidset[i] = val.gval;
16332:   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16333: 		 gidset);
16334:   /* Exit non-zero if getgroups seems to require an array of ints.  This
16335:      happens when gid_t is short int but getgroups modifies an array
16336:      of ints.  */
16337:   return n > 0 && gidset[n] != val.gval;
16338: }
16339: _ACEOF
16340: if ac_fn_c_try_run "$LINENO"; then :
16341:   ac_cv_type_getgroups=gid_t
16342: else
16343:   ac_cv_type_getgroups=int
16344: fi
16345: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16346:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16347: fi
16348: 
16349: if test $ac_cv_type_getgroups = cross; then
16350:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351: /* end confdefs.h.  */
16352: #include <unistd.h>
16353: 
16354: _ACEOF
16355: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16356:   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
16357:   ac_cv_type_getgroups=gid_t
16358: else
16359:   ac_cv_type_getgroups=int
16360: fi
16361: rm -f conftest*
16362: 
16363: fi
16364: fi
16365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
16366: $as_echo "$ac_cv_type_getgroups" >&6; }
16367: 
16368: cat >>confdefs.h <<_ACEOF
16369: #define GETGROUPS_T $ac_cv_type_getgroups
16370: _ACEOF
16371: 
16372: 
16373: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16374: if test "x$ac_cv_type_size_t" = xyes; then :
16375: 
16376: else
16377: 
16378: cat >>confdefs.h <<_ACEOF
16379: #define size_t unsigned int
16380: _ACEOF
16381: 
16382: fi
16383: 
16384: ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16385: if test "x$ac_cv_func_getgroups" = xyes; then :
16386: 
16387: fi
16388: 
16389: 
16390: # If we don't yet have getgroups, see if it's in -lbsd.
16391: # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16392: ac_save_LIBS=$LIBS
16393: if test $ac_cv_func_getgroups = no; then
16394:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16395: $as_echo_n "checking for getgroups in -lbsd... " >&6; }
16396: if ${ac_cv_lib_bsd_getgroups+:} false; then :
16397:   $as_echo_n "(cached) " >&6
16398: else
16399:   ac_check_lib_save_LIBS=$LIBS
16400: LIBS="-lbsd  $LIBS"
16401: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402: /* end confdefs.h.  */
16403: 
16404: /* Override any GCC internal prototype to avoid an error.
16405:    Use char because int might match the return type of a GCC
16406:    builtin and then its argument prototype would still apply.  */
16407: #ifdef __cplusplus
16408: extern "C"
16409: #endif
16410: char getgroups ();
16411: int
16412: main ()
16413: {
16414: return getgroups ();
16415:   ;
16416:   return 0;
16417: }
16418: _ACEOF
16419: if ac_fn_c_try_link "$LINENO"; then :
16420:   ac_cv_lib_bsd_getgroups=yes
16421: else
16422:   ac_cv_lib_bsd_getgroups=no
16423: fi
16424: rm -f core conftest.err conftest.$ac_objext \
16425:     conftest$ac_exeext conftest.$ac_ext
16426: LIBS=$ac_check_lib_save_LIBS
16427: fi
16428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16429: $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16430: if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16431:   GETGROUPS_LIB=-lbsd
16432: fi
16433: 
16434: fi
16435: 
16436: # Run the program to test the functionality of the system-supplied
16437: # getgroups function only if there is such a function.
16438: if test $ac_cv_func_getgroups = yes; then
16439:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16440: $as_echo_n "checking for working getgroups... " >&6; }
16441: if ${ac_cv_func_getgroups_works+:} false; then :
16442:   $as_echo_n "(cached) " >&6
16443: else
16444:   if test "$cross_compiling" = yes; then :
16445:   ac_cv_func_getgroups_works=no
16446: else
16447:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448: /* end confdefs.h.  */
16449: $ac_includes_default
16450: int
16451: main ()
16452: {
16453: /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
16454:        return getgroups (0, 0) == -1;
16455:   ;
16456:   return 0;
16457: }
16458: _ACEOF
16459: if ac_fn_c_try_run "$LINENO"; then :
16460:   ac_cv_func_getgroups_works=yes
16461: else
16462:   ac_cv_func_getgroups_works=no
16463: fi
16464: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16465:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16466: fi
16467: 
16468: 
16469: fi
16470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16471: $as_echo "$ac_cv_func_getgroups_works" >&6; }
16472: else
16473:   ac_cv_func_getgroups_works=no
16474: fi
16475: if test $ac_cv_func_getgroups_works = yes; then
16476: 
16477: $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16478: 
16479: fi
16480: LIBS=$ac_save_LIBS
16481: 
16482: for ac_func in glob strrchr sysconf tzset strftime setenv \
16483: 	       regcomp setlocale nl_langinfo mbr_check_membership \
16484: 	       setrlimit64
16485: do :
16486:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16487: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16488: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16489:   cat >>confdefs.h <<_ACEOF
16490: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16491: _ACEOF
16492: 
16493: fi
16494: done
16495: 
16496: ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
16497: if test "x$ac_cv_func_getgrouplist" = xyes; then :
16498:   $as_echo "#define HAVE_GETGROUPLIST 1" >>confdefs.h
16499: 
16500: else
16501:   case " $LIBOBJS " in
16502:   *" getgrouplist.$ac_objext "* ) ;;
16503:   *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
16504:  ;;
16505: esac
16506: 
16507: fi
16508: 
16509: 
16510: for ac_func in getline
16511: do :
16512:   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16513: if test "x$ac_cv_func_getline" = xyes; then :
16514:   cat >>confdefs.h <<_ACEOF
16515: #define HAVE_GETLINE 1
16516: _ACEOF
16517: 
16518: else
16519: 
16520:     case " $LIBOBJS " in
16521:   *" getline.$ac_objext "* ) ;;
16522:   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16523:  ;;
16524: esac
16525: 
16526:     for ac_func in fgetln
16527: do :
16528:   ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
16529: if test "x$ac_cv_func_fgetln" = xyes; then :
16530:   cat >>confdefs.h <<_ACEOF
16531: #define HAVE_FGETLN 1
16532: _ACEOF
16533: 
16534: fi
16535: done
16536: 
16537: 
16538: fi
16539: done
16540: 
16541: O_CPPFLAGS="$CPPFLAGS"
16542: CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
16543: ac_fn_c_check_func "$LINENO" "__sprintf_chk" "ac_cv_func___sprintf_chk"
16544: if test "x$ac_cv_func___sprintf_chk" = xyes; then :
16545: 
16546:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547: /* end confdefs.h.  */
16548: 
16549: int
16550: main ()
16551: {
16552: char buf[4]; (void)sprintf(buf, "%s", "foo");
16553:   ;
16554:   return 0;
16555: }
16556: _ACEOF
16557: if ac_fn_c_try_link "$LINENO"; then :
16558:   OSDEFS="${OSDEFS} -D_FORTIFY_SOURCE=2"
16559: fi
16560: rm -f core conftest.err conftest.$ac_objext \
16561:     conftest$ac_exeext conftest.$ac_ext
16562: 
16563: fi
16564: 
16565: CPPFLAGS="$O_CPPFLAGS"
16566: 
16567: utmp_style=LEGACY
16568: for ac_func in getutxid getutid
16569: do :
16570:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16571: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16572: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16573:   cat >>confdefs.h <<_ACEOF
16574: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16575: _ACEOF
16576:  utmp_style=POSIX; break
16577: fi
16578: done
16579: 
16580: if test "$utmp_style" = "LEGACY"; then
16581:     for ac_func in getttyent ttyslot
16582: do :
16583:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16584: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16585: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16586:   cat >>confdefs.h <<_ACEOF
16587: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16588: _ACEOF
16589:  break
16590: fi
16591: done
16592: 
16593: fi
16594: 
16595: for ac_func in sysctl
16596: do :
16597:   ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
16598: if test "x$ac_cv_func_sysctl" = xyes; then :
16599:   cat >>confdefs.h <<_ACEOF
16600: #define HAVE_SYSCTL 1
16601: _ACEOF
16602:  ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_tdev" "ac_cv_member_struct_kinfo_proc_ki_tdev" "
16603: 	#include <sys/param.h>
16604: 	#include <sys/sysctl.h>
16605: 	#include <sys/user.h>
16606: 
16607: "
16608: if test "x$ac_cv_member_struct_kinfo_proc_ki_tdev" = xyes; then :
16609: 
16610: cat >>confdefs.h <<_ACEOF
16611: #define HAVE_STRUCT_KINFO_PROC_KI_TDEV 1
16612: _ACEOF
16613: 
16614: 
16615: else
16616: 
16617: 	ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_tdev" "ac_cv_member_struct_kinfo_proc2_p_tdev" "
16618: 	    #include <sys/param.h>
16619: 	    #include <sys/sysctl.h>
16620: 
16621: "
16622: if test "x$ac_cv_member_struct_kinfo_proc2_p_tdev" = xyes; then :
16623: 
16624: cat >>confdefs.h <<_ACEOF
16625: #define HAVE_STRUCT_KINFO_PROC2_P_TDEV 1
16626: _ACEOF
16627: 
16628: 
16629: else
16630: 
16631: 	    ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_tdev" "ac_cv_member_struct_kinfo_proc_p_tdev" "
16632: 		#include <sys/param.h>
16633: 		#include <sys/sysctl.h>
16634: 
16635: "
16636: if test "x$ac_cv_member_struct_kinfo_proc_p_tdev" = xyes; then :
16637: 
16638: cat >>confdefs.h <<_ACEOF
16639: #define HAVE_STRUCT_KINFO_PROC_P_TDEV 1
16640: _ACEOF
16641: 
16642: 
16643: else
16644: 
16645: 		ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_eproc.e_tdev" "ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" "
16646: 		    #include <sys/param.h>
16647: 		    #include <sys/sysctl.h>
16648: 
16649: "
16650: if test "x$ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" = xyes; then :
16651: 
16652: cat >>confdefs.h <<_ACEOF
16653: #define HAVE_STRUCT_KINFO_PROC_KP_EPROC_E_TDEV 1
16654: _ACEOF
16655: 
16656: 
16657: fi
16658: 
16659: 
16660: fi
16661: 
16662: 
16663: fi
16664: 
16665: 
16666: fi
16667: 
16668: 
16669: fi
16670: done
16671: 
16672: 
16673: for ac_func in openpty
16674: do :
16675:   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
16676: if test "x$ac_cv_func_openpty" = xyes; then :
16677:   cat >>confdefs.h <<_ACEOF
16678: #define HAVE_OPENPTY 1
16679: _ACEOF
16680:  for ac_header in libutil.h util.h pty.h
16681: do :
16682:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16683: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16684: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16685:   cat >>confdefs.h <<_ACEOF
16686: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16687: _ACEOF
16688:  break
16689: fi
16690: 
16691: done
16692: 
16693: else
16694: 
16695:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
16696: $as_echo_n "checking for openpty in -lutil... " >&6; }
16697: if ${ac_cv_lib_util_openpty+:} false; then :
16698:   $as_echo_n "(cached) " >&6
16699: else
16700:   ac_check_lib_save_LIBS=$LIBS
16701: LIBS="-lutil  $LIBS"
16702: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703: /* end confdefs.h.  */
16704: 
16705: /* Override any GCC internal prototype to avoid an error.
16706:    Use char because int might match the return type of a GCC
16707:    builtin and then its argument prototype would still apply.  */
16708: #ifdef __cplusplus
16709: extern "C"
16710: #endif
16711: char openpty ();
16712: int
16713: main ()
16714: {
16715: return openpty ();
16716:   ;
16717:   return 0;
16718: }
16719: _ACEOF
16720: if ac_fn_c_try_link "$LINENO"; then :
16721:   ac_cv_lib_util_openpty=yes
16722: else
16723:   ac_cv_lib_util_openpty=no
16724: fi
16725: rm -f core conftest.err conftest.$ac_objext \
16726:     conftest$ac_exeext conftest.$ac_ext
16727: LIBS=$ac_check_lib_save_LIBS
16728: fi
16729: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
16730: $as_echo "$ac_cv_lib_util_openpty" >&6; }
16731: if test "x$ac_cv_lib_util_openpty" = xyes; then :
16732: 
16733: 	for ac_header in libutil.h util.h pty.h
16734: do :
16735:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16736: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16737: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16738:   cat >>confdefs.h <<_ACEOF
16739: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16740: _ACEOF
16741:  break
16742: fi
16743: 
16744: done
16745: 
16746: 	case "$SUDO_LIBS" in
16747: 	    *-lutil*) ;;
16748: 	    *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
16749: 	esac
16750: 	$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
16751: 
16752: 
16753: else
16754: 
16755: 	for ac_func in _getpty
16756: do :
16757:   ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
16758: if test "x$ac_cv_func__getpty" = xyes; then :
16759:   cat >>confdefs.h <<_ACEOF
16760: #define HAVE__GETPTY 1
16761: _ACEOF
16762: 
16763: else
16764: 
16765: 	    for ac_func in grantpt
16766: do :
16767:   ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
16768: if test "x$ac_cv_func_grantpt" = xyes; then :
16769:   cat >>confdefs.h <<_ACEOF
16770: #define HAVE_GRANTPT 1
16771: _ACEOF
16772: 
16773: 		for ac_func in posix_openpt
16774: do :
16775:   ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
16776: if test "x$ac_cv_func_posix_openpt" = xyes; then :
16777:   cat >>confdefs.h <<_ACEOF
16778: #define HAVE_POSIX_OPENPT 1
16779: _ACEOF
16780: 
16781: fi
16782: done
16783: 
16784: 
16785: else
16786: 
16787: 		for ac_func in revoke
16788: do :
16789:   ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
16790: if test "x$ac_cv_func_revoke" = xyes; then :
16791:   cat >>confdefs.h <<_ACEOF
16792: #define HAVE_REVOKE 1
16793: _ACEOF
16794: 
16795: fi
16796: done
16797: 
16798: 
16799: fi
16800: done
16801: 
16802: 
16803: fi
16804: done
16805: 
16806: 
16807: fi
16808: 
16809: 
16810: fi
16811: done
16812: 
16813: for ac_func in unsetenv
16814: do :
16815:   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16816: if test "x$ac_cv_func_unsetenv" = xyes; then :
16817:   cat >>confdefs.h <<_ACEOF
16818: #define HAVE_UNSETENV 1
16819: _ACEOF
16820:  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
16821: $as_echo_n "checking whether unsetenv returns void... " >&6; }
16822: if ${sudo_cv_func_unsetenv_void+:} false; then :
16823:   $as_echo_n "(cached) " >&6
16824: else
16825:   if test "$cross_compiling" = yes; then :
16826:   sudo_cv_func_unsetenv_void=no
16827: else
16828:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829: /* end confdefs.h.  */
16830: $ac_includes_default
16831:         int unsetenv();
16832: 
16833: int
16834: main ()
16835: {
16836: 
16837:         return unsetenv("FOO") != 0;
16838: 
16839:   ;
16840:   return 0;
16841: }
16842: 
16843: _ACEOF
16844: if ac_fn_c_try_run "$LINENO"; then :
16845:   sudo_cv_func_unsetenv_void=no
16846: else
16847:   sudo_cv_func_unsetenv_void=yes
16848: fi
16849: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16850:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16851: fi
16852: 
16853: fi
16854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
16855: $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
16856:     if test $sudo_cv_func_unsetenv_void = yes; then
16857: 
16858: $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
16859: 
16860:     fi
16861: 
16862: fi
16863: done
16864: 
16865: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv takes a const argument" >&5
16866: $as_echo_n "checking whether putenv takes a const argument... " >&6; }
16867: if ${sudo_cv_func_putenv_const+:} false; then :
16868:   $as_echo_n "(cached) " >&6
16869: else
16870:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871: /* end confdefs.h.  */
16872: $ac_includes_default
16873: int putenv(const char *string) {return 0;}
16874: int
16875: main ()
16876: {
16877: 
16878:   ;
16879:   return 0;
16880: }
16881: _ACEOF
16882: if ac_fn_c_try_compile "$LINENO"; then :
16883:   sudo_cv_func_putenv_const=yes
16884: else
16885:   sudo_cv_func_putenv_const=no
16886: fi
16887: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16888: 
16889: fi
16890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
16891: $as_echo "$sudo_cv_func_putenv_const" >&6; }
16892:   if test $sudo_cv_func_putenv_const = yes; then
16893: 
16894: $as_echo "#define PUTENV_CONST const" >>confdefs.h
16895: 
16896:   else
16897:     $as_echo "#define PUTENV_CONST /**/" >>confdefs.h
16898: 
16899:   fi
16900: 
16901: if test -z "$SKIP_SETRESUID"; then
16902:     for ac_func in setresuid
16903: do :
16904:   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
16905: if test "x$ac_cv_func_setresuid" = xyes; then :
16906:   cat >>confdefs.h <<_ACEOF
16907: #define HAVE_SETRESUID 1
16908: _ACEOF
16909: 
16910: 	SKIP_SETREUID=yes
16911: 	for ac_func in getresuid
16912: do :
16913:   ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
16914: if test "x$ac_cv_func_getresuid" = xyes; then :
16915:   cat >>confdefs.h <<_ACEOF
16916: #define HAVE_GETRESUID 1
16917: _ACEOF
16918: 
16919: fi
16920: done
16921: 
16922: 
16923: fi
16924: done
16925: 
16926: fi
16927: if test -z "$SKIP_SETREUID"; then
16928:     for ac_func in setreuid
16929: do :
16930:   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
16931: if test "x$ac_cv_func_setreuid" = xyes; then :
16932:   cat >>confdefs.h <<_ACEOF
16933: #define HAVE_SETREUID 1
16934: _ACEOF
16935:  SKIP_SETEUID=yes
16936: fi
16937: done
16938: 
16939: fi
16940: if test -z "$SKIP_SETEUID"; then
16941:     for ac_func in seteuid
16942: do :
16943:   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
16944: if test "x$ac_cv_func_seteuid" = xyes; then :
16945:   cat >>confdefs.h <<_ACEOF
16946: #define HAVE_SETEUID 1
16947: _ACEOF
16948: 
16949: fi
16950: done
16951: 
16952: fi
16953: if test X"$with_interfaces" != X"no"; then
16954:     for ac_func in getifaddrs
16955: do :
16956:   ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
16957: if test "x$ac_cv_func_getifaddrs" = xyes; then :
16958:   cat >>confdefs.h <<_ACEOF
16959: #define HAVE_GETIFADDRS 1
16960: _ACEOF
16961:  for ac_func in freeifaddrs
16962: do :
16963:   ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
16964: if test "x$ac_cv_func_freeifaddrs" = xyes; then :
16965:   cat >>confdefs.h <<_ACEOF
16966: #define HAVE_FREEIFADDRS 1
16967: _ACEOF
16968: 
16969: fi
16970: done
16971: 
16972: fi
16973: done
16974: 
16975: fi
16976: if test -z "$BROKEN_GETCWD"; then
16977:     ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
16978: if test "x$ac_cv_func_getcwd" = xyes; then :
16979:   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
16980: 
16981: else
16982:   case " $LIBOBJS " in
16983:   *" getcwd.$ac_objext "* ) ;;
16984:   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
16985:  ;;
16986: esac
16987: 
16988: fi
16989: 
16990: 
16991: fi
16992: for ac_func in lockf flock
16993: do :
16994:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16995: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16996: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16997:   cat >>confdefs.h <<_ACEOF
16998: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16999: _ACEOF
17000:  break
17001: fi
17002: done
17003: 
17004: for ac_func in innetgr _innetgr
17005: do :
17006:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17007: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17008: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17009:   cat >>confdefs.h <<_ACEOF
17010: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17011: _ACEOF
17012:  for ac_func in getdomainname
17013: do :
17014:   ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
17015: if test "x$ac_cv_func_getdomainname" = xyes; then :
17016:   cat >>confdefs.h <<_ACEOF
17017: #define HAVE_GETDOMAINNAME 1
17018: _ACEOF
17019: 
17020: fi
17021: done
17022:  break
17023: fi
17024: done
17025: 
17026: for ac_func in utimes
17027: do :
17028:   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
17029: if test "x$ac_cv_func_utimes" = xyes; then :
17030:   cat >>confdefs.h <<_ACEOF
17031: #define HAVE_UTIMES 1
17032: _ACEOF
17033:  for ac_func in futimes futimesat
17034: do :
17035:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17036: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17037: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17038:   cat >>confdefs.h <<_ACEOF
17039: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17040: _ACEOF
17041:  break
17042: fi
17043: done
17044: 
17045: else
17046:   for ac_func in futime
17047: do :
17048:   ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
17049: if test "x$ac_cv_func_futime" = xyes; then :
17050:   cat >>confdefs.h <<_ACEOF
17051: #define HAVE_FUTIME 1
17052: _ACEOF
17053: 
17054: fi
17055: done
17056:  case " $LIBOBJS " in
17057:   *" utimes.$ac_objext "* ) ;;
17058:   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17059:  ;;
17060: esac
17061: 
17062: fi
17063: done
17064: 
17065: for ac_func in killpg
17066: do :
17067:   ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
17068: if test "x$ac_cv_func_killpg" = xyes; then :
17069:   cat >>confdefs.h <<_ACEOF
17070: #define HAVE_KILLPG 1
17071: _ACEOF
17072: 
17073: else
17074:   case " $LIBOBJS " in
17075:   *" killpg.$ac_objext "* ) ;;
17076:   *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
17077:  ;;
17078: esac
17079: 
17080: fi
17081: done
17082: 
17083: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
17084: $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
17085: if ${sudo_cv_func_fnmatch+:} false; then :
17086:   $as_echo_n "(cached) " >&6
17087: else
17088:   rm -f conftestdata; > conftestdata
17089: if test "$cross_compiling" = yes; then :
17090:   sudo_cv_func_fnmatch=no
17091: else
17092:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093: /* end confdefs.h.  */
17094: #include <fnmatch.h>
17095: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17096: _ACEOF
17097: if ac_fn_c_try_run "$LINENO"; then :
17098:   sudo_cv_func_fnmatch=yes
17099: else
17100:   sudo_cv_func_fnmatch=no
17101: fi
17102: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17103:   conftest.$ac_objext conftest.beam conftest.$ac_ext
17104: fi
17105: 
17106: rm -f core core.* *.core
17107: fi
17108: 
17109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
17110: $as_echo "$sudo_cv_func_fnmatch" >&6; }
17111: if test $sudo_cv_func_fnmatch = yes; then :
17112:   $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
17113: 
17114: else
17115:   case " $LIBOBJS " in
17116:   *" fnmatch.$ac_objext "* ) ;;
17117:   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17118:  ;;
17119: esac
17120: 
17121:     COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }fnm_test"
17122: 
17123: fi
17124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
17125: $as_echo_n "checking for isblank... " >&6; }
17126: if ${sudo_cv_func_isblank+:} false; then :
17127:   $as_echo_n "(cached) " >&6
17128: else
17129:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130: /* end confdefs.h.  */
17131: #include <ctype.h>
17132: int
17133: main ()
17134: {
17135: return (isblank('a'));
17136:   ;
17137:   return 0;
17138: }
17139: _ACEOF
17140: if ac_fn_c_try_link "$LINENO"; then :
17141:   sudo_cv_func_isblank=yes
17142: else
17143:   sudo_cv_func_isblank=no
17144: fi
17145: rm -f core conftest.err conftest.$ac_objext \
17146:     conftest$ac_exeext conftest.$ac_ext
17147: fi
17148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
17149: $as_echo "$sudo_cv_func_isblank" >&6; }
17150: 
17151:   if test "$sudo_cv_func_isblank" = "yes"; then
17152: 
17153: $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
17154: 
17155:   else
17156:     case " $LIBOBJS " in
17157:   *" isblank.$ac_objext "* ) ;;
17158:   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17159:  ;;
17160: esac
17161: 
17162:   fi
17163: 
17164: ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
17165: if test "x$ac_cv_func_memrchr" = xyes; then :
17166:   $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
17167: 
17168: else
17169:   case " $LIBOBJS " in
17170:   *" memrchr.$ac_objext "* ) ;;
17171:   *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
17172:  ;;
17173: esac
17174: 
17175: fi
17176: 
17177: ac_fn_c_check_func "$LINENO" "pw_dup" "ac_cv_func_pw_dup"
17178: if test "x$ac_cv_func_pw_dup" = xyes; then :
17179:   $as_echo "#define HAVE_PW_DUP 1" >>confdefs.h
17180: 
17181: else
17182:   case " $LIBOBJS " in
17183:   *" pw_dup.$ac_objext "* ) ;;
17184:   *) LIBOBJS="$LIBOBJS pw_dup.$ac_objext"
17185:  ;;
17186: esac
17187: 
17188: fi
17189: 
17190: ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17191: if test "x$ac_cv_func_strlcpy" = xyes; then :
17192:   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17193: 
17194: else
17195:   case " $LIBOBJS " in
17196:   *" strlcpy.$ac_objext "* ) ;;
17197:   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17198:  ;;
17199: esac
17200: 
17201: fi
17202: 
17203: ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17204: if test "x$ac_cv_func_strlcat" = xyes; then :
17205:   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
17206: 
17207: else
17208:   case " $LIBOBJS " in
17209:   *" strlcat.$ac_objext "* ) ;;
17210:   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
17211:  ;;
17212: esac
17213: 
17214: fi
17215: 
17216: 
17217: for ac_func in nanosleep
17218: do :
17219:   ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17220: if test "x$ac_cv_func_nanosleep" = xyes; then :
17221:   cat >>confdefs.h <<_ACEOF
17222: #define HAVE_NANOSLEEP 1
17223: _ACEOF
17224: 
17225: else
17226: 
17227:     # On Solaris, nanosleep is in librt
17228:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
17229: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
17230: if ${ac_cv_lib_rt_nanosleep+:} false; then :
17231:   $as_echo_n "(cached) " >&6
17232: else
17233:   ac_check_lib_save_LIBS=$LIBS
17234: LIBS="-lrt  $LIBS"
17235: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17236: /* end confdefs.h.  */
17237: 
17238: /* Override any GCC internal prototype to avoid an error.
17239:    Use char because int might match the return type of a GCC
17240:    builtin and then its argument prototype would still apply.  */
17241: #ifdef __cplusplus
17242: extern "C"
17243: #endif
17244: char nanosleep ();
17245: int
17246: main ()
17247: {
17248: return nanosleep ();
17249:   ;
17250:   return 0;
17251: }
17252: _ACEOF
17253: if ac_fn_c_try_link "$LINENO"; then :
17254:   ac_cv_lib_rt_nanosleep=yes
17255: else
17256:   ac_cv_lib_rt_nanosleep=no
17257: fi
17258: rm -f core conftest.err conftest.$ac_objext \
17259:     conftest$ac_exeext conftest.$ac_ext
17260: LIBS=$ac_check_lib_save_LIBS
17261: fi
17262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
17263: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
17264: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
17265:   REPLAY_LIBS="${REPLAY_LIBS} -lrt"
17266: else
17267:   case " $LIBOBJS " in
17268:   *" nanosleep.$ac_objext "* ) ;;
17269:   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
17270:  ;;
17271: esac
17272: 
17273: fi
17274: 
17275: 
17276: fi
17277: done
17278: 
17279: for ac_func in closefrom
17280: do :
17281:   ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
17282: if test "x$ac_cv_func_closefrom" = xyes; then :
17283:   cat >>confdefs.h <<_ACEOF
17284: #define HAVE_CLOSEFROM 1
17285: _ACEOF
17286: 
17287: else
17288:   case " $LIBOBJS " in
17289:   *" closefrom.$ac_objext "* ) ;;
17290:   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17291:  ;;
17292: esac
17293: 
17294:     ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
17295: 	  #include <fcntl.h>
17296: "
17297: if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
17298:   $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
17299: 
17300: fi
17301: 
17302: 
17303: fi
17304: done
17305: 
17306: for ac_func in mkstemps mkdtemp
17307: do :
17308:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17309: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17310: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17311:   cat >>confdefs.h <<_ACEOF
17312: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17313: _ACEOF
17314: 
17315: else
17316: 
17317:     for ac_func in random lrand48
17318: do :
17319:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17320: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17321: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17322:   cat >>confdefs.h <<_ACEOF
17323: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17324: _ACEOF
17325:  break
17326: fi
17327: done
17328: 
17329:     case " $LIBOBJS " in
17330:   *" mktemp.$ac_objext "* ) ;;
17331:   *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
17332:  ;;
17333: esac
17334: 
17335: 
17336: fi
17337: done
17338: 
17339: for ac_func in snprintf vsnprintf asprintf vasprintf
17340: do :
17341:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17342: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17343: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17344:   cat >>confdefs.h <<_ACEOF
17345: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17346: _ACEOF
17347: 
17348: else
17349:   NEED_SNPRINTF=1
17350: fi
17351: done
17352: 
17353: if test X"$ac_cv_type_struct_timespec" != X"no"; then
17354:     ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17355: if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17356:   $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
17357: 
17358: 	ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
17359: if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
17360:   $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
17361: 
17362: fi
17363: 
17364: else
17365:   ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
17366: if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
17367:   $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
17368: 
17369: fi
17370: 
17371: fi
17372: 
17373: fi
17374: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17375: /* end confdefs.h.  */
17376: #include <sys/types.h>
17377: #include <$ac_header_dirent>
17378: int
17379: main ()
17380: {
17381: DIR *d; (void)dirfd(d);
17382:   ;
17383:   return 0;
17384: }
17385: _ACEOF
17386: if ac_fn_c_try_link "$LINENO"; then :
17387:   $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
17388: 
17389: else
17390:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391: /* end confdefs.h.  */
17392: #include <sys/types.h>
17393: #include <$ac_header_dirent>
17394: int
17395: main ()
17396: {
17397: DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17398:   ;
17399:   return 0;
17400: }
17401: _ACEOF
17402: if ac_fn_c_try_link "$LINENO"; then :
17403:   $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
17404: 
17405: fi
17406: rm -f core conftest.err conftest.$ac_objext \
17407:     conftest$ac_exeext conftest.$ac_ext
17408: fi
17409: rm -f core conftest.err conftest.$ac_objext \
17410:     conftest$ac_exeext conftest.$ac_ext
17411: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17412: $ac_includes_default
17413: #include <$ac_header_dirent>
17414: 
17415: "
17416: if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17417: 
17418: cat >>confdefs.h <<_ACEOF
17419: #define HAVE_STRUCT_DIRENT_D_TYPE 1
17420: _ACEOF
17421: 
17422: 
17423: fi
17424: 
17425: if test -n "$NEED_SNPRINTF"; then
17426:     case " $LIBOBJS " in
17427:   *" snprintf.$ac_objext "* ) ;;
17428:   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17429:  ;;
17430: esac
17431: 
17432: fi
17433: ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17434: if test "x$ac_cv_func_socket" = xyes; then :
17435: 
17436: else
17437: 
17438:     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17439: 	_libs=
17440: 	for lib in $libs; do
17441: 	    case "$NET_LIBS" in
17442: 		*"$lib"*)   ;;
17443: 		*)	    _libs="$_libs $lib";;
17444: 	    esac
17445: 	done
17446: 	libs="${_libs# }"
17447: 	test -z "$libs" && continue
17448: 	lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17449: 	extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17450: 
17451:     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ 	*//g' -e 's/-l/_/g'`
17452:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5
17453: $as_echo_n "checking for socket in -l$lib${5+ }$extralibs... " >&6; }
17454:     if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17455:   $as_echo_n "(cached) " >&6
17456: else
17457: 
17458: 	SUDO_CHECK_LIB_OLIBS="$LIBS"
17459: 	LIBS="$LIBS -l$lib${5+ }$extralibs"
17460: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461: /* end confdefs.h.  */
17462: 
17463: /* Override any GCC internal prototype to avoid an error.
17464:    Use char because int might match the return type of a GCC
17465:    builtin and then its argument prototype would still apply.  */
17466: #ifdef __cplusplus
17467: extern "C"
17468: #endif
17469: char socket ();
17470: int
17471: main ()
17472: {
17473: return socket ();
17474:   ;
17475:   return 0;
17476: }
17477: _ACEOF
17478: if ac_fn_c_try_link "$LINENO"; then :
17479:   eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes
17480: else
17481:   eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no
17482: 
17483: fi
17484: rm -f core conftest.err conftest.$ac_objext \
17485:     conftest$ac_exeext conftest.$ac_ext
17486: 	LIBS="$SUDO_CHECK_LIB_OLIBS"
17487: 
17488: fi
17489: 
17490:     if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then
17491: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17492: $as_echo "yes" >&6; }
17493: 	NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17494:     else
17495: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17496: $as_echo "no" >&6; }
17497: 
17498:     fi
17499: 
17500:     done
17501: 
17502: fi
17503: 
17504: ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
17505: if test "x$ac_cv_func_inet_addr" = xyes; then :
17506: 
17507: else
17508: 
17509:     ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
17510: if test "x$ac_cv_func___inet_addr" = xyes; then :
17511: 
17512: else
17513: 
17514: 	for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17515: 	    _libs=
17516: 	    for lib in $libs; do
17517: 		case "$NET_LIBS" in
17518: 		    *"$lib"*)   ;;
17519: 		    *)		_libs="$_libs $lib";;
17520: 		esac
17521: 	    done
17522: 	    libs="${_libs# }"
17523: 	    test -z "$libs" && continue
17524: 	    lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17525: 	    extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17526: 
17527:     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ 	*//g' -e 's/-l/_/g'`
17528:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -l$lib${5+ }$extralibs" >&5
17529: $as_echo_n "checking for inet_addr in -l$lib${5+ }$extralibs... " >&6; }
17530:     if { as_var=sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17531:   $as_echo_n "(cached) " >&6
17532: else
17533: 
17534: 	SUDO_CHECK_LIB_OLIBS="$LIBS"
17535: 	LIBS="$LIBS -l$lib${5+ }$extralibs"
17536: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537: /* end confdefs.h.  */
17538: 
17539: /* Override any GCC internal prototype to avoid an error.
17540:    Use char because int might match the return type of a GCC
17541:    builtin and then its argument prototype would still apply.  */
17542: #ifdef __cplusplus
17543: extern "C"
17544: #endif
17545: char inet_addr ();
17546: int
17547: main ()
17548: {
17549: return inet_addr ();
17550:   ;
17551:   return 0;
17552: }
17553: _ACEOF
17554: if ac_fn_c_try_link "$LINENO"; then :
17555:   eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=yes
17556: else
17557:   eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=no
17558: 
17559: fi
17560: rm -f core conftest.err conftest.$ac_objext \
17561:     conftest$ac_exeext conftest.$ac_ext
17562: 	LIBS="$SUDO_CHECK_LIB_OLIBS"
17563: 
17564: fi
17565: 
17566:     if eval test \$sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras = "yes"; then
17567: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17568: $as_echo "yes" >&6; }
17569: 	NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17570:     else
17571: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17572: $as_echo "no" >&6; }
17573: 
17574:     fi
17575: 
17576: 	done
17577: 
17578: fi
17579: 
17580: 
17581: fi
17582: 
17583: ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
17584: if test "x$ac_cv_func_syslog" = xyes; then :
17585: 
17586: else
17587: 
17588:     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17589: 	_libs=
17590: 	for lib in $libs; do
17591: 	    case "$NET_LIBS" in
17592: 		*"$lib"*)   ;;
17593: 		*)	    _libs="$_libs $lib";;
17594: 	    esac
17595: 	done
17596: 	libs="${_libs# }"
17597: 	test -z "$libs" && continue
17598: 	lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17599: 	extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17600: 
17601:     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ 	*//g' -e 's/-l/_/g'`
17602:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5
17603: $as_echo_n "checking for syslog in -l$lib${5+ }$extralibs... " >&6; }
17604:     if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17605:   $as_echo_n "(cached) " >&6
17606: else
17607: 
17608: 	SUDO_CHECK_LIB_OLIBS="$LIBS"
17609: 	LIBS="$LIBS -l$lib${5+ }$extralibs"
17610: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17611: /* end confdefs.h.  */
17612: 
17613: /* Override any GCC internal prototype to avoid an error.
17614:    Use char because int might match the return type of a GCC
17615:    builtin and then its argument prototype would still apply.  */
17616: #ifdef __cplusplus
17617: extern "C"
17618: #endif
17619: char syslog ();
17620: int
17621: main ()
17622: {
17623: return syslog ();
17624:   ;
17625:   return 0;
17626: }
17627: _ACEOF
17628: if ac_fn_c_try_link "$LINENO"; then :
17629:   eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes
17630: else
17631:   eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no
17632: 
17633: fi
17634: rm -f core conftest.err conftest.$ac_objext \
17635:     conftest$ac_exeext conftest.$ac_ext
17636: 	LIBS="$SUDO_CHECK_LIB_OLIBS"
17637: 
17638: fi
17639: 
17640:     if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then
17641: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17642: $as_echo "yes" >&6; }
17643: 	NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17644:     else
17645: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17646: $as_echo "no" >&6; }
17647: 
17648:     fi
17649: 
17650:     done
17651: 
17652: fi
17653: 
17654: for ac_func in getaddrinfo
17655: do :
17656:   ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17657: if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17658:   cat >>confdefs.h <<_ACEOF
17659: #define HAVE_GETADDRINFO 1
17660: _ACEOF
17661: 
17662: else
17663: 
17664:     found=no
17665:     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17666: 	_libs=
17667: 	for lib in $libs; do
17668: 	    case "$NET_LIBS" in
17669: 		*"$lib"*)   ;;
17670: 		*)	    _libs="$_libs $lib";;
17671: 	    esac
17672: 	done
17673: 	libs="${_libs# }"
17674: 	test -z "$libs" && continue
17675: 	lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17676: 	extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17677: 
17678:     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ 	*//g' -e 's/-l/_/g'`
17679:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib${5+ }$extralibs" >&5
17680: $as_echo_n "checking for getaddrinfo in -l$lib${5+ }$extralibs... " >&6; }
17681:     if { as_var=sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17682:   $as_echo_n "(cached) " >&6
17683: else
17684: 
17685: 	SUDO_CHECK_LIB_OLIBS="$LIBS"
17686: 	LIBS="$LIBS -l$lib${5+ }$extralibs"
17687: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688: /* end confdefs.h.  */
17689: 
17690: /* Override any GCC internal prototype to avoid an error.
17691:    Use char because int might match the return type of a GCC
17692:    builtin and then its argument prototype would still apply.  */
17693: #ifdef __cplusplus
17694: extern "C"
17695: #endif
17696: char getaddrinfo ();
17697: int
17698: main ()
17699: {
17700: return getaddrinfo ();
17701:   ;
17702:   return 0;
17703: }
17704: _ACEOF
17705: if ac_fn_c_try_link "$LINENO"; then :
17706:   eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=yes
17707: else
17708:   eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=no
17709: 
17710: fi
17711: rm -f core conftest.err conftest.$ac_objext \
17712:     conftest$ac_exeext conftest.$ac_ext
17713: 	LIBS="$SUDO_CHECK_LIB_OLIBS"
17714: 
17715: fi
17716: 
17717:     if eval test \$sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras = "yes"; then
17718: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17719: $as_echo "yes" >&6; }
17720: 	NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; found=yes; break
17721:     else
17722: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17723: $as_echo "no" >&6; }
17724: 
17725:     fi
17726: 
17727:     done
17728:     if test X"$found" != X"no"; then
17729: 	$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17730: 
17731:     fi
17732: 
17733: fi
17734: done
17735: 
17736: for ac_func in getprogname
17737: do :
17738:   ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17739: if test "x$ac_cv_func_getprogname" = xyes; then :
17740:   cat >>confdefs.h <<_ACEOF
17741: #define HAVE_GETPROGNAME 1
17742: _ACEOF
17743: 
17744: else
17745: 
17746:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
17747: $as_echo_n "checking for __progname... " >&6; }
17748:     if ${sudo_cv___progname+:} false; then :
17749:   $as_echo_n "(cached) " >&6
17750: else
17751: 
17752:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753: /* end confdefs.h.  */
17754: 
17755: int
17756: main ()
17757: {
17758: extern char *__progname; (void)puts(__progname);
17759:   ;
17760:   return 0;
17761: }
17762: _ACEOF
17763: if ac_fn_c_try_link "$LINENO"; then :
17764:   sudo_cv___progname=yes
17765: else
17766:   sudo_cv___progname=no
17767: fi
17768: rm -f core conftest.err conftest.$ac_objext \
17769:     conftest$ac_exeext conftest.$ac_ext
17770: fi
17771: 
17772:     if test "$sudo_cv___progname" = "yes"; then
17773: 	$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17774: 
17775:     else
17776: 	case " $LIBOBJS " in
17777:   *" getprogname.$ac_objext "* ) ;;
17778:   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
17779:  ;;
17780: esac
17781: 
17782:     fi
17783:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
17784: $as_echo "$sudo_cv___progname" >&6; }
17785: 
17786: fi
17787: done
17788: 
17789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
17790: $as_echo_n "checking for __func__... " >&6; }
17791: if ${sudo_cv___func__+:} false; then :
17792:   $as_echo_n "(cached) " >&6
17793: else
17794: 
17795: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796: /* end confdefs.h.  */
17797: 
17798: int
17799: main ()
17800: {
17801: (void)puts(__func__);
17802:   ;
17803:   return 0;
17804: }
17805: _ACEOF
17806: if ac_fn_c_try_link "$LINENO"; then :
17807:   sudo_cv___func__=yes
17808: else
17809:   sudo_cv___func__=no
17810: fi
17811: rm -f core conftest.err conftest.$ac_objext \
17812:     conftest$ac_exeext conftest.$ac_ext
17813: fi
17814: 
17815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___func__" >&5
17816: $as_echo "$sudo_cv___func__" >&6; }
17817: if test "$sudo_cv___func__" = "yes"; then
17818:     $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
17819: 
17820: elif test -n "$GCC"; then
17821:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
17822: $as_echo_n "checking for __FUNCTION__... " >&6; }
17823:     if ${sudo_cv___FUNCTION__+:} false; then :
17824:   $as_echo_n "(cached) " >&6
17825: else
17826: 
17827:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17828: /* end confdefs.h.  */
17829: 
17830: int
17831: main ()
17832: {
17833: (void)puts(__FUNCTION__);
17834:   ;
17835:   return 0;
17836: }
17837: _ACEOF
17838: if ac_fn_c_try_link "$LINENO"; then :
17839:   sudo_cv___FUNCTION__=yes
17840: else
17841:   sudo_cv___FUNCTION__=no
17842: fi
17843: rm -f core conftest.err conftest.$ac_objext \
17844:     conftest$ac_exeext conftest.$ac_ext
17845: fi
17846: 
17847:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___FUNCTION__" >&5
17848: $as_echo "$sudo_cv___FUNCTION__" >&6; }
17849:     if test "$sudo_cv___FUNCTION__" = "yes"; then
17850: 	$as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
17851: 
17852: 
17853: $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
17854: 
17855:     fi
17856: fi
17857: 
17858: # gettext() and friends may be located in libc (Linux and Solaris)
17859: # or in libintl.  However, it is possible to have libintl installed
17860: # even when gettext() is present in libc.  In the case of GNU libintl,
17861: # gettext() will be defined to gettext_libintl in libintl.h.
17862: # Since gcc prefers /usr/local/include to /usr/include, we need to
17863: # make sure we use the gettext() that matches the include file.
17864: if test "$enable_nls" != "no"; then
17865:     if test "$enable_nls" != "yes"; then
17866: 	CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
17867: 
17868:     if test X"$with_rpath" = X"yes"; then
17869: 	case "$host" in
17870: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,+b,$enable_nls/lib"
17871: 			;;
17872: 	    *)		LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,-R$enable_nls/lib"
17873: 			;;
17874: 	esac
17875:     else
17876: 	LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
17877:     fi
17878:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17879: 	blibpath_add="${blibpath_add}:$enable_nls/lib"
17880:     fi
17881: 
17882:     fi
17883:     OLIBS="$LIBS"
17884:     for l in "libc" "-lintl" "-lintl -liconv"; do
17885: 	if test "$l" = "libc"; then
17886: 	    # If user specified a dir for libintl ignore libc
17887: 	    if test "$enable_nls" != "yes"; then
17888: 		continue
17889: 	    fi
17890: 	    gettext_name=sudo_cv_gettext
17891: 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
17892: $as_echo_n "checking for gettext... " >&6; }
17893: 	else
17894: 	    LIBS="$OLIBS $l"
17895: 	    gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
17896: 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
17897: $as_echo_n "checking for gettext in $l... " >&6; }
17898: 	fi
17899: 	if eval \${$gettext_name+:} false; then :
17900:   $as_echo_n "(cached) " >&6
17901: else
17902: 
17903: 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904: /* end confdefs.h.  */
17905: 
17906: 			#include <libintl.h>
17907: int
17908: main ()
17909: {
17910: (void)gettext((char *)0);
17911:   ;
17912:   return 0;
17913: }
17914: 
17915: _ACEOF
17916: if ac_fn_c_try_link "$LINENO"; then :
17917:   eval $gettext_name=yes
17918: else
17919:   eval $gettext_name=no
17920: 
17921: fi
17922: rm -f core conftest.err conftest.$ac_objext \
17923:     conftest$ac_exeext conftest.$ac_ext
17924: 
17925: fi
17926: 
17927: 	eval gettext_result="\$$gettext_name"
17928: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
17929: $as_echo "$gettext_result" >&6; }
17930: 	test "$gettext_result" = "yes" && break
17931:     done
17932:     LIBS="$OLIBS"
17933: 
17934:     if test "$sudo_cv_gettext" = "yes"; then
17935: 	$as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17936: 
17937: 	SUDO_NLS=enabled
17938:     elif test "$sudo_cv_gettext_lintl" = "yes"; then
17939: 	$as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17940: 
17941: 	SUDO_NLS=enabled
17942: 	LIBINTL="-lintl"
17943:     elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
17944: 	$as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17945: 
17946: 	SUDO_NLS=enabled
17947: 	LIBINTL="-lintl -liconv"
17948:     fi
17949: fi
17950: 
17951: case "$enable_zlib" in
17952:     yes)
17953: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
17954: $as_echo_n "checking for gzdopen in -lz... " >&6; }
17955: if ${ac_cv_lib_z_gzdopen+:} false; then :
17956:   $as_echo_n "(cached) " >&6
17957: else
17958:   ac_check_lib_save_LIBS=$LIBS
17959: LIBS="-lz  $LIBS"
17960: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961: /* end confdefs.h.  */
17962: 
17963: /* Override any GCC internal prototype to avoid an error.
17964:    Use char because int might match the return type of a GCC
17965:    builtin and then its argument prototype would still apply.  */
17966: #ifdef __cplusplus
17967: extern "C"
17968: #endif
17969: char gzdopen ();
17970: int
17971: main ()
17972: {
17973: return gzdopen ();
17974:   ;
17975:   return 0;
17976: }
17977: _ACEOF
17978: if ac_fn_c_try_link "$LINENO"; then :
17979:   ac_cv_lib_z_gzdopen=yes
17980: else
17981:   ac_cv_lib_z_gzdopen=no
17982: fi
17983: rm -f core conftest.err conftest.$ac_objext \
17984:     conftest$ac_exeext conftest.$ac_ext
17985: LIBS=$ac_check_lib_save_LIBS
17986: fi
17987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
17988: $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
17989: if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
17990: 
17991: 	    for ac_header in zlib.h
17992: do :
17993:   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17994: if test "x$ac_cv_header_zlib_h" = xyes; then :
17995:   cat >>confdefs.h <<_ACEOF
17996: #define HAVE_ZLIB_H 1
17997: _ACEOF
17998:  ZLIB="-lz"
17999: else
18000:   enable_zlib=builtin
18001: fi
18002: 
18003: done
18004: 
18005: 
18006: fi
18007: 
18008: 	;;
18009:     no)
18010: 	;;
18011:     system)
18012: 	$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18013: 
18014: 	ZLIB="-lz"
18015: 	;;
18016:     builtin)
18017: 	# handled below
18018: 	;;
18019:     *)
18020: 	$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18021: 
18022: 	CPPFLAGS="-I${enable_zlib}/include ${CPPFLAGS}"
18023: 
18024:     if test X"$with_rpath" = X"yes"; then
18025: 	case "$host" in
18026: 	    *-*-hpux*)	ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
18027: 			;;
18028: 	    *)		ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
18029: 			;;
18030: 	esac
18031:     else
18032: 	ZLIB="${ZLIB} -L$enable_zlib/lib"
18033:     fi
18034:     if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
18035: 	blibpath_add="${blibpath_add}:$enable_zlib/lib"
18036:     fi
18037: 
18038: 	ZLIB="${ZLIB} -lz"
18039: 	;;
18040: esac
18041: if test X"$enable_zlib" = X"builtin"; then
18042:     $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18043: 
18044:     CPPFLAGS='-I$(top_builddir)/zlib -I$(top_srcdir)/zlib '"${CPPFLAGS}"
18045:     ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
18046:     ZLIB_SRC=zlib
18047:     ac_config_headers="$ac_config_headers zlib/zconf.h"
18048: 
18049:     ac_config_files="$ac_config_files zlib/Makefile"
18050: 
18051: fi
18052: 
18053: ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
18054: $ac_includes_default
18055: #include <errno.h>
18056: 
18057: "
18058: if test "x$ac_cv_have_decl_errno" = xyes; then :
18059:   ac_have_decl=1
18060: else
18061:   ac_have_decl=0
18062: fi
18063: 
18064: cat >>confdefs.h <<_ACEOF
18065: #define HAVE_DECL_ERRNO $ac_have_decl
18066: _ACEOF
18067: 
18068: 
18069: ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
18070: $ac_includes_default
18071: #include <netdb.h>
18072: 
18073: "
18074: if test "x$ac_cv_have_decl_h_errno" = xyes; then :
18075:   ac_have_decl=1
18076: else
18077:   ac_have_decl=0
18078: fi
18079: 
18080: cat >>confdefs.h <<_ACEOF
18081: #define HAVE_DECL_H_ERRNO $ac_have_decl
18082: _ACEOF
18083: 
18084: 
18085: for ac_func in strsignal
18086: do :
18087:   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
18088: if test "x$ac_cv_func_strsignal" = xyes; then :
18089:   cat >>confdefs.h <<_ACEOF
18090: #define HAVE_STRSIGNAL 1
18091: _ACEOF
18092: 
18093: else
18094: 
18095:     case " $LIBOBJS " in
18096:   *" strsignal.$ac_objext "* ) ;;
18097:   *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
18098:  ;;
18099: esac
18100: 
18101:     HAVE_SIGLIST="false"
18102:     ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
18103: $ac_includes_default
18104: #include <signal.h>
18105: 
18106: "
18107: if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
18108:   ac_have_decl=1
18109: else
18110:   ac_have_decl=0
18111: fi
18112: 
18113: cat >>confdefs.h <<_ACEOF
18114: #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
18115: _ACEOF
18116: if test $ac_have_decl = 1; then :
18117: 
18118: 	HAVE_SIGLIST="true"
18119: 	break
18120: 
18121: fi
18122: ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
18123: $ac_includes_default
18124: #include <signal.h>
18125: 
18126: "
18127: if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
18128:   ac_have_decl=1
18129: else
18130:   ac_have_decl=0
18131: fi
18132: 
18133: cat >>confdefs.h <<_ACEOF
18134: #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
18135: _ACEOF
18136: if test $ac_have_decl = 1; then :
18137: 
18138: 	HAVE_SIGLIST="true"
18139: 	break
18140: 
18141: fi
18142: ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
18143: $ac_includes_default
18144: #include <signal.h>
18145: 
18146: "
18147: if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
18148:   ac_have_decl=1
18149: else
18150:   ac_have_decl=0
18151: fi
18152: 
18153: cat >>confdefs.h <<_ACEOF
18154: #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
18155: _ACEOF
18156: if test $ac_have_decl = 1; then :
18157: 
18158: 	HAVE_SIGLIST="true"
18159: 	break
18160: 
18161: fi
18162: 
18163:     if test "$HAVE_SIGLIST" != "true"; then
18164: 	case " $LIBOBJS " in
18165:   *" siglist.$ac_objext "* ) ;;
18166:   *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
18167:  ;;
18168: esac
18169: 
18170:     fi
18171: 
18172: fi
18173: done
18174: 
18175: 
18176: if test ${with_netsvc-"no"} != "no"; then
18177:     cat >>confdefs.h <<EOF
18178: #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
18179: EOF
18180: 
18181:     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
18182: elif test ${with_nsswitch-"yes"} != "no"; then
18183:     cat >>confdefs.h <<EOF
18184: #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
18185: EOF
18186: 
18187:     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
18188: fi
18189: 
18190: 
18191: if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
18192:     for auth in $AUTH_EXCL_DEF; do
18193: 	case $auth in
18194: 	    AIX_AUTH)	with_aixauth=maybe;;
18195: 	    BSD_AUTH)	with_bsdauth=maybe;;
18196: 	    PAM)	with_pam=maybe;;
18197: 	    SIA)	CHECKSIA=true;;
18198: 	esac
18199:     done
18200: fi
18201: 
18202: if test ${with_pam-"no"} != "no"; then
18203:     #
18204:     # Check for pam_start() in libpam first, then for pam_appl.h.
18205:     #
18206:     found_pam_lib=no
18207:     as_ac_Lib=`$as_echo "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | $as_tr_sh`
18208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18209: $as_echo_n "checking for pam_start in -lpam... " >&6; }
18210: if eval \${$as_ac_Lib+:} false; then :
18211:   $as_echo_n "(cached) " >&6
18212: else
18213:   ac_check_lib_save_LIBS=$LIBS
18214: LIBS="-lpam $lt_cv_dlopen_libs $LIBS"
18215: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216: /* end confdefs.h.  */
18217: 
18218: /* Override any GCC internal prototype to avoid an error.
18219:    Use char because int might match the return type of a GCC
18220:    builtin and then its argument prototype would still apply.  */
18221: #ifdef __cplusplus
18222: extern "C"
18223: #endif
18224: char pam_start ();
18225: int
18226: main ()
18227: {
18228: return pam_start ();
18229:   ;
18230:   return 0;
18231: }
18232: _ACEOF
18233: if ac_fn_c_try_link "$LINENO"; then :
18234:   eval "$as_ac_Lib=yes"
18235: else
18236:   eval "$as_ac_Lib=no"
18237: fi
18238: rm -f core conftest.err conftest.$ac_objext \
18239:     conftest$ac_exeext conftest.$ac_ext
18240: LIBS=$ac_check_lib_save_LIBS
18241: fi
18242: eval ac_res=\$$as_ac_Lib
18243: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18244: $as_echo "$ac_res" >&6; }
18245: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18246:   found_pam_lib=yes
18247: fi
18248: 
18249:     #
18250:     # Some PAM implementations (MacOS X for example) put the PAM headers
18251:     # in /usr/include/pam instead of /usr/include/security...
18252:     #
18253:     found_pam_hdrs=no
18254:     for ac_header in security/pam_appl.h pam/pam_appl.h
18255: do :
18256:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18257: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18258: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18259:   cat >>confdefs.h <<_ACEOF
18260: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18261: _ACEOF
18262:  found_pam_hdrs=yes; break
18263: fi
18264: 
18265: done
18266: 
18267:     if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"; then
18268: 	# Found both PAM libs and headers
18269: 	with_pam=yes
18270:     elif test "$with_pam" = "yes"; then
18271: 	if test "$found_pam_lib" = "no"; then
18272: 	    as_fn_error $? "\"--with-pam specified but unable to locate PAM development library.\"" "$LINENO" 5
18273: 	fi
18274: 	if test "$found_pam_hdrs" = "no"; then
18275: 	    as_fn_error $? "\"--with-pam specified but unable to locate PAM development headers.\"" "$LINENO" 5
18276: 	fi
18277:     elif test "$found_pam_lib" != "$found_pam_hdrs"; then
18278: 	if test "$found_pam_lib" = "no"; then
18279: 	    as_fn_error $? "\"found PAM headers but no PAM development library; specify --without-pam to build without PAM\"" "$LINENO" 5
18280: 	fi
18281: 	if test "$found_pam_hdrs" = "no"; then
18282: 	    as_fn_error $? "\"found PAM library but no PAM development headers; specify --without-pam to build without PAM\"" "$LINENO" 5
18283: 	fi
18284:     fi
18285: 
18286:     if test "$with_pam" = "yes"; then
18287: 	# Older PAM implementations lack pam_getenvlist
18288: 	OLIBS="$LIBS"
18289: 	LIBS="$LIBS -lpam $lt_cv_dlopen_libs"
18290: 	for ac_func in pam_getenvlist
18291: do :
18292:   ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
18293: if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
18294:   cat >>confdefs.h <<_ACEOF
18295: #define HAVE_PAM_GETENVLIST 1
18296: _ACEOF
18297: 
18298: fi
18299: done
18300: 
18301: 	LIBS="$OLIBS"
18302: 
18303: 	# We already link with -ldl if needed (see LIBDL below)
18304: 	SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
18305: 	$as_echo "#define HAVE_PAM 1" >>confdefs.h
18306: 
18307: 	AUTH_OBJS="$AUTH_OBJS pam.lo";
18308: 	AUTH_EXCL=PAM
18309: 
18310: 
18311: # Check whether --with-pam-login was given.
18312: if test "${with_pam_login+set}" = set; then :
18313:   withval=$with_pam_login; case $with_pam_login in
18314: 	    yes)	$as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
18315: 
18316: 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
18317: $as_echo_n "checking whether to use PAM login... " >&6; }
18318: 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18319: $as_echo "yes" >&6; }
18320: 			;;
18321: 	    no)		;;
18322: 	    *)		as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
18323: 			;;
18324: 	esac
18325: fi
18326: 
18327: 
18328: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
18329: $as_echo_n "checking whether to use PAM session support... " >&6; }
18330: 	# Check whether --enable-pam_session was given.
18331: if test "${enable_pam_session+set}" = set; then :
18332:   enableval=$enable_pam_session;  case "$enableval" in
18333: 		yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18334: $as_echo "yes" >&6; }
18335: 			;;
18336: 		no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18337: $as_echo "no" >&6; }
18338: 			    $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
18339: 
18340: 			    ;;
18341: 		*)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18342: $as_echo "no" >&6; }
18343: 			    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
18344: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
18345: 			    ;;
18346: 	    esac
18347: else
18348:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18349: $as_echo "yes" >&6; }
18350: fi
18351: 
18352:     fi
18353: fi
18354: 
18355: if test ${with_aixauth-'no'} != "no"; then
18356:     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
18357: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
18358: $as_echo "$as_me: using AIX general authentication" >&6;}
18359: 	$as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
18360: 
18361: 	AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
18362: 	SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
18363: 	AUTH_EXCL=AIX_AUTH
18364:     fi
18365: fi
18366: 
18367: if test ${with_bsdauth-'no'} != "no"; then
18368:     ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
18369: if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
18370:   $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
18371: 
18372: 	AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
18373: 	BSDAUTH_USAGE='[-a auth_type] '
18374: 	AUTH_EXCL=BSD_AUTH; BAMAN=1
18375: else
18376:   as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
18377: fi
18378: 
18379: 
18380: fi
18381: 
18382: if test ${CHECKSIA-'false'} = "true"; then
18383:     for ac_func in sia_ses_init
18384: do :
18385:   ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
18386: if test "x$ac_cv_func_sia_ses_init" = xyes; then :
18387:   cat >>confdefs.h <<_ACEOF
18388: #define HAVE_SIA_SES_INIT 1
18389: _ACEOF
18390:  found=true
18391: else
18392:   found=false
18393: fi
18394: done
18395: 
18396:     if test "$found" = "true"; then
18397: 	AUTH_EXCL=SIA
18398: 	AUTH_OBJS="$AUTH_OBJS sia.lo"
18399:     fi
18400: fi
18401: 
18402: if test ${with_fwtk-'no'} != "no"; then
18403:     if test "$with_fwtk" != "yes"; then
18404: 
18405:     if test X"$with_rpath" = X"yes"; then
18406: 	case "$host" in
18407: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
18408: 			;;
18409: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
18410: 			;;
18411: 	esac
18412:     else
18413: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
18414:     fi
18415:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18416: 	blibpath_add="${blibpath_add}:${with_fwtk}"
18417:     fi
18418: 
18419: 	CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
18420: 	with_fwtk=yes
18421:     fi
18422:     SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
18423:     AUTH_OBJS="$AUTH_OBJS fwtk.lo"
18424: fi
18425: 
18426: if test ${with_SecurID-'no'} != "no"; then
18427:     if test "$with_SecurID" != "yes"; then
18428: 	:
18429:     elif test -d /usr/ace/examples; then
18430: 	with_SecurID=/usr/ace/examples
18431:     else
18432: 	with_SecurID=/usr/ace
18433:     fi
18434:     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
18435: 
18436:     if test X"$with_rpath" = X"yes"; then
18437: 	case "$host" in
18438: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18439: 			;;
18440: 	    *)		LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18441: 			;;
18442: 	esac
18443:     else
18444: 	LDFLAGS="${LDFLAGS} -L${with_SecurID}"
18445:     fi
18446:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18447: 	blibpath_add="${blibpath_add}:${with_SecurID}"
18448:     fi
18449: 
18450:     SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
18451:     AUTH_OBJS="$AUTH_OBJS securid5.lo";
18452: fi
18453: 
18454: 
18455: if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
18456:     for auth in $AUTH_DEF; do
18457: 	case $auth in
18458: 	    passwd)	: ${with_passwd='maybe'};;
18459: 	esac
18460:     done
18461: fi
18462: 
18463: if test ${with_kerb5-'no'} != "no"; then
18464:     # Extract the first word of "krb5-config", so it can be a program name with args.
18465: set dummy krb5-config; ac_word=$2
18466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18467: $as_echo_n "checking for $ac_word... " >&6; }
18468: if ${ac_cv_prog_KRB5CONFIG+:} false; then :
18469:   $as_echo_n "(cached) " >&6
18470: else
18471:   if test -n "$KRB5CONFIG"; then
18472:   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
18473: else
18474: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18475: for as_dir in $PATH
18476: do
18477:   IFS=$as_save_IFS
18478:   test -z "$as_dir" && as_dir=.
18479:     for ac_exec_ext in '' $ac_executable_extensions; do
18480:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18481:     ac_cv_prog_KRB5CONFIG="yes"
18482:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18483:     break 2
18484:   fi
18485: done
18486:   done
18487: IFS=$as_save_IFS
18488: 
18489:   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
18490: fi
18491: fi
18492: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
18493: if test -n "$KRB5CONFIG"; then
18494:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
18495: $as_echo "$KRB5CONFIG" >&6; }
18496: else
18497:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18498: $as_echo "no" >&6; }
18499: fi
18500: 
18501: 
18502:     if test -n "$KRB5CONFIG"; then
18503: 	$as_echo "#define HAVE_KERB5 1" >>confdefs.h
18504: 
18505: 	AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18506: 	CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
18507: 	SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
18508: 				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18509: $as_echo_n "checking whether we are using Heimdal... " >&6; }
18510: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18511: /* end confdefs.h.  */
18512: #include <krb5.h>
18513: int
18514: main ()
18515: {
18516: const char *tmp = heimdal_version;
18517:   ;
18518:   return 0;
18519: }
18520: _ACEOF
18521: if ac_fn_c_try_compile "$LINENO"; then :
18522: 
18523: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18524: $as_echo "yes" >&6; }
18525: 		$as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18526: 
18527: 
18528: else
18529: 
18530: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18531: $as_echo "no" >&6; }
18532: 
18533: 
18534: fi
18535: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18536:     else
18537: 	$as_echo "#define HAVE_KERB5 1" >>confdefs.h
18538: 
18539: 				if test "$with_kerb5" = "yes"; then
18540: 	    found=no
18541: 	    O_CPPFLAGS="$CPPFLAGS"
18542: 	    for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
18543: 		CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18544: 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545: /* end confdefs.h.  */
18546: #include <krb5.h>
18547: int
18548: main ()
18549: {
18550: 
18551:   ;
18552:   return 0;
18553: }
18554: _ACEOF
18555: if ac_fn_c_try_cpp "$LINENO"; then :
18556:   found=yes; break
18557: fi
18558: rm -f conftest.err conftest.i conftest.$ac_ext
18559: 	    done
18560: 	    if test X"$found" = X"no"; then
18561: 		CPPFLAGS="$O_CPPFLAGS"
18562: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
18563: $as_echo "$as_me: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
18564: 	    fi
18565: 	else
18566: 
18567:     if test X"$with_rpath" = X"yes"; then
18568: 	case "$host" in
18569: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
18570: 			;;
18571: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
18572: 			;;
18573: 	esac
18574:     else
18575: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
18576:     fi
18577:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18578: 	blibpath_add="${blibpath_add}:${with_kerb5}/lib"
18579:     fi
18580: 
18581: 	    CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
18582: 	fi
18583: 
18584: 				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18585: $as_echo_n "checking whether we are using Heimdal... " >&6; }
18586: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587: /* end confdefs.h.  */
18588: #include <krb5.h>
18589: int
18590: main ()
18591: {
18592: const char *tmp = heimdal_version;
18593:   ;
18594:   return 0;
18595: }
18596: _ACEOF
18597: if ac_fn_c_try_compile "$LINENO"; then :
18598: 
18599: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18600: $as_echo "yes" >&6; }
18601: 		$as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18602: 
18603: 		# XXX - need to check whether -lcrypo is needed!
18604: 		SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
18605: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18606: $as_echo_n "checking for main in -lroken... " >&6; }
18607: if ${ac_cv_lib_roken_main+:} false; then :
18608:   $as_echo_n "(cached) " >&6
18609: else
18610:   ac_check_lib_save_LIBS=$LIBS
18611: LIBS="-lroken  $LIBS"
18612: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18613: /* end confdefs.h.  */
18614: 
18615: 
18616: int
18617: main ()
18618: {
18619: return main ();
18620:   ;
18621:   return 0;
18622: }
18623: _ACEOF
18624: if ac_fn_c_try_link "$LINENO"; then :
18625:   ac_cv_lib_roken_main=yes
18626: else
18627:   ac_cv_lib_roken_main=no
18628: fi
18629: rm -f core conftest.err conftest.$ac_objext \
18630:     conftest$ac_exeext conftest.$ac_ext
18631: LIBS=$ac_check_lib_save_LIBS
18632: fi
18633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18634: $as_echo "$ac_cv_lib_roken_main" >&6; }
18635: if test "x$ac_cv_lib_roken_main" = xyes; then :
18636:   SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
18637: fi
18638: 
18639: 
18640: else
18641: 
18642: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18643: $as_echo "no" >&6; }
18644: 		SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
18645: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
18646: $as_echo_n "checking for main in -lkrb5support... " >&6; }
18647: if ${ac_cv_lib_krb5support_main+:} false; then :
18648:   $as_echo_n "(cached) " >&6
18649: else
18650:   ac_check_lib_save_LIBS=$LIBS
18651: LIBS="-lkrb5support  $LIBS"
18652: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653: /* end confdefs.h.  */
18654: 
18655: 
18656: int
18657: main ()
18658: {
18659: return main ();
18660:   ;
18661:   return 0;
18662: }
18663: _ACEOF
18664: if ac_fn_c_try_link "$LINENO"; then :
18665:   ac_cv_lib_krb5support_main=yes
18666: else
18667:   ac_cv_lib_krb5support_main=no
18668: fi
18669: rm -f core conftest.err conftest.$ac_objext \
18670:     conftest$ac_exeext conftest.$ac_ext
18671: LIBS=$ac_check_lib_save_LIBS
18672: fi
18673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
18674: $as_echo "$ac_cv_lib_krb5support_main" >&6; }
18675: if test "x$ac_cv_lib_krb5support_main" = xyes; then :
18676:   SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
18677: fi
18678: 
18679: 
18680: fi
18681: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18682: 	AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18683:     fi
18684:     _LIBS="$LIBS"
18685:     LIBS="${LIBS} ${SUDOERS_LIBS}"
18686:     for ac_func in krb5_verify_user krb5_init_secure_context
18687: do :
18688:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18689: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18690: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18691:   cat >>confdefs.h <<_ACEOF
18692: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18693: _ACEOF
18694: 
18695: fi
18696: done
18697: 
18698:     for ac_func in krb5_get_init_creds_opt_alloc
18699: do :
18700:   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
18701: if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
18702:   cat >>confdefs.h <<_ACEOF
18703: #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
18704: _ACEOF
18705: 
18706: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
18707: $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
18708: if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
18709:   $as_echo_n "(cached) " >&6
18710: else
18711: 
18712: 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713: /* end confdefs.h.  */
18714: #include <krb5.h>
18715: int
18716: main ()
18717: {
18718: krb5_get_init_creds_opt_free(NULL, NULL);
18719: 
18720:   ;
18721:   return 0;
18722: }
18723: _ACEOF
18724: if ac_fn_c_try_compile "$LINENO"; then :
18725:   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
18726: else
18727:   sudo_cv_krb5_get_init_creds_opt_free_two_args=no
18728: 
18729: fi
18730: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18731: 
18732: 
18733: fi
18734: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
18735: $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
18736: 
18737: fi
18738: done
18739: 
18740:     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
18741:   	$as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
18742: 
18743:     fi
18744:     LIBS="$_LIBS"
18745:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an instance name for Kerberos V" >&5
18746: $as_echo_n "checking whether to use an instance name for Kerberos V... " >&6; }
18747:     # Check whether --enable-kerb5-instance was given.
18748: if test "${enable_kerb5_instance+set}" = set; then :
18749:   enableval=$enable_kerb5_instance;  case "$enableval" in
18750: 	    yes)	as_fn_error $? "\"must give --enable-kerb5-instance an argument.\"" "$LINENO" 5
18751: 			;;
18752: 	    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18753: $as_echo "no" >&6; }
18754: 			;;
18755: 	    *)		cat >>confdefs.h <<EOF
18756: #define SUDO_KRB5_INSTANCE "$enableval"
18757: EOF
18758: 
18759: 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
18760: $as_echo "$enableval" >&6; }
18761: 			;;
18762: 	esac
18763: else
18764:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18765: $as_echo "no" >&6; }
18766: fi
18767: 
18768: fi
18769: 
18770: if test ${with_AFS-'no'} = "yes"; then
18771: 
18772:     # looks like the "standard" place for AFS libs is /usr/afsws/lib
18773:     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
18774:     for i in $AFSLIBDIRS; do
18775: 	if test -d ${i}; then
18776: 
18777:     if test X"$with_rpath" = X"yes"; then
18778: 	case "$host" in
18779: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,+b,$i"
18780: 			;;
18781: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,-R$i"
18782: 			;;
18783: 	esac
18784:     else
18785: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
18786:     fi
18787:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18788: 	blibpath_add="${blibpath_add}:$i"
18789:     fi
18790: 
18791: 	    FOUND_AFSLIBDIR=true
18792: 	fi
18793:     done
18794:     if test -z "$FOUND_AFSLIBDIR"; then
18795: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&5
18796: $as_echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
18797:     fi
18798: 
18799:     # Order is important here.  Note that we build AFS_LIBS from right to left
18800:     # since AFS_LIBS may be initialized with BSD compat libs that must go last
18801:     AFS_LIBS="-laudit ${AFS_LIBS}"
18802:     for i in $AFSLIBDIRS; do
18803: 	if test -f ${i}/util.a; then
18804: 	    AFS_LIBS="${i}/util.a ${AFS_LIBS}"
18805: 	    FOUND_UTIL_A=true
18806: 	    break;
18807: 	fi
18808:     done
18809:     if test -z "$FOUND_UTIL_A"; then
18810: 	AFS_LIBS="-lutil ${AFS_LIBS}"
18811:     fi
18812:     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
18813: 
18814:     # AFS includes may live in /usr/include on some machines...
18815:     for i in /usr/afsws/include; do
18816: 	if test -d ${i}; then
18817: 	    CPPFLAGS="${CPPFLAGS} -I${i}"
18818: 	    FOUND_AFSINCDIR=true
18819: 	fi
18820:     done
18821: 
18822:     if test -z "$FOUND_AFSLIBDIR"; then
18823: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&5
18824: $as_echo "$as_me: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&2;}
18825:     fi
18826: 
18827:     AUTH_OBJS="$AUTH_OBJS afs.lo"
18828: fi
18829: 
18830: if test ${with_DCE-'no'} = "yes"; then
18831:     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
18832:     SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
18833:     AUTH_OBJS="$AUTH_OBJS dce.lo"
18834: fi
18835: 
18836: if test "${with_skey-'no'}" = "yes"; then
18837:     O_LDFLAGS="$LDFLAGS"
18838:     if test "$with_skey" != "yes"; then
18839: 	CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
18840: 
18841:     if test X"$with_rpath" = X"yes"; then
18842: 	case "$host" in
18843: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18844: 			;;
18845: 	    *)		LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18846: 			;;
18847: 	esac
18848:     else
18849: 	LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
18850:     fi
18851:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18852: 	blibpath_add="${blibpath_add}:${with_skey}/lib"
18853:     fi
18854: 
18855: 
18856:     if test X"$with_rpath" = X"yes"; then
18857: 	case "$host" in
18858: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18859: 			;;
18860: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18861: 			;;
18862: 	esac
18863:     else
18864: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
18865:     fi
18866:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18867: 	blibpath_add="${blibpath_add}:${with_skey}/lib"
18868:     fi
18869: 
18870: 	ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18871: "
18872: if test "x$ac_cv_header_skey_h" = xyes; then :
18873:   found=yes
18874: else
18875:   found=no
18876: fi
18877: 
18878: 
18879:     else
18880: 	found=no
18881: 	O_CPPFLAGS="$CPPFLAGS"
18882: 	for dir in "" "/usr/local" "/usr/contrib"; do
18883: 	    test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
18884: 	    ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18885: "
18886: if test "x$ac_cv_header_skey_h" = xyes; then :
18887:   found=yes; break
18888: fi
18889: 
18890: 
18891: 	done
18892: 	if test "$found" = "no" -o -z "$dir"; then
18893: 	    CPPFLAGS="$O_CPPFLAGS"
18894: 	else
18895: 
18896:     if test X"$with_rpath" = X"yes"; then
18897: 	case "$host" in
18898: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18899: 			;;
18900: 	    *)		LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18901: 			;;
18902: 	esac
18903:     else
18904: 	LDFLAGS="${LDFLAGS} -L${dir}/lib"
18905:     fi
18906:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18907: 	blibpath_add="${blibpath_add}:${dir}/lib"
18908:     fi
18909: 
18910: 
18911:     if test X"$with_rpath" = X"yes"; then
18912: 	case "$host" in
18913: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18914: 			;;
18915: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18916: 			;;
18917: 	esac
18918:     else
18919: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
18920:     fi
18921:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18922: 	blibpath_add="${blibpath_add}:${dir}/lib"
18923:     fi
18924: 
18925: 	fi
18926: 	if test "$found" = "no"; then
18927: 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
18928: $as_echo "$as_me: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&2;}
18929: 	fi
18930:     fi
18931:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
18932: $as_echo_n "checking for main in -lskey... " >&6; }
18933: if ${ac_cv_lib_skey_main+:} false; then :
18934:   $as_echo_n "(cached) " >&6
18935: else
18936:   ac_check_lib_save_LIBS=$LIBS
18937: LIBS="-lskey  $LIBS"
18938: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18939: /* end confdefs.h.  */
18940: 
18941: 
18942: int
18943: main ()
18944: {
18945: return main ();
18946:   ;
18947:   return 0;
18948: }
18949: _ACEOF
18950: if ac_fn_c_try_link "$LINENO"; then :
18951:   ac_cv_lib_skey_main=yes
18952: else
18953:   ac_cv_lib_skey_main=no
18954: fi
18955: rm -f core conftest.err conftest.$ac_objext \
18956:     conftest$ac_exeext conftest.$ac_ext
18957: LIBS=$ac_check_lib_save_LIBS
18958: fi
18959: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
18960: $as_echo "$ac_cv_lib_skey_main" >&6; }
18961: if test "x$ac_cv_lib_skey_main" = xyes; then :
18962:   found=yes
18963: else
18964:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDOERS_LDFLAGS" >&5
18965: $as_echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDOERS_LDFLAGS" >&2;}
18966: fi
18967: 
18968:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
18969: $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
18970: if ${ac_cv_lib_skey_skeyaccess+:} false; then :
18971:   $as_echo_n "(cached) " >&6
18972: else
18973:   ac_check_lib_save_LIBS=$LIBS
18974: LIBS="-lskey  $LIBS"
18975: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18976: /* end confdefs.h.  */
18977: 
18978: /* Override any GCC internal prototype to avoid an error.
18979:    Use char because int might match the return type of a GCC
18980:    builtin and then its argument prototype would still apply.  */
18981: #ifdef __cplusplus
18982: extern "C"
18983: #endif
18984: char skeyaccess ();
18985: int
18986: main ()
18987: {
18988: return skeyaccess ();
18989:   ;
18990:   return 0;
18991: }
18992: _ACEOF
18993: if ac_fn_c_try_link "$LINENO"; then :
18994:   ac_cv_lib_skey_skeyaccess=yes
18995: else
18996:   ac_cv_lib_skey_skeyaccess=no
18997: fi
18998: rm -f core conftest.err conftest.$ac_objext \
18999:     conftest$ac_exeext conftest.$ac_ext
19000: LIBS=$ac_check_lib_save_LIBS
19001: fi
19002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
19003: $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
19004: if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
19005:   $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
19006: 
19007: fi
19008: 
19009: 
19010:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
19011: $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
19012:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013: /* end confdefs.h.  */
19014: #include <stdio.h>
19015: 	    #include <skey.h>
19016: int
19017: main ()
19018: {
19019: skeychallenge(NULL, NULL, NULL, 0);
19020: 
19021:   ;
19022:   return 0;
19023: }
19024: _ACEOF
19025: if ac_fn_c_try_compile "$LINENO"; then :
19026: 
19027: 	    $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
19028: 
19029: 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19030: $as_echo "yes" >&6; }
19031: 
19032: else
19033: 
19034: 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19035: $as_echo "no" >&6; }
19036: 
19037: 
19038: fi
19039: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19040: 
19041:     LDFLAGS="$O_LDFLAGS"
19042:     SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
19043:     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19044: fi
19045: 
19046: if test "${with_opie-'no'}" = "yes"; then
19047:     O_LDFLAGS="$LDFLAGS"
19048:     if test "$with_opie" != "yes"; then
19049: 	CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
19050: 
19051:     if test X"$with_rpath" = X"yes"; then
19052: 	case "$host" in
19053: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
19054: 			;;
19055: 	    *)		LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
19056: 			;;
19057: 	esac
19058:     else
19059: 	LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
19060:     fi
19061:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19062: 	blibpath_add="${blibpath_add}:${with_opie}/lib"
19063:     fi
19064: 
19065: 
19066:     if test X"$with_rpath" = X"yes"; then
19067: 	case "$host" in
19068: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
19069: 			;;
19070: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
19071: 			;;
19072: 	esac
19073:     else
19074: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
19075:     fi
19076:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19077: 	blibpath_add="${blibpath_add}:${with_opie}/lib"
19078:     fi
19079: 
19080: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19081: /* end confdefs.h.  */
19082: #include <opie.h>
19083: int
19084: main ()
19085: {
19086: 
19087:   ;
19088:   return 0;
19089: }
19090: _ACEOF
19091: if ac_fn_c_try_cpp "$LINENO"; then :
19092:   found=yes
19093: else
19094:   found=no
19095: fi
19096: rm -f conftest.err conftest.i conftest.$ac_ext
19097:     else
19098: 	found=no
19099: 	O_CPPFLAGS="$CPPFLAGS"
19100: 	for dir in "" "/usr/local" "/usr/contrib"; do
19101: 	    test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19102: 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19103: /* end confdefs.h.  */
19104: #include <opie.h>
19105: int
19106: main ()
19107: {
19108: 
19109:   ;
19110:   return 0;
19111: }
19112: _ACEOF
19113: if ac_fn_c_try_cpp "$LINENO"; then :
19114:   found=yes; break
19115: fi
19116: rm -f conftest.err conftest.i conftest.$ac_ext
19117: 	done
19118: 	if test "$found" = "no" -o -z "$dir"; then
19119: 	    CPPFLAGS="$O_CPPFLAGS"
19120: 	else
19121: 
19122:     if test X"$with_rpath" = X"yes"; then
19123: 	case "$host" in
19124: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19125: 			;;
19126: 	    *)		LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19127: 			;;
19128: 	esac
19129:     else
19130: 	LDFLAGS="${LDFLAGS} -L${dir}/lib"
19131:     fi
19132:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19133: 	blibpath_add="${blibpath_add}:${dir}/lib"
19134:     fi
19135: 
19136: 
19137:     if test X"$with_rpath" = X"yes"; then
19138: 	case "$host" in
19139: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19140: 			;;
19141: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19142: 			;;
19143: 	esac
19144:     else
19145: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19146:     fi
19147:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19148: 	blibpath_add="${blibpath_add}:${dir}/lib"
19149:     fi
19150: 
19151: 	fi
19152: 	if test "$found" = "no"; then
19153: 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
19154: $as_echo "$as_me: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&2;}
19155: 	fi
19156:     fi
19157:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
19158: $as_echo_n "checking for main in -lopie... " >&6; }
19159: if ${ac_cv_lib_opie_main+:} false; then :
19160:   $as_echo_n "(cached) " >&6
19161: else
19162:   ac_check_lib_save_LIBS=$LIBS
19163: LIBS="-lopie  $LIBS"
19164: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165: /* end confdefs.h.  */
19166: 
19167: 
19168: int
19169: main ()
19170: {
19171: return main ();
19172:   ;
19173:   return 0;
19174: }
19175: _ACEOF
19176: if ac_fn_c_try_link "$LINENO"; then :
19177:   ac_cv_lib_opie_main=yes
19178: else
19179:   ac_cv_lib_opie_main=no
19180: fi
19181: rm -f core conftest.err conftest.$ac_objext \
19182:     conftest$ac_exeext conftest.$ac_ext
19183: LIBS=$ac_check_lib_save_LIBS
19184: fi
19185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
19186: $as_echo "$ac_cv_lib_opie_main" >&6; }
19187: if test "x$ac_cv_lib_opie_main" = xyes; then :
19188:   found=yes
19189: else
19190:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDOERS_LDFLAGS" >&5
19191: $as_echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDOERS_LDFLAGS" >&2;}
19192: fi
19193: 
19194:     LDFLAGS="$O_LDFLAGS"
19195:     SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
19196:     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19197: fi
19198: 
19199: if test ${with_passwd-'no'} != "no"; then
19200:                 if test -z "$LIB_CRYPT"; then
19201: 	_LIBS="$LIBS"
19202: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19203: $as_echo_n "checking for library containing crypt... " >&6; }
19204: if ${ac_cv_search_crypt+:} false; then :
19205:   $as_echo_n "(cached) " >&6
19206: else
19207:   ac_func_search_save_LIBS=$LIBS
19208: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19209: /* end confdefs.h.  */
19210: 
19211: /* Override any GCC internal prototype to avoid an error.
19212:    Use char because int might match the return type of a GCC
19213:    builtin and then its argument prototype would still apply.  */
19214: #ifdef __cplusplus
19215: extern "C"
19216: #endif
19217: char crypt ();
19218: int
19219: main ()
19220: {
19221: return crypt ();
19222:   ;
19223:   return 0;
19224: }
19225: _ACEOF
19226: for ac_lib in '' crypt crypt_d ufc; do
19227:   if test -z "$ac_lib"; then
19228:     ac_res="none required"
19229:   else
19230:     ac_res=-l$ac_lib
19231:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19232:   fi
19233:   if ac_fn_c_try_link "$LINENO"; then :
19234:   ac_cv_search_crypt=$ac_res
19235: fi
19236: rm -f core conftest.err conftest.$ac_objext \
19237:     conftest$ac_exeext
19238:   if ${ac_cv_search_crypt+:} false; then :
19239:   break
19240: fi
19241: done
19242: if ${ac_cv_search_crypt+:} false; then :
19243: 
19244: else
19245:   ac_cv_search_crypt=no
19246: fi
19247: rm conftest.$ac_ext
19248: LIBS=$ac_func_search_save_LIBS
19249: fi
19250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19251: $as_echo "$ac_cv_search_crypt" >&6; }
19252: ac_res=$ac_cv_search_crypt
19253: if test "$ac_res" != no; then :
19254:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19255:   test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19256: fi
19257: 
19258: 	LIBS="$_LIBS"
19259:     fi
19260: 
19261:     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
19262: 	_LIBS="$LIBS"
19263: 	LIBS="$LIBS $shadow_libs"
19264: 	found=no
19265: 	for ac_func in $shadow_funcs
19266: do :
19267:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19268: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19269: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19270:   cat >>confdefs.h <<_ACEOF
19271: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19272: _ACEOF
19273:  found=yes
19274: fi
19275: done
19276: 
19277: 	if test "$found" = "yes"; then
19278: 	    SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
19279: 	elif test -n "$shadow_libs_optional"; then
19280: 	    LIBS="$LIBS $shadow_libs_optional"
19281: 	    for ac_func in $shadow_funcs
19282: do :
19283:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19284: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19285: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19286:   cat >>confdefs.h <<_ACEOF
19287: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19288: _ACEOF
19289:  found=yes
19290: fi
19291: done
19292: 
19293: 	    if test "$found" = "yes"; then
19294: 		SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
19295: 	    fi
19296: 	fi
19297: 	if test "$found" = "yes"; then
19298: 	    case "$shadow_funcs" in
19299: 		*getprpwnam*) SECUREWARE=1;;
19300: 	    esac
19301: 	    test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
19302: 	else
19303: 	    LIBS="$_LIBS"
19304: 	fi
19305: 	CHECKSHADOW=false
19306:     fi
19307:     if test "$CHECKSHADOW" = "true"; then
19308: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
19309: $as_echo_n "checking for library containing getspnam... " >&6; }
19310: if ${ac_cv_search_getspnam+:} false; then :
19311:   $as_echo_n "(cached) " >&6
19312: else
19313:   ac_func_search_save_LIBS=$LIBS
19314: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19315: /* end confdefs.h.  */
19316: 
19317: /* Override any GCC internal prototype to avoid an error.
19318:    Use char because int might match the return type of a GCC
19319:    builtin and then its argument prototype would still apply.  */
19320: #ifdef __cplusplus
19321: extern "C"
19322: #endif
19323: char getspnam ();
19324: int
19325: main ()
19326: {
19327: return getspnam ();
19328:   ;
19329:   return 0;
19330: }
19331: _ACEOF
19332: for ac_lib in '' gen; do
19333:   if test -z "$ac_lib"; then
19334:     ac_res="none required"
19335:   else
19336:     ac_res=-l$ac_lib
19337:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19338:   fi
19339:   if ac_fn_c_try_link "$LINENO"; then :
19340:   ac_cv_search_getspnam=$ac_res
19341: fi
19342: rm -f core conftest.err conftest.$ac_objext \
19343:     conftest$ac_exeext
19344:   if ${ac_cv_search_getspnam+:} false; then :
19345:   break
19346: fi
19347: done
19348: if ${ac_cv_search_getspnam+:} false; then :
19349: 
19350: else
19351:   ac_cv_search_getspnam=no
19352: fi
19353: rm conftest.$ac_ext
19354: LIBS=$ac_func_search_save_LIBS
19355: fi
19356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
19357: $as_echo "$ac_cv_search_getspnam" >&6; }
19358: ac_res=$ac_cv_search_getspnam
19359: if test "$ac_res" != no; then :
19360:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19361:   $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
19362:  CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19363: fi
19364: 
19365:     fi
19366:     if test "$CHECKSHADOW" = "true"; then
19367: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
19368: $as_echo_n "checking for library containing getprpwnam... " >&6; }
19369: if ${ac_cv_search_getprpwnam+:} false; then :
19370:   $as_echo_n "(cached) " >&6
19371: else
19372:   ac_func_search_save_LIBS=$LIBS
19373: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19374: /* end confdefs.h.  */
19375: 
19376: /* Override any GCC internal prototype to avoid an error.
19377:    Use char because int might match the return type of a GCC
19378:    builtin and then its argument prototype would still apply.  */
19379: #ifdef __cplusplus
19380: extern "C"
19381: #endif
19382: char getprpwnam ();
19383: int
19384: main ()
19385: {
19386: return getprpwnam ();
19387:   ;
19388:   return 0;
19389: }
19390: _ACEOF
19391: for ac_lib in '' sec security prot; do
19392:   if test -z "$ac_lib"; then
19393:     ac_res="none required"
19394:   else
19395:     ac_res=-l$ac_lib
19396:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19397:   fi
19398:   if ac_fn_c_try_link "$LINENO"; then :
19399:   ac_cv_search_getprpwnam=$ac_res
19400: fi
19401: rm -f core conftest.err conftest.$ac_objext \
19402:     conftest$ac_exeext
19403:   if ${ac_cv_search_getprpwnam+:} false; then :
19404:   break
19405: fi
19406: done
19407: if ${ac_cv_search_getprpwnam+:} false; then :
19408: 
19409: else
19410:   ac_cv_search_getprpwnam=no
19411: fi
19412: rm conftest.$ac_ext
19413: LIBS=$ac_func_search_save_LIBS
19414: fi
19415: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
19416: $as_echo "$ac_cv_search_getprpwnam" >&6; }
19417: ac_res=$ac_cv_search_getprpwnam
19418: if test "$ac_res" != no; then :
19419:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19420:   $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
19421:  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19422: fi
19423: 
19424:     fi
19425:     if test -n "$SECUREWARE"; then
19426: 	for ac_func in bigcrypt set_auth_parameters initprivs
19427: do :
19428:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19429: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19430: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19431:   cat >>confdefs.h <<_ACEOF
19432: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19433: _ACEOF
19434: 
19435: fi
19436: done
19437: 
19438: 	AUTH_OBJS="$AUTH_OBJS secureware.lo"
19439:     fi
19440: fi
19441: 
19442: if test ${with_ldap-'no'} != "no"; then
19443:     _LDFLAGS="$LDFLAGS"
19444:     if test "$with_ldap" != "yes"; then
19445: 
19446:     if test X"$with_rpath" = X"yes"; then
19447: 	case "$host" in
19448: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19449: 			;;
19450: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19451: 			;;
19452: 	esac
19453:     else
19454: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
19455:     fi
19456:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19457: 	blibpath_add="${blibpath_add}:${with_ldap}/lib"
19458:     fi
19459: 
19460: 
19461:     if test X"$with_rpath" = X"yes"; then
19462: 	case "$host" in
19463: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19464: 			;;
19465: 	    *)		LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19466: 			;;
19467: 	esac
19468:     else
19469: 	LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
19470:     fi
19471:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19472: 	blibpath_add="${blibpath_add}:${with_ldap}/lib"
19473:     fi
19474: 
19475: 	CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19476: 	with_ldap=yes
19477:     fi
19478:     SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
19479:     LDAP=""
19480: 
19481:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
19482: $as_echo_n "checking for LDAP libraries... " >&6; }
19483:     LDAP_LIBS=""
19484:     _LIBS="$LIBS"
19485:     found=no
19486:     for l in -lldap -llber '-lssl -lcrypto'; do
19487: 	LIBS="${LIBS} $l"
19488: 	LDAP_LIBS="${LDAP_LIBS} $l"
19489: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19490: /* end confdefs.h.  */
19491: #include <sys/types.h>
19492: 	#include <lber.h>
19493: 	#include <ldap.h>
19494: int
19495: main ()
19496: {
19497: (void)ldap_init(0, 0)
19498:   ;
19499:   return 0;
19500: }
19501: _ACEOF
19502: if ac_fn_c_try_link "$LINENO"; then :
19503:   found=yes; break
19504: fi
19505: rm -f core conftest.err conftest.$ac_objext \
19506:     conftest$ac_exeext conftest.$ac_ext
19507:     done
19508:     if test "$found" = "no"; then
19509: 	LDAP_LIBS=""
19510: 	LIBS="$_LIBS"
19511: 	for l in -libmldap -lidsldif; do
19512: 	    LIBS="${LIBS} $l"
19513: 	    LDAP_LIBS="${LDAP_LIBS} $l"
19514: 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19515: /* end confdefs.h.  */
19516: #include <sys/types.h>
19517: 	    #include <lber.h>
19518: 	    #include <ldap.h>
19519: int
19520: main ()
19521: {
19522: (void)ldap_init(0, 0)
19523:   ;
19524:   return 0;
19525: }
19526: _ACEOF
19527: if ac_fn_c_try_link "$LINENO"; then :
19528:   found=yes; break
19529: fi
19530: rm -f core conftest.err conftest.$ac_objext \
19531:     conftest$ac_exeext conftest.$ac_ext
19532: 	done
19533:     fi
19534:         if test "$found" = "no"; then
19535: 	LIBS="${_LIBS} -lldap"
19536: 	LDAP_LIBS="-lldap"
19537: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
19538: $as_echo "not found, using -lldap" >&6; }
19539:     else
19540: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
19541: $as_echo "$LDAP_LIBS" >&6; }
19542:     fi
19543:         OLIBS="$LIBS"
19544:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
19545: $as_echo_n "checking for library containing ber_set_option... " >&6; }
19546: if ${ac_cv_search_ber_set_option+:} false; then :
19547:   $as_echo_n "(cached) " >&6
19548: else
19549:   ac_func_search_save_LIBS=$LIBS
19550: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19551: /* end confdefs.h.  */
19552: 
19553: /* Override any GCC internal prototype to avoid an error.
19554:    Use char because int might match the return type of a GCC
19555:    builtin and then its argument prototype would still apply.  */
19556: #ifdef __cplusplus
19557: extern "C"
19558: #endif
19559: char ber_set_option ();
19560: int
19561: main ()
19562: {
19563: return ber_set_option ();
19564:   ;
19565:   return 0;
19566: }
19567: _ACEOF
19568: for ac_lib in '' lber; do
19569:   if test -z "$ac_lib"; then
19570:     ac_res="none required"
19571:   else
19572:     ac_res=-l$ac_lib
19573:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19574:   fi
19575:   if ac_fn_c_try_link "$LINENO"; then :
19576:   ac_cv_search_ber_set_option=$ac_res
19577: fi
19578: rm -f core conftest.err conftest.$ac_objext \
19579:     conftest$ac_exeext
19580:   if ${ac_cv_search_ber_set_option+:} false; then :
19581:   break
19582: fi
19583: done
19584: if ${ac_cv_search_ber_set_option+:} false; then :
19585: 
19586: else
19587:   ac_cv_search_ber_set_option=no
19588: fi
19589: rm conftest.$ac_ext
19590: LIBS=$ac_func_search_save_LIBS
19591: fi
19592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
19593: $as_echo "$ac_cv_search_ber_set_option" >&6; }
19594: ac_res=$ac_cv_search_ber_set_option
19595: if test "$ac_res" != no; then :
19596:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19597:   found=yes
19598: else
19599:   found=no
19600: fi
19601: 
19602:     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
19603: 	LDAP_LIBS="$LDAP_LIBS -llber"
19604:     fi
19605:         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
19606: $as_echo_n "checking whether lber.h is needed... " >&6; }
19607:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608: /* end confdefs.h.  */
19609: #include <sys/types.h>
19610:     #include <ldap.h>
19611: int
19612: main ()
19613: {
19614: (void)ldap_init(0, 0)
19615:   ;
19616:   return 0;
19617: }
19618: _ACEOF
19619: if ac_fn_c_try_link "$LINENO"; then :
19620:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19621: $as_echo "no" >&6; }
19622: else
19623: 
19624:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19625: $as_echo "yes" >&6; }
19626:     $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
19627: 
19628: fi
19629: rm -f core conftest.err conftest.$ac_objext \
19630:     conftest$ac_exeext conftest.$ac_ext
19631: 
19632:     for ac_header in sasl/sasl.h sasl.h
19633: do :
19634:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19635: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19636: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19637:   cat >>confdefs.h <<_ACEOF
19638: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19639: _ACEOF
19640:  for ac_func in ldap_sasl_interactive_bind_s
19641: do :
19642:   ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
19643: if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
19644:   cat >>confdefs.h <<_ACEOF
19645: #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
19646: _ACEOF
19647: 
19648: fi
19649: done
19650: 
19651: else
19652:   break
19653: fi
19654: 
19655: done
19656: 
19657:     for ac_header in ldap_ssl.h mps/ldap_ssl.h
19658: do :
19659:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19660: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
19661: "
19662: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19663:   cat >>confdefs.h <<_ACEOF
19664: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19665: _ACEOF
19666:  break
19667: fi
19668: 
19669: done
19670: 
19671:     for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
19672: do :
19673:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19674: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19675: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19676:   cat >>confdefs.h <<_ACEOF
19677: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19678: _ACEOF
19679: 
19680: fi
19681: done
19682: 
19683:     for ac_func in ldap_search_ext_s ldap_search_st
19684: do :
19685:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19686: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19687: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19688:   cat >>confdefs.h <<_ACEOF
19689: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19690: _ACEOF
19691:  break
19692: fi
19693: done
19694: 
19695: 
19696:     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
19697: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
19698: $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
19699: if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
19700:   $as_echo_n "(cached) " >&6
19701: else
19702:   ac_check_lib_save_LIBS=$LIBS
19703: LIBS="-lgssapi  $LIBS"
19704: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705: /* end confdefs.h.  */
19706: 
19707: /* Override any GCC internal prototype to avoid an error.
19708:    Use char because int might match the return type of a GCC
19709:    builtin and then its argument prototype would still apply.  */
19710: #ifdef __cplusplus
19711: extern "C"
19712: #endif
19713: char gss_krb5_ccache_name ();
19714: int
19715: main ()
19716: {
19717: return gss_krb5_ccache_name ();
19718:   ;
19719:   return 0;
19720: }
19721: _ACEOF
19722: if ac_fn_c_try_link "$LINENO"; then :
19723:   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
19724: else
19725:   ac_cv_lib_gssapi_gss_krb5_ccache_name=no
19726: fi
19727: rm -f core conftest.err conftest.$ac_objext \
19728:     conftest$ac_exeext conftest.$ac_ext
19729: LIBS=$ac_check_lib_save_LIBS
19730: fi
19731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
19732: $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
19733: if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
19734:   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19735: 
19736: 	    LDAP_LIBS="${LDAP_LIBS} -lgssapi"
19737: else
19738:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
19739: $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
19740: if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
19741:   $as_echo_n "(cached) " >&6
19742: else
19743:   ac_check_lib_save_LIBS=$LIBS
19744: LIBS="-lgssapi_krb5  $LIBS"
19745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19746: /* end confdefs.h.  */
19747: 
19748: /* Override any GCC internal prototype to avoid an error.
19749:    Use char because int might match the return type of a GCC
19750:    builtin and then its argument prototype would still apply.  */
19751: #ifdef __cplusplus
19752: extern "C"
19753: #endif
19754: char gss_krb5_ccache_name ();
19755: int
19756: main ()
19757: {
19758: return gss_krb5_ccache_name ();
19759:   ;
19760:   return 0;
19761: }
19762: _ACEOF
19763: if ac_fn_c_try_link "$LINENO"; then :
19764:   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
19765: else
19766:   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
19767: fi
19768: rm -f core conftest.err conftest.$ac_objext \
19769:     conftest$ac_exeext conftest.$ac_ext
19770: LIBS=$ac_check_lib_save_LIBS
19771: fi
19772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
19773: $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
19774: if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
19775:   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19776: 
19777: 		LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
19778: fi
19779: 
19780: 
19781: fi
19782: 
19783: 
19784: 	# gssapi headers may be separate or part of Kerberos V
19785: 	found=no
19786: 	O_CPPFLAGS="$CPPFLAGS"
19787: 	for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
19788: 	    test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
19789: 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790: /* end confdefs.h.  */
19791: #include <gssapi/gssapi.h>
19792: int
19793: main ()
19794: {
19795: 
19796:   ;
19797:   return 0;
19798: }
19799: _ACEOF
19800: if ac_fn_c_try_cpp "$LINENO"; then :
19801:   found="gssapi/gssapi.h"; break
19802: else
19803:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19804: /* end confdefs.h.  */
19805: #include <gssapi.h>
19806: int
19807: main ()
19808: {
19809: 
19810:   ;
19811:   return 0;
19812: }
19813: _ACEOF
19814: if ac_fn_c_try_cpp "$LINENO"; then :
19815:   found="gssapi.h"; break
19816: fi
19817: rm -f conftest.err conftest.i conftest.$ac_ext
19818: fi
19819: rm -f conftest.err conftest.i conftest.$ac_ext
19820: 	done
19821: 	if test X"$found" != X"no"; then
19822: 	    for ac_header in $found
19823: do :
19824:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19825: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19826: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19827:   cat >>confdefs.h <<_ACEOF
19828: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19829: _ACEOF
19830: 
19831: fi
19832: 
19833: done
19834: 
19835: 	    if test X"$found" = X"gssapi/gssapi.h"; then
19836: 		for ac_header in gssapi/gssapi_krb5.h
19837: do :
19838:   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
19839: if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
19840:   cat >>confdefs.h <<_ACEOF
19841: #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
19842: _ACEOF
19843: 
19844: fi
19845: 
19846: done
19847: 
19848: 	    fi
19849: 	else
19850: 	    CPPFLAGS="$O_CPPFLAGS"
19851: 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&5
19852: $as_echo "$as_me: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&2;}
19853: 	fi
19854:     fi
19855: 
19856:     SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
19857:     LIBS="$_LIBS"
19858:     LDFLAGS="$_LDFLAGS"
19859: fi
19860: 
19861: #
19862: # How to do dynamic object loading.
19863: # We support dlopen() and sh_load(), else fall back to static loading.
19864: #
19865: case "$lt_cv_dlopen" in
19866:     dlopen)
19867: 	$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
19868: 
19869: 	SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19870: 	LT_STATIC="--tag=disable-static"
19871: 	;;
19872:     shl_load)
19873: 	$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19874: 
19875: 	SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19876: 	LT_STATIC="--tag=disable-static"
19877: 	case " $LIBOBJS " in
19878:   *" dlopen.$ac_objext "* ) ;;
19879:   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19880:  ;;
19881: esac
19882: 
19883: 	;;
19884:     *)
19885: 	if test X"${ac_cv_func_dlopen}" = X"yes"; then
19886: 	    as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
19887: 	fi
19888: 	# Preload sudoers module symbols
19889: 	SUDO_OBJS="${SUDO_OBJS} preload.o"
19890: 	SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
19891: 	LT_STATIC=""
19892: 	case " $LIBOBJS " in
19893:   *" dlopen.$ac_objext "* ) ;;
19894:   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19895:  ;;
19896: esac
19897: 
19898: 	;;
19899: esac
19900: 
19901: #
19902: # Add library needed for dynamic loading, if any.
19903: #
19904: LIBDL="$lt_cv_dlopen_libs"
19905: if test X"$LIBDL" != X""; then
19906:     SUDO_LIBS="${SUDO_LIBS} $LIBDL"
19907:     SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
19908: fi
19909: 
19910: # On HP-UX, you cannot dlopen() a shared object that uses pthreads
19911: # unless the main program is linked against -lpthread.  Since we
19912: # have no knowledge what libraries a plugin may depend on, we always
19913: # link against -lpthread on HP-UX if it is available.
19914: # This check should go after all other libraries tests.
19915: case "$host" in
19916:     *-*-hpux*)
19917: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
19918: $as_echo_n "checking for main in -lpthread... " >&6; }
19919: if ${ac_cv_lib_pthread_main+:} false; then :
19920:   $as_echo_n "(cached) " >&6
19921: else
19922:   ac_check_lib_save_LIBS=$LIBS
19923: LIBS="-lpthread  $LIBS"
19924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19925: /* end confdefs.h.  */
19926: 
19927: 
19928: int
19929: main ()
19930: {
19931: return main ();
19932:   ;
19933:   return 0;
19934: }
19935: _ACEOF
19936: if ac_fn_c_try_link "$LINENO"; then :
19937:   ac_cv_lib_pthread_main=yes
19938: else
19939:   ac_cv_lib_pthread_main=no
19940: fi
19941: rm -f core conftest.err conftest.$ac_objext \
19942:     conftest$ac_exeext conftest.$ac_ext
19943: LIBS=$ac_check_lib_save_LIBS
19944: fi
19945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
19946: $as_echo "$ac_cv_lib_pthread_main" >&6; }
19947: if test "x$ac_cv_lib_pthread_main" = xyes; then :
19948:   SUDO_LIBS="${SUDO_LIBS} -lpthread"
19949: fi
19950: 
19951: 	;;
19952: esac
19953: 
19954: if test -n "$blibpath"; then
19955:     if test -n "$blibpath_add"; then
19956:     	SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
19957:     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
19958:     	SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}"
19959:     fi
19960: fi
19961: 
19962: if test "$utmp_style" = "LEGACY"; then
19963:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
19964: $as_echo_n "checking for utmp file path... " >&6; }
19965: found=no
19966: for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
19967:     if test -r "$p"; then
19968: 	found=yes
19969: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
19970: $as_echo "$p" >&6; }
19971: 	cat >>confdefs.h <<EOF
19972: #define _PATH_UTMP "$p"
19973: EOF
19974: 
19975: 	break
19976:     fi
19977: done
19978: if test X"$found" != X"yes"; then
19979:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19980: $as_echo "not found" >&6; }
19981: fi
19982: 
19983: fi
19984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
19985: $as_echo_n "checking for log file location... " >&6; }
19986: if test -n "$with_logpath"; then
19987:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
19988: $as_echo "$with_logpath" >&6; }
19989:     cat >>confdefs.h <<EOF
19990: #define _PATH_SUDO_LOGFILE "$with_logpath"
19991: EOF
19992: 
19993: elif test -d "/var/log"; then
19994:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
19995: $as_echo "/var/log/sudo.log" >&6; }
19996:     cat >>confdefs.h <<\EOF
19997: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
19998: EOF
19999: 
20000: elif test -d "/var/adm"; then
20001:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
20002: $as_echo "/var/adm/sudo.log" >&6; }
20003:     cat >>confdefs.h <<\EOF
20004: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
20005: EOF
20006: 
20007: elif test -d "/usr/adm"; then
20008:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
20009: $as_echo "/usr/adm/sudo.log" >&6; }
20010:     cat >>confdefs.h <<\EOF
20011: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
20012: EOF
20013: 
20014: else
20015:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
20016: $as_echo "unknown" >&6; }
20017: fi
20018: 
20019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
20020: $as_echo_n "checking for timestamp file location... " >&6; }
20021: timedir="$with_timedir"
20022: if test -z "$timedir"; then
20023:     for d in /var/db /var/lib /var/adm /usr/adm; do
20024: 	if test -d "$d"; then
20025: 	    timedir="$d/sudo"
20026: 	    break
20027: 	fi
20028:     done
20029: fi
20030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
20031: $as_echo "$timedir" >&6; }
20032: cat >>confdefs.h <<EOF
20033: #define _PATH_SUDO_TIMEDIR "$timedir"
20034: EOF
20035: 
20036: 
20037: 
20038:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
20039: $as_echo_n "checking for I/O log dir location... " >&6; }
20040:     if test "${with_iologdir-yes}" != "yes"; then
20041: 	iolog_dir="$with_iologdir"
20042:     elif test -d "/var/log"; then
20043: 	iolog_dir="/var/log/sudo-io"
20044:     elif test -d "/var/adm"; then
20045: 	iolog_dir="/var/adm/sudo-io"
20046:     else
20047: 	iolog_dir="/usr/adm/sudo-io"
20048:     fi
20049:     if test "${with_iologdir}" != "no"; then
20050: 	cat >>confdefs.h <<EOF
20051: #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
20052: EOF
20053: 
20054:     fi
20055:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
20056: $as_echo "$iolog_dir" >&6; }
20057: 
20058: 
20059: case "$with_passwd" in
20060: yes|maybe)
20061:     AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
20062:     ;;
20063: *)
20064:     $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
20065: 
20066:     if test -z "$AUTH_OBJS"; then
20067: 	as_fn_error $? "no authentication methods defined." "$LINENO" 5
20068:     fi
20069:     ;;
20070: esac
20071: AUTH_OBJS=${AUTH_OBJS# }
20072: _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
20073: { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
20074: $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
20075: 
20076: if test -n "$LIBS"; then
20077:     L="$LIBS"
20078:     LIBS=
20079:     for l in ${L}; do
20080: 	dupe=0
20081: 	for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
20082: 	    test $l = $sl && dupe=1
20083: 	done
20084: 	test $dupe = 0 && LIBS="${LIBS} $l"
20085:     done
20086: fi
20087: 
20088: if test -n "$GCC"; then
20089:     if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
20090: 	CFLAGS="${CFLAGS} -Wall"
20091:     fi
20092:     if test X"$enable_werror" = X"yes"; then
20093: 	CFLAGS="${CFLAGS} -Werror"
20094:     fi
20095: fi
20096: 
20097: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
20098: 
20099: if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
20100:     oexec_prefix="$exec_prefix"
20101:     if test "$exec_prefix" = '$(prefix)'; then
20102: 	if test "$prefix" = "NONE"; then
20103: 	    exec_prefix="$ac_default_prefix"
20104: 	else
20105: 	    exec_prefix="$prefix"
20106: 	fi
20107:     fi
20108:     if test X"$with_noexec" != X"no"; then
20109: 	PROGS="${PROGS} libsudo_noexec.la"
20110: 	INSTALL_NOEXEC="install-noexec"
20111: 
20112: 	noexec_file="$with_noexec"
20113: 	_noexec_file=
20114: 	while test X"$noexec_file" != X"$_noexec_file"; do
20115: 	    _noexec_file="$noexec_file"
20116: 	    eval noexec_file="$_noexec_file"
20117: 	done
20118: 	cat >>confdefs.h <<EOF
20119: #define _PATH_SUDO_NOEXEC "$noexec_file"
20120: EOF
20121: 
20122:     fi
20123:     if test X"$with_selinux" != X"no"; then
20124: 	sesh_file="$libexecdir/sesh"
20125: 	_sesh_file=
20126: 	while test X"$sesh_file" != X"$_sesh_file"; do
20127: 	    _sesh_file="$sesh_file"
20128: 	    eval sesh_file="$_sesh_file"
20129: 	done
20130: 	cat >>confdefs.h <<EOF
20131: #define _PATH_SUDO_SESH "$sesh_file"
20132: EOF
20133: 
20134:     fi
20135:     PLUGINDIR="$with_plugindir"
20136:     _PLUGINDIR=
20137:     while test X"$PLUGINDIR" != X"$_PLUGINDIR"; do
20138: 	_PLUGINDIR="$PLUGINDIR"
20139: 	eval PLUGINDIR="$_PLUGINDIR"
20140:     done
20141:     cat >>confdefs.h <<EOF
20142: #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
20143: EOF
20144: 
20145:     cat >>confdefs.h <<EOF
20146: #define SUDOERS_PLUGIN "sudoers${SOEXT}"
20147: EOF
20148: 
20149:     exec_prefix="$oexec_prefix"
20150: fi
20151: 
20152: if test X"$prefix" = X"NONE"; then
20153:     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
20154: else
20155:     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
20156: fi
20157: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
20158: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
20159: test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
20160: test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
20161: test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
20162: test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
20163: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
20164: 
20165: ac_config_files="$ac_config_files Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/sample_group/Makefile plugins/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
20166: 
20167: cat >confcache <<\_ACEOF
20168: # This file is a shell script that caches the results of configure
20169: # tests run on this system so they can be shared between configure
20170: # scripts and configure runs, see configure's option --config-cache.
20171: # It is not useful on other systems.  If it contains results you don't
20172: # want to keep, you may remove or edit it.
20173: #
20174: # config.status only pays attention to the cache file if you give it
20175: # the --recheck option to rerun configure.
20176: #
20177: # `ac_cv_env_foo' variables (set or unset) will be overridden when
20178: # loading this file, other *unset* `ac_cv_foo' will be assigned the
20179: # following values.
20180: 
20181: _ACEOF
20182: 
20183: # The following way of writing the cache mishandles newlines in values,
20184: # but we know of no workaround that is simple, portable, and efficient.
20185: # So, we kill variables containing newlines.
20186: # Ultrix sh set writes to stderr and can't be redirected directly,
20187: # and sets the high bit in the cache file unless we assign to the vars.
20188: (
20189:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20190:     eval ac_val=\$$ac_var
20191:     case $ac_val in #(
20192:     *${as_nl}*)
20193:       case $ac_var in #(
20194:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20195: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20196:       esac
20197:       case $ac_var in #(
20198:       _ | IFS | as_nl) ;; #(
20199:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20200:       *) { eval $ac_var=; unset $ac_var;} ;;
20201:       esac ;;
20202:     esac
20203:   done
20204: 
20205:   (set) 2>&1 |
20206:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20207:     *${as_nl}ac_space=\ *)
20208:       # `set' does not quote correctly, so add quotes: double-quote
20209:       # substitution turns \\\\ into \\, and sed turns \\ into \.
20210:       sed -n \
20211: 	"s/'/'\\\\''/g;
20212: 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20213:       ;; #(
20214:     *)
20215:       # `set' quotes correctly as required by POSIX, so do not add quotes.
20216:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20217:       ;;
20218:     esac |
20219:     sort
20220: ) |
20221:   sed '
20222:      /^ac_cv_env_/b end
20223:      t clear
20224:      :clear
20225:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20226:      t end
20227:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20228:      :end' >>confcache
20229: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20230:   if test -w "$cache_file"; then
20231:     if test "x$cache_file" != "x/dev/null"; then
20232:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20233: $as_echo "$as_me: updating cache $cache_file" >&6;}
20234:       if test ! -f "$cache_file" || test -h "$cache_file"; then
20235: 	cat confcache >"$cache_file"
20236:       else
20237:         case $cache_file in #(
20238:         */* | ?:*)
20239: 	  mv -f confcache "$cache_file"$$ &&
20240: 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20241:         *)
20242: 	  mv -f confcache "$cache_file" ;;
20243: 	esac
20244:       fi
20245:     fi
20246:   else
20247:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20248: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20249:   fi
20250: fi
20251: rm -f confcache
20252: 
20253: test "x$prefix" = xNONE && prefix=$ac_default_prefix
20254: # Let make expand exec_prefix.
20255: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20256: 
20257: DEFS=-DHAVE_CONFIG_H
20258: 
20259: ac_libobjs=
20260: ac_ltlibobjs=
20261: U=
20262: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20263:   # 1. Remove the extension, and $U if already installed.
20264:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20265:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20266:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20267:   #    will be set to the directory where LIBOBJS objects are built.
20268:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20269:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20270: done
20271: LIBOBJS=$ac_libobjs
20272: 
20273: LTLIBOBJS=$ac_ltlibobjs
20274: 
20275: 
20276: 
20277: : "${CONFIG_STATUS=./config.status}"
20278: ac_write_fail=0
20279: ac_clean_files_save=$ac_clean_files
20280: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20281: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20282: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20283: as_write_fail=0
20284: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20285: #! $SHELL
20286: # Generated by $as_me.
20287: # Run this file to recreate the current configuration.
20288: # Compiler output produced by configure, useful for debugging
20289: # configure, is in config.log if it exists.
20290: 
20291: debug=false
20292: ac_cs_recheck=false
20293: ac_cs_silent=false
20294: 
20295: SHELL=\${CONFIG_SHELL-$SHELL}
20296: export SHELL
20297: _ASEOF
20298: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20299: ## -------------------- ##
20300: ## M4sh Initialization. ##
20301: ## -------------------- ##
20302: 
20303: # Be more Bourne compatible
20304: DUALCASE=1; export DUALCASE # for MKS sh
20305: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20306:   emulate sh
20307:   NULLCMD=:
20308:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20309:   # is contrary to our usage.  Disable this feature.
20310:   alias -g '${1+"$@"}'='"$@"'
20311:   setopt NO_GLOB_SUBST
20312: else
20313:   case `(set -o) 2>/dev/null` in #(
20314:   *posix*) :
20315:     set -o posix ;; #(
20316:   *) :
20317:      ;;
20318: esac
20319: fi
20320: 
20321: 
20322: as_nl='
20323: '
20324: export as_nl
20325: # Printing a long string crashes Solaris 7 /usr/bin/printf.
20326: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20327: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20328: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20329: # Prefer a ksh shell builtin over an external printf program on Solaris,
20330: # but without wasting forks for bash or zsh.
20331: if test -z "$BASH_VERSION$ZSH_VERSION" \
20332:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20333:   as_echo='print -r --'
20334:   as_echo_n='print -rn --'
20335: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20336:   as_echo='printf %s\n'
20337:   as_echo_n='printf %s'
20338: else
20339:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20340:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20341:     as_echo_n='/usr/ucb/echo -n'
20342:   else
20343:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20344:     as_echo_n_body='eval
20345:       arg=$1;
20346:       case $arg in #(
20347:       *"$as_nl"*)
20348: 	expr "X$arg" : "X\\(.*\\)$as_nl";
20349: 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20350:       esac;
20351:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20352:     '
20353:     export as_echo_n_body
20354:     as_echo_n='sh -c $as_echo_n_body as_echo'
20355:   fi
20356:   export as_echo_body
20357:   as_echo='sh -c $as_echo_body as_echo'
20358: fi
20359: 
20360: # The user is always right.
20361: if test "${PATH_SEPARATOR+set}" != set; then
20362:   PATH_SEPARATOR=:
20363:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20364:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20365:       PATH_SEPARATOR=';'
20366:   }
20367: fi
20368: 
20369: 
20370: # IFS
20371: # We need space, tab and new line, in precisely that order.  Quoting is
20372: # there to prevent editors from complaining about space-tab.
20373: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20374: # splitting by setting IFS to empty value.)
20375: IFS=" ""	$as_nl"
20376: 
20377: # Find who we are.  Look in the path if we contain no directory separator.
20378: as_myself=
20379: case $0 in #((
20380:   *[\\/]* ) as_myself=$0 ;;
20381:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20382: for as_dir in $PATH
20383: do
20384:   IFS=$as_save_IFS
20385:   test -z "$as_dir" && as_dir=.
20386:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20387:   done
20388: IFS=$as_save_IFS
20389: 
20390:      ;;
20391: esac
20392: # We did not find ourselves, most probably we were run as `sh COMMAND'
20393: # in which case we are not to be found in the path.
20394: if test "x$as_myself" = x; then
20395:   as_myself=$0
20396: fi
20397: if test ! -f "$as_myself"; then
20398:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20399:   exit 1
20400: fi
20401: 
20402: # Unset variables that we do not need and which cause bugs (e.g. in
20403: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20404: # suppresses any "Segmentation fault" message there.  '((' could
20405: # trigger a bug in pdksh 5.2.14.
20406: for as_var in BASH_ENV ENV MAIL MAILPATH
20407: do eval test x\${$as_var+set} = xset \
20408:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20409: done
20410: PS1='$ '
20411: PS2='> '
20412: PS4='+ '
20413: 
20414: # NLS nuisances.
20415: LC_ALL=C
20416: export LC_ALL
20417: LANGUAGE=C
20418: export LANGUAGE
20419: 
20420: # CDPATH.
20421: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20422: 
20423: 
20424: # as_fn_error STATUS ERROR [LINENO LOG_FD]
20425: # ----------------------------------------
20426: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20427: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20428: # script with STATUS, using 1 if that was 0.
20429: as_fn_error ()
20430: {
20431:   as_status=$1; test $as_status -eq 0 && as_status=1
20432:   if test "$4"; then
20433:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20434:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20435:   fi
20436:   $as_echo "$as_me: error: $2" >&2
20437:   as_fn_exit $as_status
20438: } # as_fn_error
20439: 
20440: 
20441: # as_fn_set_status STATUS
20442: # -----------------------
20443: # Set $? to STATUS, without forking.
20444: as_fn_set_status ()
20445: {
20446:   return $1
20447: } # as_fn_set_status
20448: 
20449: # as_fn_exit STATUS
20450: # -----------------
20451: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20452: as_fn_exit ()
20453: {
20454:   set +e
20455:   as_fn_set_status $1
20456:   exit $1
20457: } # as_fn_exit
20458: 
20459: # as_fn_unset VAR
20460: # ---------------
20461: # Portably unset VAR.
20462: as_fn_unset ()
20463: {
20464:   { eval $1=; unset $1;}
20465: }
20466: as_unset=as_fn_unset
20467: # as_fn_append VAR VALUE
20468: # ----------------------
20469: # Append the text in VALUE to the end of the definition contained in VAR. Take
20470: # advantage of any shell optimizations that allow amortized linear growth over
20471: # repeated appends, instead of the typical quadratic growth present in naive
20472: # implementations.
20473: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20474:   eval 'as_fn_append ()
20475:   {
20476:     eval $1+=\$2
20477:   }'
20478: else
20479:   as_fn_append ()
20480:   {
20481:     eval $1=\$$1\$2
20482:   }
20483: fi # as_fn_append
20484: 
20485: # as_fn_arith ARG...
20486: # ------------------
20487: # Perform arithmetic evaluation on the ARGs, and store the result in the
20488: # global $as_val. Take advantage of shells that can avoid forks. The arguments
20489: # must be portable across $(()) and expr.
20490: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20491:   eval 'as_fn_arith ()
20492:   {
20493:     as_val=$(( $* ))
20494:   }'
20495: else
20496:   as_fn_arith ()
20497:   {
20498:     as_val=`expr "$@" || test $? -eq 1`
20499:   }
20500: fi # as_fn_arith
20501: 
20502: 
20503: if expr a : '\(a\)' >/dev/null 2>&1 &&
20504:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20505:   as_expr=expr
20506: else
20507:   as_expr=false
20508: fi
20509: 
20510: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20511:   as_basename=basename
20512: else
20513:   as_basename=false
20514: fi
20515: 
20516: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20517:   as_dirname=dirname
20518: else
20519:   as_dirname=false
20520: fi
20521: 
20522: as_me=`$as_basename -- "$0" ||
20523: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20524: 	 X"$0" : 'X\(//\)$' \| \
20525: 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20526: $as_echo X/"$0" |
20527:     sed '/^.*\/\([^/][^/]*\)\/*$/{
20528: 	    s//\1/
20529: 	    q
20530: 	  }
20531: 	  /^X\/\(\/\/\)$/{
20532: 	    s//\1/
20533: 	    q
20534: 	  }
20535: 	  /^X\/\(\/\).*/{
20536: 	    s//\1/
20537: 	    q
20538: 	  }
20539: 	  s/.*/./; q'`
20540: 
20541: # Avoid depending upon Character Ranges.
20542: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20543: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20544: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20545: as_cr_digits='0123456789'
20546: as_cr_alnum=$as_cr_Letters$as_cr_digits
20547: 
20548: ECHO_C= ECHO_N= ECHO_T=
20549: case `echo -n x` in #(((((
20550: -n*)
20551:   case `echo 'xy\c'` in
20552:   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20553:   xy)  ECHO_C='\c';;
20554:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20555:        ECHO_T='	';;
20556:   esac;;
20557: *)
20558:   ECHO_N='-n';;
20559: esac
20560: 
20561: rm -f conf$$ conf$$.exe conf$$.file
20562: if test -d conf$$.dir; then
20563:   rm -f conf$$.dir/conf$$.file
20564: else
20565:   rm -f conf$$.dir
20566:   mkdir conf$$.dir 2>/dev/null
20567: fi
20568: if (echo >conf$$.file) 2>/dev/null; then
20569:   if ln -s conf$$.file conf$$ 2>/dev/null; then
20570:     as_ln_s='ln -s'
20571:     # ... but there are two gotchas:
20572:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20573:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20574:     # In both cases, we have to default to `cp -p'.
20575:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20576:       as_ln_s='cp -p'
20577:   elif ln conf$$.file conf$$ 2>/dev/null; then
20578:     as_ln_s=ln
20579:   else
20580:     as_ln_s='cp -p'
20581:   fi
20582: else
20583:   as_ln_s='cp -p'
20584: fi
20585: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20586: rmdir conf$$.dir 2>/dev/null
20587: 
20588: 
20589: # as_fn_mkdir_p
20590: # -------------
20591: # Create "$as_dir" as a directory, including parents if necessary.
20592: as_fn_mkdir_p ()
20593: {
20594: 
20595:   case $as_dir in #(
20596:   -*) as_dir=./$as_dir;;
20597:   esac
20598:   test -d "$as_dir" || eval $as_mkdir_p || {
20599:     as_dirs=
20600:     while :; do
20601:       case $as_dir in #(
20602:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20603:       *) as_qdir=$as_dir;;
20604:       esac
20605:       as_dirs="'$as_qdir' $as_dirs"
20606:       as_dir=`$as_dirname -- "$as_dir" ||
20607: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20608: 	 X"$as_dir" : 'X\(//\)[^/]' \| \
20609: 	 X"$as_dir" : 'X\(//\)$' \| \
20610: 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20611: $as_echo X"$as_dir" |
20612:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20613: 	    s//\1/
20614: 	    q
20615: 	  }
20616: 	  /^X\(\/\/\)[^/].*/{
20617: 	    s//\1/
20618: 	    q
20619: 	  }
20620: 	  /^X\(\/\/\)$/{
20621: 	    s//\1/
20622: 	    q
20623: 	  }
20624: 	  /^X\(\/\).*/{
20625: 	    s//\1/
20626: 	    q
20627: 	  }
20628: 	  s/.*/./; q'`
20629:       test -d "$as_dir" && break
20630:     done
20631:     test -z "$as_dirs" || eval "mkdir $as_dirs"
20632:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20633: 
20634: 
20635: } # as_fn_mkdir_p
20636: if mkdir -p . 2>/dev/null; then
20637:   as_mkdir_p='mkdir -p "$as_dir"'
20638: else
20639:   test -d ./-p && rmdir ./-p
20640:   as_mkdir_p=false
20641: fi
20642: 
20643: if test -x / >/dev/null 2>&1; then
20644:   as_test_x='test -x'
20645: else
20646:   if ls -dL / >/dev/null 2>&1; then
20647:     as_ls_L_option=L
20648:   else
20649:     as_ls_L_option=
20650:   fi
20651:   as_test_x='
20652:     eval sh -c '\''
20653:       if test -d "$1"; then
20654: 	test -d "$1/.";
20655:       else
20656: 	case $1 in #(
20657: 	-*)set "./$1";;
20658: 	esac;
20659: 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20660: 	???[sx]*):;;*)false;;esac;fi
20661:     '\'' sh
20662:   '
20663: fi
20664: as_executable_p=$as_test_x
20665: 
20666: # Sed expression to map a string onto a valid CPP name.
20667: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20668: 
20669: # Sed expression to map a string onto a valid variable name.
20670: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20671: 
20672: 
20673: exec 6>&1
20674: ## ----------------------------------- ##
20675: ## Main body of $CONFIG_STATUS script. ##
20676: ## ----------------------------------- ##
20677: _ASEOF
20678: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20679: 
20680: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20681: # Save the log message, to keep $0 and so on meaningful, and to
20682: # report actual input values of CONFIG_FILES etc. instead of their
20683: # values after options handling.
20684: ac_log="
20685: This file was extended by sudo $as_me 1.8.5p1, which was
20686: generated by GNU Autoconf 2.68.  Invocation command line was
20687: 
20688:   CONFIG_FILES    = $CONFIG_FILES
20689:   CONFIG_HEADERS  = $CONFIG_HEADERS
20690:   CONFIG_LINKS    = $CONFIG_LINKS
20691:   CONFIG_COMMANDS = $CONFIG_COMMANDS
20692:   $ $0 $@
20693: 
20694: on `(hostname || uname -n) 2>/dev/null | sed 1q`
20695: "
20696: 
20697: _ACEOF
20698: 
20699: case $ac_config_files in *"
20700: "*) set x $ac_config_files; shift; ac_config_files=$*;;
20701: esac
20702: 
20703: case $ac_config_headers in *"
20704: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20705: esac
20706: 
20707: 
20708: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20709: # Files that config.status was made for.
20710: config_files="$ac_config_files"
20711: config_headers="$ac_config_headers"
20712: config_commands="$ac_config_commands"
20713: 
20714: _ACEOF
20715: 
20716: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20717: ac_cs_usage="\
20718: \`$as_me' instantiates files and other configuration actions
20719: from templates according to the current configuration.  Unless the files
20720: and actions are specified as TAGs, all are instantiated by default.
20721: 
20722: Usage: $0 [OPTION]... [TAG]...
20723: 
20724:   -h, --help       print this help, then exit
20725:   -V, --version    print version number and configuration settings, then exit
20726:       --config     print configuration, then exit
20727:   -q, --quiet, --silent
20728:                    do not print progress messages
20729:   -d, --debug      don't remove temporary files
20730:       --recheck    update $as_me by reconfiguring in the same conditions
20731:       --file=FILE[:TEMPLATE]
20732:                    instantiate the configuration file FILE
20733:       --header=FILE[:TEMPLATE]
20734:                    instantiate the configuration header FILE
20735: 
20736: Configuration files:
20737: $config_files
20738: 
20739: Configuration headers:
20740: $config_headers
20741: 
20742: Configuration commands:
20743: $config_commands
20744: 
20745: Report bugs to <http://www.sudo.ws/bugs/>."
20746: 
20747: _ACEOF
20748: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20749: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20750: ac_cs_version="\\
20751: sudo config.status 1.8.5p1
20752: configured by $0, generated by GNU Autoconf 2.68,
20753:   with options \\"\$ac_cs_config\\"
20754: 
20755: Copyright (C) 2010 Free Software Foundation, Inc.
20756: This config.status script is free software; the Free Software Foundation
20757: gives unlimited permission to copy, distribute and modify it."
20758: 
20759: ac_pwd='$ac_pwd'
20760: srcdir='$srcdir'
20761: AWK='$AWK'
20762: test -n "\$AWK" || AWK=awk
20763: _ACEOF
20764: 
20765: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20766: # The default lists apply if the user does not specify any file.
20767: ac_need_defaults=:
20768: while test $# != 0
20769: do
20770:   case $1 in
20771:   --*=?*)
20772:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20773:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20774:     ac_shift=:
20775:     ;;
20776:   --*=)
20777:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20778:     ac_optarg=
20779:     ac_shift=:
20780:     ;;
20781:   *)
20782:     ac_option=$1
20783:     ac_optarg=$2
20784:     ac_shift=shift
20785:     ;;
20786:   esac
20787: 
20788:   case $ac_option in
20789:   # Handling of the options.
20790:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20791:     ac_cs_recheck=: ;;
20792:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20793:     $as_echo "$ac_cs_version"; exit ;;
20794:   --config | --confi | --conf | --con | --co | --c )
20795:     $as_echo "$ac_cs_config"; exit ;;
20796:   --debug | --debu | --deb | --de | --d | -d )
20797:     debug=: ;;
20798:   --file | --fil | --fi | --f )
20799:     $ac_shift
20800:     case $ac_optarg in
20801:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20802:     '') as_fn_error $? "missing file argument" ;;
20803:     esac
20804:     as_fn_append CONFIG_FILES " '$ac_optarg'"
20805:     ac_need_defaults=false;;
20806:   --header | --heade | --head | --hea )
20807:     $ac_shift
20808:     case $ac_optarg in
20809:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20810:     esac
20811:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20812:     ac_need_defaults=false;;
20813:   --he | --h)
20814:     # Conflict between --help and --header
20815:     as_fn_error $? "ambiguous option: \`$1'
20816: Try \`$0 --help' for more information.";;
20817:   --help | --hel | -h )
20818:     $as_echo "$ac_cs_usage"; exit ;;
20819:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20820:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20821:     ac_cs_silent=: ;;
20822: 
20823:   # This is an error.
20824:   -*) as_fn_error $? "unrecognized option: \`$1'
20825: Try \`$0 --help' for more information." ;;
20826: 
20827:   *) as_fn_append ac_config_targets " $1"
20828:      ac_need_defaults=false ;;
20829: 
20830:   esac
20831:   shift
20832: done
20833: 
20834: ac_configure_extra_args=
20835: 
20836: if $ac_cs_silent; then
20837:   exec 6>/dev/null
20838:   ac_configure_extra_args="$ac_configure_extra_args --silent"
20839: fi
20840: 
20841: _ACEOF
20842: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20843: if \$ac_cs_recheck; then
20844:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20845:   shift
20846:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20847:   CONFIG_SHELL='$SHELL'
20848:   export CONFIG_SHELL
20849:   exec "\$@"
20850: fi
20851: 
20852: _ACEOF
20853: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20854: exec 5>>config.log
20855: {
20856:   echo
20857:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20858: ## Running $as_me. ##
20859: _ASBOX
20860:   $as_echo "$ac_log"
20861: } >&5
20862: 
20863: _ACEOF
20864: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20865: #
20866: # INIT-COMMANDS
20867: #
20868: 
20869: 
20870: # The HP-UX ksh and POSIX shell print the target directory to stdout
20871: # if CDPATH is set.
20872: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20873: 
20874: sed_quote_subst='$sed_quote_subst'
20875: double_quote_subst='$double_quote_subst'
20876: delay_variable_subst='$delay_variable_subst'
20877: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20878: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20879: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20880: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20881: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20882: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20883: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20884: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20885: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20886: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20887: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20888: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20889: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20890: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20891: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20892: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20893: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20894: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20895: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20896: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20897: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20898: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20899: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20900: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20901: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20902: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20903: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20904: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20905: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20906: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20907: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20908: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20909: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20910: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20911: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20912: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20913: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20914: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20915: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20916: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20917: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20918: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20919: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20920: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20921: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20922: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20923: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20924: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20925: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20926: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20927: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20928: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20929: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20930: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20931: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20932: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20933: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20934: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20935: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20936: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20937: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20938: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20939: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20940: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20941: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20942: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20943: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20944: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20945: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20946: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20947: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20948: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20949: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20950: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20951: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20952: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20953: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20954: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20955: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20956: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20957: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20958: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20959: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20960: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20961: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20962: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20963: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20964: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20965: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20966: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20967: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20968: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20969: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20970: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20971: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20972: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20973: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20974: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20975: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20976: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20977: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20978: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20979: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20980: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20981: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20982: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20983: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20984: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20985: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20986: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20987: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20988: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20989: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20990: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20991: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20992: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20993: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20994: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20995: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20996: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20997: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20998: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20999: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21000: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21001: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21002: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21003: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21004: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21005: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21006: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21007: 
21008: LTCC='$LTCC'
21009: LTCFLAGS='$LTCFLAGS'
21010: compiler='$compiler_DEFAULT'
21011: 
21012: # A function that is used when there is no print builtin or printf.
21013: func_fallback_echo ()
21014: {
21015:   eval 'cat <<_LTECHO_EOF
21016: \$1
21017: _LTECHO_EOF'
21018: }
21019: 
21020: # Quote evaled strings.
21021: for var in SHELL \
21022: ECHO \
21023: PATH_SEPARATOR \
21024: SED \
21025: GREP \
21026: EGREP \
21027: FGREP \
21028: LD \
21029: NM \
21030: LN_S \
21031: lt_SP2NL \
21032: lt_NL2SP \
21033: reload_flag \
21034: OBJDUMP \
21035: deplibs_check_method \
21036: file_magic_cmd \
21037: file_magic_glob \
21038: want_nocaseglob \
21039: DLLTOOL \
21040: sharedlib_from_linklib_cmd \
21041: AR \
21042: AR_FLAGS \
21043: archiver_list_spec \
21044: STRIP \
21045: RANLIB \
21046: CC \
21047: CFLAGS \
21048: compiler \
21049: lt_cv_sys_global_symbol_pipe \
21050: lt_cv_sys_global_symbol_to_cdecl \
21051: lt_cv_sys_global_symbol_to_c_name_address \
21052: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21053: nm_file_list_spec \
21054: lt_prog_compiler_no_builtin_flag \
21055: lt_prog_compiler_pic \
21056: lt_prog_compiler_wl \
21057: lt_prog_compiler_static \
21058: lt_cv_prog_compiler_c_o \
21059: need_locks \
21060: MANIFEST_TOOL \
21061: DSYMUTIL \
21062: NMEDIT \
21063: LIPO \
21064: OTOOL \
21065: OTOOL64 \
21066: shrext_cmds \
21067: export_dynamic_flag_spec \
21068: whole_archive_flag_spec \
21069: compiler_needs_object \
21070: with_gnu_ld \
21071: allow_undefined_flag \
21072: no_undefined_flag \
21073: hardcode_libdir_flag_spec \
21074: hardcode_libdir_separator \
21075: exclude_expsyms \
21076: include_expsyms \
21077: file_list_spec \
21078: variables_saved_for_relink \
21079: libname_spec \
21080: library_names_spec \
21081: soname_spec \
21082: install_override_mode \
21083: finish_eval \
21084: old_striplib \
21085: striplib; do
21086:     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21087:     *[\\\\\\\`\\"\\\$]*)
21088:       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21089:       ;;
21090:     *)
21091:       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21092:       ;;
21093:     esac
21094: done
21095: 
21096: # Double-quote double-evaled strings.
21097: for var in reload_cmds \
21098: old_postinstall_cmds \
21099: old_postuninstall_cmds \
21100: old_archive_cmds \
21101: extract_expsyms_cmds \
21102: old_archive_from_new_cmds \
21103: old_archive_from_expsyms_cmds \
21104: archive_cmds \
21105: archive_expsym_cmds \
21106: module_cmds \
21107: module_expsym_cmds \
21108: export_symbols_cmds \
21109: prelink_cmds \
21110: postlink_cmds \
21111: postinstall_cmds \
21112: postuninstall_cmds \
21113: finish_cmds \
21114: sys_lib_search_path_spec \
21115: sys_lib_dlsearch_path_spec; do
21116:     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21117:     *[\\\\\\\`\\"\\\$]*)
21118:       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21119:       ;;
21120:     *)
21121:       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21122:       ;;
21123:     esac
21124: done
21125: 
21126: ac_aux_dir='$ac_aux_dir'
21127: xsi_shell='$xsi_shell'
21128: lt_shell_append='$lt_shell_append'
21129: 
21130: # See if we are running on zsh, and set the options which allow our
21131: # commands through without removal of \ escapes INIT.
21132: if test -n "\${ZSH_VERSION+set}" ; then
21133:    setopt NO_GLOB_SUBST
21134: fi
21135: 
21136: 
21137:     PACKAGE='$PACKAGE'
21138:     VERSION='$VERSION'
21139:     TIMESTAMP='$TIMESTAMP'
21140:     RM='$RM'
21141:     ofile='$ofile'
21142: 
21143: 
21144: 
21145: 
21146: _ACEOF
21147: 
21148: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21149: 
21150: # Handling of arguments.
21151: for ac_config_target in $ac_config_targets
21152: do
21153:   case $ac_config_target in
21154:     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21155:     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
21156:     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21157:     "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
21158:     "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
21159:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21160:     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
21161:     "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
21162:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21163:     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21164:     "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
21165:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21166:     "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
21167:     "plugins/sample_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_group/Makefile" ;;
21168:     "plugins/system_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/system_group/Makefile" ;;
21169:     "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
21170:     "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
21171: 
21172:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21173:   esac
21174: done
21175: 
21176: 
21177: # If the user did not use the arguments to specify the items to instantiate,
21178: # then the envvar interface is used.  Set only those that are not.
21179: # We use the long form for the default assignment because of an extremely
21180: # bizarre bug on SunOS 4.1.3.
21181: if $ac_need_defaults; then
21182:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21183:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21184:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21185: fi
21186: 
21187: # Have a temporary directory for convenience.  Make it in the build tree
21188: # simply because there is no reason against having it here, and in addition,
21189: # creating and moving files from /tmp can sometimes cause problems.
21190: # Hook for its removal unless debugging.
21191: # Note that there is a small window in which the directory will not be cleaned:
21192: # after its creation but before its name has been assigned to `$tmp'.
21193: $debug ||
21194: {
21195:   tmp= ac_tmp=
21196:   trap 'exit_status=$?
21197:   : "${ac_tmp:=$tmp}"
21198:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21199: ' 0
21200:   trap 'as_fn_exit 1' 1 2 13 15
21201: }
21202: # Create a (secure) tmp directory for tmp files.
21203: 
21204: {
21205:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21206:   test -d "$tmp"
21207: }  ||
21208: {
21209:   tmp=./conf$$-$RANDOM
21210:   (umask 077 && mkdir "$tmp")
21211: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21212: ac_tmp=$tmp
21213: 
21214: # Set up the scripts for CONFIG_FILES section.
21215: # No need to generate them if there are no CONFIG_FILES.
21216: # This happens for instance with `./config.status config.h'.
21217: if test -n "$CONFIG_FILES"; then
21218: 
21219: 
21220: ac_cr=`echo X | tr X '\015'`
21221: # On cygwin, bash can eat \r inside `` if the user requested igncr.
21222: # But we know of no other shell where ac_cr would be empty at this
21223: # point, so we can use a bashism as a fallback.
21224: if test "x$ac_cr" = x; then
21225:   eval ac_cr=\$\'\\r\'
21226: fi
21227: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21228: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21229:   ac_cs_awk_cr='\\r'
21230: else
21231:   ac_cs_awk_cr=$ac_cr
21232: fi
21233: 
21234: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21235: _ACEOF
21236: 
21237: 
21238: {
21239:   echo "cat >conf$$subs.awk <<_ACEOF" &&
21240:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21241:   echo "_ACEOF"
21242: } >conf$$subs.sh ||
21243:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21244: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21245: ac_delim='%!_!# '
21246: for ac_last_try in false false false false false :; do
21247:   . ./conf$$subs.sh ||
21248:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21249: 
21250:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21251:   if test $ac_delim_n = $ac_delim_num; then
21252:     break
21253:   elif $ac_last_try; then
21254:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21255:   else
21256:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21257:   fi
21258: done
21259: rm -f conf$$subs.sh
21260: 
21261: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21262: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21263: _ACEOF
21264: sed -n '
21265: h
21266: s/^/S["/; s/!.*/"]=/
21267: p
21268: g
21269: s/^[^!]*!//
21270: :repl
21271: t repl
21272: s/'"$ac_delim"'$//
21273: t delim
21274: :nl
21275: h
21276: s/\(.\{148\}\)..*/\1/
21277: t more1
21278: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21279: p
21280: n
21281: b repl
21282: :more1
21283: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21284: p
21285: g
21286: s/.\{148\}//
21287: t nl
21288: :delim
21289: h
21290: s/\(.\{148\}\)..*/\1/
21291: t more2
21292: s/["\\]/\\&/g; s/^/"/; s/$/"/
21293: p
21294: b
21295: :more2
21296: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21297: p
21298: g
21299: s/.\{148\}//
21300: t delim
21301: ' <conf$$subs.awk | sed '
21302: /^[^""]/{
21303:   N
21304:   s/\n//
21305: }
21306: ' >>$CONFIG_STATUS || ac_write_fail=1
21307: rm -f conf$$subs.awk
21308: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21309: _ACAWK
21310: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21311:   for (key in S) S_is_set[key] = 1
21312:   FS = ""
21313: 
21314: }
21315: {
21316:   line = $ 0
21317:   nfields = split(line, field, "@")
21318:   substed = 0
21319:   len = length(field[1])
21320:   for (i = 2; i < nfields; i++) {
21321:     key = field[i]
21322:     keylen = length(key)
21323:     if (S_is_set[key]) {
21324:       value = S[key]
21325:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21326:       len += length(value) + length(field[++i])
21327:       substed = 1
21328:     } else
21329:       len += 1 + keylen
21330:   }
21331: 
21332:   print line
21333: }
21334: 
21335: _ACAWK
21336: _ACEOF
21337: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21338: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21339:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21340: else
21341:   cat
21342: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21343:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21344: _ACEOF
21345: 
21346: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21347: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21348: # trailing colons and then remove the whole line if VPATH becomes empty
21349: # (actually we leave an empty line to preserve line numbers).
21350: if test "x$srcdir" = x.; then
21351:   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21352: h
21353: s///
21354: s/^/:/
21355: s/[	 ]*$/:/
21356: s/:\$(srcdir):/:/g
21357: s/:\${srcdir}:/:/g
21358: s/:@srcdir@:/:/g
21359: s/^:*//
21360: s/:*$//
21361: x
21362: s/\(=[	 ]*\).*/\1/
21363: G
21364: s/\n//
21365: s/^[^=]*=[	 ]*$//
21366: }'
21367: fi
21368: 
21369: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21370: fi # test -n "$CONFIG_FILES"
21371: 
21372: # Set up the scripts for CONFIG_HEADERS section.
21373: # No need to generate them if there are no CONFIG_HEADERS.
21374: # This happens for instance with `./config.status Makefile'.
21375: if test -n "$CONFIG_HEADERS"; then
21376: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21377: BEGIN {
21378: _ACEOF
21379: 
21380: # Transform confdefs.h into an awk script `defines.awk', embedded as
21381: # here-document in config.status, that substitutes the proper values into
21382: # config.h.in to produce config.h.
21383: 
21384: # Create a delimiter string that does not exist in confdefs.h, to ease
21385: # handling of long lines.
21386: ac_delim='%!_!# '
21387: for ac_last_try in false false :; do
21388:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21389:   if test -z "$ac_tt"; then
21390:     break
21391:   elif $ac_last_try; then
21392:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21393:   else
21394:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21395:   fi
21396: done
21397: 
21398: # For the awk script, D is an array of macro values keyed by name,
21399: # likewise P contains macro parameters if any.  Preserve backslash
21400: # newline sequences.
21401: 
21402: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21403: sed -n '
21404: s/.\{148\}/&'"$ac_delim"'/g
21405: t rset
21406: :rset
21407: s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21408: t def
21409: d
21410: :def
21411: s/\\$//
21412: t bsnl
21413: s/["\\]/\\&/g
21414: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21415: D["\1"]=" \3"/p
21416: s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21417: d
21418: :bsnl
21419: s/["\\]/\\&/g
21420: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21421: D["\1"]=" \3\\\\\\n"\\/p
21422: t cont
21423: s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21424: t cont
21425: d
21426: :cont
21427: n
21428: s/.\{148\}/&'"$ac_delim"'/g
21429: t clear
21430: :clear
21431: s/\\$//
21432: t bsnlc
21433: s/["\\]/\\&/g; s/^/"/; s/$/"/p
21434: d
21435: :bsnlc
21436: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21437: b cont
21438: ' <confdefs.h | sed '
21439: s/'"$ac_delim"'/"\\\
21440: "/g' >>$CONFIG_STATUS || ac_write_fail=1
21441: 
21442: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21443:   for (key in D) D_is_set[key] = 1
21444:   FS = ""
21445: }
21446: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21447:   line = \$ 0
21448:   split(line, arg, " ")
21449:   if (arg[1] == "#") {
21450:     defundef = arg[2]
21451:     mac1 = arg[3]
21452:   } else {
21453:     defundef = substr(arg[1], 2)
21454:     mac1 = arg[2]
21455:   }
21456:   split(mac1, mac2, "(") #)
21457:   macro = mac2[1]
21458:   prefix = substr(line, 1, index(line, defundef) - 1)
21459:   if (D_is_set[macro]) {
21460:     # Preserve the white space surrounding the "#".
21461:     print prefix "define", macro P[macro] D[macro]
21462:     next
21463:   } else {
21464:     # Replace #undef with comments.  This is necessary, for example,
21465:     # in the case of _POSIX_SOURCE, which is predefined and required
21466:     # on some systems where configure will not decide to define it.
21467:     if (defundef == "undef") {
21468:       print "/*", prefix defundef, macro, "*/"
21469:       next
21470:     }
21471:   }
21472: }
21473: { print }
21474: _ACAWK
21475: _ACEOF
21476: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21477:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21478: fi # test -n "$CONFIG_HEADERS"
21479: 
21480: 
21481: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21482: shift
21483: for ac_tag
21484: do
21485:   case $ac_tag in
21486:   :[FHLC]) ac_mode=$ac_tag; continue;;
21487:   esac
21488:   case $ac_mode$ac_tag in
21489:   :[FHL]*:*);;
21490:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21491:   :[FH]-) ac_tag=-:-;;
21492:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21493:   esac
21494:   ac_save_IFS=$IFS
21495:   IFS=:
21496:   set x $ac_tag
21497:   IFS=$ac_save_IFS
21498:   shift
21499:   ac_file=$1
21500:   shift
21501: 
21502:   case $ac_mode in
21503:   :L) ac_source=$1;;
21504:   :[FH])
21505:     ac_file_inputs=
21506:     for ac_f
21507:     do
21508:       case $ac_f in
21509:       -) ac_f="$ac_tmp/stdin";;
21510:       *) # Look for the file first in the build tree, then in the source tree
21511: 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21512: 	 # because $ac_f cannot contain `:'.
21513: 	 test -f "$ac_f" ||
21514: 	   case $ac_f in
21515: 	   [\\/$]*) false;;
21516: 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21517: 	   esac ||
21518: 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21519:       esac
21520:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21521:       as_fn_append ac_file_inputs " '$ac_f'"
21522:     done
21523: 
21524:     # Let's still pretend it is `configure' which instantiates (i.e., don't
21525:     # use $as_me), people would be surprised to read:
21526:     #    /* config.h.  Generated by config.status.  */
21527:     configure_input='Generated from '`
21528: 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21529: 	`' by configure.'
21530:     if test x"$ac_file" != x-; then
21531:       configure_input="$ac_file.  $configure_input"
21532:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21533: $as_echo "$as_me: creating $ac_file" >&6;}
21534:     fi
21535:     # Neutralize special characters interpreted by sed in replacement strings.
21536:     case $configure_input in #(
21537:     *\&* | *\|* | *\\* )
21538:        ac_sed_conf_input=`$as_echo "$configure_input" |
21539:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21540:     *) ac_sed_conf_input=$configure_input;;
21541:     esac
21542: 
21543:     case $ac_tag in
21544:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21545:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21546:     esac
21547:     ;;
21548:   esac
21549: 
21550:   ac_dir=`$as_dirname -- "$ac_file" ||
21551: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21552: 	 X"$ac_file" : 'X\(//\)[^/]' \| \
21553: 	 X"$ac_file" : 'X\(//\)$' \| \
21554: 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21555: $as_echo X"$ac_file" |
21556:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21557: 	    s//\1/
21558: 	    q
21559: 	  }
21560: 	  /^X\(\/\/\)[^/].*/{
21561: 	    s//\1/
21562: 	    q
21563: 	  }
21564: 	  /^X\(\/\/\)$/{
21565: 	    s//\1/
21566: 	    q
21567: 	  }
21568: 	  /^X\(\/\).*/{
21569: 	    s//\1/
21570: 	    q
21571: 	  }
21572: 	  s/.*/./; q'`
21573:   as_dir="$ac_dir"; as_fn_mkdir_p
21574:   ac_builddir=.
21575: 
21576: case "$ac_dir" in
21577: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21578: *)
21579:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21580:   # A ".." for each directory in $ac_dir_suffix.
21581:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21582:   case $ac_top_builddir_sub in
21583:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21584:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21585:   esac ;;
21586: esac
21587: ac_abs_top_builddir=$ac_pwd
21588: ac_abs_builddir=$ac_pwd$ac_dir_suffix
21589: # for backward compatibility:
21590: ac_top_builddir=$ac_top_build_prefix
21591: 
21592: case $srcdir in
21593:   .)  # We are building in place.
21594:     ac_srcdir=.
21595:     ac_top_srcdir=$ac_top_builddir_sub
21596:     ac_abs_top_srcdir=$ac_pwd ;;
21597:   [\\/]* | ?:[\\/]* )  # Absolute name.
21598:     ac_srcdir=$srcdir$ac_dir_suffix;
21599:     ac_top_srcdir=$srcdir
21600:     ac_abs_top_srcdir=$srcdir ;;
21601:   *) # Relative name.
21602:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21603:     ac_top_srcdir=$ac_top_build_prefix$srcdir
21604:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21605: esac
21606: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21607: 
21608: 
21609:   case $ac_mode in
21610:   :F)
21611:   #
21612:   # CONFIG_FILE
21613:   #
21614: 
21615: _ACEOF
21616: 
21617: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21618: # If the template does not know about datarootdir, expand it.
21619: # FIXME: This hack should be removed a few years after 2.60.
21620: ac_datarootdir_hack=; ac_datarootdir_seen=
21621: ac_sed_dataroot='
21622: /datarootdir/ {
21623:   p
21624:   q
21625: }
21626: /@datadir@/p
21627: /@docdir@/p
21628: /@infodir@/p
21629: /@localedir@/p
21630: /@mandir@/p'
21631: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21632: *datarootdir*) ac_datarootdir_seen=yes;;
21633: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21634:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21635: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21636: _ACEOF
21637: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21638:   ac_datarootdir_hack='
21639:   s&@datadir@&$datadir&g
21640:   s&@docdir@&$docdir&g
21641:   s&@infodir@&$infodir&g
21642:   s&@localedir@&$localedir&g
21643:   s&@mandir@&$mandir&g
21644:   s&\\\${datarootdir}&$datarootdir&g' ;;
21645: esac
21646: _ACEOF
21647: 
21648: # Neutralize VPATH when `$srcdir' = `.'.
21649: # Shell code in configure.ac might set extrasub.
21650: # FIXME: do we really want to maintain this feature?
21651: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21652: ac_sed_extra="$ac_vpsub
21653: $extrasub
21654: _ACEOF
21655: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21656: :t
21657: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21658: s|@configure_input@|$ac_sed_conf_input|;t t
21659: s&@top_builddir@&$ac_top_builddir_sub&;t t
21660: s&@top_build_prefix@&$ac_top_build_prefix&;t t
21661: s&@srcdir@&$ac_srcdir&;t t
21662: s&@abs_srcdir@&$ac_abs_srcdir&;t t
21663: s&@top_srcdir@&$ac_top_srcdir&;t t
21664: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21665: s&@builddir@&$ac_builddir&;t t
21666: s&@abs_builddir@&$ac_abs_builddir&;t t
21667: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21668: $ac_datarootdir_hack
21669: "
21670: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21671:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21672: 
21673: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21674:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21675:   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21676:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21677:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21678: which seems to be undefined.  Please make sure it is defined" >&5
21679: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21680: which seems to be undefined.  Please make sure it is defined" >&2;}
21681: 
21682:   rm -f "$ac_tmp/stdin"
21683:   case $ac_file in
21684:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21685:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21686:   esac \
21687:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21688:  ;;
21689:   :H)
21690:   #
21691:   # CONFIG_HEADER
21692:   #
21693:   if test x"$ac_file" != x-; then
21694:     {
21695:       $as_echo "/* $configure_input  */" \
21696:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21697:     } >"$ac_tmp/config.h" \
21698:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21699:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21700:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21701: $as_echo "$as_me: $ac_file is unchanged" >&6;}
21702:     else
21703:       rm -f "$ac_file"
21704:       mv "$ac_tmp/config.h" "$ac_file" \
21705: 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21706:     fi
21707:   else
21708:     $as_echo "/* $configure_input  */" \
21709:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21710:       || as_fn_error $? "could not create -" "$LINENO" 5
21711:   fi
21712:  ;;
21713: 
21714:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21715: $as_echo "$as_me: executing $ac_file commands" >&6;}
21716:  ;;
21717:   esac
21718: 
21719: 
21720:   case $ac_file$ac_mode in
21721:     "libtool":C)
21722: 
21723:     # See if we are running on zsh, and set the options which allow our
21724:     # commands through without removal of \ escapes.
21725:     if test -n "${ZSH_VERSION+set}" ; then
21726:       setopt NO_GLOB_SUBST
21727:     fi
21728: 
21729:     cfgfile="${ofile}T"
21730:     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21731:     $RM "$cfgfile"
21732: 
21733:     cat <<_LT_EOF >> "$cfgfile"
21734: #! $SHELL
21735: 
21736: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21737: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21738: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21739: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21740: #
21741: #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21742: #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21743: #                 Foundation, Inc.
21744: #   Written by Gordon Matzigkeit, 1996
21745: #
21746: #   This file is part of GNU Libtool.
21747: #
21748: # GNU Libtool is free software; you can redistribute it and/or
21749: # modify it under the terms of the GNU General Public License as
21750: # published by the Free Software Foundation; either version 2 of
21751: # the License, or (at your option) any later version.
21752: #
21753: # As a special exception to the GNU General Public License,
21754: # if you distribute this file as part of a program or library that
21755: # is built using GNU Libtool, you may include this file under the
21756: # same distribution terms that you use for the rest of that program.
21757: #
21758: # GNU Libtool is distributed in the hope that it will be useful,
21759: # but WITHOUT ANY WARRANTY; without even the implied warranty of
21760: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21761: # GNU General Public License for more details.
21762: #
21763: # You should have received a copy of the GNU General Public License
21764: # along with GNU Libtool; see the file COPYING.  If not, a copy
21765: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21766: # obtained by writing to the Free Software Foundation, Inc.,
21767: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21768: 
21769: 
21770: # The names of the tagged configurations supported by this script.
21771: available_tags=""
21772: 
21773: # ### BEGIN LIBTOOL CONFIG
21774: 
21775: # Which release of libtool.m4 was used?
21776: macro_version=$macro_version
21777: macro_revision=$macro_revision
21778: 
21779: # Whether or not to build shared libraries.
21780: build_libtool_libs=$enable_shared
21781: 
21782: # Whether or not to build static libraries.
21783: build_old_libs=$enable_static
21784: 
21785: # What type of objects to build.
21786: pic_mode=$pic_mode
21787: 
21788: # Whether or not to optimize for fast installation.
21789: fast_install=$enable_fast_install
21790: 
21791: # Shell to use when invoking shell scripts.
21792: SHELL=$lt_SHELL
21793: 
21794: # An echo program that protects backslashes.
21795: ECHO=$lt_ECHO
21796: 
21797: # The PATH separator for the build system.
21798: PATH_SEPARATOR=$lt_PATH_SEPARATOR
21799: 
21800: # The host system.
21801: host_alias=$host_alias
21802: host=$host
21803: host_os=$host_os
21804: 
21805: # The build system.
21806: build_alias=$build_alias
21807: build=$build
21808: build_os=$build_os
21809: 
21810: # A sed program that does not truncate output.
21811: SED=$lt_SED
21812: 
21813: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21814: Xsed="\$SED -e 1s/^X//"
21815: 
21816: # A grep program that handles long lines.
21817: GREP=$lt_GREP
21818: 
21819: # An ERE matcher.
21820: EGREP=$lt_EGREP
21821: 
21822: # A literal string matcher.
21823: FGREP=$lt_FGREP
21824: 
21825: # A BSD- or MS-compatible name lister.
21826: NM=$lt_NM
21827: 
21828: # Whether we need soft or hard links.
21829: LN_S=$lt_LN_S
21830: 
21831: # What is the maximum length of a command?
21832: max_cmd_len=$max_cmd_len
21833: 
21834: # Object file suffix (normally "o").
21835: objext=$ac_objext
21836: 
21837: # Executable file suffix (normally "").
21838: exeext=$exeext
21839: 
21840: # whether the shell understands "unset".
21841: lt_unset=$lt_unset
21842: 
21843: # turn spaces into newlines.
21844: SP2NL=$lt_lt_SP2NL
21845: 
21846: # turn newlines into spaces.
21847: NL2SP=$lt_lt_NL2SP
21848: 
21849: # convert \$build file names to \$host format.
21850: to_host_file_cmd=$lt_cv_to_host_file_cmd
21851: 
21852: # convert \$build files to toolchain format.
21853: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21854: 
21855: # An object symbol dumper.
21856: OBJDUMP=$lt_OBJDUMP
21857: 
21858: # Method to check whether dependent libraries are shared objects.
21859: deplibs_check_method=$lt_deplibs_check_method
21860: 
21861: # Command to use when deplibs_check_method = "file_magic".
21862: file_magic_cmd=$lt_file_magic_cmd
21863: 
21864: # How to find potential files when deplibs_check_method = "file_magic".
21865: file_magic_glob=$lt_file_magic_glob
21866: 
21867: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21868: want_nocaseglob=$lt_want_nocaseglob
21869: 
21870: # DLL creation program.
21871: DLLTOOL=$lt_DLLTOOL
21872: 
21873: # Command to associate shared and link libraries.
21874: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21875: 
21876: # The archiver.
21877: AR=$lt_AR
21878: 
21879: # Flags to create an archive.
21880: AR_FLAGS=$lt_AR_FLAGS
21881: 
21882: # How to feed a file listing to the archiver.
21883: archiver_list_spec=$lt_archiver_list_spec
21884: 
21885: # A symbol stripping program.
21886: STRIP=$lt_STRIP
21887: 
21888: # Commands used to install an old-style archive.
21889: RANLIB=$lt_RANLIB
21890: old_postinstall_cmds=$lt_old_postinstall_cmds
21891: old_postuninstall_cmds=$lt_old_postuninstall_cmds
21892: 
21893: # Whether to use a lock for old archive extraction.
21894: lock_old_archive_extraction=$lock_old_archive_extraction
21895: 
21896: # A C compiler.
21897: LTCC=$lt_CC
21898: 
21899: # LTCC compiler flags.
21900: LTCFLAGS=$lt_CFLAGS
21901: 
21902: # Take the output of nm and produce a listing of raw symbols and C names.
21903: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21904: 
21905: # Transform the output of nm in a proper C declaration.
21906: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21907: 
21908: # Transform the output of nm in a C name address pair.
21909: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21910: 
21911: # Transform the output of nm in a C name address pair when lib prefix is needed.
21912: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21913: 
21914: # Specify filename containing input files for \$NM.
21915: nm_file_list_spec=$lt_nm_file_list_spec
21916: 
21917: # The root where to search for dependent libraries,and in which our libraries should be installed.
21918: lt_sysroot=$lt_sysroot
21919: 
21920: # The name of the directory that contains temporary libtool files.
21921: objdir=$objdir
21922: 
21923: # Used to examine libraries when file_magic_cmd begins with "file".
21924: MAGIC_CMD=$MAGIC_CMD
21925: 
21926: # Must we lock files when doing compilation?
21927: need_locks=$lt_need_locks
21928: 
21929: # Manifest tool.
21930: MANIFEST_TOOL=$lt_MANIFEST_TOOL
21931: 
21932: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21933: DSYMUTIL=$lt_DSYMUTIL
21934: 
21935: # Tool to change global to local symbols on Mac OS X.
21936: NMEDIT=$lt_NMEDIT
21937: 
21938: # Tool to manipulate fat objects and archives on Mac OS X.
21939: LIPO=$lt_LIPO
21940: 
21941: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21942: OTOOL=$lt_OTOOL
21943: 
21944: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21945: OTOOL64=$lt_OTOOL64
21946: 
21947: # Old archive suffix (normally "a").
21948: libext=$libext
21949: 
21950: # Shared library suffix (normally ".so").
21951: shrext_cmds=$lt_shrext_cmds
21952: 
21953: # The commands to extract the exported symbol list from a shared archive.
21954: extract_expsyms_cmds=$lt_extract_expsyms_cmds
21955: 
21956: # Variables whose values should be saved in libtool wrapper scripts and
21957: # restored at link time.
21958: variables_saved_for_relink=$lt_variables_saved_for_relink
21959: 
21960: # Do we need the "lib" prefix for modules?
21961: need_lib_prefix=$need_lib_prefix
21962: 
21963: # Do we need a version for libraries?
21964: need_version=$need_version
21965: 
21966: # Library versioning type.
21967: version_type=$version_type
21968: 
21969: # Shared library runtime path variable.
21970: runpath_var=$runpath_var
21971: 
21972: # Shared library path variable.
21973: shlibpath_var=$shlibpath_var
21974: 
21975: # Is shlibpath searched before the hard-coded library search path?
21976: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21977: 
21978: # Format of library name prefix.
21979: libname_spec=$lt_libname_spec
21980: 
21981: # List of archive names.  First name is the real one, the rest are links.
21982: # The last name is the one that the linker finds with -lNAME
21983: library_names_spec=$lt_library_names_spec
21984: 
21985: # The coded name of the library, if different from the real name.
21986: soname_spec=$lt_soname_spec
21987: 
21988: # Permission mode override for installation of shared libraries.
21989: install_override_mode=$lt_install_override_mode
21990: 
21991: # Command to use after installation of a shared archive.
21992: postinstall_cmds=$lt_postinstall_cmds
21993: 
21994: # Command to use after uninstallation of a shared archive.
21995: postuninstall_cmds=$lt_postuninstall_cmds
21996: 
21997: # Commands used to finish a libtool library installation in a directory.
21998: finish_cmds=$lt_finish_cmds
21999: 
22000: # As "finish_cmds", except a single script fragment to be evaled but
22001: # not shown.
22002: finish_eval=$lt_finish_eval
22003: 
22004: # Whether we should hardcode library paths into libraries.
22005: hardcode_into_libs=$hardcode_into_libs
22006: 
22007: # Compile-time system search path for libraries.
22008: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22009: 
22010: # Run-time system search path for libraries.
22011: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22012: 
22013: # Whether dlopen is supported.
22014: dlopen_support=$enable_dlopen
22015: 
22016: # Whether dlopen of programs is supported.
22017: dlopen_self=$enable_dlopen_self
22018: 
22019: # Whether dlopen of statically linked programs is supported.
22020: dlopen_self_static=$enable_dlopen_self_static
22021: 
22022: # Commands to strip libraries.
22023: old_striplib=$lt_old_striplib
22024: striplib=$lt_striplib
22025: 
22026: 
22027: # The linker used to build libraries.
22028: LD=$lt_LD
22029: 
22030: # How to create reloadable object files.
22031: reload_flag=$lt_reload_flag
22032: reload_cmds=$lt_reload_cmds
22033: 
22034: # Commands used to build an old-style archive.
22035: old_archive_cmds=$lt_old_archive_cmds
22036: 
22037: # A language specific compiler.
22038: CC=$lt_compiler
22039: 
22040: # Is the compiler the GNU compiler?
22041: with_gcc=$GCC
22042: 
22043: # Compiler flag to turn off builtin functions.
22044: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22045: 
22046: # Additional compiler flags for building library objects.
22047: pic_flag=$lt_lt_prog_compiler_pic
22048: 
22049: # How to pass a linker flag through the compiler.
22050: wl=$lt_lt_prog_compiler_wl
22051: 
22052: # Compiler flag to prevent dynamic linking.
22053: link_static_flag=$lt_lt_prog_compiler_static
22054: 
22055: # Does compiler simultaneously support -c and -o options?
22056: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22057: 
22058: # Whether or not to add -lc for building shared libraries.
22059: build_libtool_need_lc=$archive_cmds_need_lc
22060: 
22061: # Whether or not to disallow shared libs when runtime libs are static.
22062: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22063: 
22064: # Compiler flag to allow reflexive dlopens.
22065: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22066: 
22067: # Compiler flag to generate shared objects directly from archives.
22068: whole_archive_flag_spec=$lt_whole_archive_flag_spec
22069: 
22070: # Whether the compiler copes with passing no objects directly.
22071: compiler_needs_object=$lt_compiler_needs_object
22072: 
22073: # Create an old-style archive from a shared archive.
22074: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22075: 
22076: # Create a temporary old-style archive to link instead of a shared archive.
22077: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22078: 
22079: # Commands used to build a shared archive.
22080: archive_cmds=$lt_archive_cmds
22081: archive_expsym_cmds=$lt_archive_expsym_cmds
22082: 
22083: # Commands used to build a loadable module if different from building
22084: # a shared archive.
22085: module_cmds=$lt_module_cmds
22086: module_expsym_cmds=$lt_module_expsym_cmds
22087: 
22088: # Whether we are building with GNU ld or not.
22089: with_gnu_ld=$lt_with_gnu_ld
22090: 
22091: # Flag that allows shared libraries with undefined symbols to be built.
22092: allow_undefined_flag=$lt_allow_undefined_flag
22093: 
22094: # Flag that enforces no undefined symbols.
22095: no_undefined_flag=$lt_no_undefined_flag
22096: 
22097: # Flag to hardcode \$libdir into a binary during linking.
22098: # This must work even if \$libdir does not exist
22099: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22100: 
22101: # Whether we need a single "-rpath" flag with a separated argument.
22102: hardcode_libdir_separator=$lt_hardcode_libdir_separator
22103: 
22104: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22105: # DIR into the resulting binary.
22106: hardcode_direct=$hardcode_direct
22107: 
22108: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22109: # DIR into the resulting binary and the resulting library dependency is
22110: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22111: # library is relocated.
22112: hardcode_direct_absolute=$hardcode_direct_absolute
22113: 
22114: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22115: # into the resulting binary.
22116: hardcode_minus_L=$hardcode_minus_L
22117: 
22118: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22119: # into the resulting binary.
22120: hardcode_shlibpath_var=$hardcode_shlibpath_var
22121: 
22122: # Set to "yes" if building a shared library automatically hardcodes DIR
22123: # into the library and all subsequent libraries and executables linked
22124: # against it.
22125: hardcode_automatic=$hardcode_automatic
22126: 
22127: # Set to yes if linker adds runtime paths of dependent libraries
22128: # to runtime path list.
22129: inherit_rpath=$inherit_rpath
22130: 
22131: # Whether libtool must link a program against all its dependency libraries.
22132: link_all_deplibs=$link_all_deplibs
22133: 
22134: # Set to "yes" if exported symbols are required.
22135: always_export_symbols=$always_export_symbols
22136: 
22137: # The commands to list exported symbols.
22138: export_symbols_cmds=$lt_export_symbols_cmds
22139: 
22140: # Symbols that should not be listed in the preloaded symbols.
22141: exclude_expsyms=$lt_exclude_expsyms
22142: 
22143: # Symbols that must always be exported.
22144: include_expsyms=$lt_include_expsyms
22145: 
22146: # Commands necessary for linking programs (against libraries) with templates.
22147: prelink_cmds=$lt_prelink_cmds
22148: 
22149: # Commands necessary for finishing linking programs.
22150: postlink_cmds=$lt_postlink_cmds
22151: 
22152: # Specify filename containing input files.
22153: file_list_spec=$lt_file_list_spec
22154: 
22155: # How to hardcode a shared library path into an executable.
22156: hardcode_action=$hardcode_action
22157: 
22158: # ### END LIBTOOL CONFIG
22159: 
22160: _LT_EOF
22161: 
22162:   case $host_os in
22163:   aix3*)
22164:     cat <<\_LT_EOF >> "$cfgfile"
22165: # AIX sometimes has problems with the GCC collect2 program.  For some
22166: # reason, if we set the COLLECT_NAMES environment variable, the problems
22167: # vanish in a puff of smoke.
22168: if test "X${COLLECT_NAMES+set}" != Xset; then
22169:   COLLECT_NAMES=
22170:   export COLLECT_NAMES
22171: fi
22172: _LT_EOF
22173:     ;;
22174:   esac
22175: 
22176: 
22177: ltmain="$ac_aux_dir/ltmain.sh"
22178: 
22179: 
22180:   # We use sed instead of cat because bash on DJGPP gets confused if
22181:   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22182:   # text mode, it properly converts lines to CR/LF.  This bash problem
22183:   # is reportedly fixed, but why not run on old versions too?
22184:   sed '$q' "$ltmain" >> "$cfgfile" \
22185:      || (rm -f "$cfgfile"; exit 1)
22186: 
22187:   if test x"$xsi_shell" = xyes; then
22188:   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22189: func_dirname ()\
22190: {\
22191: \    case ${1} in\
22192: \      */*) func_dirname_result="${1%/*}${2}" ;;\
22193: \      *  ) func_dirname_result="${3}" ;;\
22194: \    esac\
22195: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22196:   && mv -f "$cfgfile.tmp" "$cfgfile" \
22197:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22198: test 0 -eq $? || _lt_function_replace_fail=:
22199: 
22200: 
22201:   sed -e '/^func_basename ()$/,/^} # func_basename /c\
22202: func_basename ()\
22203: {\
22204: \    func_basename_result="${1##*/}"\
22205: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22206:   && mv -f "$cfgfile.tmp" "$cfgfile" \
22207:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22208: test 0 -eq $? || _lt_function_replace_fail=:
22209: 
22210: 
22211:   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22212: func_dirname_and_basename ()\
22213: {\
22214: \    case ${1} in\
22215: \      */*) func_dirname_result="${1%/*}${2}" ;;\
22216: \      *  ) func_dirname_result="${3}" ;;\
22217: \    esac\
22218: \    func_basename_result="${1##*/}"\
22219: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22220:   && mv -f "$cfgfile.tmp" "$cfgfile" \
22221:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22222: test 0 -eq $? || _lt_function_replace_fail=:
22223: 
22224: 
22225:   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22226: func_stripname ()\
22227: {\
22228: \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22229: \    # positional parameters, so assign one to ordinary parameter first.\
22230: \    func_stripname_result=${3}\
22231: \    func_stripname_result=${func_stripname_result#"${1}"}\
22232: \    func_stripname_result=${func_stripname_result%"${2}"}\
22233: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22234:   && mv -f "$cfgfile.tmp" "$cfgfile" \
22235:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22236: test 0 -eq $? || _lt_function_replace_fail=:
22237: 
22238: 
22239:   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22240: func_split_long_opt ()\
22241: {\
22242: \    func_split_long_opt_name=${1%%=*}\
22243: \    func_split_long_opt_arg=${1#*=}\
22244: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22245:   && mv -f "$cfgfile.tmp" "$cfgfile" \
22246:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22247: test 0 -eq $? || _lt_function_replace_fail=:
22248: 
22249: 
22250:   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22251: func_split_short_opt ()\
22252: {\
22253: \    func_split_short_opt_arg=${1#??}\
22254: \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22255: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22256:   && mv -f "$cfgfile.tmp" "$cfgfile" \
22257:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22258: test 0 -eq $? || _lt_function_replace_fail=:
22259: 
22260: 
22261:   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22262: func_lo2o ()\
22263: {\
22264: \    case ${1} in\
22265: \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22266: \      *)    func_lo2o_result=${1} ;;\
22267: \    esac\
22268: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22269:   && mv -f "$cfgfile.tmp" "$cfgfile" \
22270:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22271: test 0 -eq $? || _lt_function_replace_fail=:
22272: 
22273: 
22274:   sed -e '/^func_xform ()$/,/^} # func_xform /c\
22275: func_xform ()\
22276: {\
22277:     func_xform_result=${1%.*}.lo\
22278: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22279:   && mv -f "$cfgfile.tmp" "$cfgfile" \
22280:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22281: test 0 -eq $? || _lt_function_replace_fail=:
22282: 
22283: 
22284:   sed -e '/^func_arith ()$/,/^} # func_arith /c\
22285: func_arith ()\
22286: {\
22287:     func_arith_result=$(( $* ))\
22288: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22289:   && mv -f "$cfgfile.tmp" "$cfgfile" \
22290:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22291: test 0 -eq $? || _lt_function_replace_fail=:
22292: 
22293: 
22294:   sed -e '/^func_len ()$/,/^} # func_len /c\
22295: func_len ()\
22296: {\
22297:     func_len_result=${#1}\
22298: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22299:   && mv -f "$cfgfile.tmp" "$cfgfile" \
22300:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22301: test 0 -eq $? || _lt_function_replace_fail=:
22302: 
22303: fi
22304: 
22305: if test x"$lt_shell_append" = xyes; then
22306:   sed -e '/^func_append ()$/,/^} # func_append /c\
22307: func_append ()\
22308: {\
22309:     eval "${1}+=\\${2}"\
22310: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22311:   && mv -f "$cfgfile.tmp" "$cfgfile" \
22312:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22313: test 0 -eq $? || _lt_function_replace_fail=:
22314: 
22315: 
22316:   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22317: func_append_quoted ()\
22318: {\
22319: \    func_quote_for_eval "${2}"\
22320: \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22321: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22322:   && mv -f "$cfgfile.tmp" "$cfgfile" \
22323:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22324: test 0 -eq $? || _lt_function_replace_fail=:
22325: 
22326: 
22327:   # Save a `func_append' function call where possible by direct use of '+='
22328:   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22329:     && mv -f "$cfgfile.tmp" "$cfgfile" \
22330:       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22331:   test 0 -eq $? || _lt_function_replace_fail=:
22332: else
22333:   # Save a `func_append' function call even when '+=' is not available
22334:   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22335:     && mv -f "$cfgfile.tmp" "$cfgfile" \
22336:       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22337:   test 0 -eq $? || _lt_function_replace_fail=:
22338: fi
22339: 
22340: if test x"$_lt_function_replace_fail" = x":"; then
22341:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22342: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22343: fi
22344: 
22345: 
22346:    mv -f "$cfgfile" "$ofile" ||
22347:     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22348:   chmod +x "$ofile"
22349: 
22350:  ;;
22351: 
22352:   esac
22353: done # for ac_tag
22354: 
22355: 
22356: as_fn_exit 0
22357: _ACEOF
22358: ac_clean_files=$ac_clean_files_save
22359: 
22360: test $ac_write_fail = 0 ||
22361:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22362: 
22363: 
22364: # configure is writing to config.log, and then calls config.status.
22365: # config.status does its own redirection, appending to config.log.
22366: # Unfortunately, on DOS this fails, as config.log is still kept open
22367: # by configure, so config.status won't be able to write to it; its
22368: # output is simply discarded.  So we exec the FD to /dev/null,
22369: # effectively closing config.log, so it can be properly (re)opened and
22370: # appended to by config.status.  When coming back to configure, we
22371: # need to make the FD available again.
22372: if test "$no_create" != yes; then
22373:   ac_cs_success=:
22374:   ac_config_status_args=
22375:   test "$silent" = yes &&
22376:     ac_config_status_args="$ac_config_status_args --quiet"
22377:   exec 5>/dev/null
22378:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22379:   exec 5>>config.log
22380:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22381:   # would make configure fail if this is the last instruction.
22382:   $ac_cs_success || as_fn_exit 1
22383: fi
22384: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22385:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22386: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22387: fi
22388: 
22389: 
22390: if test "$with_pam" = "yes"; then
22391:     case $host in
22392: 	*-*-hpux*)
22393: 	    if test -f /usr/lib/security/libpam_hpsec.so.1; then
22394: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: You may wish to add the following line to /etc/pam.conf" >&5
22395: $as_echo "$as_me: You may wish to add the following line to /etc/pam.conf" >&6;}
22396: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5
22397: $as_echo "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;}
22398: 	    fi
22399: 	    ;;
22400: 	*-*-linux*)
22401: 	    { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
22402: $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
22403: 	    ;;
22404:     esac
22405: fi
22406: 
22407: 
22408: 
22409: 
22410: 
22411: 
22412: 
22413: 
22414: 
22415: 
22416: 
22417: 
22418: 
22419: 
22420: 
22421: 
22422: 
22423: 
22424: 
22425: 
22426: 
22427: 
22428: 
22429: 
22430: 
22431: 
22432: 
22433: 
22434: 
22435: 
22436: 
22437: 
22438: 
22439: 
22440: 
22441: 
22442: 
22443: 
22444: 
22445: 
22446: 
22447: 
22448: 
22449: 
22450: 
22451: 
22452: 
22453: 
22454: 
22455: 
22456: 
22457: 
22458: 
22459: 
22460: 
22461: 
22462: 
22463: 
22464: 
22465: 
22466: 
22467: 
22468: 
22469: 
22470: 
22471: 
22472: 
22473: 
22474: 
22475: 
22476: 
22477: 
22478: 
22479: 
22480: 
22481: 
22482: 
22483: 
22484: 
22485: 
22486: 
22487: 
22488: 
22489: 
22490: 
22491: 
22492: 
22493: 
22494: 
22495: 
22496: 
22497: 
22498: 
22499: 
22500: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>