Annotation of embedaddon/sudo/configure, revision 1.1.1.6

1.1       misho       1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.6 ! misho       3: # Generated by GNU Autoconf 2.69 for sudo 1.8.10p3.
1.1       misho       4: #
                      5: # Report bugs to <http://www.sudo.ws/bugs/>.
                      6: #
                      7: #
1.1.1.6 ! misho       8: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.1       misho       9: #
                     10: #
                     11: # This configure script is free software; the Free Software Foundation
                     12: # gives unlimited permission to copy, distribute and modify it.
                     13: ## -------------------- ##
                     14: ## M4sh Initialization. ##
                     15: ## -------------------- ##
                     16: 
                     17: # Be more Bourne compatible
                     18: DUALCASE=1; export DUALCASE # for MKS sh
                     19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
                     20:   emulate sh
                     21:   NULLCMD=:
                     22:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
                     23:   # is contrary to our usage.  Disable this feature.
                     24:   alias -g '${1+"$@"}'='"$@"'
                     25:   setopt NO_GLOB_SUBST
                     26: else
                     27:   case `(set -o) 2>/dev/null` in #(
                     28:   *posix*) :
                     29:     set -o posix ;; #(
                     30:   *) :
                     31:      ;;
                     32: esac
                     33: fi
                     34: 
                     35: 
                     36: as_nl='
                     37: '
                     38: export as_nl
                     39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                     40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                     41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                     42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                     43: # Prefer a ksh shell builtin over an external printf program on Solaris,
                     44: # but without wasting forks for bash or zsh.
                     45: if test -z "$BASH_VERSION$ZSH_VERSION" \
                     46:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                     47:   as_echo='print -r --'
                     48:   as_echo_n='print -rn --'
                     49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                     50:   as_echo='printf %s\n'
                     51:   as_echo_n='printf %s'
                     52: else
                     53:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                     54:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                     55:     as_echo_n='/usr/ucb/echo -n'
                     56:   else
                     57:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                     58:     as_echo_n_body='eval
                     59:       arg=$1;
                     60:       case $arg in #(
                     61:       *"$as_nl"*)
                     62:        expr "X$arg" : "X\\(.*\\)$as_nl";
                     63:        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                     64:       esac;
                     65:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                     66:     '
                     67:     export as_echo_n_body
                     68:     as_echo_n='sh -c $as_echo_n_body as_echo'
                     69:   fi
                     70:   export as_echo_body
                     71:   as_echo='sh -c $as_echo_body as_echo'
                     72: fi
                     73: 
                     74: # The user is always right.
                     75: if test "${PATH_SEPARATOR+set}" != set; then
                     76:   PATH_SEPARATOR=:
                     77:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                     78:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                     79:       PATH_SEPARATOR=';'
                     80:   }
                     81: fi
                     82: 
                     83: 
                     84: # IFS
                     85: # We need space, tab and new line, in precisely that order.  Quoting is
                     86: # there to prevent editors from complaining about space-tab.
                     87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     88: # splitting by setting IFS to empty value.)
                     89: IFS=" ""       $as_nl"
                     90: 
                     91: # Find who we are.  Look in the path if we contain no directory separator.
                     92: as_myself=
                     93: case $0 in #((
                     94:   *[\\/]* ) as_myself=$0 ;;
                     95:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     96: for as_dir in $PATH
                     97: do
                     98:   IFS=$as_save_IFS
                     99:   test -z "$as_dir" && as_dir=.
                    100:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    101:   done
                    102: IFS=$as_save_IFS
                    103: 
                    104:      ;;
                    105: esac
                    106: # We did not find ourselves, most probably we were run as `sh COMMAND'
                    107: # in which case we are not to be found in the path.
                    108: if test "x$as_myself" = x; then
                    109:   as_myself=$0
                    110: fi
                    111: if test ! -f "$as_myself"; then
                    112:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    113:   exit 1
                    114: fi
                    115: 
                    116: # Unset variables that we do not need and which cause bugs (e.g. in
                    117: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                    118: # suppresses any "Segmentation fault" message there.  '((' could
                    119: # trigger a bug in pdksh 5.2.14.
                    120: for as_var in BASH_ENV ENV MAIL MAILPATH
                    121: do eval test x\${$as_var+set} = xset \
                    122:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
                    123: done
                    124: PS1='$ '
                    125: PS2='> '
                    126: PS4='+ '
                    127: 
                    128: # NLS nuisances.
                    129: LC_ALL=C
                    130: export LC_ALL
                    131: LANGUAGE=C
                    132: export LANGUAGE
                    133: 
                    134: # CDPATH.
                    135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                    136: 
1.1.1.6 ! misho     137: # Use a proper internal environment variable to ensure we don't fall
        !           138:   # into an infinite loop, continuously re-executing ourselves.
        !           139:   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
        !           140:     _as_can_reexec=no; export _as_can_reexec;
        !           141:     # We cannot yet assume a decent shell, so we have to provide a
        !           142: # neutralization value for shells without unset; and this also
        !           143: # works around shells that cannot unset nonexistent variables.
        !           144: # Preserve -v and -x to the replacement shell.
        !           145: BASH_ENV=/dev/null
        !           146: ENV=/dev/null
        !           147: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
        !           148: case $- in # ((((
        !           149:   *v*x* | *x*v* ) as_opts=-vx ;;
        !           150:   *v* ) as_opts=-v ;;
        !           151:   *x* ) as_opts=-x ;;
        !           152:   * ) as_opts= ;;
        !           153: esac
        !           154: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
        !           155: # Admittedly, this is quite paranoid, since all the known shells bail
        !           156: # out after a failed `exec'.
        !           157: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
        !           158: as_fn_exit 255
        !           159:   fi
        !           160:   # We don't want this to propagate to other subprocesses.
        !           161:           { _as_can_reexec=; unset _as_can_reexec;}
1.1       misho     162: if test "x$CONFIG_SHELL" = x; then
                    163:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
                    164:   emulate sh
                    165:   NULLCMD=:
                    166:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
                    167:   # is contrary to our usage.  Disable this feature.
                    168:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
                    169:   setopt NO_GLOB_SUBST
                    170: else
                    171:   case \`(set -o) 2>/dev/null\` in #(
                    172:   *posix*) :
                    173:     set -o posix ;; #(
                    174:   *) :
                    175:      ;;
                    176: esac
                    177: fi
                    178: "
                    179:   as_required="as_fn_return () { (exit \$1); }
                    180: as_fn_success () { as_fn_return 0; }
                    181: as_fn_failure () { as_fn_return 1; }
                    182: as_fn_ret_success () { return 0; }
                    183: as_fn_ret_failure () { return 1; }
                    184: 
                    185: exitcode=0
                    186: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    187: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    188: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    189: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    190: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    191: 
                    192: else
                    193:   exitcode=1; echo positional parameters were not saved.
                    194: fi
1.1.1.6 ! misho     195: test x\$exitcode = x0 || exit 1
        !           196: test -x / || exit 1"
1.1       misho     197:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
                    198:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
                    199:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
                    200:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
                    201: 
                    202:   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
                    203:     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                    204:     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
                    205:     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
                    206:     PATH=/empty FPATH=/empty; export PATH FPATH
                    207:     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
                    208:       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
                    209: test \$(( 1 + 1 )) = 2 || exit 1"
                    210:   if (eval "$as_required") 2>/dev/null; then :
                    211:   as_have_required=yes
                    212: else
                    213:   as_have_required=no
                    214: fi
                    215:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
                    216: 
                    217: else
                    218:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    219: as_found=false
                    220: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    221: do
                    222:   IFS=$as_save_IFS
                    223:   test -z "$as_dir" && as_dir=.
                    224:   as_found=:
                    225:   case $as_dir in #(
                    226:         /*)
                    227:           for as_base in sh bash ksh sh5; do
                    228:             # Try only shells that exist, to save several forks.
                    229:             as_shell=$as_dir/$as_base
                    230:             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    231:                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    232:   CONFIG_SHELL=$as_shell as_have_required=yes
                    233:                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    234:   break 2
                    235: fi
                    236: fi
                    237:           done;;
                    238:        esac
                    239:   as_found=false
                    240: done
                    241: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
                    242:              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
                    243:   CONFIG_SHELL=$SHELL as_have_required=yes
                    244: fi; }
                    245: IFS=$as_save_IFS
                    246: 
                    247: 
                    248:       if test "x$CONFIG_SHELL" != x; then :
1.1.1.6 ! misho     249:   export CONFIG_SHELL
        !           250:              # We cannot yet assume a decent shell, so we have to provide a
        !           251: # neutralization value for shells without unset; and this also
        !           252: # works around shells that cannot unset nonexistent variables.
        !           253: # Preserve -v and -x to the replacement shell.
        !           254: BASH_ENV=/dev/null
        !           255: ENV=/dev/null
        !           256: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
        !           257: case $- in # ((((
        !           258:   *v*x* | *x*v* ) as_opts=-vx ;;
        !           259:   *v* ) as_opts=-v ;;
        !           260:   *x* ) as_opts=-x ;;
        !           261:   * ) as_opts= ;;
        !           262: esac
        !           263: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
        !           264: # Admittedly, this is quite paranoid, since all the known shells bail
        !           265: # out after a failed `exec'.
        !           266: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
        !           267: exit 255
1.1       misho     268: fi
                    269: 
                    270:     if test x$as_have_required = xno; then :
                    271:   $as_echo "$0: This script requires a shell more modern than all"
                    272:   $as_echo "$0: the shells that I found on your system."
                    273:   if test x${ZSH_VERSION+set} = xset ; then
                    274:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
                    275:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
                    276:   else
                    277:     $as_echo "$0: Please tell bug-autoconf@gnu.org and
                    278: $0: http://www.sudo.ws/bugs/ about your system, including
                    279: $0: any error possibly output before this message. Then
                    280: $0: install a modern shell, or manually run the script
                    281: $0: under such a shell if you do have one."
                    282:   fi
                    283:   exit 1
                    284: fi
                    285: fi
                    286: fi
                    287: SHELL=${CONFIG_SHELL-/bin/sh}
                    288: export SHELL
                    289: # Unset more variables known to interfere with behavior of common tools.
                    290: CLICOLOR_FORCE= GREP_OPTIONS=
                    291: unset CLICOLOR_FORCE GREP_OPTIONS
                    292: 
                    293: ## --------------------- ##
                    294: ## M4sh Shell Functions. ##
                    295: ## --------------------- ##
                    296: # as_fn_unset VAR
                    297: # ---------------
                    298: # Portably unset VAR.
                    299: as_fn_unset ()
                    300: {
                    301:   { eval $1=; unset $1;}
                    302: }
                    303: as_unset=as_fn_unset
                    304: 
                    305: # as_fn_set_status STATUS
                    306: # -----------------------
                    307: # Set $? to STATUS, without forking.
                    308: as_fn_set_status ()
                    309: {
                    310:   return $1
                    311: } # as_fn_set_status
                    312: 
                    313: # as_fn_exit STATUS
                    314: # -----------------
                    315: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                    316: as_fn_exit ()
                    317: {
                    318:   set +e
                    319:   as_fn_set_status $1
                    320:   exit $1
                    321: } # as_fn_exit
                    322: 
                    323: # as_fn_mkdir_p
                    324: # -------------
                    325: # Create "$as_dir" as a directory, including parents if necessary.
                    326: as_fn_mkdir_p ()
                    327: {
                    328: 
                    329:   case $as_dir in #(
                    330:   -*) as_dir=./$as_dir;;
                    331:   esac
                    332:   test -d "$as_dir" || eval $as_mkdir_p || {
                    333:     as_dirs=
                    334:     while :; do
                    335:       case $as_dir in #(
                    336:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                    337:       *) as_qdir=$as_dir;;
                    338:       esac
                    339:       as_dirs="'$as_qdir' $as_dirs"
                    340:       as_dir=`$as_dirname -- "$as_dir" ||
                    341: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    342:         X"$as_dir" : 'X\(//\)[^/]' \| \
                    343:         X"$as_dir" : 'X\(//\)$' \| \
                    344:         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                    345: $as_echo X"$as_dir" |
                    346:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                    347:            s//\1/
                    348:            q
                    349:          }
                    350:          /^X\(\/\/\)[^/].*/{
                    351:            s//\1/
                    352:            q
                    353:          }
                    354:          /^X\(\/\/\)$/{
                    355:            s//\1/
                    356:            q
                    357:          }
                    358:          /^X\(\/\).*/{
                    359:            s//\1/
                    360:            q
                    361:          }
                    362:          s/.*/./; q'`
                    363:       test -d "$as_dir" && break
                    364:     done
                    365:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                    366:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
                    367: 
                    368: 
                    369: } # as_fn_mkdir_p
1.1.1.6 ! misho     370: 
        !           371: # as_fn_executable_p FILE
        !           372: # -----------------------
        !           373: # Test if FILE is an executable regular file.
        !           374: as_fn_executable_p ()
        !           375: {
        !           376:   test -f "$1" && test -x "$1"
        !           377: } # as_fn_executable_p
1.1       misho     378: # as_fn_append VAR VALUE
                    379: # ----------------------
                    380: # Append the text in VALUE to the end of the definition contained in VAR. Take
                    381: # advantage of any shell optimizations that allow amortized linear growth over
                    382: # repeated appends, instead of the typical quadratic growth present in naive
                    383: # implementations.
                    384: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                    385:   eval 'as_fn_append ()
                    386:   {
                    387:     eval $1+=\$2
                    388:   }'
                    389: else
                    390:   as_fn_append ()
                    391:   {
                    392:     eval $1=\$$1\$2
                    393:   }
                    394: fi # as_fn_append
                    395: 
                    396: # as_fn_arith ARG...
                    397: # ------------------
                    398: # Perform arithmetic evaluation on the ARGs, and store the result in the
                    399: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                    400: # must be portable across $(()) and expr.
                    401: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    402:   eval 'as_fn_arith ()
                    403:   {
                    404:     as_val=$(( $* ))
                    405:   }'
                    406: else
                    407:   as_fn_arith ()
                    408:   {
                    409:     as_val=`expr "$@" || test $? -eq 1`
                    410:   }
                    411: fi # as_fn_arith
                    412: 
                    413: 
                    414: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                    415: # ----------------------------------------
                    416: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                    417: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
                    418: # script with STATUS, using 1 if that was 0.
                    419: as_fn_error ()
                    420: {
                    421:   as_status=$1; test $as_status -eq 0 && as_status=1
                    422:   if test "$4"; then
                    423:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                    424:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
                    425:   fi
                    426:   $as_echo "$as_me: error: $2" >&2
                    427:   as_fn_exit $as_status
                    428: } # as_fn_error
                    429: 
                    430: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    431:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    432:   as_expr=expr
                    433: else
                    434:   as_expr=false
                    435: fi
                    436: 
                    437: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    438:   as_basename=basename
                    439: else
                    440:   as_basename=false
                    441: fi
                    442: 
                    443: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    444:   as_dirname=dirname
                    445: else
                    446:   as_dirname=false
                    447: fi
                    448: 
                    449: as_me=`$as_basename -- "$0" ||
                    450: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    451:         X"$0" : 'X\(//\)$' \| \
                    452:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                    453: $as_echo X/"$0" |
                    454:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    455:            s//\1/
                    456:            q
                    457:          }
                    458:          /^X\/\(\/\/\)$/{
                    459:            s//\1/
                    460:            q
                    461:          }
                    462:          /^X\/\(\/\).*/{
                    463:            s//\1/
                    464:            q
                    465:          }
                    466:          s/.*/./; q'`
                    467: 
                    468: # Avoid depending upon Character Ranges.
                    469: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    470: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    471: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    472: as_cr_digits='0123456789'
                    473: as_cr_alnum=$as_cr_Letters$as_cr_digits
                    474: 
                    475: 
                    476:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
                    477:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
                    478:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
                    479:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
                    480:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
                    481:   sed -n '
                    482:     p
                    483:     /[$]LINENO/=
                    484:   ' <$as_myself |
                    485:     sed '
                    486:       s/[$]LINENO.*/&-/
                    487:       t lineno
                    488:       b
                    489:       :lineno
                    490:       N
                    491:       :loop
                    492:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                    493:       t loop
                    494:       s/-\n.*//
                    495:     ' >$as_me.lineno &&
                    496:   chmod +x "$as_me.lineno" ||
                    497:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
                    498: 
1.1.1.6 ! misho     499:   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
        !           500:   # already done that, so ensure we don't try to do so again and fall
        !           501:   # in an infinite loop.  This has already happened in practice.
        !           502:   _as_can_reexec=no; export _as_can_reexec
1.1       misho     503:   # Don't try to exec as it changes $[0], causing all sort of problems
                    504:   # (the dirname of $[0] is not the place where we might find the
                    505:   # original and so on.  Autoconf is especially sensitive to this).
                    506:   . "./$as_me.lineno"
                    507:   # Exit status is that of the last command.
                    508:   exit
                    509: }
                    510: 
                    511: ECHO_C= ECHO_N= ECHO_T=
                    512: case `echo -n x` in #(((((
                    513: -n*)
                    514:   case `echo 'xy\c'` in
                    515:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                    516:   xy)  ECHO_C='\c';;
                    517:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                    518:        ECHO_T='        ';;
                    519:   esac;;
                    520: *)
                    521:   ECHO_N='-n';;
                    522: esac
                    523: 
                    524: rm -f conf$$ conf$$.exe conf$$.file
                    525: if test -d conf$$.dir; then
                    526:   rm -f conf$$.dir/conf$$.file
                    527: else
                    528:   rm -f conf$$.dir
                    529:   mkdir conf$$.dir 2>/dev/null
                    530: fi
                    531: if (echo >conf$$.file) 2>/dev/null; then
                    532:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                    533:     as_ln_s='ln -s'
                    534:     # ... but there are two gotchas:
                    535:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    536:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.6 ! misho     537:     # In both cases, we have to default to `cp -pR'.
1.1       misho     538:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.6 ! misho     539:       as_ln_s='cp -pR'
1.1       misho     540:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    541:     as_ln_s=ln
                    542:   else
1.1.1.6 ! misho     543:     as_ln_s='cp -pR'
1.1       misho     544:   fi
                    545: else
1.1.1.6 ! misho     546:   as_ln_s='cp -pR'
1.1       misho     547: fi
                    548: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    549: rmdir conf$$.dir 2>/dev/null
                    550: 
                    551: if mkdir -p . 2>/dev/null; then
                    552:   as_mkdir_p='mkdir -p "$as_dir"'
                    553: else
                    554:   test -d ./-p && rmdir ./-p
                    555:   as_mkdir_p=false
                    556: fi
                    557: 
1.1.1.6 ! misho     558: as_test_x='test -x'
        !           559: as_executable_p=as_fn_executable_p
1.1       misho     560: 
                    561: # Sed expression to map a string onto a valid CPP name.
                    562: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                    563: 
                    564: # Sed expression to map a string onto a valid variable name.
                    565: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    566: 
                    567: SHELL=${CONFIG_SHELL-/bin/sh}
                    568: 
                    569: 
                    570: test -n "$DJDIR" || exec 7<&0 </dev/null
                    571: exec 6>&1
                    572: 
                    573: # Name of the host.
                    574: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
                    575: # so uname gets run too.
                    576: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    577: 
                    578: #
                    579: # Initializations.
                    580: #
                    581: ac_default_prefix=/usr/local
                    582: ac_clean_files=
                    583: ac_config_libobj_dir=.
                    584: LIBOBJS=
                    585: cross_compiling=no
                    586: subdirs=
                    587: MFLAGS=
                    588: MAKEFLAGS=
                    589: 
                    590: # Identity of this package.
                    591: PACKAGE_NAME='sudo'
                    592: PACKAGE_TARNAME='sudo'
1.1.1.6 ! misho     593: PACKAGE_VERSION='1.8.10p3'
        !           594: PACKAGE_STRING='sudo 1.8.10p3'
1.1       misho     595: PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
                    596: PACKAGE_URL=''
                    597: 
1.1.1.6 ! misho     598: ac_unique_file="src/sudo.c"
1.1       misho     599: ac_config_libobj_dir=compat
                    600: # Factoring default headers for most tests.
                    601: ac_includes_default="\
                    602: #include <stdio.h>
                    603: #ifdef HAVE_SYS_TYPES_H
                    604: # include <sys/types.h>
                    605: #endif
                    606: #ifdef HAVE_SYS_STAT_H
                    607: # include <sys/stat.h>
                    608: #endif
                    609: #ifdef STDC_HEADERS
                    610: # include <stdlib.h>
                    611: # include <stddef.h>
                    612: #else
                    613: # ifdef HAVE_STDLIB_H
                    614: #  include <stdlib.h>
                    615: # endif
                    616: #endif
                    617: #ifdef HAVE_STRING_H
                    618: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
                    619: #  include <memory.h>
                    620: # endif
                    621: # include <string.h>
                    622: #endif
                    623: #ifdef HAVE_STRINGS_H
                    624: # include <strings.h>
                    625: #endif
                    626: #ifdef HAVE_INTTYPES_H
                    627: # include <inttypes.h>
                    628: #endif
                    629: #ifdef HAVE_STDINT_H
                    630: # include <stdint.h>
                    631: #endif
                    632: #ifdef HAVE_UNISTD_H
                    633: # include <unistd.h>
                    634: #endif"
                    635: 
1.1.1.3   misho     636: ac_c_werror_flag=
1.1       misho     637: ac_subst_vars='LTLIBOBJS
                    638: KRB5CONFIG
                    639: LIBOBJS
                    640: FLEX
                    641: YFLAGS
                    642: YACC
                    643: NROFFPROG
1.1.1.3   misho     644: MANDOCPROG
1.1       misho     645: TRPROG
                    646: UNAMEPROG
                    647: OTOOL64
                    648: OTOOL
                    649: LIPO
                    650: NMEDIT
                    651: DSYMUTIL
                    652: MANIFEST_TOOL
                    653: AWK
                    654: STRIP
                    655: ac_ct_AR
                    656: DLLTOOL
                    657: OBJDUMP
                    658: LN_S
                    659: NM
                    660: ac_ct_DUMPBIN
                    661: DUMPBIN
                    662: LD
                    663: FGREP
                    664: EGREP
                    665: GREP
                    666: SED
                    667: host_os
                    668: host_vendor
                    669: host_cpu
                    670: host
                    671: build_os
                    672: build_vendor
                    673: build_cpu
                    674: build
                    675: RANLIB
                    676: AR
                    677: CPP
                    678: OBJEXT
                    679: EXEEXT
                    680: ac_ct_CC
                    681: CC
1.1.1.4   misho     682: PLUGINDIR
1.1.1.5   misho     683: pam_login_service
1.1.1.4   misho     684: pam_session
1.1       misho     685: editor
                    686: secure_path
                    687: netsvc_conf
                    688: nsswitch_conf
1.1.1.3   misho     689: sssd_lib
1.1       misho     690: ldap_secret
                    691: ldap_conf
                    692: path_info
                    693: root_sudo
                    694: insults
                    695: tty_tickets
                    696: passwd_tries
                    697: env_reset
                    698: env_editor
                    699: runas_default
                    700: fqdn
                    701: badpass_message
                    702: mailsub
                    703: mailto
                    704: mail_no_perms
                    705: mail_no_host
                    706: mail_no_user
                    707: ignore_dot
                    708: loglen
                    709: badpri
                    710: goodpri
                    711: logfac
                    712: lecture
                    713: long_otp_prompt
                    714: passprompt
                    715: umask_override
                    716: sudo_umask
                    717: password_timeout
                    718: timeout
1.1.1.6 ! misho     719: vardir
        !           720: rundir
1.1       misho     721: iolog_dir
1.1.1.6 ! misho     722: RC_LINK
        !           723: INIT_DIR
        !           724: INIT_SCRIPT
1.1.1.3   misho     725: NO_VIZ
1.1.1.4   misho     726: SSP_CFLAGS
                    727: SSP_LDFLAGS
1.1.1.3   misho     728: PIE_CFLAGS
                    729: PIE_LDFLAGS
                    730: CROSS_COMPILING
1.1.1.2   misho     731: COMPAT_TEST_PROGS
1.1.1.4   misho     732: LOCALEDIR_SUFFIX
1.1       misho     733: SUDO_NLS
                    734: LIBINTL
                    735: LT_STATIC
                    736: LIBDL
                    737: CONFIGURE_ARGS
                    738: ac_config_libobj_dir
                    739: LIBTOOL_DEPS
                    740: ZLIB_SRC
                    741: ZLIB
                    742: LOGINCAP_USAGE
                    743: LDAP
                    744: SELINUX_USAGE
                    745: BSDAUTH_USAGE
                    746: DONT_LEAK_PATH_INFO
                    747: INSTALL_NOEXEC
1.1.1.4   misho     748: sesh_file
1.1       misho     749: noexec_file
                    750: SOEXT
                    751: NOEXECDIR
                    752: NOEXECFILE
                    753: mansrcdir
                    754: mansectform
                    755: mansectsu
                    756: devdir
                    757: SEMAN
1.1.1.3   misho     758: PSMAN
1.1       misho     759: LCMAN
                    760: BAMAN
1.1.1.2   misho     761: DEVEL
1.1       misho     762: SUDOERS_GID
                    763: SUDOERS_UID
                    764: SUDOERS_MODE
1.1.1.5   misho     765: SHLIB_EXT
1.1.1.3   misho     766: SHLIB_MODE
                    767: MANCOMPRESSEXT
                    768: MANCOMPRESS
                    769: MANDIRTYPE
1.1       misho     770: MANTYPE
                    771: AUTH_OBJS
                    772: OSDEFS
                    773: GETGROUPS_LIB
                    774: REPLAY_LIBS
                    775: AFS_LIBS
                    776: NET_LIBS
1.1.1.6 ! misho     777: STATIC_SUDOERS
1.1       misho     778: SUDOERS_LIBS
                    779: SUDO_LIBS
                    780: SUDO_OBJS
                    781: SUDOERS_OBJS
                    782: COMMON_OBJS
1.1.1.3   misho     783: LT_LDEXPORTS
                    784: LT_LDDEP
                    785: LT_LDOPT
                    786: LT_LDMAP
                    787: LT_LDFLAGS
1.1       misho     788: SUDOERS_LDFLAGS
                    789: LDFLAGS
                    790: CPPFLAGS
                    791: PROGS
                    792: CFLAGS
                    793: LIBTOOL
                    794: HAVE_BSM_AUDIT
                    795: target_alias
                    796: host_alias
                    797: build_alias
                    798: LIBS
                    799: ECHO_T
                    800: ECHO_N
                    801: ECHO_C
                    802: DEFS
                    803: mandir
                    804: localedir
                    805: libdir
                    806: psdir
                    807: pdfdir
                    808: dvidir
                    809: htmldir
                    810: infodir
                    811: docdir
                    812: oldincludedir
                    813: includedir
                    814: localstatedir
                    815: sharedstatedir
                    816: sysconfdir
                    817: datadir
                    818: datarootdir
                    819: libexecdir
                    820: sbindir
                    821: bindir
                    822: program_transform_name
                    823: prefix
                    824: exec_prefix
                    825: PACKAGE_URL
                    826: PACKAGE_BUGREPORT
                    827: PACKAGE_STRING
                    828: PACKAGE_VERSION
                    829: PACKAGE_TARNAME
                    830: PACKAGE_NAME
                    831: PATH_SEPARATOR
                    832: SHELL'
                    833: ac_subst_files=''
                    834: ac_user_opts='
                    835: enable_option_checking
                    836: with_otp_only
                    837: with_alertmail
                    838: with_devel
                    839: with_CC
                    840: with_rpath
                    841: with_blibpath
                    842: with_bsm_audit
                    843: with_linux_audit
1.1.1.3   misho     844: with_sssd
                    845: with_sssd_lib
1.1       misho     846: with_incpath
                    847: with_libpath
                    848: with_libraries
                    849: with_efence
                    850: with_csops
                    851: with_passwd
                    852: with_skey
                    853: with_opie
                    854: with_long_otp_prompt
                    855: with_SecurID
                    856: with_fwtk
                    857: with_kerb5
                    858: with_aixauth
                    859: with_pam
                    860: with_AFS
                    861: with_DCE
                    862: with_logincap
                    863: with_bsdauth
                    864: with_project
                    865: with_lecture
                    866: with_logging
                    867: with_logfac
                    868: with_goodpri
                    869: with_badpri
                    870: with_logpath
                    871: with_loglen
                    872: with_ignore_dot
                    873: with_mail_if_no_user
                    874: with_mail_if_no_host
                    875: with_mail_if_noperms
                    876: with_mailto
                    877: with_mailsubject
                    878: with_passprompt
                    879: with_badpass_message
                    880: with_fqdn
                    881: with_timedir
1.1.1.6 ! misho     882: with_rundir
        !           883: with_vardir
1.1       misho     884: with_iologdir
                    885: with_sendmail
                    886: with_sudoers_mode
                    887: with_sudoers_uid
                    888: with_sudoers_gid
                    889: with_umask
                    890: with_umask_override
                    891: with_runas_default
                    892: with_exempt
                    893: with_editor
                    894: with_env_editor
                    895: with_passwd_tries
                    896: with_timeout
                    897: with_password_timeout
                    898: with_tty_tickets
                    899: with_insults
                    900: with_all_insults
                    901: with_classic_insults
                    902: with_csops_insults
                    903: with_hal_insults
                    904: with_goons_insults
                    905: with_nsswitch
                    906: with_ldap
                    907: with_ldap_conf_file
                    908: with_ldap_secret_file
                    909: with_pc_insults
                    910: with_secure_path
                    911: with_interfaces
                    912: with_stow
                    913: with_askpass
                    914: with_plugindir
1.1.1.3   misho     915: with_man
                    916: with_mdoc
1.1       misho     917: enable_authentication
                    918: enable_root_mailer
                    919: enable_setreuid
                    920: enable_setresuid
                    921: enable_shadow
                    922: enable_root_sudo
                    923: enable_log_host
                    924: enable_noargs_shell
                    925: enable_shell_sets_home
                    926: enable_path_info
                    927: enable_env_debug
                    928: enable_zlib
                    929: enable_env_reset
                    930: enable_warnings
                    931: enable_werror
1.1.1.3   misho     932: enable_hardening
                    933: enable_pie
1.1.1.6 ! misho     934: enable_poll
1.1       misho     935: enable_admin_flag
                    936: enable_nls
1.1.1.4   misho     937: enable_rpath
1.1.1.6 ! misho     938: enable_static_sudoers
1.1       misho     939: with_selinux
                    940: enable_gss_krb5_ccache_name
                    941: enable_shared
                    942: enable_static
                    943: with_pic
                    944: enable_fast_install
                    945: with_gnu_ld
                    946: with_sysroot
                    947: enable_libtool_lock
1.1.1.4   misho     948: with_libtool
1.1       misho     949: with_noexec
                    950: with_netsvc
                    951: enable_sia
                    952: enable_largefile
                    953: with_pam_login
                    954: enable_pam_session
1.1.1.2   misho     955: enable_kerb5_instance
1.1       misho     956: '
                    957:       ac_precious_vars='build_alias
                    958: host_alias
                    959: target_alias
                    960: CC
                    961: CFLAGS
                    962: LDFLAGS
                    963: LIBS
                    964: CPPFLAGS
                    965: CPP
                    966: YACC
                    967: YFLAGS'
                    968: 
                    969: 
                    970: # Initialize some variables set by options.
                    971: ac_init_help=
                    972: ac_init_version=false
                    973: ac_unrecognized_opts=
                    974: ac_unrecognized_sep=
                    975: # The variables have the same names as the options, with
                    976: # dashes changed to underlines.
                    977: cache_file=/dev/null
                    978: exec_prefix=NONE
                    979: no_create=
                    980: no_recursion=
                    981: prefix=NONE
                    982: program_prefix=NONE
                    983: program_suffix=NONE
                    984: program_transform_name=s,x,x,
                    985: silent=
                    986: site=
                    987: srcdir=
                    988: verbose=
                    989: x_includes=NONE
                    990: x_libraries=NONE
                    991: 
                    992: # Installation directory options.
                    993: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    994: # and all the variables that are supposed to be based on exec_prefix
                    995: # by default will actually change.
                    996: # Use braces instead of parens because sh, perl, etc. also accept them.
                    997: # (The list follows the same order as the GNU Coding Standards.)
                    998: bindir='${exec_prefix}/bin'
                    999: sbindir='${exec_prefix}/sbin'
                   1000: libexecdir='${exec_prefix}/libexec'
                   1001: datarootdir='${prefix}/share'
                   1002: datadir='${datarootdir}'
                   1003: sysconfdir='${prefix}/etc'
                   1004: sharedstatedir='${prefix}/com'
                   1005: localstatedir='${prefix}/var'
                   1006: includedir='${prefix}/include'
                   1007: oldincludedir='/usr/include'
                   1008: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                   1009: infodir='${datarootdir}/info'
                   1010: htmldir='${docdir}'
                   1011: dvidir='${docdir}'
                   1012: pdfdir='${docdir}'
                   1013: psdir='${docdir}'
                   1014: libdir='${exec_prefix}/lib'
                   1015: localedir='${datarootdir}/locale'
                   1016: mandir='${datarootdir}/man'
                   1017: 
                   1018: ac_prev=
                   1019: ac_dashdash=
                   1020: for ac_option
                   1021: do
                   1022:   # If the previous option needs an argument, assign it.
                   1023:   if test -n "$ac_prev"; then
                   1024:     eval $ac_prev=\$ac_option
                   1025:     ac_prev=
                   1026:     continue
                   1027:   fi
                   1028: 
                   1029:   case $ac_option in
                   1030:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                   1031:   *=)   ac_optarg= ;;
                   1032:   *)    ac_optarg=yes ;;
                   1033:   esac
                   1034: 
                   1035:   # Accept the important Cygnus configure options, so we can diagnose typos.
                   1036: 
                   1037:   case $ac_dashdash$ac_option in
                   1038:   --)
                   1039:     ac_dashdash=yes ;;
                   1040: 
                   1041:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                   1042:     ac_prev=bindir ;;
                   1043:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                   1044:     bindir=$ac_optarg ;;
                   1045: 
                   1046:   -build | --build | --buil | --bui | --bu)
                   1047:     ac_prev=build_alias ;;
                   1048:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                   1049:     build_alias=$ac_optarg ;;
                   1050: 
                   1051:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                   1052:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   1053:     ac_prev=cache_file ;;
                   1054:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   1055:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                   1056:     cache_file=$ac_optarg ;;
                   1057: 
                   1058:   --config-cache | -C)
                   1059:     cache_file=config.cache ;;
                   1060: 
                   1061:   -datadir | --datadir | --datadi | --datad)
                   1062:     ac_prev=datadir ;;
                   1063:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                   1064:     datadir=$ac_optarg ;;
                   1065: 
                   1066:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                   1067:   | --dataroo | --dataro | --datar)
                   1068:     ac_prev=datarootdir ;;
                   1069:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                   1070:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                   1071:     datarootdir=$ac_optarg ;;
                   1072: 
                   1073:   -disable-* | --disable-*)
                   1074:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
                   1075:     # Reject names that are not valid shell variable names.
                   1076:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1077:       as_fn_error $? "invalid feature name: $ac_useropt"
                   1078:     ac_useropt_orig=$ac_useropt
                   1079:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1080:     case $ac_user_opts in
                   1081:       *"
                   1082: "enable_$ac_useropt"
                   1083: "*) ;;
                   1084:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                   1085:         ac_unrecognized_sep=', ';;
                   1086:     esac
                   1087:     eval enable_$ac_useropt=no ;;
                   1088: 
                   1089:   -docdir | --docdir | --docdi | --doc | --do)
                   1090:     ac_prev=docdir ;;
                   1091:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                   1092:     docdir=$ac_optarg ;;
                   1093: 
                   1094:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                   1095:     ac_prev=dvidir ;;
                   1096:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                   1097:     dvidir=$ac_optarg ;;
                   1098: 
                   1099:   -enable-* | --enable-*)
                   1100:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
                   1101:     # Reject names that are not valid shell variable names.
                   1102:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1103:       as_fn_error $? "invalid feature name: $ac_useropt"
                   1104:     ac_useropt_orig=$ac_useropt
                   1105:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1106:     case $ac_user_opts in
                   1107:       *"
                   1108: "enable_$ac_useropt"
                   1109: "*) ;;
                   1110:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                   1111:         ac_unrecognized_sep=', ';;
                   1112:     esac
                   1113:     eval enable_$ac_useropt=\$ac_optarg ;;
                   1114: 
                   1115:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                   1116:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                   1117:   | --exec | --exe | --ex)
                   1118:     ac_prev=exec_prefix ;;
                   1119:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                   1120:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                   1121:   | --exec=* | --exe=* | --ex=*)
                   1122:     exec_prefix=$ac_optarg ;;
                   1123: 
                   1124:   -gas | --gas | --ga | --g)
                   1125:     # Obsolete; use --with-gas.
                   1126:     with_gas=yes ;;
                   1127: 
                   1128:   -help | --help | --hel | --he | -h)
                   1129:     ac_init_help=long ;;
                   1130:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                   1131:     ac_init_help=recursive ;;
                   1132:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                   1133:     ac_init_help=short ;;
                   1134: 
                   1135:   -host | --host | --hos | --ho)
                   1136:     ac_prev=host_alias ;;
                   1137:   -host=* | --host=* | --hos=* | --ho=*)
                   1138:     host_alias=$ac_optarg ;;
                   1139: 
                   1140:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1141:     ac_prev=htmldir ;;
                   1142:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1143:   | --ht=*)
                   1144:     htmldir=$ac_optarg ;;
                   1145: 
                   1146:   -includedir | --includedir | --includedi | --included | --include \
                   1147:   | --includ | --inclu | --incl | --inc)
                   1148:     ac_prev=includedir ;;
                   1149:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1150:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                   1151:     includedir=$ac_optarg ;;
                   1152: 
                   1153:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1154:     ac_prev=infodir ;;
                   1155:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                   1156:     infodir=$ac_optarg ;;
                   1157: 
                   1158:   -libdir | --libdir | --libdi | --libd)
                   1159:     ac_prev=libdir ;;
                   1160:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1161:     libdir=$ac_optarg ;;
                   1162: 
                   1163:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1164:   | --libexe | --libex | --libe)
                   1165:     ac_prev=libexecdir ;;
                   1166:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1167:   | --libexe=* | --libex=* | --libe=*)
                   1168:     libexecdir=$ac_optarg ;;
                   1169: 
                   1170:   -localedir | --localedir | --localedi | --localed | --locale)
                   1171:     ac_prev=localedir ;;
                   1172:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1173:     localedir=$ac_optarg ;;
                   1174: 
                   1175:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1176:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1177:     ac_prev=localstatedir ;;
                   1178:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1179:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1180:     localstatedir=$ac_optarg ;;
                   1181: 
                   1182:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1183:     ac_prev=mandir ;;
                   1184:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1185:     mandir=$ac_optarg ;;
                   1186: 
                   1187:   -nfp | --nfp | --nf)
                   1188:     # Obsolete; use --without-fp.
                   1189:     with_fp=no ;;
                   1190: 
                   1191:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1192:   | --no-cr | --no-c | -n)
                   1193:     no_create=yes ;;
                   1194: 
                   1195:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1196:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1197:     no_recursion=yes ;;
                   1198: 
                   1199:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1200:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1201:   | --oldin | --oldi | --old | --ol | --o)
                   1202:     ac_prev=oldincludedir ;;
                   1203:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1204:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1205:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1206:     oldincludedir=$ac_optarg ;;
                   1207: 
                   1208:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1209:     ac_prev=prefix ;;
                   1210:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1211:     prefix=$ac_optarg ;;
                   1212: 
                   1213:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1214:   | --program-pre | --program-pr | --program-p)
                   1215:     ac_prev=program_prefix ;;
                   1216:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1217:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1218:     program_prefix=$ac_optarg ;;
                   1219: 
                   1220:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1221:   | --program-suf | --program-su | --program-s)
                   1222:     ac_prev=program_suffix ;;
                   1223:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1224:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1225:     program_suffix=$ac_optarg ;;
                   1226: 
                   1227:   -program-transform-name | --program-transform-name \
                   1228:   | --program-transform-nam | --program-transform-na \
                   1229:   | --program-transform-n | --program-transform- \
                   1230:   | --program-transform | --program-transfor \
                   1231:   | --program-transfo | --program-transf \
                   1232:   | --program-trans | --program-tran \
                   1233:   | --progr-tra | --program-tr | --program-t)
                   1234:     ac_prev=program_transform_name ;;
                   1235:   -program-transform-name=* | --program-transform-name=* \
                   1236:   | --program-transform-nam=* | --program-transform-na=* \
                   1237:   | --program-transform-n=* | --program-transform-=* \
                   1238:   | --program-transform=* | --program-transfor=* \
                   1239:   | --program-transfo=* | --program-transf=* \
                   1240:   | --program-trans=* | --program-tran=* \
                   1241:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1242:     program_transform_name=$ac_optarg ;;
                   1243: 
                   1244:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1245:     ac_prev=pdfdir ;;
                   1246:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1247:     pdfdir=$ac_optarg ;;
                   1248: 
                   1249:   -psdir | --psdir | --psdi | --psd | --ps)
                   1250:     ac_prev=psdir ;;
                   1251:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1252:     psdir=$ac_optarg ;;
                   1253: 
                   1254:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1255:   | -silent | --silent | --silen | --sile | --sil)
                   1256:     silent=yes ;;
                   1257: 
                   1258:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1259:     ac_prev=sbindir ;;
                   1260:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1261:   | --sbi=* | --sb=*)
                   1262:     sbindir=$ac_optarg ;;
                   1263: 
                   1264:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1265:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1266:   | --sharedst | --shareds | --shared | --share | --shar \
                   1267:   | --sha | --sh)
                   1268:     ac_prev=sharedstatedir ;;
                   1269:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1270:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1271:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1272:   | --sha=* | --sh=*)
                   1273:     sharedstatedir=$ac_optarg ;;
                   1274: 
                   1275:   -site | --site | --sit)
                   1276:     ac_prev=site ;;
                   1277:   -site=* | --site=* | --sit=*)
                   1278:     site=$ac_optarg ;;
                   1279: 
                   1280:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1281:     ac_prev=srcdir ;;
                   1282:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1283:     srcdir=$ac_optarg ;;
                   1284: 
                   1285:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1286:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1287:     ac_prev=sysconfdir ;;
                   1288:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1289:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1290:     sysconfdir=$ac_optarg ;;
                   1291: 
                   1292:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1293:     ac_prev=target_alias ;;
                   1294:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1295:     target_alias=$ac_optarg ;;
                   1296: 
                   1297:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1298:     verbose=yes ;;
                   1299: 
                   1300:   -version | --version | --versio | --versi | --vers | -V)
                   1301:     ac_init_version=: ;;
                   1302: 
                   1303:   -with-* | --with-*)
                   1304:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
                   1305:     # Reject names that are not valid shell variable names.
                   1306:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1307:       as_fn_error $? "invalid package name: $ac_useropt"
                   1308:     ac_useropt_orig=$ac_useropt
                   1309:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1310:     case $ac_user_opts in
                   1311:       *"
                   1312: "with_$ac_useropt"
                   1313: "*) ;;
                   1314:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1315:         ac_unrecognized_sep=', ';;
                   1316:     esac
                   1317:     eval with_$ac_useropt=\$ac_optarg ;;
                   1318: 
                   1319:   -without-* | --without-*)
                   1320:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
                   1321:     # Reject names that are not valid shell variable names.
                   1322:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1323:       as_fn_error $? "invalid package name: $ac_useropt"
                   1324:     ac_useropt_orig=$ac_useropt
                   1325:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1326:     case $ac_user_opts in
                   1327:       *"
                   1328: "with_$ac_useropt"
                   1329: "*) ;;
                   1330:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1331:         ac_unrecognized_sep=', ';;
                   1332:     esac
                   1333:     eval with_$ac_useropt=no ;;
                   1334: 
                   1335:   --x)
                   1336:     # Obsolete; use --with-x.
                   1337:     with_x=yes ;;
                   1338: 
                   1339:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1340:   | --x-incl | --x-inc | --x-in | --x-i)
                   1341:     ac_prev=x_includes ;;
                   1342:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1343:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1344:     x_includes=$ac_optarg ;;
                   1345: 
                   1346:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1347:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1348:     ac_prev=x_libraries ;;
                   1349:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1350:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1351:     x_libraries=$ac_optarg ;;
                   1352: 
                   1353:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1354: Try \`$0 --help' for more information"
                   1355:     ;;
                   1356: 
                   1357:   *=*)
                   1358:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1359:     # Reject names that are not valid shell variable names.
                   1360:     case $ac_envvar in #(
                   1361:       '' | [0-9]* | *[!_$as_cr_alnum]* )
                   1362:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
                   1363:     esac
                   1364:     eval $ac_envvar=\$ac_optarg
                   1365:     export $ac_envvar ;;
                   1366: 
                   1367:   *)
                   1368:     # FIXME: should be removed in autoconf 3.0.
                   1369:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
                   1370:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
                   1371:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
                   1372:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
                   1373:     ;;
                   1374: 
                   1375:   esac
                   1376: done
                   1377: 
                   1378: if test -n "$ac_prev"; then
                   1379:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
                   1380:   as_fn_error $? "missing argument to $ac_option"
                   1381: fi
                   1382: 
                   1383: if test -n "$ac_unrecognized_opts"; then
                   1384:   case $enable_option_checking in
                   1385:     no) ;;
                   1386:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
                   1387:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1388:   esac
                   1389: fi
                   1390: 
                   1391: # Check all directory arguments for consistency.
                   1392: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1393:                datadir sysconfdir sharedstatedir localstatedir includedir \
                   1394:                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1395:                libdir localedir mandir
                   1396: do
                   1397:   eval ac_val=\$$ac_var
                   1398:   # Remove trailing slashes.
                   1399:   case $ac_val in
                   1400:     */ )
                   1401:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1402:       eval $ac_var=\$ac_val;;
                   1403:   esac
                   1404:   # Be sure to have absolute directory names.
                   1405:   case $ac_val in
                   1406:     [\\/$]* | ?:[\\/]* )  continue;;
                   1407:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1408:   esac
                   1409:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
                   1410: done
                   1411: 
                   1412: # There might be people who depend on the old broken behavior: `$host'
                   1413: # used to hold the argument of --host etc.
                   1414: # FIXME: To remove some day.
                   1415: build=$build_alias
                   1416: host=$host_alias
                   1417: target=$target_alias
                   1418: 
                   1419: # FIXME: To remove some day.
                   1420: if test "x$host_alias" != x; then
                   1421:   if test "x$build_alias" = x; then
                   1422:     cross_compiling=maybe
                   1423:   elif test "x$build_alias" != "x$host_alias"; then
                   1424:     cross_compiling=yes
                   1425:   fi
                   1426: fi
                   1427: 
                   1428: ac_tool_prefix=
                   1429: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1430: 
                   1431: test "$silent" = yes && exec 6>/dev/null
                   1432: 
                   1433: 
                   1434: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1435: ac_ls_di=`ls -di .` &&
                   1436: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
                   1437:   as_fn_error $? "working directory cannot be determined"
                   1438: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
                   1439:   as_fn_error $? "pwd does not report name of working directory"
                   1440: 
                   1441: 
                   1442: # Find the source files, if location was not specified.
                   1443: if test -z "$srcdir"; then
                   1444:   ac_srcdir_defaulted=yes
                   1445:   # Try the directory containing this script, then the parent directory.
                   1446:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1447: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1448:         X"$as_myself" : 'X\(//\)[^/]' \| \
                   1449:         X"$as_myself" : 'X\(//\)$' \| \
                   1450:         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1451: $as_echo X"$as_myself" |
                   1452:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1453:            s//\1/
                   1454:            q
                   1455:          }
                   1456:          /^X\(\/\/\)[^/].*/{
                   1457:            s//\1/
                   1458:            q
                   1459:          }
                   1460:          /^X\(\/\/\)$/{
                   1461:            s//\1/
                   1462:            q
                   1463:          }
                   1464:          /^X\(\/\).*/{
                   1465:            s//\1/
                   1466:            q
                   1467:          }
                   1468:          s/.*/./; q'`
                   1469:   srcdir=$ac_confdir
                   1470:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1471:     srcdir=..
                   1472:   fi
                   1473: else
                   1474:   ac_srcdir_defaulted=no
                   1475: fi
                   1476: if test ! -r "$srcdir/$ac_unique_file"; then
                   1477:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
                   1478:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
                   1479: fi
                   1480: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1481: ac_abs_confdir=`(
                   1482:        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
                   1483:        pwd)`
                   1484: # When building in place, set srcdir=.
                   1485: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1486:   srcdir=.
                   1487: fi
                   1488: # Remove unnecessary trailing slashes from srcdir.
                   1489: # Double slashes in file names in object file debugging info
                   1490: # mess up M-x gdb in Emacs.
                   1491: case $srcdir in
                   1492: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1493: esac
                   1494: for ac_var in $ac_precious_vars; do
                   1495:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1496:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1497:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1498:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1499: done
                   1500: 
                   1501: #
                   1502: # Report the --help message.
                   1503: #
                   1504: if test "$ac_init_help" = "long"; then
                   1505:   # Omit some internal or obsolete options to make the list less imposing.
                   1506:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1507:   cat <<_ACEOF
1.1.1.6 ! misho    1508: \`configure' configures sudo 1.8.10p3 to adapt to many kinds of systems.
1.1       misho    1509: 
                   1510: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1511: 
                   1512: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1513: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1514: 
                   1515: Defaults for the options are specified in brackets.
                   1516: 
                   1517: Configuration:
                   1518:   -h, --help              display this help and exit
                   1519:       --help=short        display options specific to this package
                   1520:       --help=recursive    display the short help of all the included packages
                   1521:   -V, --version           display version information and exit
                   1522:   -q, --quiet, --silent   do not print \`checking ...' messages
                   1523:       --cache-file=FILE   cache test results in FILE [disabled]
                   1524:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1525:   -n, --no-create         do not create output files
                   1526:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1527: 
                   1528: Installation directories:
                   1529:   --prefix=PREFIX         install architecture-independent files in PREFIX
                   1530:                           [$ac_default_prefix]
                   1531:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                   1532:                           [PREFIX]
                   1533: 
                   1534: By default, \`make install' will install all the files in
                   1535: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1536: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1537: for instance \`--prefix=\$HOME'.
                   1538: 
                   1539: For better control, use the options below.
                   1540: 
                   1541: Fine tuning of the installation directories:
                   1542:   --bindir=DIR            user executables [EPREFIX/bin]
                   1543:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1544:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1545:   --sysconfdir=DIR        read-only single-machine data [/etc]
                   1546:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1547:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1548:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1549:   --includedir=DIR        C header files [PREFIX/include]
                   1550:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1551:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1552:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1553:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1554:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1555:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1556:   --docdir=DIR            documentation root [DATAROOTDIR/doc/sudo]
                   1557:   --htmldir=DIR           html documentation [DOCDIR]
                   1558:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1559:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1560:   --psdir=DIR             ps documentation [DOCDIR]
                   1561: _ACEOF
                   1562: 
                   1563:   cat <<\_ACEOF
                   1564: 
                   1565: System types:
                   1566:   --build=BUILD     configure for building on BUILD [guessed]
                   1567:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1568: _ACEOF
                   1569: fi
                   1570: 
                   1571: if test -n "$ac_init_help"; then
                   1572:   case $ac_init_help in
1.1.1.6 ! misho    1573:      short | recursive ) echo "Configuration of sudo 1.8.10p3:";;
1.1       misho    1574:    esac
                   1575:   cat <<\_ACEOF
                   1576: 
                   1577: Optional Features:
                   1578:   --disable-option-checking  ignore unrecognized --enable/--with options
                   1579:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1580:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1581:   --disable-authentication
                   1582:                           Do not require authentication by default
                   1583:   --disable-root-mailer   Don't run the mailer as root, run as the user
                   1584:   --disable-setreuid      Don't try to use the setreuid() function
                   1585:   --disable-setresuid     Don't try to use the setresuid() function
                   1586:   --disable-shadow        Never use shadow passwords
                   1587:   --disable-root-sudo     Don't allow root to run sudo
                   1588:   --enable-log-host       Log the hostname in the log file
                   1589:   --enable-noargs-shell   If sudo is given no arguments run a shell
                   1590:   --enable-shell-sets-home
                   1591:                           Set $HOME to target user in shell mode
                   1592:   --disable-path-info     Print 'command not allowed' not 'command not found'
                   1593:   --enable-env-debug      Whether to enable environment debugging.
                   1594:   --enable-zlib[=PATH]    Whether to enable or disable zlib
                   1595:   --enable-env-reset      Whether to enable environment resetting by default.
                   1596:   --enable-warnings       Whether to enable compiler warnings
                   1597:   --enable-werror         Whether to enable the -Werror compiler option
1.1.1.3   misho    1598:   --disable-hardening     Do not use compiler/linker exploit mitigation
                   1599:                           options
1.1.1.4   misho    1600:   --enable-pie            Build sudo as a position independent executable.
1.1.1.6 ! misho    1601:   --disable-poll          Use select() instead of poll().
1.1       misho    1602:   --enable-admin-flag     Whether to create a Ubuntu-style admin flag file
                   1603:   --disable-nls           Disable natural language support using gettext
1.1.1.4   misho    1604:   --disable-rpath         Disable passing of -Rpath to the linker
1.1.1.6 ! misho    1605:   --enable-static-sudoers Build the sudoers policy module as part of the sudo
        !          1606:                           binary instead as a plugin
1.1       misho    1607:   --enable-gss-krb5-ccache-name
                   1608:                           Use GSS-API to set the Kerberos V cred cache name
                   1609:   --enable-shared[=PKGS]  build shared libraries [default=yes]
                   1610:   --enable-static[=PKGS]  build static libraries [default=yes]
                   1611:   --enable-fast-install[=PKGS]
                   1612:                           optimize for fast installation [default=yes]
                   1613:   --disable-libtool-lock  avoid locking (might break parallel builds)
                   1614:   --disable-sia           Disable SIA on Digital UNIX
                   1615:   --disable-largefile     omit support for large files
                   1616:   --disable-pam-session   Disable PAM session support
1.1.1.2   misho    1617:   --enable-kerb5-instance instance string to append to the username (separated
                   1618:                           by a slash)
1.1       misho    1619: 
                   1620: Optional Packages:
                   1621:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1622:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1623:   --with-otp-only         deprecated
                   1624:   --with-alertmail        deprecated
                   1625:   --with-devel            add development options
                   1626:   --with-CC               C compiler to use
1.1.1.4   misho    1627:   --with-rpath            deprecated, use --disable-rpath
                   1628:   --with-blibpath=PATH    deprecated
1.1       misho    1629:   --with-bsm-audit        enable BSM audit support
                   1630:   --with-linux-audit      enable Linux audit support
1.1.1.3   misho    1631:   --with-sssd             enable SSSD support
                   1632:   --with-sssd-lib         path to the SSSD library
1.1       misho    1633:   --with-incpath          additional places to look for include files
                   1634:   --with-libpath          additional places to look for libraries
                   1635:   --with-libraries        additional libraries to link with
                   1636:   --with-efence           link with -lefence for malloc() debugging
                   1637:   --with-csops            add CSOps standard options
                   1638:   --without-passwd        don't use passwd/shadow file for authentication
                   1639:   --with-skey=DIR         enable S/Key support
                   1640:   --with-opie=DIR         enable OPIE support
                   1641:   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
                   1642:   --with-SecurID[=DIR]    enable SecurID support
                   1643:   --with-fwtk[=DIR]       enable FWTK AuthSRV support
                   1644:   --with-kerb5[=DIR]      enable Kerberos V support
                   1645:   --with-aixauth          enable AIX general authentication support
                   1646:   --with-pam              enable PAM support
                   1647:   --with-AFS              enable AFS support
                   1648:   --with-DCE              enable DCE support
                   1649:   --with-logincap         enable BSD login class support
                   1650:   --with-bsdauth          enable BSD authentication support
                   1651:   --with-project          enable Solaris project support
                   1652:   --without-lecture       don't print lecture for first-time sudoer
                   1653:   --with-logging          log via syslog, file, or both
                   1654:   --with-logfac           syslog facility to log with (default is "auth")
                   1655:   --with-goodpri          syslog priority for commands (def is "notice")
                   1656:   --with-badpri           syslog priority for failures (def is "alert")
                   1657:   --with-logpath          path to the sudo log file
                   1658:   --with-loglen           maximum length of a log file line (default is 80)
                   1659:   --with-ignore-dot       ignore '.' in the PATH
                   1660:   --without-mail-if-no-user
                   1661:                           do not send mail if user not in sudoers
                   1662:   --with-mail-if-no-host  send mail if user in sudoers but not for this host
                   1663:   --with-mail-if-noperms  send mail if user not allowed to run command
                   1664:   --with-mailto           who should get sudo mail (default is "root")
                   1665:   --with-mailsubject      subject of sudo mail
                   1666:   --with-passprompt       default password prompt
                   1667:   --with-badpass-message  message the user sees when the password is wrong
                   1668:   --with-fqdn             expect fully qualified hosts in sudoers
1.1.1.6 ! misho    1669:   --with-timedir=DIR      deprecated
        !          1670:   --with-rundir=DIR       path to the sudo time stamp parent dir
        !          1671:   --with-vardir=DIR       path to the sudo var dir
1.1       misho    1672:   --with-iologdir=DIR     directory to store sudo I/O log files in
                   1673:   --with-sendmail         set path to sendmail
                   1674:   --without-sendmail      do not send mail at all
                   1675:   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
                   1676:   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
                   1677:   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
                   1678:   --with-umask            umask with which the prog should run (default is
                   1679:                           022)
                   1680:   --without-umask         Preserves the umask of the user invoking sudo.
                   1681:   --with-umask-override   Use the umask specified in sudoers even if it is
                   1682:                           less restrictive than the user's.
                   1683:   --with-runas-default    User to run commands as (default is "root")
                   1684:   --with-exempt=group     no passwd needed for users in this group
                   1685:   --with-editor=path      Default editor for visudo (defaults to vi)
                   1686:   --with-env-editor       Use the environment variable EDITOR for visudo
                   1687:   --with-passwd-tries     number of tries to enter password (default is 3)
                   1688:   --with-timeout          minutes before sudo asks for passwd again (def is 5
                   1689:                           minutes)
                   1690:   --with-password-timeout passwd prompt timeout in minutes (default is 5
                   1691:                           minutes)
                   1692:   --with-tty-tickets      use a different ticket file for each tty
                   1693:   --with-insults          insult the user for entering an incorrect password
                   1694:   --with-all-insults      include all the sudo insult sets
                   1695:   --with-classic-insults  include the insults from the "classic" sudo
                   1696:   --with-csops-insults    include CSOps insults
                   1697:   --with-hal-insults      include 2001-like insults
                   1698:   --with-goons-insults    include the insults from the "Goon Show"
                   1699:   --with-nsswitch[=PATH]  path to nsswitch.conf
                   1700:   --with-ldap[=DIR]       enable LDAP support
                   1701:   --with-ldap-conf-file   path to LDAP configuration file
                   1702:   --with-ldap-secret-file path to LDAP secret password file
                   1703:   --with-pc-insults       replace politically incorrect insults with less
                   1704:                           offensive ones
                   1705:   --with-secure-path      override the user's path with a built-in one
                   1706:   --without-interfaces    don't try to read the ip addr of ether interfaces
1.1.1.3   misho    1707:   --with-stow             deprecated
1.1       misho    1708:   --with-askpass=PATH     Fully qualified pathname of askpass helper
1.1.1.6 ! misho    1709:   --with-plugindir=DIR    set directory to load plugins from
1.1.1.3   misho    1710:   --with-man              manual pages use man macros
                   1711:   --with-mdoc             manual pages use mdoc macros
1.1       misho    1712:   --with-selinux          enable SELinux support
1.1.1.2   misho    1713:   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1.1       misho    1714:                           both]
                   1715:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1.1.1.6 ! misho    1716:   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
        !          1717:                           compiler's sysroot if not specified).
1.1.1.4   misho    1718:   --with-libtool=PATH     specify path to libtool
1.1       misho    1719:   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
                   1720:   --with-netsvc[=PATH]    path to netsvc.conf
                   1721:   --with-pam-login        enable specific PAM session for sudo -i
                   1722: 
                   1723: Some influential environment variables:
                   1724:   CC          C compiler command
                   1725:   CFLAGS      C compiler flags
                   1726:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1727:               nonstandard directory <lib dir>
                   1728:   LIBS        libraries to pass to the linker, e.g. -l<library>
                   1729:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
                   1730:               you have headers in a nonstandard directory <include dir>
                   1731:   CPP         C preprocessor
                   1732:   YACC        The `Yet Another Compiler Compiler' implementation to use.
                   1733:               Defaults to the first program found out of: `bison -y', `byacc',
                   1734:               `yacc'.
                   1735:   YFLAGS      The list of arguments that will be passed by default to $YACC.
                   1736:               This script will default YFLAGS to the empty string to avoid a
                   1737:               default value of `-d' given by some make applications.
                   1738: 
                   1739: Use these variables to override the choices made by `configure' or to help
                   1740: it to find libraries and programs with nonstandard names/locations.
                   1741: 
                   1742: Report bugs to <http://www.sudo.ws/bugs/>.
                   1743: _ACEOF
                   1744: ac_status=$?
                   1745: fi
                   1746: 
                   1747: if test "$ac_init_help" = "recursive"; then
                   1748:   # If there are subdirs, report their specific --help.
                   1749:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
                   1750:     test -d "$ac_dir" ||
                   1751:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1752:       continue
                   1753:     ac_builddir=.
                   1754: 
                   1755: case "$ac_dir" in
                   1756: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1757: *)
                   1758:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
                   1759:   # A ".." for each directory in $ac_dir_suffix.
                   1760:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
                   1761:   case $ac_top_builddir_sub in
                   1762:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1763:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1764:   esac ;;
                   1765: esac
                   1766: ac_abs_top_builddir=$ac_pwd
                   1767: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1768: # for backward compatibility:
                   1769: ac_top_builddir=$ac_top_build_prefix
                   1770: 
                   1771: case $srcdir in
                   1772:   .)  # We are building in place.
                   1773:     ac_srcdir=.
                   1774:     ac_top_srcdir=$ac_top_builddir_sub
                   1775:     ac_abs_top_srcdir=$ac_pwd ;;
                   1776:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1777:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1778:     ac_top_srcdir=$srcdir
                   1779:     ac_abs_top_srcdir=$srcdir ;;
                   1780:   *) # Relative name.
                   1781:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1782:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1783:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1784: esac
                   1785: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1786: 
                   1787:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1788:     # Check for guested configure.
                   1789:     if test -f "$ac_srcdir/configure.gnu"; then
                   1790:       echo &&
                   1791:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1792:     elif test -f "$ac_srcdir/configure"; then
                   1793:       echo &&
                   1794:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1795:     else
                   1796:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
                   1797:     fi || ac_status=$?
                   1798:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1799:   done
                   1800: fi
                   1801: 
                   1802: test -n "$ac_init_help" && exit $ac_status
                   1803: if $ac_init_version; then
                   1804:   cat <<\_ACEOF
1.1.1.6 ! misho    1805: sudo configure 1.8.10p3
        !          1806: generated by GNU Autoconf 2.69
1.1       misho    1807: 
1.1.1.6 ! misho    1808: Copyright (C) 2012 Free Software Foundation, Inc.
1.1       misho    1809: This configure script is free software; the Free Software Foundation
                   1810: gives unlimited permission to copy, distribute and modify it.
                   1811: _ACEOF
                   1812:   exit
                   1813: fi
                   1814: 
                   1815: ## ------------------------ ##
                   1816: ## Autoconf initialization. ##
                   1817: ## ------------------------ ##
                   1818: 
                   1819: # ac_fn_c_try_compile LINENO
                   1820: # --------------------------
                   1821: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1822: ac_fn_c_try_compile ()
                   1823: {
                   1824:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1825:   rm -f conftest.$ac_objext
                   1826:   if { { ac_try="$ac_compile"
                   1827: case "(($ac_try" in
                   1828:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1829:   *) ac_try_echo=$ac_try;;
                   1830: esac
                   1831: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1832: $as_echo "$ac_try_echo"; } >&5
                   1833:   (eval "$ac_compile") 2>conftest.err
                   1834:   ac_status=$?
                   1835:   if test -s conftest.err; then
                   1836:     grep -v '^ *+' conftest.err >conftest.er1
                   1837:     cat conftest.er1 >&5
                   1838:     mv -f conftest.er1 conftest.err
                   1839:   fi
                   1840:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1841:   test $ac_status = 0; } && {
                   1842:         test -z "$ac_c_werror_flag" ||
                   1843:         test ! -s conftest.err
                   1844:        } && test -s conftest.$ac_objext; then :
                   1845:   ac_retval=0
                   1846: else
                   1847:   $as_echo "$as_me: failed program was:" >&5
                   1848: sed 's/^/| /' conftest.$ac_ext >&5
                   1849: 
                   1850:        ac_retval=1
                   1851: fi
                   1852:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1853:   as_fn_set_status $ac_retval
                   1854: 
                   1855: } # ac_fn_c_try_compile
                   1856: 
                   1857: # ac_fn_c_try_link LINENO
                   1858: # -----------------------
                   1859: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1860: ac_fn_c_try_link ()
                   1861: {
                   1862:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1863:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1864:   if { { ac_try="$ac_link"
                   1865: case "(($ac_try" in
                   1866:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1867:   *) ac_try_echo=$ac_try;;
                   1868: esac
                   1869: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1870: $as_echo "$ac_try_echo"; } >&5
                   1871:   (eval "$ac_link") 2>conftest.err
                   1872:   ac_status=$?
                   1873:   if test -s conftest.err; then
                   1874:     grep -v '^ *+' conftest.err >conftest.er1
                   1875:     cat conftest.er1 >&5
                   1876:     mv -f conftest.er1 conftest.err
                   1877:   fi
                   1878:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1879:   test $ac_status = 0; } && {
                   1880:         test -z "$ac_c_werror_flag" ||
                   1881:         test ! -s conftest.err
                   1882:        } && test -s conftest$ac_exeext && {
                   1883:         test "$cross_compiling" = yes ||
1.1.1.6 ! misho    1884:         test -x conftest$ac_exeext
1.1       misho    1885:        }; then :
                   1886:   ac_retval=0
                   1887: else
                   1888:   $as_echo "$as_me: failed program was:" >&5
                   1889: sed 's/^/| /' conftest.$ac_ext >&5
                   1890: 
                   1891:        ac_retval=1
                   1892: fi
                   1893:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1894:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1895:   # interfere with the next link command; also delete a directory that is
                   1896:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1897:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1898:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1899:   as_fn_set_status $ac_retval
                   1900: 
                   1901: } # ac_fn_c_try_link
                   1902: 
                   1903: # ac_fn_c_try_cpp LINENO
                   1904: # ----------------------
                   1905: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1906: ac_fn_c_try_cpp ()
                   1907: {
                   1908:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1909:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1910: case "(($ac_try" in
                   1911:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1912:   *) ac_try_echo=$ac_try;;
                   1913: esac
                   1914: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1915: $as_echo "$ac_try_echo"; } >&5
                   1916:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1917:   ac_status=$?
                   1918:   if test -s conftest.err; then
                   1919:     grep -v '^ *+' conftest.err >conftest.er1
                   1920:     cat conftest.er1 >&5
                   1921:     mv -f conftest.er1 conftest.err
                   1922:   fi
                   1923:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1924:   test $ac_status = 0; } > conftest.i && {
                   1925:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1926:         test ! -s conftest.err
                   1927:        }; then :
                   1928:   ac_retval=0
                   1929: else
                   1930:   $as_echo "$as_me: failed program was:" >&5
                   1931: sed 's/^/| /' conftest.$ac_ext >&5
                   1932: 
                   1933:     ac_retval=1
                   1934: fi
                   1935:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1936:   as_fn_set_status $ac_retval
                   1937: 
                   1938: } # ac_fn_c_try_cpp
                   1939: 
                   1940: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   1941: # -------------------------------------------------------
                   1942: # Tests whether HEADER exists and can be compiled using the include files in
                   1943: # INCLUDES, setting the cache variable VAR accordingly.
                   1944: ac_fn_c_check_header_compile ()
                   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: $4
                   1955: #include <$2>
                   1956: _ACEOF
                   1957: if ac_fn_c_try_compile "$LINENO"; then :
                   1958:   eval "$3=yes"
                   1959: else
                   1960:   eval "$3=no"
                   1961: fi
                   1962: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1963: fi
                   1964: eval ac_res=\$$3
                   1965:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1966: $as_echo "$ac_res" >&6; }
                   1967:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1968: 
                   1969: } # ac_fn_c_check_header_compile
                   1970: 
                   1971: # ac_fn_c_try_run LINENO
                   1972: # ----------------------
                   1973: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1974: # that executables *can* be run.
                   1975: ac_fn_c_try_run ()
                   1976: {
                   1977:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1978:   if { { ac_try="$ac_link"
                   1979: case "(($ac_try" in
                   1980:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1981:   *) ac_try_echo=$ac_try;;
                   1982: esac
                   1983: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1984: $as_echo "$ac_try_echo"; } >&5
                   1985:   (eval "$ac_link") 2>&5
                   1986:   ac_status=$?
                   1987:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1988:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1989:   { { case "(($ac_try" in
                   1990:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1991:   *) ac_try_echo=$ac_try;;
                   1992: esac
                   1993: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1994: $as_echo "$ac_try_echo"; } >&5
                   1995:   (eval "$ac_try") 2>&5
                   1996:   ac_status=$?
                   1997:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1998:   test $ac_status = 0; }; }; then :
                   1999:   ac_retval=0
                   2000: else
                   2001:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   2002:        $as_echo "$as_me: failed program was:" >&5
                   2003: sed 's/^/| /' conftest.$ac_ext >&5
                   2004: 
                   2005:        ac_retval=$ac_status
                   2006: fi
                   2007:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   2008:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2009:   as_fn_set_status $ac_retval
                   2010: 
                   2011: } # ac_fn_c_try_run
                   2012: 
                   2013: # ac_fn_c_check_func LINENO FUNC VAR
                   2014: # ----------------------------------
                   2015: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   2016: ac_fn_c_check_func ()
                   2017: {
                   2018:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2019:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2020: $as_echo_n "checking for $2... " >&6; }
                   2021: if eval \${$3+:} false; then :
                   2022:   $as_echo_n "(cached) " >&6
                   2023: else
                   2024:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2025: /* end confdefs.h.  */
                   2026: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   2027:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   2028: #define $2 innocuous_$2
                   2029: 
                   2030: /* System header to define __stub macros and hopefully few prototypes,
                   2031:     which can conflict with char $2 (); below.
                   2032:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   2033:     <limits.h> exists even on freestanding compilers.  */
                   2034: 
                   2035: #ifdef __STDC__
                   2036: # include <limits.h>
                   2037: #else
                   2038: # include <assert.h>
                   2039: #endif
                   2040: 
                   2041: #undef $2
                   2042: 
                   2043: /* Override any GCC internal prototype to avoid an error.
                   2044:    Use char because int might match the return type of a GCC
                   2045:    builtin and then its argument prototype would still apply.  */
                   2046: #ifdef __cplusplus
                   2047: extern "C"
                   2048: #endif
                   2049: char $2 ();
                   2050: /* The GNU C library defines this for functions which it implements
                   2051:     to always fail with ENOSYS.  Some functions are actually named
                   2052:     something starting with __ and the normal name is an alias.  */
                   2053: #if defined __stub_$2 || defined __stub___$2
                   2054: choke me
                   2055: #endif
                   2056: 
                   2057: int
                   2058: main ()
                   2059: {
                   2060: return $2 ();
                   2061:   ;
                   2062:   return 0;
                   2063: }
                   2064: _ACEOF
                   2065: if ac_fn_c_try_link "$LINENO"; then :
                   2066:   eval "$3=yes"
                   2067: else
                   2068:   eval "$3=no"
                   2069: fi
                   2070: rm -f core conftest.err conftest.$ac_objext \
                   2071:     conftest$ac_exeext conftest.$ac_ext
                   2072: fi
                   2073: eval ac_res=\$$3
                   2074:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2075: $as_echo "$ac_res" >&6; }
                   2076:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2077: 
                   2078: } # ac_fn_c_check_func
                   2079: 
1.1.1.2   misho    2080: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   2081: # -------------------------------------------
                   2082: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   2083: # variable VAR accordingly.
                   2084: ac_fn_c_check_type ()
                   2085: {
                   2086:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2087:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2088: $as_echo_n "checking for $2... " >&6; }
                   2089: if eval \${$3+:} false; then :
                   2090:   $as_echo_n "(cached) " >&6
                   2091: else
                   2092:   eval "$3=no"
                   2093:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2094: /* end confdefs.h.  */
                   2095: $4
                   2096: int
                   2097: main ()
                   2098: {
                   2099: if (sizeof ($2))
                   2100:         return 0;
                   2101:   ;
                   2102:   return 0;
                   2103: }
                   2104: _ACEOF
                   2105: if ac_fn_c_try_compile "$LINENO"; then :
                   2106:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2107: /* end confdefs.h.  */
                   2108: $4
                   2109: int
                   2110: main ()
                   2111: {
                   2112: if (sizeof (($2)))
                   2113:            return 0;
                   2114:   ;
                   2115:   return 0;
                   2116: }
                   2117: _ACEOF
                   2118: if ac_fn_c_try_compile "$LINENO"; then :
                   2119: 
                   2120: else
                   2121:   eval "$3=yes"
                   2122: fi
                   2123: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2124: fi
                   2125: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2126: fi
                   2127: eval ac_res=\$$3
                   2128:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2129: $as_echo "$ac_res" >&6; }
                   2130:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2131: 
                   2132: } # ac_fn_c_check_type
                   2133: 
1.1       misho    2134: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2135: # -------------------------------------------------------
                   2136: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2137: # the include files in INCLUDES and setting the cache variable VAR
                   2138: # accordingly.
                   2139: ac_fn_c_check_header_mongrel ()
                   2140: {
                   2141:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2142:   if eval \${$3+:} false; then :
                   2143:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2144: $as_echo_n "checking for $2... " >&6; }
                   2145: if eval \${$3+:} false; then :
                   2146:   $as_echo_n "(cached) " >&6
                   2147: fi
                   2148: eval ac_res=\$$3
                   2149:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2150: $as_echo "$ac_res" >&6; }
                   2151: else
                   2152:   # Is the header compilable?
                   2153: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2154: $as_echo_n "checking $2 usability... " >&6; }
                   2155: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2156: /* end confdefs.h.  */
                   2157: $4
                   2158: #include <$2>
                   2159: _ACEOF
                   2160: if ac_fn_c_try_compile "$LINENO"; then :
                   2161:   ac_header_compiler=yes
                   2162: else
                   2163:   ac_header_compiler=no
                   2164: fi
                   2165: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2166: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2167: $as_echo "$ac_header_compiler" >&6; }
                   2168: 
                   2169: # Is the header present?
                   2170: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2171: $as_echo_n "checking $2 presence... " >&6; }
                   2172: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2173: /* end confdefs.h.  */
                   2174: #include <$2>
                   2175: _ACEOF
                   2176: if ac_fn_c_try_cpp "$LINENO"; then :
                   2177:   ac_header_preproc=yes
                   2178: else
                   2179:   ac_header_preproc=no
                   2180: fi
                   2181: rm -f conftest.err conftest.i conftest.$ac_ext
                   2182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2183: $as_echo "$ac_header_preproc" >&6; }
                   2184: 
                   2185: # So?  What about this header?
                   2186: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2187:   yes:no: )
                   2188:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2189: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2190:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2191: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2192:     ;;
                   2193:   no:yes:* )
                   2194:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2195: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2196:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2197: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2198:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2199: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2200:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2201: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2202:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2203: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2204: ( $as_echo "## --------------------------------------- ##
                   2205: ## Report this to http://www.sudo.ws/bugs/ ##
                   2206: ## --------------------------------------- ##"
                   2207:      ) | sed "s/^/$as_me: WARNING:     /" >&2
                   2208:     ;;
                   2209: esac
                   2210:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2211: $as_echo_n "checking for $2... " >&6; }
                   2212: if eval \${$3+:} false; then :
                   2213:   $as_echo_n "(cached) " >&6
                   2214: else
                   2215:   eval "$3=\$ac_header_compiler"
                   2216: fi
                   2217: eval ac_res=\$$3
                   2218:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2219: $as_echo "$ac_res" >&6; }
                   2220: fi
                   2221:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2222: 
                   2223: } # ac_fn_c_check_header_mongrel
                   2224: 
1.1.1.2   misho    2225: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
                   2226: # ----------------------------------------------------
                   2227: # Tries to find if the field MEMBER exists in type AGGR, after including
                   2228: # INCLUDES, setting cache variable VAR accordingly.
                   2229: ac_fn_c_check_member ()
1.1       misho    2230: {
                   2231:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.2   misho    2232:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
                   2233: $as_echo_n "checking for $2.$3... " >&6; }
                   2234: if eval \${$4+:} false; then :
1.1       misho    2235:   $as_echo_n "(cached) " >&6
                   2236: else
                   2237:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2238: /* end confdefs.h.  */
1.1.1.2   misho    2239: $5
1.1       misho    2240: int
                   2241: main ()
                   2242: {
1.1.1.2   misho    2243: static $2 ac_aggr;
                   2244: if (ac_aggr.$3)
                   2245: return 0;
1.1       misho    2246:   ;
                   2247:   return 0;
                   2248: }
                   2249: _ACEOF
                   2250: if ac_fn_c_try_compile "$LINENO"; then :
1.1.1.2   misho    2251:   eval "$4=yes"
                   2252: else
1.1       misho    2253:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2254: /* end confdefs.h.  */
1.1.1.2   misho    2255: $5
1.1       misho    2256: int
                   2257: main ()
                   2258: {
1.1.1.2   misho    2259: static $2 ac_aggr;
                   2260: if (sizeof ac_aggr.$3)
                   2261: return 0;
1.1       misho    2262:   ;
                   2263:   return 0;
                   2264: }
                   2265: _ACEOF
                   2266: if ac_fn_c_try_compile "$LINENO"; then :
1.1.1.2   misho    2267:   eval "$4=yes"
1.1       misho    2268: else
1.1.1.2   misho    2269:   eval "$4=no"
1.1       misho    2270: fi
                   2271: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2272: fi
                   2273: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2274: fi
1.1.1.2   misho    2275: eval ac_res=\$$4
1.1       misho    2276:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2277: $as_echo "$ac_res" >&6; }
                   2278:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2279: 
1.1.1.2   misho    2280: } # ac_fn_c_check_member
1.1       misho    2281: 
                   2282: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   2283: # --------------------------------------------
                   2284: # Tries to find the compile-time value of EXPR in a program that includes
                   2285: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   2286: # computed
                   2287: ac_fn_c_compute_int ()
                   2288: {
                   2289:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2290:   if test "$cross_compiling" = yes; then
                   2291:     # Depending upon the size, compute the lo and hi bounds.
                   2292: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2293: /* end confdefs.h.  */
                   2294: $4
                   2295: int
                   2296: main ()
                   2297: {
                   2298: static int test_array [1 - 2 * !(($2) >= 0)];
1.1.1.6 ! misho    2299: test_array [0] = 0;
        !          2300: return test_array [0];
1.1       misho    2301: 
                   2302:   ;
                   2303:   return 0;
                   2304: }
                   2305: _ACEOF
                   2306: if ac_fn_c_try_compile "$LINENO"; then :
                   2307:   ac_lo=0 ac_mid=0
                   2308:   while :; do
                   2309:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2310: /* end confdefs.h.  */
                   2311: $4
                   2312: int
                   2313: main ()
                   2314: {
                   2315: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1.1.1.6 ! misho    2316: test_array [0] = 0;
        !          2317: return test_array [0];
1.1       misho    2318: 
                   2319:   ;
                   2320:   return 0;
                   2321: }
                   2322: _ACEOF
                   2323: if ac_fn_c_try_compile "$LINENO"; then :
                   2324:   ac_hi=$ac_mid; break
                   2325: else
                   2326:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   2327:                        if test $ac_lo -le $ac_mid; then
                   2328:                          ac_lo= ac_hi=
                   2329:                          break
                   2330:                        fi
                   2331:                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   2332: fi
                   2333: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2334:   done
                   2335: else
                   2336:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2337: /* end confdefs.h.  */
                   2338: $4
                   2339: int
                   2340: main ()
                   2341: {
                   2342: static int test_array [1 - 2 * !(($2) < 0)];
1.1.1.6 ! misho    2343: test_array [0] = 0;
        !          2344: return test_array [0];
1.1       misho    2345: 
                   2346:   ;
                   2347:   return 0;
                   2348: }
                   2349: _ACEOF
                   2350: if ac_fn_c_try_compile "$LINENO"; then :
                   2351:   ac_hi=-1 ac_mid=-1
                   2352:   while :; do
                   2353:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2354: /* end confdefs.h.  */
                   2355: $4
                   2356: int
                   2357: main ()
                   2358: {
                   2359: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1.1.1.6 ! misho    2360: test_array [0] = 0;
        !          2361: return test_array [0];
1.1       misho    2362: 
                   2363:   ;
                   2364:   return 0;
                   2365: }
                   2366: _ACEOF
                   2367: if ac_fn_c_try_compile "$LINENO"; then :
                   2368:   ac_lo=$ac_mid; break
                   2369: else
                   2370:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2371:                        if test $ac_mid -le $ac_hi; then
                   2372:                          ac_lo= ac_hi=
                   2373:                          break
                   2374:                        fi
                   2375:                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2376: fi
                   2377: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2378:   done
                   2379: else
                   2380:   ac_lo= ac_hi=
                   2381: fi
                   2382: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2383: fi
                   2384: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2385: # Binary search between lo and hi bounds.
                   2386: while test "x$ac_lo" != "x$ac_hi"; do
                   2387:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2388:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2389: /* end confdefs.h.  */
                   2390: $4
                   2391: int
                   2392: main ()
                   2393: {
                   2394: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1.1.1.6 ! misho    2395: test_array [0] = 0;
        !          2396: return test_array [0];
1.1       misho    2397: 
                   2398:   ;
                   2399:   return 0;
                   2400: }
                   2401: _ACEOF
                   2402: if ac_fn_c_try_compile "$LINENO"; then :
                   2403:   ac_hi=$ac_mid
                   2404: else
                   2405:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
                   2406: fi
                   2407: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2408: done
                   2409: case $ac_lo in #((
                   2410: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2411: '') ac_retval=1 ;;
                   2412: esac
                   2413:   else
                   2414:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2415: /* end confdefs.h.  */
                   2416: $4
                   2417: static long int longval () { return $2; }
                   2418: static unsigned long int ulongval () { return $2; }
                   2419: #include <stdio.h>
                   2420: #include <stdlib.h>
                   2421: int
                   2422: main ()
                   2423: {
                   2424: 
                   2425:   FILE *f = fopen ("conftest.val", "w");
                   2426:   if (! f)
                   2427:     return 1;
                   2428:   if (($2) < 0)
                   2429:     {
                   2430:       long int i = longval ();
                   2431:       if (i != ($2))
                   2432:        return 1;
                   2433:       fprintf (f, "%ld", i);
                   2434:     }
                   2435:   else
                   2436:     {
                   2437:       unsigned long int i = ulongval ();
                   2438:       if (i != ($2))
                   2439:        return 1;
                   2440:       fprintf (f, "%lu", i);
                   2441:     }
                   2442:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2443:      on some platforms.  */
                   2444:   return ferror (f) || fclose (f) != 0;
                   2445: 
                   2446:   ;
                   2447:   return 0;
                   2448: }
                   2449: _ACEOF
                   2450: if ac_fn_c_try_run "$LINENO"; then :
                   2451:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2452: else
                   2453:   ac_retval=1
                   2454: fi
                   2455: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2456:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2457: rm -f conftest.val
                   2458: 
                   2459:   fi
                   2460:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2461:   as_fn_set_status $ac_retval
                   2462: 
                   2463: } # ac_fn_c_compute_int
                   2464: 
                   2465: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
                   2466: # ---------------------------------------------
                   2467: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
                   2468: # accordingly.
                   2469: ac_fn_c_check_decl ()
                   2470: {
                   2471:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2472:   as_decl_name=`echo $2|sed 's/ *(.*//'`
                   2473:   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
                   2474:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
                   2475: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
                   2476: if eval \${$3+:} false; then :
                   2477:   $as_echo_n "(cached) " >&6
                   2478: else
                   2479:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2480: /* end confdefs.h.  */
                   2481: $4
                   2482: int
                   2483: main ()
                   2484: {
                   2485: #ifndef $as_decl_name
                   2486: #ifdef __cplusplus
                   2487:   (void) $as_decl_use;
                   2488: #else
                   2489:   (void) $as_decl_name;
                   2490: #endif
                   2491: #endif
                   2492: 
                   2493:   ;
                   2494:   return 0;
                   2495: }
                   2496: _ACEOF
                   2497: if ac_fn_c_try_compile "$LINENO"; then :
                   2498:   eval "$3=yes"
                   2499: else
                   2500:   eval "$3=no"
                   2501: fi
                   2502: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2503: fi
                   2504: eval ac_res=\$$3
                   2505:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2506: $as_echo "$ac_res" >&6; }
                   2507:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2508: 
                   2509: } # ac_fn_c_check_decl
                   2510: cat >config.log <<_ACEOF
                   2511: This file contains any messages produced by compilers while
                   2512: running configure, to aid debugging if configure makes a mistake.
                   2513: 
1.1.1.6 ! misho    2514: It was created by sudo $as_me 1.8.10p3, which was
        !          2515: generated by GNU Autoconf 2.69.  Invocation command line was
1.1       misho    2516: 
                   2517:   $ $0 $@
                   2518: 
                   2519: _ACEOF
                   2520: exec 5>>config.log
                   2521: {
                   2522: cat <<_ASUNAME
                   2523: ## --------- ##
                   2524: ## Platform. ##
                   2525: ## --------- ##
                   2526: 
                   2527: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2528: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2529: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2530: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2531: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                   2532: 
                   2533: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2534: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                   2535: 
                   2536: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2537: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2538: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2539: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2540: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2541: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2542: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                   2543: 
                   2544: _ASUNAME
                   2545: 
                   2546: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2547: for as_dir in $PATH
                   2548: do
                   2549:   IFS=$as_save_IFS
                   2550:   test -z "$as_dir" && as_dir=.
                   2551:     $as_echo "PATH: $as_dir"
                   2552:   done
                   2553: IFS=$as_save_IFS
                   2554: 
                   2555: } >&5
                   2556: 
                   2557: cat >&5 <<_ACEOF
                   2558: 
                   2559: 
                   2560: ## ----------- ##
                   2561: ## Core tests. ##
                   2562: ## ----------- ##
                   2563: 
                   2564: _ACEOF
                   2565: 
                   2566: 
                   2567: # Keep a trace of the command line.
                   2568: # Strip out --no-create and --no-recursion so they do not pile up.
                   2569: # Strip out --silent because we don't want to record it for future runs.
                   2570: # Also quote any args containing shell meta-characters.
                   2571: # Make two passes to allow for proper duplicate-argument suppression.
                   2572: ac_configure_args=
                   2573: ac_configure_args0=
                   2574: ac_configure_args1=
                   2575: ac_must_keep_next=false
                   2576: for ac_pass in 1 2
                   2577: do
                   2578:   for ac_arg
                   2579:   do
                   2580:     case $ac_arg in
                   2581:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2582:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2583:     | -silent | --silent | --silen | --sile | --sil)
                   2584:       continue ;;
                   2585:     *\'*)
                   2586:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2587:     esac
                   2588:     case $ac_pass in
                   2589:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2590:     2)
                   2591:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2592:       if test $ac_must_keep_next = true; then
                   2593:        ac_must_keep_next=false # Got value, back to normal.
                   2594:       else
                   2595:        case $ac_arg in
                   2596:          *=* | --config-cache | -C | -disable-* | --disable-* \
                   2597:          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2598:          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2599:          | -with-* | --with-* | -without-* | --without-* | --x)
                   2600:            case "$ac_configure_args0 " in
                   2601:              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2602:            esac
                   2603:            ;;
                   2604:          -* ) ac_must_keep_next=true ;;
                   2605:        esac
                   2606:       fi
                   2607:       as_fn_append ac_configure_args " '$ac_arg'"
                   2608:       ;;
                   2609:     esac
                   2610:   done
                   2611: done
                   2612: { ac_configure_args0=; unset ac_configure_args0;}
                   2613: { ac_configure_args1=; unset ac_configure_args1;}
                   2614: 
                   2615: # When interrupted or exit'd, cleanup temporary files, and complete
                   2616: # config.log.  We remove comments because anyway the quotes in there
                   2617: # would cause problems or look ugly.
                   2618: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2619: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2620: trap 'exit_status=$?
                   2621:   # Save into config.log some information that might help in debugging.
                   2622:   {
                   2623:     echo
                   2624: 
                   2625:     $as_echo "## ---------------- ##
                   2626: ## Cache variables. ##
                   2627: ## ---------------- ##"
                   2628:     echo
                   2629:     # The following way of writing the cache mishandles newlines in values,
                   2630: (
                   2631:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2632:     eval ac_val=\$$ac_var
                   2633:     case $ac_val in #(
                   2634:     *${as_nl}*)
                   2635:       case $ac_var in #(
                   2636:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2637: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2638:       esac
                   2639:       case $ac_var in #(
                   2640:       _ | IFS | as_nl) ;; #(
                   2641:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2642:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2643:       esac ;;
                   2644:     esac
                   2645:   done
                   2646:   (set) 2>&1 |
                   2647:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2648:     *${as_nl}ac_space=\ *)
                   2649:       sed -n \
                   2650:        "s/'\''/'\''\\\\'\'''\''/g;
                   2651:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2652:       ;; #(
                   2653:     *)
                   2654:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2655:       ;;
                   2656:     esac |
                   2657:     sort
                   2658: )
                   2659:     echo
                   2660: 
                   2661:     $as_echo "## ----------------- ##
                   2662: ## Output variables. ##
                   2663: ## ----------------- ##"
                   2664:     echo
                   2665:     for ac_var in $ac_subst_vars
                   2666:     do
                   2667:       eval ac_val=\$$ac_var
                   2668:       case $ac_val in
                   2669:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2670:       esac
                   2671:       $as_echo "$ac_var='\''$ac_val'\''"
                   2672:     done | sort
                   2673:     echo
                   2674: 
                   2675:     if test -n "$ac_subst_files"; then
                   2676:       $as_echo "## ------------------- ##
                   2677: ## File substitutions. ##
                   2678: ## ------------------- ##"
                   2679:       echo
                   2680:       for ac_var in $ac_subst_files
                   2681:       do
                   2682:        eval ac_val=\$$ac_var
                   2683:        case $ac_val in
                   2684:        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2685:        esac
                   2686:        $as_echo "$ac_var='\''$ac_val'\''"
                   2687:       done | sort
                   2688:       echo
                   2689:     fi
                   2690: 
                   2691:     if test -s confdefs.h; then
                   2692:       $as_echo "## ----------- ##
                   2693: ## confdefs.h. ##
                   2694: ## ----------- ##"
                   2695:       echo
                   2696:       cat confdefs.h
                   2697:       echo
                   2698:     fi
                   2699:     test "$ac_signal" != 0 &&
                   2700:       $as_echo "$as_me: caught signal $ac_signal"
                   2701:     $as_echo "$as_me: exit $exit_status"
                   2702:   } >&5
                   2703:   rm -f core *.core core.conftest.* &&
                   2704:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2705:     exit $exit_status
                   2706: ' 0
                   2707: for ac_signal in 1 2 13 15; do
                   2708:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2709: done
                   2710: ac_signal=0
                   2711: 
                   2712: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2713: rm -f -r conftest* confdefs.h
                   2714: 
                   2715: $as_echo "/* confdefs.h */" > confdefs.h
                   2716: 
                   2717: # Predefined preprocessor variables.
                   2718: 
                   2719: cat >>confdefs.h <<_ACEOF
                   2720: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2721: _ACEOF
                   2722: 
                   2723: cat >>confdefs.h <<_ACEOF
                   2724: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
                   2725: _ACEOF
                   2726: 
                   2727: cat >>confdefs.h <<_ACEOF
                   2728: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2729: _ACEOF
                   2730: 
                   2731: cat >>confdefs.h <<_ACEOF
                   2732: #define PACKAGE_STRING "$PACKAGE_STRING"
                   2733: _ACEOF
                   2734: 
                   2735: cat >>confdefs.h <<_ACEOF
                   2736: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2737: _ACEOF
                   2738: 
                   2739: cat >>confdefs.h <<_ACEOF
                   2740: #define PACKAGE_URL "$PACKAGE_URL"
                   2741: _ACEOF
                   2742: 
                   2743: 
                   2744: # Let the site file select an alternate cache file if it wants to.
                   2745: # Prefer an explicitly selected file to automatically selected ones.
                   2746: ac_site_file1=NONE
                   2747: ac_site_file2=NONE
                   2748: if test -n "$CONFIG_SITE"; then
                   2749:   # We do not want a PATH search for config.site.
                   2750:   case $CONFIG_SITE in #((
                   2751:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2752:     */*) ac_site_file1=$CONFIG_SITE;;
                   2753:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2754:   esac
                   2755: elif test "x$prefix" != xNONE; then
                   2756:   ac_site_file1=$prefix/share/config.site
                   2757:   ac_site_file2=$prefix/etc/config.site
                   2758: else
                   2759:   ac_site_file1=$ac_default_prefix/share/config.site
                   2760:   ac_site_file2=$ac_default_prefix/etc/config.site
                   2761: fi
                   2762: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2763: do
                   2764:   test "x$ac_site_file" = xNONE && continue
                   2765:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2766:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2767: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2768:     sed 's/^/| /' "$ac_site_file" >&5
                   2769:     . "$ac_site_file" \
                   2770:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2771: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2772: as_fn_error $? "failed to load site script $ac_site_file
                   2773: See \`config.log' for more details" "$LINENO" 5; }
                   2774:   fi
                   2775: done
                   2776: 
                   2777: if test -r "$cache_file"; then
                   2778:   # Some versions of bash will fail to source /dev/null (special files
                   2779:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2780:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2781:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2782: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2783:     case $cache_file in
                   2784:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2785:       *)                      . "./$cache_file";;
                   2786:     esac
                   2787:   fi
                   2788: else
                   2789:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2790: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2791:   >$cache_file
                   2792: fi
                   2793: 
                   2794: # Check that the precious variables saved in the cache have kept the same
                   2795: # value.
                   2796: ac_cache_corrupted=false
                   2797: for ac_var in $ac_precious_vars; do
                   2798:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2799:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2800:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2801:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2802:   case $ac_old_set,$ac_new_set in
                   2803:     set,)
                   2804:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2805: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2806:       ac_cache_corrupted=: ;;
                   2807:     ,set)
                   2808:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2809: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2810:       ac_cache_corrupted=: ;;
                   2811:     ,);;
                   2812:     *)
                   2813:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2814:        # differences in whitespace do not lead to failure.
                   2815:        ac_old_val_w=`echo x $ac_old_val`
                   2816:        ac_new_val_w=`echo x $ac_new_val`
                   2817:        if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2818:          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2819: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2820:          ac_cache_corrupted=:
                   2821:        else
                   2822:          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2823: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2824:          eval $ac_var=\$ac_old_val
                   2825:        fi
                   2826:        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2827: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2828:        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2829: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2830:       fi;;
                   2831:   esac
                   2832:   # Pass precious variables to config.status.
                   2833:   if test "$ac_new_set" = set; then
                   2834:     case $ac_new_val in
                   2835:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2836:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2837:     esac
                   2838:     case " $ac_configure_args " in
                   2839:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2840:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2841:     esac
                   2842:   fi
                   2843: done
                   2844: if $ac_cache_corrupted; then
                   2845:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2846: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2847:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2848: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
                   2849:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
                   2850: fi
                   2851: ## -------------------- ##
                   2852: ## Main body of script. ##
                   2853: ## -------------------- ##
                   2854: 
                   2855: ac_ext=c
                   2856: ac_cpp='$CPP $CPPFLAGS'
                   2857: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2858: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2859: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   2860: 
                   2861: 
                   2862: ac_config_headers="$ac_config_headers config.h pathnames.h"
                   2863: 
1.1.1.6 ! misho    2864: 
1.1       misho    2865: { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
                   2866: $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
                   2867: 
                   2868: 
                   2869: 
                   2870: 
                   2871: 
                   2872: 
                   2873: 
                   2874: 
                   2875: 
                   2876: 
                   2877: 
                   2878: 
                   2879: 
                   2880: 
                   2881: 
                   2882: 
                   2883: 
                   2884: 
                   2885: 
                   2886: 
                   2887: 
                   2888: 
                   2889: 
                   2890: 
                   2891: 
                   2892: 
                   2893: 
                   2894: 
                   2895: 
                   2896: 
                   2897: 
                   2898: 
                   2899: 
                   2900: 
                   2901: 
                   2902: 
                   2903: 
                   2904: 
                   2905: 
                   2906: 
                   2907: 
                   2908: 
                   2909: 
                   2910: 
                   2911: 
                   2912: 
                   2913: 
                   2914: 
                   2915: 
                   2916: 
                   2917: 
                   2918: 
                   2919: 
                   2920: 
                   2921: 
                   2922: 
                   2923: 
                   2924: 
                   2925: 
                   2926: 
                   2927: 
                   2928: 
                   2929: 
                   2930: 
                   2931: 
                   2932: 
                   2933: 
                   2934: 
                   2935: 
                   2936: 
                   2937: 
                   2938: 
                   2939: 
                   2940: 
                   2941: 
                   2942: 
                   2943: 
                   2944: 
                   2945: 
                   2946: 
                   2947: 
                   2948: 
                   2949: 
                   2950: 
                   2951: 
                   2952: 
                   2953: 
1.1.1.2   misho    2954: 
1.1.1.3   misho    2955: 
                   2956: 
                   2957: 
                   2958: 
                   2959: 
                   2960: 
                   2961: 
                   2962: 
                   2963: 
                   2964: 
                   2965: 
                   2966: 
                   2967: 
1.1.1.4   misho    2968: 
                   2969: 
                   2970: 
                   2971: 
                   2972: 
1.1.1.5   misho    2973: 
                   2974: 
1.1.1.6 ! misho    2975: 
        !          2976: 
        !          2977: 
        !          2978: 
1.1       misho    2979: #
                   2980: # Begin initial values for man page substitution
                   2981: #
                   2982: iolog_dir=/var/log/sudo-io
1.1.1.6 ! misho    2983: rundir=/var/run/sudo
        !          2984: vardir=/var/adm/sudo
1.1       misho    2985: timeout=5
                   2986: password_timeout=5
                   2987: sudo_umask=0022
                   2988: umask_override=off
                   2989: passprompt="Password:"
                   2990: long_otp_prompt=off
                   2991: lecture=once
                   2992: logfac=auth
                   2993: goodpri=notice
                   2994: badpri=alert
                   2995: loglen=80
                   2996: ignore_dot=off
                   2997: mail_no_user=on
                   2998: mail_no_host=off
                   2999: mail_no_perms=off
                   3000: mailto=root
                   3001: mailsub="*** SECURITY information for %h ***"
                   3002: badpass_message="Sorry, try again."
                   3003: fqdn=off
                   3004: runas_default=root
                   3005: env_editor=off
                   3006: env_reset=on
                   3007: editor=vi
                   3008: passwd_tries=3
                   3009: tty_tickets=on
                   3010: insults=off
                   3011: root_sudo=on
                   3012: path_info=on
                   3013: ldap_conf=/etc/ldap.conf
                   3014: ldap_secret=/etc/ldap.secret
                   3015: netsvc_conf=/etc/netsvc.conf
1.1.1.4   misho    3016: noexec_file=/usr/local/libexec/sudo/sudo_noexec.so
                   3017: sesh_file=/usr/local/libexec/sudo/sesh
1.1       misho    3018: nsswitch_conf=/etc/nsswitch.conf
                   3019: secure_path="not set"
1.1.1.4   misho    3020: pam_session=on
1.1.1.5   misho    3021: pam_login_service=sudo
1.1.1.4   misho    3022: PLUGINDIR=/usr/local/libexec/sudo
1.1       misho    3023: #
                   3024: # End initial values for man page substitution
                   3025: #
                   3026: INSTALL_NOEXEC=
                   3027: devdir='$(srcdir)'
                   3028: PROGS="sudo"
1.1.1.3   misho    3029: : ${MANDIRTYPE='man'}
1.1       misho    3030: : ${mansrcdir='.'}
1.1.1.3   misho    3031: : ${SHLIB_MODE='0644'}
1.1       misho    3032: : ${SUDOERS_MODE='0440'}
                   3033: : ${SUDOERS_UID='0'}
                   3034: : ${SUDOERS_GID='0'}
1.1.1.2   misho    3035: DEVEL=
1.1       misho    3036: LDAP="#"
                   3037: BAMAN=0
                   3038: LCMAN=0
1.1.1.3   misho    3039: PSMAN=0
1.1       misho    3040: SEMAN=0
                   3041: LIBINTL=
                   3042: ZLIB=
                   3043: ZLIB_SRC=
                   3044: AUTH_OBJS=
                   3045: AUTH_REG=
                   3046: AUTH_EXCL=
                   3047: AUTH_EXCL_DEF=
                   3048: AUTH_DEF=passwd
                   3049: SUDO_NLS=disabled
1.1.1.4   misho    3050: LOCALEDIR_SUFFIX=
1.1.1.3   misho    3051: LT_LDEXPORTS="-export-symbols \$(shlib_exp)"
                   3052: LT_LDDEP="\$(shlib_exp)"
1.1.1.4   misho    3053: NO_VIZ="-DNO_VIZ"
                   3054: OS_INIT=os_init_common
1.1.1.6 ! misho    3055: INIT_SCRIPT=
        !          3056: INIT_DIR=
        !          3057: RC_LINK=
1.1       misho    3058: 
                   3059: CHECKSHADOW=true
                   3060: shadow_defs=
                   3061: shadow_funcs=
                   3062: shadow_libs=
                   3063: shadow_libs_optional=
                   3064: CONFIGURE_ARGS="$@"
                   3065: 
1.1.1.2   misho    3066: RTLD_PRELOAD_VAR="LD_PRELOAD"
                   3067: RTLD_PRELOAD_ENABLE_VAR=
                   3068: RTLD_PRELOAD_DELIM=":"
                   3069: RTLD_PRELOAD_DEFAULT=
                   3070: 
1.1       misho    3071: 
                   3072: 
1.1.1.4   misho    3073: #
                   3074: # Prior to sudo 1.8.7, sudo stored libexec files in $libexecdir.
                   3075: # Starting with sudo 1.8.7, $libexecdir/sudo is used so strip
                   3076: # off an extraneous "/sudo" from libexecdir.
                   3077: #
                   3078: case "$libexecdir" in
                   3079:     */sudo)
                   3080:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libexecdir should not include the \"sudo\" subdirectory" >&5
                   3081: $as_echo "$as_me: WARNING: libexecdir should not include the \"sudo\" subdirectory" >&2;}
                   3082:        libexecdir=`expr "$libexecdir" : '\\(.*\\)/sudo$'`
                   3083:        ;;
                   3084: esac
                   3085: 
1.1       misho    3086: 
                   3087: 
                   3088: # Check whether --with-otp-only was given.
                   3089: if test "${with_otp_only+set}" = set; then :
                   3090:   withval=$with_otp_only; case $with_otp_only in
                   3091:     yes)       with_passwd="no"
                   3092:                { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
                   3093: $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
                   3094:                ;;
                   3095: esac
                   3096: fi
                   3097: 
                   3098: 
                   3099: 
                   3100: # Check whether --with-alertmail was given.
                   3101: if test "${with_alertmail+set}" = set; then :
                   3102:   withval=$with_alertmail; case $with_alertmail in
                   3103:     *)         with_mailto="$with_alertmail"
                   3104:                { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
                   3105: $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
                   3106:                ;;
                   3107: esac
                   3108: fi
                   3109: 
                   3110: 
                   3111: 
                   3112: 
                   3113: # Check whether --with-devel was given.
                   3114: if test "${with_devel+set}" = set; then :
                   3115:   withval=$with_devel; case $with_devel in
                   3116:     yes)       { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
                   3117: $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
                   3118:                OSDEFS="${OSDEFS} -DSUDO_DEVEL"
1.1.1.2   misho    3119:                DEVEL="true"
1.1       misho    3120:                devdir=.
                   3121:                ;;
                   3122:     no)                ;;
                   3123:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
                   3124: $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
                   3125:                ;;
                   3126: esac
                   3127: fi
                   3128: 
                   3129: 
                   3130: 
                   3131: # Check whether --with-CC was given.
                   3132: if test "${with_CC+set}" = set; then :
                   3133:   withval=$with_CC; case $with_CC in
                   3134:     *)         as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5
                   3135:                ;;
                   3136: esac
                   3137: fi
                   3138: 
                   3139: 
                   3140: 
                   3141: # Check whether --with-rpath was given.
                   3142: if test "${with_rpath+set}" = set; then :
1.1.1.4   misho    3143:   withval=$with_rpath; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-rpath deprecated, rpath is now the default" >&5
                   3144: $as_echo "$as_me: WARNING: --with-rpath deprecated, rpath is now the default" >&2;}
1.1       misho    3145: fi
                   3146: 
                   3147: 
                   3148: 
                   3149: # Check whether --with-blibpath was given.
                   3150: if test "${with_blibpath+set}" = set; then :
1.1.1.4   misho    3151:   withval=$with_blibpath; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-blibpath deprecated, use --with-libpath" >&5
                   3152: $as_echo "$as_me: WARNING: --with-blibpath deprecated, use --with-libpath" >&2;}
1.1       misho    3153: fi
                   3154: 
                   3155: 
                   3156: 
                   3157: # Check whether --with-bsm-audit was given.
                   3158: if test "${with_bsm_audit+set}" = set; then :
                   3159:   withval=$with_bsm_audit; case $with_bsm_audit in
                   3160:     yes)       $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
                   3161: 
                   3162:                SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
                   3163:                SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
                   3164:                ;;
                   3165:     no)                ;;
                   3166:     *)         as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
                   3167:                ;;
                   3168: esac
                   3169: fi
                   3170: 
                   3171: 
                   3172: ac_ext=c
                   3173: ac_cpp='$CPP $CPPFLAGS'
                   3174: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3175: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3176: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3177: if test -n "$ac_tool_prefix"; then
                   3178:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
                   3179: set dummy ${ac_tool_prefix}gcc; ac_word=$2
                   3180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3181: $as_echo_n "checking for $ac_word... " >&6; }
                   3182: if ${ac_cv_prog_CC+:} false; then :
                   3183:   $as_echo_n "(cached) " >&6
                   3184: else
                   3185:   if test -n "$CC"; then
                   3186:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3187: else
                   3188: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3189: for as_dir in $PATH
                   3190: do
                   3191:   IFS=$as_save_IFS
                   3192:   test -z "$as_dir" && as_dir=.
                   3193:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    3194:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3195:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
                   3196:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3197:     break 2
                   3198:   fi
                   3199: done
                   3200:   done
                   3201: IFS=$as_save_IFS
                   3202: 
                   3203: fi
                   3204: fi
                   3205: CC=$ac_cv_prog_CC
                   3206: if test -n "$CC"; then
                   3207:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3208: $as_echo "$CC" >&6; }
                   3209: else
                   3210:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3211: $as_echo "no" >&6; }
                   3212: fi
                   3213: 
                   3214: 
                   3215: fi
                   3216: if test -z "$ac_cv_prog_CC"; then
                   3217:   ac_ct_CC=$CC
                   3218:   # Extract the first word of "gcc", so it can be a program name with args.
                   3219: set dummy gcc; ac_word=$2
                   3220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3221: $as_echo_n "checking for $ac_word... " >&6; }
                   3222: if ${ac_cv_prog_ac_ct_CC+:} false; then :
                   3223:   $as_echo_n "(cached) " >&6
                   3224: else
                   3225:   if test -n "$ac_ct_CC"; then
                   3226:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   3227: else
                   3228: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3229: for as_dir in $PATH
                   3230: do
                   3231:   IFS=$as_save_IFS
                   3232:   test -z "$as_dir" && as_dir=.
                   3233:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    3234:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3235:     ac_cv_prog_ac_ct_CC="gcc"
                   3236:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3237:     break 2
                   3238:   fi
                   3239: done
                   3240:   done
                   3241: IFS=$as_save_IFS
                   3242: 
                   3243: fi
                   3244: fi
                   3245: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3246: if test -n "$ac_ct_CC"; then
                   3247:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3248: $as_echo "$ac_ct_CC" >&6; }
                   3249: else
                   3250:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3251: $as_echo "no" >&6; }
                   3252: fi
                   3253: 
                   3254:   if test "x$ac_ct_CC" = x; then
                   3255:     CC=""
                   3256:   else
                   3257:     case $cross_compiling:$ac_tool_warned in
                   3258: yes:)
                   3259: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3260: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3261: ac_tool_warned=yes ;;
                   3262: esac
                   3263:     CC=$ac_ct_CC
                   3264:   fi
                   3265: else
                   3266:   CC="$ac_cv_prog_CC"
                   3267: fi
                   3268: 
                   3269: if test -z "$CC"; then
                   3270:           if test -n "$ac_tool_prefix"; then
                   3271:     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
                   3272: set dummy ${ac_tool_prefix}cc; ac_word=$2
                   3273: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3274: $as_echo_n "checking for $ac_word... " >&6; }
                   3275: if ${ac_cv_prog_CC+:} false; then :
                   3276:   $as_echo_n "(cached) " >&6
                   3277: else
                   3278:   if test -n "$CC"; then
                   3279:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3280: else
                   3281: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3282: for as_dir in $PATH
                   3283: do
                   3284:   IFS=$as_save_IFS
                   3285:   test -z "$as_dir" && as_dir=.
                   3286:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    3287:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3288:     ac_cv_prog_CC="${ac_tool_prefix}cc"
                   3289:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3290:     break 2
                   3291:   fi
                   3292: done
                   3293:   done
                   3294: IFS=$as_save_IFS
                   3295: 
                   3296: fi
                   3297: fi
                   3298: CC=$ac_cv_prog_CC
                   3299: if test -n "$CC"; then
                   3300:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3301: $as_echo "$CC" >&6; }
                   3302: else
                   3303:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3304: $as_echo "no" >&6; }
                   3305: fi
                   3306: 
                   3307: 
                   3308:   fi
                   3309: fi
                   3310: if test -z "$CC"; then
                   3311:   # Extract the first word of "cc", so it can be a program name with args.
                   3312: set dummy cc; ac_word=$2
                   3313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3314: $as_echo_n "checking for $ac_word... " >&6; }
                   3315: if ${ac_cv_prog_CC+:} false; then :
                   3316:   $as_echo_n "(cached) " >&6
                   3317: else
                   3318:   if test -n "$CC"; then
                   3319:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3320: else
                   3321:   ac_prog_rejected=no
                   3322: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3323: for as_dir in $PATH
                   3324: do
                   3325:   IFS=$as_save_IFS
                   3326:   test -z "$as_dir" && as_dir=.
                   3327:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    3328:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3329:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
                   3330:        ac_prog_rejected=yes
                   3331:        continue
                   3332:      fi
                   3333:     ac_cv_prog_CC="cc"
                   3334:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3335:     break 2
                   3336:   fi
                   3337: done
                   3338:   done
                   3339: IFS=$as_save_IFS
                   3340: 
                   3341: if test $ac_prog_rejected = yes; then
                   3342:   # We found a bogon in the path, so make sure we never use it.
                   3343:   set dummy $ac_cv_prog_CC
                   3344:   shift
                   3345:   if test $# != 0; then
                   3346:     # We chose a different compiler from the bogus one.
                   3347:     # However, it has the same basename, so the bogon will be chosen
                   3348:     # first if we set CC to just the basename; use the full file name.
                   3349:     shift
                   3350:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
                   3351:   fi
                   3352: fi
                   3353: fi
                   3354: fi
                   3355: CC=$ac_cv_prog_CC
                   3356: if test -n "$CC"; then
                   3357:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3358: $as_echo "$CC" >&6; }
                   3359: else
                   3360:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3361: $as_echo "no" >&6; }
                   3362: fi
                   3363: 
                   3364: 
                   3365: fi
                   3366: if test -z "$CC"; then
                   3367:   if test -n "$ac_tool_prefix"; then
                   3368:   for ac_prog in cl.exe
                   3369:   do
                   3370:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3371: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3372: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3373: $as_echo_n "checking for $ac_word... " >&6; }
                   3374: if ${ac_cv_prog_CC+:} false; then :
                   3375:   $as_echo_n "(cached) " >&6
                   3376: else
                   3377:   if test -n "$CC"; then
                   3378:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3379: else
                   3380: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3381: for as_dir in $PATH
                   3382: do
                   3383:   IFS=$as_save_IFS
                   3384:   test -z "$as_dir" && as_dir=.
                   3385:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    3386:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3387:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3388:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3389:     break 2
                   3390:   fi
                   3391: done
                   3392:   done
                   3393: IFS=$as_save_IFS
                   3394: 
                   3395: fi
                   3396: fi
                   3397: CC=$ac_cv_prog_CC
                   3398: if test -n "$CC"; then
                   3399:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3400: $as_echo "$CC" >&6; }
                   3401: else
                   3402:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3403: $as_echo "no" >&6; }
                   3404: fi
                   3405: 
                   3406: 
                   3407:     test -n "$CC" && break
                   3408:   done
                   3409: fi
                   3410: if test -z "$CC"; then
                   3411:   ac_ct_CC=$CC
                   3412:   for ac_prog in cl.exe
                   3413: do
                   3414:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3415: set dummy $ac_prog; ac_word=$2
                   3416: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3417: $as_echo_n "checking for $ac_word... " >&6; }
                   3418: if ${ac_cv_prog_ac_ct_CC+:} false; then :
                   3419:   $as_echo_n "(cached) " >&6
                   3420: else
                   3421:   if test -n "$ac_ct_CC"; then
                   3422:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   3423: else
                   3424: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3425: for as_dir in $PATH
                   3426: do
                   3427:   IFS=$as_save_IFS
                   3428:   test -z "$as_dir" && as_dir=.
                   3429:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    3430:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3431:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3432:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3433:     break 2
                   3434:   fi
                   3435: done
                   3436:   done
                   3437: IFS=$as_save_IFS
                   3438: 
                   3439: fi
                   3440: fi
                   3441: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3442: if test -n "$ac_ct_CC"; then
                   3443:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3444: $as_echo "$ac_ct_CC" >&6; }
                   3445: else
                   3446:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3447: $as_echo "no" >&6; }
                   3448: fi
                   3449: 
                   3450: 
                   3451:   test -n "$ac_ct_CC" && break
                   3452: done
                   3453: 
                   3454:   if test "x$ac_ct_CC" = x; then
                   3455:     CC=""
                   3456:   else
                   3457:     case $cross_compiling:$ac_tool_warned in
                   3458: yes:)
                   3459: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3460: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3461: ac_tool_warned=yes ;;
                   3462: esac
                   3463:     CC=$ac_ct_CC
                   3464:   fi
                   3465: fi
                   3466: 
                   3467: fi
                   3468: 
                   3469: 
                   3470: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3471: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3472: as_fn_error $? "no acceptable C compiler found in \$PATH
                   3473: See \`config.log' for more details" "$LINENO" 5; }
                   3474: 
                   3475: # Provide some information about the compiler.
                   3476: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3477: set X $ac_compile
                   3478: ac_compiler=$2
                   3479: for ac_option in --version -v -V -qversion; do
                   3480:   { { ac_try="$ac_compiler $ac_option >&5"
                   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_compiler $ac_option >&5") 2>conftest.err
                   3488:   ac_status=$?
                   3489:   if test -s conftest.err; then
                   3490:     sed '10a\
                   3491: ... rest of stderr output deleted ...
                   3492:          10q' conftest.err >conftest.er1
                   3493:     cat conftest.er1 >&5
                   3494:   fi
                   3495:   rm -f conftest.er1 conftest.err
                   3496:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3497:   test $ac_status = 0; }
                   3498: done
                   3499: 
                   3500: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3501: /* end confdefs.h.  */
                   3502: 
                   3503: int
                   3504: main ()
                   3505: {
                   3506: 
                   3507:   ;
                   3508:   return 0;
                   3509: }
                   3510: _ACEOF
                   3511: ac_clean_files_save=$ac_clean_files
                   3512: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3513: # Try to create an executable without -o first, disregard a.out.
                   3514: # It will help us diagnose broken compilers, and finding out an intuition
                   3515: # of exeext.
                   3516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3517: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3518: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
                   3519: 
                   3520: # The possible output files:
                   3521: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
                   3522: 
                   3523: ac_rmfiles=
                   3524: for ac_file in $ac_files
                   3525: do
                   3526:   case $ac_file in
                   3527:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3528:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3529:   esac
                   3530: done
                   3531: rm -f $ac_rmfiles
                   3532: 
                   3533: if { { ac_try="$ac_link_default"
                   3534: case "(($ac_try" in
                   3535:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3536:   *) ac_try_echo=$ac_try;;
                   3537: esac
                   3538: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3539: $as_echo "$ac_try_echo"; } >&5
                   3540:   (eval "$ac_link_default") 2>&5
                   3541:   ac_status=$?
                   3542:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3543:   test $ac_status = 0; }; then :
                   3544:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3545: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3546: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3547: # so that the user can short-circuit this test for compilers unknown to
                   3548: # Autoconf.
                   3549: for ac_file in $ac_files ''
                   3550: do
                   3551:   test -f "$ac_file" || continue
                   3552:   case $ac_file in
                   3553:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3554:        ;;
                   3555:     [ab].out )
                   3556:        # We found the default executable, but exeext='' is most
                   3557:        # certainly right.
                   3558:        break;;
                   3559:     *.* )
                   3560:        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3561:        then :; else
                   3562:           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3563:        fi
                   3564:        # We set ac_cv_exeext here because the later test for it is not
                   3565:        # safe: cross compilers may not add the suffix if given an `-o'
                   3566:        # argument, so we may need to know it at that point already.
                   3567:        # Even if this section looks crufty: it has the advantage of
                   3568:        # actually working.
                   3569:        break;;
                   3570:     * )
                   3571:        break;;
                   3572:   esac
                   3573: done
                   3574: test "$ac_cv_exeext" = no && ac_cv_exeext=
                   3575: 
                   3576: else
                   3577:   ac_file=''
                   3578: fi
                   3579: if test -z "$ac_file"; then :
                   3580:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3581: $as_echo "no" >&6; }
                   3582: $as_echo "$as_me: failed program was:" >&5
                   3583: sed 's/^/| /' conftest.$ac_ext >&5
                   3584: 
                   3585: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3586: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3587: as_fn_error 77 "C compiler cannot create executables
                   3588: See \`config.log' for more details" "$LINENO" 5; }
                   3589: else
                   3590:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3591: $as_echo "yes" >&6; }
                   3592: fi
                   3593: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3594: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3596: $as_echo "$ac_file" >&6; }
                   3597: ac_exeext=$ac_cv_exeext
                   3598: 
                   3599: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3600: ac_clean_files=$ac_clean_files_save
                   3601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3602: $as_echo_n "checking for suffix of executables... " >&6; }
                   3603: if { { ac_try="$ac_link"
                   3604: case "(($ac_try" in
                   3605:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3606:   *) ac_try_echo=$ac_try;;
                   3607: esac
                   3608: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3609: $as_echo "$ac_try_echo"; } >&5
                   3610:   (eval "$ac_link") 2>&5
                   3611:   ac_status=$?
                   3612:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3613:   test $ac_status = 0; }; then :
                   3614:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3615: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3616: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3617: # `rm'.
                   3618: for ac_file in conftest.exe conftest conftest.*; do
                   3619:   test -f "$ac_file" || continue
                   3620:   case $ac_file in
                   3621:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3622:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3623:          break;;
                   3624:     * ) break;;
                   3625:   esac
                   3626: done
                   3627: else
                   3628:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3629: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3630: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
                   3631: See \`config.log' for more details" "$LINENO" 5; }
                   3632: fi
                   3633: rm -f conftest conftest$ac_cv_exeext
                   3634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3635: $as_echo "$ac_cv_exeext" >&6; }
                   3636: 
                   3637: rm -f conftest.$ac_ext
                   3638: EXEEXT=$ac_cv_exeext
                   3639: ac_exeext=$EXEEXT
                   3640: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3641: /* end confdefs.h.  */
                   3642: #include <stdio.h>
                   3643: int
                   3644: main ()
                   3645: {
                   3646: FILE *f = fopen ("conftest.out", "w");
                   3647:  return ferror (f) || fclose (f) != 0;
                   3648: 
                   3649:   ;
                   3650:   return 0;
                   3651: }
                   3652: _ACEOF
                   3653: ac_clean_files="$ac_clean_files conftest.out"
                   3654: # Check that the compiler produces executables we can run.  If not, either
                   3655: # the compiler is broken, or we cross compile.
                   3656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3657: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3658: if test "$cross_compiling" != yes; then
                   3659:   { { ac_try="$ac_link"
                   3660: case "(($ac_try" in
                   3661:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3662:   *) ac_try_echo=$ac_try;;
                   3663: esac
                   3664: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3665: $as_echo "$ac_try_echo"; } >&5
                   3666:   (eval "$ac_link") 2>&5
                   3667:   ac_status=$?
                   3668:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3669:   test $ac_status = 0; }
                   3670:   if { ac_try='./conftest$ac_cv_exeext'
                   3671:   { { case "(($ac_try" in
                   3672:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3673:   *) ac_try_echo=$ac_try;;
                   3674: esac
                   3675: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3676: $as_echo "$ac_try_echo"; } >&5
                   3677:   (eval "$ac_try") 2>&5
                   3678:   ac_status=$?
                   3679:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3680:   test $ac_status = 0; }; }; then
                   3681:     cross_compiling=no
                   3682:   else
                   3683:     if test "$cross_compiling" = maybe; then
                   3684:        cross_compiling=yes
                   3685:     else
                   3686:        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3687: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3688: as_fn_error $? "cannot run C compiled programs.
                   3689: If you meant to cross compile, use \`--host'.
                   3690: See \`config.log' for more details" "$LINENO" 5; }
                   3691:     fi
                   3692:   fi
                   3693: fi
                   3694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3695: $as_echo "$cross_compiling" >&6; }
                   3696: 
                   3697: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3698: ac_clean_files=$ac_clean_files_save
                   3699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3700: $as_echo_n "checking for suffix of object files... " >&6; }
                   3701: if ${ac_cv_objext+:} false; then :
                   3702:   $as_echo_n "(cached) " >&6
                   3703: else
                   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: rm -f conftest.o conftest.obj
                   3716: if { { ac_try="$ac_compile"
                   3717: case "(($ac_try" in
                   3718:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3719:   *) ac_try_echo=$ac_try;;
                   3720: esac
                   3721: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3722: $as_echo "$ac_try_echo"; } >&5
                   3723:   (eval "$ac_compile") 2>&5
                   3724:   ac_status=$?
                   3725:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3726:   test $ac_status = 0; }; then :
                   3727:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3728:   test -f "$ac_file" || continue;
                   3729:   case $ac_file in
                   3730:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3731:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3732:        break;;
                   3733:   esac
                   3734: done
                   3735: else
                   3736:   $as_echo "$as_me: failed program was:" >&5
                   3737: sed 's/^/| /' conftest.$ac_ext >&5
                   3738: 
                   3739: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3740: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3741: as_fn_error $? "cannot compute suffix of object files: cannot compile
                   3742: See \`config.log' for more details" "$LINENO" 5; }
                   3743: fi
                   3744: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3745: fi
                   3746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3747: $as_echo "$ac_cv_objext" >&6; }
                   3748: OBJEXT=$ac_cv_objext
                   3749: ac_objext=$OBJEXT
                   3750: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3751: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
                   3752: if ${ac_cv_c_compiler_gnu+:} false; then :
                   3753:   $as_echo_n "(cached) " >&6
                   3754: else
                   3755:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3756: /* end confdefs.h.  */
                   3757: 
                   3758: int
                   3759: main ()
                   3760: {
                   3761: #ifndef __GNUC__
                   3762:        choke me
                   3763: #endif
                   3764: 
                   3765:   ;
                   3766:   return 0;
                   3767: }
                   3768: _ACEOF
                   3769: if ac_fn_c_try_compile "$LINENO"; then :
                   3770:   ac_compiler_gnu=yes
                   3771: else
                   3772:   ac_compiler_gnu=no
                   3773: fi
                   3774: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3775: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   3776: 
                   3777: fi
                   3778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3779: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3780: if test $ac_compiler_gnu = yes; then
                   3781:   GCC=yes
                   3782: else
                   3783:   GCC=
                   3784: fi
                   3785: ac_test_CFLAGS=${CFLAGS+set}
                   3786: ac_save_CFLAGS=$CFLAGS
                   3787: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3788: $as_echo_n "checking whether $CC accepts -g... " >&6; }
                   3789: if ${ac_cv_prog_cc_g+:} false; then :
                   3790:   $as_echo_n "(cached) " >&6
                   3791: else
                   3792:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3793:    ac_c_werror_flag=yes
                   3794:    ac_cv_prog_cc_g=no
                   3795:    CFLAGS="-g"
                   3796:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3797: /* end confdefs.h.  */
                   3798: 
                   3799: int
                   3800: main ()
                   3801: {
                   3802: 
                   3803:   ;
                   3804:   return 0;
                   3805: }
                   3806: _ACEOF
                   3807: if ac_fn_c_try_compile "$LINENO"; then :
                   3808:   ac_cv_prog_cc_g=yes
                   3809: else
                   3810:   CFLAGS=""
                   3811:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3812: /* end confdefs.h.  */
                   3813: 
                   3814: int
                   3815: main ()
                   3816: {
                   3817: 
                   3818:   ;
                   3819:   return 0;
                   3820: }
                   3821: _ACEOF
                   3822: if ac_fn_c_try_compile "$LINENO"; then :
                   3823: 
                   3824: else
                   3825:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3826:         CFLAGS="-g"
                   3827:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3828: /* end confdefs.h.  */
                   3829: 
                   3830: int
                   3831: main ()
                   3832: {
                   3833: 
                   3834:   ;
                   3835:   return 0;
                   3836: }
                   3837: _ACEOF
                   3838: if ac_fn_c_try_compile "$LINENO"; then :
                   3839:   ac_cv_prog_cc_g=yes
                   3840: fi
                   3841: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3842: fi
                   3843: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3844: fi
                   3845: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3846:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3847: fi
                   3848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3849: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3850: if test "$ac_test_CFLAGS" = set; then
                   3851:   CFLAGS=$ac_save_CFLAGS
                   3852: elif test $ac_cv_prog_cc_g = yes; then
                   3853:   if test "$GCC" = yes; then
                   3854:     CFLAGS="-g -O2"
                   3855:   else
                   3856:     CFLAGS="-g"
                   3857:   fi
                   3858: else
                   3859:   if test "$GCC" = yes; then
                   3860:     CFLAGS="-O2"
                   3861:   else
                   3862:     CFLAGS=
                   3863:   fi
                   3864: fi
                   3865: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3866: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
                   3867: if ${ac_cv_prog_cc_c89+:} false; then :
                   3868:   $as_echo_n "(cached) " >&6
                   3869: else
                   3870:   ac_cv_prog_cc_c89=no
                   3871: ac_save_CC=$CC
                   3872: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3873: /* end confdefs.h.  */
                   3874: #include <stdarg.h>
                   3875: #include <stdio.h>
1.1.1.6 ! misho    3876: struct stat;
1.1       misho    3877: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3878: struct buf { int x; };
                   3879: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3880: static char *e (p, i)
                   3881:      char **p;
                   3882:      int i;
                   3883: {
                   3884:   return p[i];
                   3885: }
                   3886: static char *f (char * (*g) (char **, int), char **p, ...)
                   3887: {
                   3888:   char *s;
                   3889:   va_list v;
                   3890:   va_start (v,p);
                   3891:   s = g (p, va_arg (v,int));
                   3892:   va_end (v);
                   3893:   return s;
                   3894: }
                   3895: 
                   3896: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3897:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3898:    These don't provoke an error unfortunately, instead are silently treated
                   3899:    as 'x'.  The following induces an error, until -std is added to get
                   3900:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3901:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3902:    that's true only with -std.  */
                   3903: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
                   3904: 
                   3905: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3906:    inside strings and character constants.  */
                   3907: #define FOO(x) 'x'
                   3908: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
                   3909: 
                   3910: int test (int i, double x);
                   3911: struct s1 {int (*f) (int a);};
                   3912: struct s2 {int (*f) (double a);};
                   3913: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3914: int argc;
                   3915: char **argv;
                   3916: int
                   3917: main ()
                   3918: {
                   3919: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                   3920:   ;
                   3921:   return 0;
                   3922: }
                   3923: _ACEOF
                   3924: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3925:        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3926: do
                   3927:   CC="$ac_save_CC $ac_arg"
                   3928:   if ac_fn_c_try_compile "$LINENO"; then :
                   3929:   ac_cv_prog_cc_c89=$ac_arg
                   3930: fi
                   3931: rm -f core conftest.err conftest.$ac_objext
                   3932:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3933: done
                   3934: rm -f conftest.$ac_ext
                   3935: CC=$ac_save_CC
                   3936: 
                   3937: fi
                   3938: # AC_CACHE_VAL
                   3939: case "x$ac_cv_prog_cc_c89" in
                   3940:   x)
                   3941:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3942: $as_echo "none needed" >&6; } ;;
                   3943:   xno)
                   3944:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3945: $as_echo "unsupported" >&6; } ;;
                   3946:   *)
                   3947:     CC="$CC $ac_cv_prog_cc_c89"
                   3948:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3949: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
                   3950: esac
                   3951: if test "x$ac_cv_prog_cc_c89" != xno; then :
                   3952: 
                   3953: fi
                   3954: 
                   3955: ac_ext=c
                   3956: ac_cpp='$CPP $CPPFLAGS'
                   3957: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3958: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3959: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3960: 
                   3961: 
                   3962: 
                   3963: # Check whether --with-linux-audit was given.
                   3964: if test "${with_linux_audit+set}" = set; then :
                   3965:   withval=$with_linux_audit; case $with_linux_audit in
                   3966:     yes)       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3967: /* end confdefs.h.  */
                   3968: #include <libaudit.h>
                   3969: int
                   3970: main ()
                   3971: {
                   3972: int i = AUDIT_USER_CMD; (void)i;
                   3973:   ;
                   3974:   return 0;
                   3975: }
                   3976: _ACEOF
                   3977: if ac_fn_c_try_compile "$LINENO"; then :
                   3978: 
                   3979:                    $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
                   3980: 
                   3981:                    SUDO_LIBS="${SUDO_LIBS} -laudit"
                   3982:                    SUDOERS_LIBS="${SUDO_LIBS} -laudit"
                   3983:                    SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
                   3984: 
                   3985: else
                   3986: 
                   3987:                    as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
                   3988: 
                   3989: fi
                   3990: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3991:                ;;
                   3992:     no)                ;;
                   3993:     *)         as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
                   3994:                ;;
                   3995: esac
                   3996: fi
                   3997: 
                   3998: 
                   3999: 
1.1.1.3   misho    4000: # Check whether --with-sssd was given.
                   4001: if test "${with_sssd+set}" = set; then :
                   4002:   withval=$with_sssd; case $with_sssd in
                   4003:     yes)       SUDOERS_OBJS="${SUDOERS_OBJS} sssd.lo"
                   4004:                $as_echo "#define HAVE_SSSD 1" >>confdefs.h
                   4005: 
                   4006:                ;;
                   4007:     no)                ;;
                   4008:     *)         as_fn_error $? "\"--with-sssd does not take an argument.\"" "$LINENO" 5
                   4009:                ;;
                   4010: esac
                   4011: fi
                   4012: 
                   4013: 
                   4014: 
                   4015: # Check whether --with-sssd-lib was given.
                   4016: if test "${with_sssd_lib+set}" = set; then :
                   4017:   withval=$with_sssd_lib;
                   4018: fi
                   4019: 
                   4020: sssd_lib="\"LIBDIR\""
                   4021: test -n "$with_sssd_lib" && sssd_lib="$with_sssd_lib"
                   4022: cat >>confdefs.h <<EOF
                   4023: #define _PATH_SSSD_LIB "$sssd_lib"
                   4024: EOF
                   4025: 
                   4026: 
                   4027: 
1.1       misho    4028: # Check whether --with-incpath was given.
                   4029: if test "${with_incpath+set}" = set; then :
                   4030:   withval=$with_incpath; case $with_incpath in
                   4031:     yes)       as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
                   4032:                ;;
                   4033:     no)                as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
                   4034:                ;;
                   4035:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
                   4036: $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
                   4037:                for i in ${with_incpath}; do
1.1.1.4   misho    4038: 
                   4039:     case "${CPPFLAGS}" in
                   4040:        *"-I${i}"|*"-I${i} ")
                   4041:            ;;
                   4042:        *)
                   4043:            if test X"${CPPFLAGS}" = X""; then
                   4044:                CPPFLAGS="-I${i}"
                   4045:            else
                   4046:                CPPFLAGS="${CPPFLAGS} -I${i}"
                   4047:            fi
                   4048:            ;;
                   4049:     esac
                   4050: 
1.1       misho    4051:                done
                   4052:                ;;
                   4053: esac
                   4054: fi
                   4055: 
                   4056: 
                   4057: 
                   4058: # Check whether --with-libpath was given.
                   4059: if test "${with_libpath+set}" = set; then :
                   4060:   withval=$with_libpath; case $with_libpath in
                   4061:     yes)       as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
                   4062:                ;;
                   4063:     no)                as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
                   4064:                ;;
                   4065:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
                   4066: $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
                   4067:                ;;
                   4068: esac
                   4069: fi
                   4070: 
                   4071: 
                   4072: 
                   4073: # Check whether --with-libraries was given.
                   4074: if test "${with_libraries+set}" = set; then :
                   4075:   withval=$with_libraries; case $with_libraries in
                   4076:     yes)       as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
                   4077:                ;;
                   4078:     no)                as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
                   4079:                ;;
                   4080:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
                   4081: $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
                   4082:                ;;
                   4083: esac
                   4084: fi
                   4085: 
                   4086: 
                   4087: 
                   4088: # Check whether --with-efence was given.
                   4089: if test "${with_efence+set}" = set; then :
                   4090:   withval=$with_efence; case $with_efence in
                   4091:     yes)       { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
                   4092: $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
                   4093:                LIBS="${LIBS} -lefence"
                   4094:                if test -f /usr/local/lib/libefence.a; then
                   4095:                    with_libpath="${with_libpath} /usr/local/lib"
                   4096:                fi
                   4097:                ;;
                   4098:     no)                ;;
                   4099:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
                   4100: $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
                   4101:                ;;
                   4102: esac
                   4103: fi
                   4104: 
                   4105: 
                   4106: 
                   4107: # Check whether --with-csops was given.
                   4108: if test "${with_csops+set}" = set; then :
                   4109:   withval=$with_csops; case $with_csops in
                   4110:     yes)       { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
                   4111: $as_echo "$as_me: Adding CSOps standard options" >&6;}
                   4112:                CHECKSIA=false
                   4113:                with_ignore_dot=yes
                   4114:                insults=on
                   4115:                with_classic_insults=yes
                   4116:                with_csops_insults=yes
                   4117:                with_env_editor=yes
                   4118:                : ${mansectsu='8'}
                   4119:                : ${mansectform='5'}
                   4120:                ;;
                   4121:     no)                ;;
                   4122:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
                   4123: $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
                   4124:                ;;
                   4125: esac
                   4126: fi
                   4127: 
                   4128: 
                   4129: 
                   4130: # Check whether --with-passwd was given.
                   4131: if test "${with_passwd+set}" = set; then :
                   4132:   withval=$with_passwd; case $with_passwd in
                   4133:     yes|no)    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
                   4134: $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
                   4135:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
                   4136: $as_echo "$with_passwd" >&6; }
                   4137:                AUTH_DEF=""
                   4138:                test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
                   4139:                ;;
                   4140:     *)         as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
                   4141:                ;;
                   4142: esac
                   4143: fi
                   4144: 
                   4145: 
                   4146: 
                   4147: # Check whether --with-skey was given.
                   4148: if test "${with_skey+set}" = set; then :
                   4149:   withval=$with_skey; case $with_skey in
                   4150:     no)                ;;
                   4151:     *)         $as_echo "#define HAVE_SKEY 1" >>confdefs.h
                   4152: 
                   4153:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
                   4154: $as_echo_n "checking whether to try S/Key authentication... " >&6; }
                   4155:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4156: $as_echo "yes" >&6; }
                   4157:                AUTH_REG="$AUTH_REG S/Key"
                   4158:                ;;
                   4159: esac
                   4160: fi
                   4161: 
                   4162: 
                   4163: 
                   4164: # Check whether --with-opie was given.
                   4165: if test "${with_opie+set}" = set; then :
                   4166:   withval=$with_opie; case $with_opie in
                   4167:     no)                ;;
                   4168:     *)         $as_echo "#define HAVE_OPIE 1" >>confdefs.h
                   4169: 
                   4170:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
                   4171: $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
                   4172:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4173: $as_echo "yes" >&6; }
                   4174:                AUTH_REG="$AUTH_REG NRL_OPIE"
                   4175:                ;;
                   4176: esac
                   4177: fi
                   4178: 
                   4179: 
                   4180: 
                   4181: # Check whether --with-long-otp-prompt was given.
                   4182: if test "${with_long_otp_prompt+set}" = set; then :
                   4183:   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
                   4184:     yes)       $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
                   4185: 
                   4186:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
                   4187: $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
                   4188:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4189: $as_echo "yes" >&6; }
                   4190:                long_otp_prompt=on
                   4191:                ;;
                   4192:     no)                long_otp_prompt=off
                   4193:                ;;
                   4194:     *)         as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
                   4195:                ;;
                   4196: esac
                   4197: fi
                   4198: 
                   4199: 
                   4200: 
                   4201: # Check whether --with-SecurID was given.
                   4202: if test "${with_SecurID+set}" = set; then :
                   4203:   withval=$with_SecurID; case $with_SecurID in
                   4204:     no)                ;;
                   4205:     *)         $as_echo "#define HAVE_SECURID 1" >>confdefs.h
                   4206: 
                   4207:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
                   4208: $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
                   4209:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4210: $as_echo "yes" >&6; }
                   4211:                AUTH_EXCL="$AUTH_EXCL SecurID"
                   4212:                ;;
                   4213: esac
                   4214: fi
                   4215: 
                   4216: 
                   4217: 
                   4218: # Check whether --with-fwtk was given.
                   4219: if test "${with_fwtk+set}" = set; then :
                   4220:   withval=$with_fwtk; case $with_fwtk in
                   4221:     no)                ;;
                   4222:     *)         $as_echo "#define HAVE_FWTK 1" >>confdefs.h
                   4223: 
                   4224:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
                   4225: $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
                   4226:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4227: $as_echo "yes" >&6; }
                   4228:                AUTH_EXCL="$AUTH_EXCL FWTK"
                   4229:                ;;
                   4230: esac
                   4231: fi
                   4232: 
                   4233: 
                   4234: 
                   4235: # Check whether --with-kerb5 was given.
                   4236: if test "${with_kerb5+set}" = set; then :
                   4237:   withval=$with_kerb5; case $with_kerb5 in
                   4238:     no)                ;;
                   4239:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
                   4240: $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
                   4241:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4242: $as_echo "yes" >&6; }
                   4243:                AUTH_REG="$AUTH_REG kerb5"
                   4244:                ;;
                   4245: esac
                   4246: fi
                   4247: 
                   4248: 
                   4249: 
                   4250: # Check whether --with-aixauth was given.
                   4251: if test "${with_aixauth+set}" = set; then :
                   4252:   withval=$with_aixauth; case $with_aixauth in
                   4253:     yes)       AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
                   4254:     no)                ;;
                   4255:     *)         as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
                   4256:                ;;
                   4257: esac
                   4258: fi
                   4259: 
                   4260: 
                   4261: 
                   4262: # Check whether --with-pam was given.
                   4263: if test "${with_pam+set}" = set; then :
                   4264:   withval=$with_pam; case $with_pam in
                   4265:     yes)       AUTH_EXCL="$AUTH_EXCL PAM";;
                   4266:     no)                ;;
                   4267:     *)         as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
                   4268:                ;;
                   4269: esac
                   4270: fi
                   4271: 
                   4272: 
                   4273: 
                   4274: # Check whether --with-AFS was given.
                   4275: if test "${with_AFS+set}" = set; then :
                   4276:   withval=$with_AFS; case $with_AFS in
                   4277:     yes)       $as_echo "#define HAVE_AFS 1" >>confdefs.h
                   4278: 
                   4279:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
                   4280: $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
                   4281:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4282: $as_echo "yes" >&6; }
                   4283:                AUTH_REG="$AUTH_REG AFS"
                   4284:                ;;
                   4285:     no)                ;;
                   4286:     *)         as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
                   4287:                ;;
                   4288: esac
                   4289: fi
                   4290: 
                   4291: 
                   4292: 
                   4293: # Check whether --with-DCE was given.
                   4294: if test "${with_DCE+set}" = set; then :
                   4295:   withval=$with_DCE; case $with_DCE in
                   4296:     yes)       $as_echo "#define HAVE_DCE 1" >>confdefs.h
                   4297: 
                   4298:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
                   4299: $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
                   4300:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4301: $as_echo "yes" >&6; }
                   4302:                AUTH_REG="$AUTH_REG DCE"
                   4303:                ;;
                   4304:     no)                ;;
                   4305:     *)         as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
                   4306:                ;;
                   4307: esac
                   4308: fi
                   4309: 
                   4310: 
                   4311: 
                   4312: # Check whether --with-logincap was given.
                   4313: if test "${with_logincap+set}" = set; then :
                   4314:   withval=$with_logincap; case $with_logincap in
                   4315:     yes|no)    ;;
                   4316:     *)         as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
                   4317:                ;;
                   4318: esac
                   4319: fi
                   4320: 
                   4321: 
                   4322: 
                   4323: # Check whether --with-bsdauth was given.
                   4324: if test "${with_bsdauth+set}" = set; then :
                   4325:   withval=$with_bsdauth; case $with_bsdauth in
                   4326:     yes)       AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
                   4327:     no)                ;;
                   4328:     *)         as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
                   4329:                ;;
                   4330: esac
                   4331: fi
                   4332: 
                   4333: 
                   4334: 
                   4335: # Check whether --with-project was given.
                   4336: if test "${with_project+set}" = set; then :
                   4337:   withval=$with_project; case $with_project in
                   4338:     yes|no)    ;;
                   4339:     no)        ;;
                   4340:     *)         as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
                   4341:                ;;
                   4342: esac
                   4343: fi
                   4344: 
                   4345: 
                   4346: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
                   4347: $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
                   4348: 
                   4349: # Check whether --with-lecture was given.
                   4350: if test "${with_lecture+set}" = set; then :
                   4351:   withval=$with_lecture; case $with_lecture in
                   4352:     yes|short|always)  lecture=once
                   4353:                ;;
                   4354:     no|none|never)     lecture=never
                   4355:                ;;
                   4356:     *)         as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
                   4357:                ;;
                   4358: esac
                   4359: fi
                   4360: 
                   4361: if test "$lecture" = "once"; then
                   4362:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4363: $as_echo "yes" >&6; }
                   4364: else
                   4365:     $as_echo "#define NO_LECTURE 1" >>confdefs.h
                   4366: 
                   4367:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4368: $as_echo "no" >&6; }
                   4369: fi
                   4370: 
                   4371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
                   4372: $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
                   4373: 
                   4374: # Check whether --with-logging was given.
                   4375: if test "${with_logging+set}" = set; then :
                   4376:   withval=$with_logging; case $with_logging in
                   4377:     yes)       as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
                   4378:                ;;
                   4379:     no)                as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
                   4380:                ;;
                   4381:     syslog)    $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
                   4382: 
                   4383:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
                   4384: $as_echo "syslog" >&6; }
                   4385:                ;;
                   4386:     file)      $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
                   4387: 
                   4388:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
                   4389: $as_echo "file" >&6; }
                   4390:                ;;
                   4391:     both)      $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
                   4392: 
                   4393:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
                   4394: $as_echo "both" >&6; }
                   4395:                ;;
                   4396:     *)         as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
                   4397:                ;;
                   4398: esac
                   4399: else
                   4400:   $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
                   4401:  { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
                   4402: $as_echo "syslog" >&6; }
                   4403: fi
                   4404: 
                   4405: 
                   4406: 
                   4407: # Check whether --with-logfac was given.
                   4408: if test "${with_logfac+set}" = set; then :
                   4409:   withval=$with_logfac; case $with_logfac in
                   4410:     yes)       as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
                   4411:                ;;
                   4412:     no)                as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
                   4413:                ;;
                   4414:     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)         logfac=$with_logfac
                   4415:                ;;
                   4416:     *)         as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
                   4417:                ;;
                   4418: esac
                   4419: fi
                   4420: 
                   4421: 
                   4422: { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
                   4423: $as_echo_n "checking at which syslog priority to log commands... " >&6; }
                   4424: 
                   4425: # Check whether --with-goodpri was given.
                   4426: if test "${with_goodpri+set}" = set; then :
                   4427:   withval=$with_goodpri; case $with_goodpri in
                   4428:     yes)       as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
                   4429:                ;;
                   4430:     no)                as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
                   4431:                ;;
                   4432:     alert|crit|debug|emerg|err|info|notice|warning)
                   4433:                goodpri=$with_goodpri
                   4434:                ;;
                   4435:     *)         as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
                   4436:                ;;
                   4437: esac
                   4438: fi
                   4439: 
                   4440: 
                   4441: cat >>confdefs.h <<_ACEOF
                   4442: #define PRI_SUCCESS "$goodpri"
                   4443: _ACEOF
                   4444: 
                   4445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
                   4446: $as_echo "$goodpri" >&6; }
                   4447: 
                   4448: { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
                   4449: $as_echo_n "checking at which syslog priority to log failures... " >&6; }
                   4450: 
                   4451: # Check whether --with-badpri was given.
                   4452: if test "${with_badpri+set}" = set; then :
                   4453:   withval=$with_badpri; case $with_badpri in
                   4454:     yes)       as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
                   4455:                ;;
                   4456:     no)                as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
                   4457:                ;;
                   4458:     alert|crit|debug|emerg|err|info|notice|warning)
                   4459:                badpri=$with_badpri
                   4460:                ;;
                   4461:     *)         as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
                   4462:                ;;
                   4463: esac
                   4464: fi
                   4465: 
                   4466: 
                   4467: cat >>confdefs.h <<_ACEOF
                   4468: #define PRI_FAILURE "$badpri"
                   4469: _ACEOF
                   4470: 
                   4471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
                   4472: $as_echo "$badpri" >&6; }
                   4473: 
                   4474: 
                   4475: # Check whether --with-logpath was given.
                   4476: if test "${with_logpath+set}" = set; then :
                   4477:   withval=$with_logpath; case $with_logpath in
                   4478:     yes)       as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
                   4479:                ;;
                   4480:     no)                as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
                   4481:                ;;
                   4482: esac
                   4483: fi
                   4484: 
                   4485: 
                   4486: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
                   4487: $as_echo_n "checking how long a line in the log file should be... " >&6; }
                   4488: 
                   4489: # Check whether --with-loglen was given.
                   4490: if test "${with_loglen+set}" = set; then :
                   4491:   withval=$with_loglen; case $with_loglen in
                   4492:     yes)       as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
                   4493:                ;;
                   4494:     no)                as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
                   4495:                ;;
                   4496:     [0-9]*)    loglen=$with_loglen
                   4497:                ;;
                   4498:     *)         as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
                   4499:                ;;
                   4500: esac
                   4501: fi
                   4502: 
                   4503: 
                   4504: cat >>confdefs.h <<_ACEOF
                   4505: #define MAXLOGFILELEN $loglen
                   4506: _ACEOF
                   4507: 
                   4508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
                   4509: $as_echo "$loglen" >&6; }
                   4510: 
                   4511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
                   4512: $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
                   4513: 
                   4514: # Check whether --with-ignore-dot was given.
                   4515: if test "${with_ignore_dot+set}" = set; then :
                   4516:   withval=$with_ignore_dot; case $with_ignore_dot in
                   4517:     yes)       ignore_dot=on
                   4518:                ;;
                   4519:     no)                ignore_dot=off
                   4520:                ;;
                   4521:     *)         as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
                   4522:                ;;
                   4523: esac
                   4524: fi
                   4525: 
                   4526: if test "$ignore_dot" = "on"; then
                   4527:     $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
                   4528: 
                   4529:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4530: $as_echo "yes" >&6; }
                   4531: else
                   4532:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4533: $as_echo "no" >&6; }
                   4534: fi
                   4535: 
                   4536: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
                   4537: $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
                   4538: 
                   4539: # Check whether --with-mail-if-no-user was given.
                   4540: if test "${with_mail_if_no_user+set}" = set; then :
                   4541:   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
                   4542:     yes)       mail_no_user=on
                   4543:                ;;
                   4544:     no)                mail_no_user=off
                   4545:                ;;
                   4546:     *)         as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
                   4547:                ;;
                   4548: esac
                   4549: fi
                   4550: 
                   4551: if test "$mail_no_user" = "on"; then
                   4552:     $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
                   4553: 
                   4554:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4555: $as_echo "yes" >&6; }
                   4556: else
                   4557:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4558: $as_echo "no" >&6; }
                   4559: fi
                   4560: 
                   4561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
                   4562: $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
                   4563: 
                   4564: # Check whether --with-mail-if-no-host was given.
                   4565: if test "${with_mail_if_no_host+set}" = set; then :
                   4566:   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
                   4567:     yes)       mail_no_host=on
                   4568:                ;;
                   4569:     no)                mail_no_host=off
                   4570:                ;;
                   4571:     *)         as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
                   4572:                ;;
                   4573: esac
                   4574: fi
                   4575: 
                   4576: if test "$mail_no_host" = "on"; then
                   4577:     $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
                   4578: 
                   4579:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4580: $as_echo "yes" >&6; }
                   4581: else
                   4582:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4583: $as_echo "no" >&6; }
                   4584: fi
                   4585: 
                   4586: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
                   4587: $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
                   4588: 
                   4589: # Check whether --with-mail-if-noperms was given.
                   4590: if test "${with_mail_if_noperms+set}" = set; then :
                   4591:   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
                   4592:     yes)       mail_noperms=on
                   4593:                ;;
                   4594:     no)                mail_noperms=off
                   4595:                ;;
                   4596:     *)         as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
                   4597:                ;;
                   4598: esac
                   4599: fi
                   4600: 
                   4601: if test "$mail_noperms" = "on"; then
                   4602:     $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
                   4603: 
                   4604:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4605: $as_echo "yes" >&6; }
                   4606: else
                   4607:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4608: $as_echo "no" >&6; }
                   4609: fi
                   4610: 
                   4611: { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
                   4612: $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
                   4613: 
                   4614: # Check whether --with-mailto was given.
                   4615: if test "${with_mailto+set}" = set; then :
                   4616:   withval=$with_mailto; case $with_mailto in
                   4617:     yes)       as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
                   4618:                ;;
                   4619:     no)                as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
                   4620:                ;;
                   4621:     *)         mailto=$with_mailto
                   4622:                ;;
                   4623: esac
                   4624: fi
                   4625: 
                   4626: 
                   4627: cat >>confdefs.h <<_ACEOF
                   4628: #define MAILTO "$mailto"
                   4629: _ACEOF
                   4630: 
                   4631: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
                   4632: $as_echo "$mailto" >&6; }
                   4633: 
                   4634: 
                   4635: # Check whether --with-mailsubject was given.
                   4636: if test "${with_mailsubject+set}" = set; then :
                   4637:   withval=$with_mailsubject; case $with_mailsubject in
                   4638:     yes)       as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
                   4639:                ;;
                   4640:     no)                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
                   4641: $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
                   4642:                ;;
                   4643:     *)         mailsub="$with_mailsubject"
                   4644:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
                   4645: $as_echo_n "checking sudo mail subject... " >&6; }
                   4646:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
                   4647: $as_echo "Using alert mail subject: $mailsub" >&6; }
                   4648:                ;;
                   4649: esac
                   4650: fi
                   4651: 
                   4652: 
                   4653: cat >>confdefs.h <<_ACEOF
                   4654: #define MAILSUBJECT "$mailsub"
                   4655: _ACEOF
                   4656: 
                   4657: 
                   4658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
                   4659: $as_echo_n "checking for bad password prompt... " >&6; }
                   4660: 
                   4661: # Check whether --with-passprompt was given.
                   4662: if test "${with_passprompt+set}" = set; then :
                   4663:   withval=$with_passprompt; case $with_passprompt in
                   4664:     yes)       as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
                   4665:                ;;
                   4666:     no)                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
                   4667: $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
                   4668:                ;;
                   4669:     *)         passprompt="$with_passprompt"
                   4670: esac
                   4671: fi
                   4672: 
                   4673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
                   4674: $as_echo "$passprompt" >&6; }
                   4675: 
                   4676: cat >>confdefs.h <<_ACEOF
                   4677: #define PASSPROMPT "$passprompt"
                   4678: _ACEOF
                   4679: 
                   4680: 
                   4681: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
                   4682: $as_echo_n "checking for bad password message... " >&6; }
                   4683: 
                   4684: # Check whether --with-badpass-message was given.
                   4685: if test "${with_badpass_message+set}" = set; then :
                   4686:   withval=$with_badpass_message; case $with_badpass_message in
                   4687:     yes)       as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
                   4688:                ;;
                   4689:     no)                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
                   4690: $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
                   4691:                ;;
                   4692:     *)         badpass_message="$with_badpass_message"
                   4693:                ;;
                   4694: esac
                   4695: fi
                   4696: 
                   4697: 
                   4698: cat >>confdefs.h <<_ACEOF
                   4699: #define INCORRECT_PASSWORD "$badpass_message"
                   4700: _ACEOF
                   4701: 
                   4702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
                   4703: $as_echo "$badpass_message" >&6; }
                   4704: 
                   4705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
                   4706: $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
                   4707: 
                   4708: # Check whether --with-fqdn was given.
                   4709: if test "${with_fqdn+set}" = set; then :
                   4710:   withval=$with_fqdn; case $with_fqdn in
                   4711:     yes)       fqdn=on
                   4712:                ;;
                   4713:     no)                fqdn=off
                   4714:                ;;
                   4715:     *)         as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
                   4716:                ;;
                   4717: esac
                   4718: fi
                   4719: 
                   4720: if test "$fqdn" = "on"; then
                   4721:     $as_echo "#define FQDN 1" >>confdefs.h
                   4722: 
                   4723:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4724: $as_echo "yes" >&6; }
                   4725: else
                   4726:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4727: $as_echo "no" >&6; }
                   4728: fi
                   4729: 
                   4730: 
                   4731: # Check whether --with-timedir was given.
                   4732: if test "${with_timedir+set}" = set; then :
                   4733:   withval=$with_timedir; case $with_timedir in
1.1.1.6 ! misho    4734:     *)         as_fn_error $? "\"--without-timedir no longer supported, see --with-rundir.\"" "$LINENO" 5
        !          4735:                ;;
        !          4736: esac
        !          4737: fi
        !          4738: 
        !          4739: 
        !          4740: 
        !          4741: # Check whether --with-rundir was given.
        !          4742: if test "${with_rundir+set}" = set; then :
        !          4743:   withval=$with_rundir; case $with_rundir in
        !          4744:     yes)       as_fn_error $? "\"must give --with-rundir an argument.\"" "$LINENO" 5
        !          4745:                ;;
        !          4746:     no)                as_fn_error $? "\"--without-rundir not supported.\"" "$LINENO" 5
1.1       misho    4747:                ;;
1.1.1.6 ! misho    4748: esac
        !          4749: fi
        !          4750: 
        !          4751: 
        !          4752: 
        !          4753: # Check whether --with-vardir was given.
        !          4754: if test "${with_vardir+set}" = set; then :
        !          4755:   withval=$with_vardir; case $with_vardir in
        !          4756:     yes)       as_fn_error $? "\"must give --with-vardirdir an argument.\"" "$LINENO" 5
        !          4757:                ;;
        !          4758:     no)                as_fn_error $? "\"--without-vardirdir not supported.\"" "$LINENO" 5
1.1       misho    4759:                ;;
                   4760: esac
                   4761: fi
                   4762: 
                   4763: 
                   4764: 
                   4765: # Check whether --with-iologdir was given.
                   4766: if test "${with_iologdir+set}" = set; then :
                   4767:   withval=$with_iologdir; case $with_iologdir in
                   4768:     yes)    ;;
                   4769:     no)     as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
                   4770:            ;;
                   4771: esac
                   4772: fi
                   4773: 
                   4774: 
                   4775: 
                   4776: # Check whether --with-sendmail was given.
                   4777: if test "${with_sendmail+set}" = set; then :
                   4778:   withval=$with_sendmail; case $with_sendmail in
                   4779:     yes)       with_sendmail=""
                   4780:                ;;
                   4781:     no)                ;;
                   4782:     *)         cat >>confdefs.h <<EOF
                   4783: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
                   4784: EOF
                   4785: 
                   4786:                ;;
                   4787: esac
                   4788: fi
                   4789: 
                   4790: 
                   4791: 
                   4792: # Check whether --with-sudoers-mode was given.
                   4793: if test "${with_sudoers_mode+set}" = set; then :
                   4794:   withval=$with_sudoers_mode; case $with_sudoers_mode in
                   4795:     yes)       as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
                   4796:                ;;
                   4797:     no)                as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
                   4798:                ;;
                   4799:     [1-9]*)    SUDOERS_MODE=0${with_sudoers_mode}
                   4800:                ;;
                   4801:     0*)                SUDOERS_MODE=$with_sudoers_mode
                   4802:                ;;
                   4803:     *)         as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
                   4804:                ;;
                   4805: esac
                   4806: fi
                   4807: 
                   4808: 
                   4809: 
                   4810: # Check whether --with-sudoers-uid was given.
                   4811: if test "${with_sudoers_uid+set}" = set; then :
                   4812:   withval=$with_sudoers_uid; case $with_sudoers_uid in
                   4813:     yes)       as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
                   4814:                ;;
                   4815:     no)                as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
                   4816:                ;;
                   4817:     [0-9]*)    SUDOERS_UID=$with_sudoers_uid
                   4818:                ;;
                   4819:     *)         as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
                   4820:                ;;
                   4821: esac
                   4822: fi
                   4823: 
                   4824: 
                   4825: 
                   4826: # Check whether --with-sudoers-gid was given.
                   4827: if test "${with_sudoers_gid+set}" = set; then :
                   4828:   withval=$with_sudoers_gid; case $with_sudoers_gid in
                   4829:     yes)       as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
                   4830:                ;;
                   4831:     no)                as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
                   4832:                ;;
                   4833:     [0-9]*)    SUDOERS_GID=$with_sudoers_gid
                   4834:                ;;
                   4835:     *)         as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
                   4836:                ;;
                   4837: esac
                   4838: fi
                   4839: 
                   4840: 
                   4841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
                   4842: $as_echo_n "checking for umask programs should be run with... " >&6; }
                   4843: 
                   4844: # Check whether --with-umask was given.
                   4845: if test "${with_umask+set}" = set; then :
                   4846:   withval=$with_umask; case $with_umask in
                   4847:     yes)       as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
                   4848:                ;;
                   4849:     no)                sudo_umask=0777
                   4850:                ;;
                   4851:     [0-9]*)    sudo_umask=$with_umask
                   4852:                ;;
                   4853:     *)         as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
                   4854:                ;;
                   4855: esac
                   4856: fi
                   4857: 
                   4858: 
                   4859: cat >>confdefs.h <<_ACEOF
                   4860: #define SUDO_UMASK $sudo_umask
                   4861: _ACEOF
                   4862: 
                   4863: if test "$sudo_umask" = "0777"; then
                   4864:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
                   4865: $as_echo "user" >&6; }
                   4866: else
                   4867:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
                   4868: $as_echo "$sudo_umask" >&6; }
                   4869: fi
                   4870: 
                   4871: 
                   4872: # Check whether --with-umask-override was given.
                   4873: if test "${with_umask_override+set}" = set; then :
                   4874:   withval=$with_umask_override; case $with_umask_override in
                   4875:     yes)       $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
                   4876: 
                   4877:                umask_override=on
                   4878:                ;;
                   4879:     no)                umask_override=off
                   4880:                ;;
                   4881:     *)         as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
                   4882:                ;;
                   4883: esac
                   4884: fi
                   4885: 
                   4886: 
                   4887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
                   4888: $as_echo_n "checking for default user to run commands as... " >&6; }
                   4889: 
                   4890: # Check whether --with-runas-default was given.
                   4891: if test "${with_runas_default+set}" = set; then :
                   4892:   withval=$with_runas_default; case $with_runas_default in
                   4893:     yes)       as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
                   4894:                ;;
                   4895:     no)                as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
                   4896:                ;;
                   4897:     *)         runas_default="$with_runas_default"
                   4898:                ;;
                   4899: esac
                   4900: fi
                   4901: 
                   4902: 
                   4903: cat >>confdefs.h <<_ACEOF
                   4904: #define RUNAS_DEFAULT "$runas_default"
                   4905: _ACEOF
                   4906: 
                   4907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
                   4908: $as_echo "$runas_default" >&6; }
                   4909: 
                   4910: 
                   4911: # Check whether --with-exempt was given.
                   4912: if test "${with_exempt+set}" = set; then :
                   4913:   withval=$with_exempt; case $with_exempt in
                   4914:     yes)       as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
                   4915:                ;;
                   4916:     no)                as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
                   4917:                ;;
                   4918:     *)
                   4919: cat >>confdefs.h <<_ACEOF
                   4920: #define EXEMPTGROUP "$with_exempt"
                   4921: _ACEOF
                   4922: 
                   4923:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
                   4924: $as_echo_n "checking for group to be exempt from password... " >&6; }
                   4925:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
                   4926: $as_echo "$with_exempt" >&6; }
                   4927:                ;;
                   4928: esac
                   4929: fi
                   4930: 
                   4931: 
                   4932: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
                   4933: $as_echo_n "checking for editor that visudo should use... " >&6; }
                   4934: 
                   4935: # Check whether --with-editor was given.
                   4936: if test "${with_editor+set}" = set; then :
                   4937:   withval=$with_editor; case $with_editor in
                   4938:     yes)       as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
                   4939:                ;;
                   4940:     no)                as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
                   4941:                ;;
                   4942:     *)
                   4943: cat >>confdefs.h <<_ACEOF
                   4944: #define EDITOR "$with_editor"
                   4945: _ACEOF
                   4946: 
                   4947:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
                   4948: $as_echo "$with_editor" >&6; }
                   4949:                editor="$with_editor"
                   4950:                ;;
                   4951: esac
                   4952: else
                   4953:   $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
                   4954:  { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
                   4955: $as_echo "vi" >&6; }
                   4956: fi
                   4957: 
                   4958: 
                   4959: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
                   4960: $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
                   4961: 
                   4962: # Check whether --with-env-editor was given.
                   4963: if test "${with_env_editor+set}" = set; then :
                   4964:   withval=$with_env_editor; case $with_env_editor in
                   4965:     yes)       env_editor=on
                   4966:                ;;
                   4967:     no)                env_editor=off
                   4968:                ;;
                   4969:     *)         as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
                   4970:                ;;
                   4971: esac
                   4972: fi
                   4973: 
                   4974: if test "$env_editor" = "on"; then
                   4975:     $as_echo "#define ENV_EDITOR 1" >>confdefs.h
                   4976: 
                   4977:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4978: $as_echo "yes" >&6; }
                   4979: else
                   4980:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4981: $as_echo "no" >&6; }
                   4982: fi
                   4983: 
                   4984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
                   4985: $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
                   4986: 
                   4987: # Check whether --with-passwd-tries was given.
                   4988: if test "${with_passwd_tries+set}" = set; then :
                   4989:   withval=$with_passwd_tries; case $with_passwd_tries in
                   4990:     yes)       ;;
                   4991:     no)                as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
                   4992:                ;;
                   4993:     [1-9]*)    passwd_tries=$with_passwd_tries
                   4994:                ;;
                   4995:     *)         as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
                   4996:                ;;
                   4997: esac
                   4998: fi
                   4999: 
                   5000: 
                   5001: cat >>confdefs.h <<_ACEOF
                   5002: #define TRIES_FOR_PASSWORD $passwd_tries
                   5003: _ACEOF
                   5004: 
                   5005: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
                   5006: $as_echo "$passwd_tries" >&6; }
                   5007: 
                   5008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
                   5009: $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
                   5010: 
                   5011: # Check whether --with-timeout was given.
                   5012: if test "${with_timeout+set}" = set; then :
                   5013:   withval=$with_timeout; case $with_timeout in
                   5014:     yes)       ;;
                   5015:     no)                timeout=0
                   5016:                ;;
                   5017:     [0-9]*)    timeout=$with_timeout
                   5018:                ;;
                   5019:     *)         as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
                   5020:                ;;
                   5021: esac
                   5022: fi
                   5023: 
                   5024: 
                   5025: cat >>confdefs.h <<_ACEOF
                   5026: #define TIMEOUT $timeout
                   5027: _ACEOF
                   5028: 
                   5029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
                   5030: $as_echo "$timeout" >&6; }
                   5031: 
                   5032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
                   5033: $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
                   5034: 
                   5035: # Check whether --with-password-timeout was given.
                   5036: if test "${with_password_timeout+set}" = set; then :
                   5037:   withval=$with_password_timeout; case $with_password_timeout in
                   5038:     yes)       ;;
                   5039:     no)                password_timeout=0
                   5040:                ;;
                   5041:     [0-9]*)    password_timeout=$with_password_timeout
                   5042:                ;;
                   5043:     *)         as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
                   5044:                ;;
                   5045: esac
                   5046: fi
                   5047: 
                   5048: 
                   5049: cat >>confdefs.h <<_ACEOF
                   5050: #define PASSWORD_TIMEOUT $password_timeout
                   5051: _ACEOF
                   5052: 
                   5053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
                   5054: $as_echo "$password_timeout" >&6; }
                   5055: 
                   5056: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
                   5057: $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
                   5058: 
                   5059: # Check whether --with-tty-tickets was given.
                   5060: if test "${with_tty_tickets+set}" = set; then :
                   5061:   withval=$with_tty_tickets; case $with_tty_tickets in
                   5062:     yes)       tty_tickets=on
                   5063:                ;;
                   5064:     no)                tty_tickets=off
                   5065:                ;;
                   5066:     *)         as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
                   5067:                ;;
                   5068: esac
                   5069: fi
                   5070: 
                   5071: if test "$tty_tickets" = "off"; then
                   5072:     $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
                   5073: 
                   5074:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5075: $as_echo "no" >&6; }
                   5076: else
                   5077:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5078: $as_echo "yes" >&6; }
                   5079: fi
                   5080: 
                   5081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
                   5082: $as_echo_n "checking whether to include insults... " >&6; }
                   5083: 
                   5084: # Check whether --with-insults was given.
                   5085: if test "${with_insults+set}" = set; then :
                   5086:   withval=$with_insults; case $with_insults in
                   5087:     yes)       insults=on
                   5088:                with_classic_insults=yes
                   5089:                with_csops_insults=yes
                   5090:                ;;
                   5091:     disabled)  insults=off
                   5092:                with_classic_insults=yes
                   5093:                with_csops_insults=yes
                   5094:                ;;
                   5095:     no)                insults=off
                   5096:                ;;
                   5097:     *)         as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
                   5098:                ;;
                   5099: esac
                   5100: fi
                   5101: 
                   5102: if test "$insults" = "on"; then
                   5103:     $as_echo "#define USE_INSULTS 1" >>confdefs.h
                   5104: 
                   5105:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5106: $as_echo "yes" >&6; }
                   5107: else
                   5108:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5109: $as_echo "no" >&6; }
                   5110: fi
                   5111: 
                   5112: 
                   5113: # Check whether --with-all-insults was given.
                   5114: if test "${with_all_insults+set}" = set; then :
                   5115:   withval=$with_all_insults; case $with_all_insults in
                   5116:     yes)       with_classic_insults=yes
                   5117:                with_csops_insults=yes
                   5118:                with_hal_insults=yes
                   5119:                with_goons_insults=yes
                   5120:                ;;
                   5121:     no)                ;;
                   5122:     *)         as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
                   5123:                ;;
                   5124: esac
                   5125: fi
                   5126: 
                   5127: 
                   5128: 
                   5129: # Check whether --with-classic-insults was given.
                   5130: if test "${with_classic_insults+set}" = set; then :
                   5131:   withval=$with_classic_insults; case $with_classic_insults in
                   5132:     yes)       $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
                   5133: 
                   5134:                ;;
                   5135:     no)                ;;
                   5136:     *)         as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
                   5137:                ;;
                   5138: esac
                   5139: fi
                   5140: 
                   5141: 
                   5142: 
                   5143: # Check whether --with-csops-insults was given.
                   5144: if test "${with_csops_insults+set}" = set; then :
                   5145:   withval=$with_csops_insults; case $with_csops_insults in
                   5146:     yes)       $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
                   5147: 
                   5148:                ;;
                   5149:     no)                ;;
                   5150:     *)         as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
                   5151:                ;;
                   5152: esac
                   5153: fi
                   5154: 
                   5155: 
                   5156: 
                   5157: # Check whether --with-hal-insults was given.
                   5158: if test "${with_hal_insults+set}" = set; then :
                   5159:   withval=$with_hal_insults; case $with_hal_insults in
                   5160:     yes)       $as_echo "#define HAL_INSULTS 1" >>confdefs.h
                   5161: 
                   5162:                ;;
                   5163:     no)                ;;
                   5164:     *)         as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
                   5165:                ;;
                   5166: esac
                   5167: fi
                   5168: 
                   5169: 
                   5170: 
                   5171: # Check whether --with-goons-insults was given.
                   5172: if test "${with_goons_insults+set}" = set; then :
                   5173:   withval=$with_goons_insults; case $with_goons_insults in
                   5174:     yes)       $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
                   5175: 
                   5176:                ;;
                   5177:     no)                ;;
                   5178:     *)         as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
                   5179:                ;;
                   5180: esac
                   5181: fi
                   5182: 
                   5183: 
                   5184: 
                   5185: # Check whether --with-nsswitch was given.
                   5186: if test "${with_nsswitch+set}" = set; then :
                   5187:   withval=$with_nsswitch; case $with_nsswitch in
                   5188:     no)                ;;
                   5189:     yes)       with_nsswitch="/etc/nsswitch.conf"
                   5190:                ;;
                   5191:     *)         ;;
                   5192: esac
                   5193: fi
                   5194: 
                   5195: 
                   5196: 
                   5197: # Check whether --with-ldap was given.
                   5198: if test "${with_ldap+set}" = set; then :
                   5199:   withval=$with_ldap; case $with_ldap in
                   5200:     no)                ;;
                   5201:     *)         $as_echo "#define HAVE_LDAP 1" >>confdefs.h
                   5202: 
                   5203:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
                   5204: $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
                   5205:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5206: $as_echo "yes" >&6; }
                   5207:                ;;
                   5208: esac
                   5209: fi
                   5210: 
                   5211: 
                   5212: 
                   5213: # Check whether --with-ldap-conf-file was given.
                   5214: if test "${with_ldap_conf_file+set}" = set; then :
                   5215:   withval=$with_ldap_conf_file;
                   5216: fi
                   5217: 
                   5218: test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
                   5219: cat >>confdefs.h <<EOF
                   5220: #define _PATH_LDAP_CONF "$ldap_conf"
                   5221: EOF
                   5222: 
                   5223: 
                   5224: 
                   5225: # Check whether --with-ldap-secret-file was given.
                   5226: if test "${with_ldap_secret_file+set}" = set; then :
                   5227:   withval=$with_ldap_secret_file;
                   5228: fi
                   5229: 
                   5230: test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
                   5231: cat >>confdefs.h <<EOF
                   5232: #define _PATH_LDAP_SECRET "$ldap_secret"
                   5233: EOF
                   5234: 
                   5235: 
                   5236: 
                   5237: # Check whether --with-pc-insults was given.
                   5238: if test "${with_pc_insults+set}" = set; then :
                   5239:   withval=$with_pc_insults; case $with_pc_insults in
                   5240:     yes)       $as_echo "#define PC_INSULTS 1" >>confdefs.h
                   5241: 
                   5242:                ;;
                   5243:     no)                ;;
                   5244:     *)         as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
                   5245:                ;;
                   5246: esac
                   5247: fi
                   5248: 
                   5249: 
                   5250: if test "$insults" = "on"; then
                   5251:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
                   5252: $as_echo_n "checking which insult sets to include... " >&6; }
                   5253:     i=""
                   5254:     test "$with_goons_insults" = "yes" && i="goons ${i}"
                   5255:     test "$with_hal_insults" = "yes" && i="hal ${i}"
                   5256:     test "$with_csops_insults" = "yes" && i="csops ${i}"
                   5257:     test "$with_classic_insults" = "yes" && i="classic ${i}"
                   5258:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
                   5259: $as_echo "$i" >&6; }
                   5260: fi
                   5261: 
                   5262: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
                   5263: $as_echo_n "checking whether to override the user's path... " >&6; }
                   5264: 
                   5265: # Check whether --with-secure-path was given.
                   5266: if test "${with_secure_path+set}" = set; then :
                   5267:   withval=$with_secure_path; case $with_secure_path in
                   5268:     yes)       with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
                   5269:                cat >>confdefs.h <<_ACEOF
                   5270: #define SECURE_PATH "$with_secure_path"
                   5271: _ACEOF
                   5272: 
                   5273:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
                   5274: $as_echo "$with_secure_path" >&6; }
                   5275:                secure_path="set to $with_secure_path"
                   5276:                ;;
                   5277:     no)                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5278: $as_echo "no" >&6; }
                   5279:                ;;
                   5280:     *)         cat >>confdefs.h <<_ACEOF
                   5281: #define SECURE_PATH "$with_secure_path"
                   5282: _ACEOF
                   5283: 
                   5284:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
                   5285: $as_echo "$with_secure_path" >&6; }
                   5286:                secure_path="set to F<$with_secure_path>"
                   5287:                ;;
                   5288: esac
                   5289: else
                   5290:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5291: $as_echo "no" >&6; }
                   5292: fi
                   5293: 
                   5294: 
                   5295: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
                   5296: $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
                   5297: 
                   5298: # Check whether --with-interfaces was given.
                   5299: if test "${with_interfaces+set}" = set; then :
                   5300:   withval=$with_interfaces; case $with_interfaces in
                   5301:     yes)       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5302: $as_echo "yes" >&6; }
                   5303:                ;;
                   5304:     no)                $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
                   5305: 
                   5306:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5307: $as_echo "no" >&6; }
                   5308:                ;;
                   5309:     *)         as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
                   5310:                ;;
                   5311: esac
                   5312: else
                   5313:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5314: $as_echo "yes" >&6; }
                   5315: fi
                   5316: 
                   5317: 
                   5318: 
                   5319: # Check whether --with-stow was given.
                   5320: if test "${with_stow+set}" = set; then :
                   5321:   withval=$with_stow; case $with_stow in
1.1.1.3   misho    5322:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: --with-stow option deprecated, now is defalt behavior" >&5
                   5323: $as_echo "$as_me: --with-stow option deprecated, now is defalt behavior" >&6;}
1.1       misho    5324:                ;;
                   5325: esac
                   5326: fi
                   5327: 
                   5328: 
                   5329: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
                   5330: $as_echo_n "checking whether to use an askpass helper... " >&6; }
                   5331: 
                   5332: # Check whether --with-askpass was given.
                   5333: if test "${with_askpass+set}" = set; then :
                   5334:   withval=$with_askpass; case $with_askpass in
                   5335:     yes)       as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
                   5336:                ;;
                   5337:     no)                ;;
1.1.1.4   misho    5338:     *)         ;;
1.1       misho    5339: esac
                   5340: else
1.1.1.4   misho    5341: 
                   5342:     with_askpass=no
                   5343:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1       misho    5344: $as_echo "no" >&6; }
1.1.1.4   misho    5345: 
1.1       misho    5346: fi
                   5347: 
1.1.1.4   misho    5348: if test X"$with_askpass" != X"no"; then
                   5349:     cat >>confdefs.h <<EOF
                   5350: #define _PATH_SUDO_ASKPASS "$with_askpass"
                   5351: EOF
                   5352: 
                   5353: else
                   5354:     cat >>confdefs.h <<EOF
                   5355: #define _PATH_SUDO_ASKPASS NULL
                   5356: EOF
                   5357: 
                   5358: fi
1.1       misho    5359: 
                   5360: 
                   5361: # Check whether --with-plugindir was given.
                   5362: if test "${with_plugindir+set}" = set; then :
                   5363:   withval=$with_plugindir; case $with_plugindir in
                   5364:     no)                as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
                   5365:                ;;
                   5366:     *)         ;;
                   5367: esac
                   5368: else
1.1.1.4   misho    5369:   with_plugindir="$libexecdir/sudo"
1.1       misho    5370: fi
                   5371: 
                   5372: 
                   5373: 
1.1.1.3   misho    5374: # Check whether --with-man was given.
                   5375: if test "${with_man+set}" = set; then :
                   5376:   withval=$with_man; case $with_man in
                   5377:     yes)       MANTYPE=man
                   5378:                ;;
                   5379:     no)                as_fn_error $? "\"--without-man not supported.\"" "$LINENO" 5
                   5380:                ;;
                   5381:     *)         as_fn_error $? "\"ignoring unknown argument to --with-man: $with_man.\"" "$LINENO" 5
                   5382:                ;;
                   5383: esac
                   5384: fi
                   5385: 
                   5386: 
                   5387: 
                   5388: # Check whether --with-mdoc was given.
                   5389: if test "${with_mdoc+set}" = set; then :
                   5390:   withval=$with_mdoc; case $with_mdoc in
                   5391:     yes)       MANTYPE=mdoc
                   5392:                ;;
                   5393:     no)                as_fn_error $? "\"--without-mdoc not supported.\"" "$LINENO" 5
                   5394:                ;;
                   5395:     *)         as_fn_error $? "\"ignoring unknown argument to --with-mdoc: $with_mdoc.\"" "$LINENO" 5
                   5396:                ;;
                   5397: esac
                   5398: fi
                   5399: 
                   5400: 
                   5401: 
1.1       misho    5402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
                   5403: $as_echo_n "checking whether to do user authentication by default... " >&6; }
                   5404: # Check whether --enable-authentication was given.
                   5405: if test "${enable_authentication+set}" = set; then :
                   5406:   enableval=$enable_authentication;  case "$enableval" in
                   5407:     yes)       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5408: $as_echo "yes" >&6; }
                   5409:                ;;
                   5410:     no)                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5411: $as_echo "no" >&6; }
                   5412:                $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
                   5413: 
                   5414:                ;;
                   5415:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5416: $as_echo "no" >&6; }
                   5417:                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
                   5418: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
                   5419:                ;;
                   5420:   esac
                   5421: 
                   5422: else
                   5423:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5424: $as_echo "yes" >&6; }
                   5425: fi
                   5426: 
                   5427: 
                   5428: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
                   5429: $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
                   5430: # Check whether --enable-root-mailer was given.
                   5431: if test "${enable_root_mailer+set}" = set; then :
                   5432:   enableval=$enable_root_mailer;  case "$enableval" in
                   5433:     yes)       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5434: $as_echo "no" >&6; }
                   5435:                ;;
                   5436:     no)                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5437: $as_echo "yes" >&6; }
                   5438:                $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
                   5439: 
                   5440:                ;;
                   5441:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5442: $as_echo "no" >&6; }
                   5443:                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
                   5444: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
                   5445:                ;;
                   5446:   esac
                   5447: 
                   5448: else
                   5449:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5450: $as_echo "no" >&6; }
                   5451: fi
                   5452: 
                   5453: 
                   5454: # Check whether --enable-setreuid was given.
                   5455: if test "${enable_setreuid+set}" = set; then :
                   5456:   enableval=$enable_setreuid;  case "$enableval" in
                   5457:     no)                SKIP_SETREUID=yes
                   5458:                ;;
                   5459:     *)         ;;
                   5460:   esac
                   5461: 
                   5462: fi
                   5463: 
                   5464: 
                   5465: # Check whether --enable-setresuid was given.
                   5466: if test "${enable_setresuid+set}" = set; then :
                   5467:   enableval=$enable_setresuid;  case "$enableval" in
                   5468:     no)                SKIP_SETRESUID=yes
                   5469:                ;;
                   5470:     *)         ;;
                   5471:   esac
                   5472: 
                   5473: fi
                   5474: 
                   5475: 
                   5476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
                   5477: $as_echo_n "checking whether to disable shadow password support... " >&6; }
                   5478: # Check whether --enable-shadow was given.
                   5479: if test "${enable_shadow+set}" = set; then :
                   5480:   enableval=$enable_shadow;  case "$enableval" in
                   5481:     yes)       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5482: $as_echo "no" >&6; }
                   5483:                ;;
                   5484:     no)                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5485: $as_echo "yes" >&6; }
                   5486:                CHECKSHADOW="false"
                   5487:                ;;
                   5488:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5489: $as_echo "no" >&6; }
                   5490:                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
                   5491: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
                   5492:                ;;
                   5493:   esac
                   5494: 
                   5495: else
                   5496:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5497: $as_echo "no" >&6; }
                   5498: fi
                   5499: 
                   5500: 
                   5501: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
                   5502: $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
                   5503: # Check whether --enable-root-sudo was given.
                   5504: if test "${enable_root_sudo+set}" = set; then :
                   5505:   enableval=$enable_root_sudo;  case "$enableval" in
                   5506:     yes)       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5507: $as_echo "yes" >&6; }
                   5508:                ;;
                   5509:     no)                $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
                   5510: 
                   5511:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5512: $as_echo "no" >&6; }
                   5513:                root_sudo=off
                   5514:                ;;
                   5515:     *)         as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
                   5516:                ;;
                   5517:   esac
                   5518: 
                   5519: else
                   5520:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5521: $as_echo "yes" >&6; }
                   5522: fi
                   5523: 
                   5524: 
                   5525: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
                   5526: $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
                   5527: # Check whether --enable-log-host was given.
                   5528: if test "${enable_log_host+set}" = set; then :
                   5529:   enableval=$enable_log_host;  case "$enableval" in
                   5530:     yes)       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5531: $as_echo "yes" >&6; }
                   5532:                $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
                   5533: 
                   5534:                ;;
                   5535:     no)                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5536: $as_echo "no" >&6; }
                   5537:                ;;
                   5538:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5539: $as_echo "no" >&6; }
                   5540:                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
                   5541: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
                   5542:                ;;
                   5543:   esac
                   5544: 
                   5545: else
                   5546:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5547: $as_echo "no" >&6; }
                   5548: fi
                   5549: 
                   5550: 
                   5551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
                   5552: $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
                   5553: # Check whether --enable-noargs-shell was given.
                   5554: if test "${enable_noargs_shell+set}" = set; then :
                   5555:   enableval=$enable_noargs_shell;  case "$enableval" in
                   5556:     yes)       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5557: $as_echo "yes" >&6; }
                   5558:                $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
                   5559: 
                   5560:                ;;
                   5561:     no)                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5562: $as_echo "no" >&6; }
                   5563:                ;;
                   5564:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5565: $as_echo "no" >&6; }
                   5566:                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
                   5567: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
                   5568:                ;;
                   5569:   esac
                   5570: 
                   5571: else
                   5572:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5573: $as_echo "no" >&6; }
                   5574: fi
                   5575: 
                   5576: 
                   5577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
                   5578: $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
                   5579: # Check whether --enable-shell-sets-home was given.
                   5580: if test "${enable_shell_sets_home+set}" = set; then :
                   5581:   enableval=$enable_shell_sets_home;  case "$enableval" in
                   5582:     yes)       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5583: $as_echo "yes" >&6; }
                   5584:                $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
                   5585: 
                   5586:                ;;
                   5587:     no)                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5588: $as_echo "no" >&6; }
                   5589:                ;;
                   5590:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5591: $as_echo "no" >&6; }
                   5592:                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
                   5593: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
                   5594:                ;;
                   5595:   esac
                   5596: 
                   5597: else
                   5598:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5599: $as_echo "no" >&6; }
                   5600: fi
                   5601: 
                   5602: 
                   5603: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
                   5604: $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
                   5605: # Check whether --enable-path_info was given.
                   5606: if test "${enable_path_info+set}" = set; then :
                   5607:   enableval=$enable_path_info;  case "$enableval" in
                   5608:     yes)       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5609: $as_echo "no" >&6; }
                   5610:                ;;
                   5611:     no)                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5612: $as_echo "yes" >&6; }
                   5613:                $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
                   5614: 
                   5615:                path_info=off
                   5616:                ;;
                   5617:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5618: $as_echo "no" >&6; }
                   5619:                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
                   5620: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
                   5621:                ;;
                   5622:   esac
                   5623: 
                   5624: else
                   5625:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5626: $as_echo "no" >&6; }
                   5627: fi
                   5628: 
                   5629: 
                   5630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
                   5631: $as_echo_n "checking whether to enable environment debugging... " >&6; }
                   5632: # Check whether --enable-env_debug was given.
                   5633: if test "${enable_env_debug+set}" = set; then :
                   5634:   enableval=$enable_env_debug;  case "$enableval" in
                   5635:     yes)       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5636: $as_echo "yes" >&6; }
                   5637:                $as_echo "#define ENV_DEBUG 1" >>confdefs.h
                   5638: 
                   5639:                ;;
                   5640:     no)                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5641: $as_echo "no" >&6; }
                   5642:                ;;
                   5643:     *)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5644: $as_echo "no" >&6; }
                   5645:                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
                   5646: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
                   5647:                ;;
                   5648:   esac
                   5649: 
                   5650: else
                   5651:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5652: $as_echo "no" >&6; }
                   5653: fi
                   5654: 
                   5655: 
                   5656: # Check whether --enable-zlib was given.
                   5657: if test "${enable_zlib+set}" = set; then :
                   5658:   enableval=$enable_zlib;
                   5659: else
                   5660:   enable_zlib=yes
                   5661: fi
                   5662: 
                   5663: 
                   5664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
                   5665: $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
                   5666: # Check whether --enable-env_reset was given.
                   5667: if test "${enable_env_reset+set}" = set; then :
                   5668:   enableval=$enable_env_reset;  case "$enableval" in
                   5669:     yes)       env_reset=on
                   5670:                ;;
                   5671:     no)                env_reset=off
                   5672:                ;;
                   5673:     *)         env_reset=on
                   5674:                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
                   5675: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
                   5676:                ;;
                   5677:   esac
                   5678: 
                   5679: fi
                   5680: 
                   5681: if test "$env_reset" = "on"; then
                   5682:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5683: $as_echo "yes" >&6; }
1.1.1.2   misho    5684:     $as_echo "#define ENV_RESET 1" >>confdefs.h
1.1       misho    5685: 
                   5686: else
                   5687:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5688: $as_echo "no" >&6; }
1.1.1.2   misho    5689:     $as_echo "#define ENV_RESET 0" >>confdefs.h
1.1       misho    5690: 
                   5691: fi
                   5692: 
                   5693: # Check whether --enable-warnings was given.
                   5694: if test "${enable_warnings+set}" = set; then :
                   5695:   enableval=$enable_warnings;  case "$enableval" in
                   5696:     yes)    ;;
                   5697:     no)            ;;
                   5698:     *)     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
                   5699: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
                   5700:            ;;
                   5701:   esac
                   5702: 
                   5703: fi
                   5704: 
                   5705: 
                   5706: # Check whether --enable-werror was given.
                   5707: if test "${enable_werror+set}" = set; then :
                   5708:   enableval=$enable_werror;  case "$enableval" in
                   5709:     yes)    ;;
                   5710:     no)            ;;
                   5711:     *)     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&5
                   5712: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&2;}
                   5713:            ;;
                   5714:   esac
                   5715: 
                   5716: fi
                   5717: 
                   5718: 
1.1.1.3   misho    5719: # Check whether --enable-hardening was given.
                   5720: if test "${enable_hardening+set}" = set; then :
                   5721:   enableval=$enable_hardening;
                   5722: else
                   5723:   enable_hardening=yes
                   5724: fi
                   5725: 
                   5726: 
                   5727: # Check whether --enable-pie was given.
                   5728: if test "${enable_pie+set}" = set; then :
                   5729:   enableval=$enable_pie;
                   5730: fi
                   5731: 
                   5732: 
1.1.1.6 ! misho    5733: # Check whether --enable-poll was given.
        !          5734: if test "${enable_poll+set}" = set; then :
        !          5735:   enableval=$enable_poll;
        !          5736: fi
        !          5737: 
        !          5738: 
1.1       misho    5739: # Check whether --enable-admin-flag was given.
                   5740: if test "${enable_admin_flag+set}" = set; then :
                   5741:   enableval=$enable_admin_flag;  case "$enableval" in
                   5742:     yes)    $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
                   5743: 
                   5744:            ;;
                   5745:     no)            ;;
                   5746:     *)     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
                   5747: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
                   5748:            ;;
                   5749:   esac
                   5750: 
                   5751: fi
                   5752: 
                   5753: 
                   5754: # Check whether --enable-nls was given.
                   5755: if test "${enable_nls+set}" = set; then :
                   5756:   enableval=$enable_nls;
                   5757: else
                   5758:   enable_nls=yes
                   5759: fi
                   5760: 
                   5761: 
1.1.1.4   misho    5762: # Check whether --enable-rpath was given.
                   5763: if test "${enable_rpath+set}" = set; then :
                   5764:   enableval=$enable_rpath;
                   5765: else
                   5766:   enable_rpath=yes
                   5767: fi
                   5768: 
                   5769: 
1.1.1.6 ! misho    5770: # Check whether --enable-static-sudoers was given.
        !          5771: if test "${enable_static_sudoers+set}" = set; then :
        !          5772:   enableval=$enable_static_sudoers;
        !          5773: else
        !          5774:   enable_static_sudoers=no
        !          5775: fi
        !          5776: 
        !          5777: 
1.1       misho    5778: 
                   5779: # Check whether --with-selinux was given.
                   5780: if test "${with_selinux+set}" = set; then :
                   5781:   withval=$with_selinux; case $with_selinux in
                   5782:     yes)       SELINUX_USAGE="[-r role] [-t type] "
                   5783:                $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
                   5784: 
                   5785:                SUDO_LIBS="${SUDO_LIBS} -lselinux"
                   5786:                SUDO_OBJS="${SUDO_OBJS} selinux.o"
                   5787:                PROGS="${PROGS} sesh"
                   5788:                SEMAN=1
                   5789:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
                   5790: $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
                   5791: if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
                   5792:   $as_echo_n "(cached) " >&6
                   5793: else
                   5794:   ac_check_lib_save_LIBS=$LIBS
                   5795: LIBS="-lselinux  $LIBS"
                   5796: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5797: /* end confdefs.h.  */
                   5798: 
                   5799: /* Override any GCC internal prototype to avoid an error.
                   5800:    Use char because int might match the return type of a GCC
                   5801:    builtin and then its argument prototype would still apply.  */
                   5802: #ifdef __cplusplus
                   5803: extern "C"
                   5804: #endif
                   5805: char setkeycreatecon ();
                   5806: int
                   5807: main ()
                   5808: {
                   5809: return setkeycreatecon ();
                   5810:   ;
                   5811:   return 0;
                   5812: }
                   5813: _ACEOF
                   5814: if ac_fn_c_try_link "$LINENO"; then :
                   5815:   ac_cv_lib_selinux_setkeycreatecon=yes
                   5816: else
                   5817:   ac_cv_lib_selinux_setkeycreatecon=no
                   5818: fi
                   5819: rm -f core conftest.err conftest.$ac_objext \
                   5820:     conftest$ac_exeext conftest.$ac_ext
                   5821: LIBS=$ac_check_lib_save_LIBS
                   5822: fi
                   5823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
                   5824: $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
                   5825: if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
                   5826:   $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
                   5827: 
                   5828: fi
                   5829: 
                   5830:                ;;
                   5831:     no)                ;;
                   5832:     *)         as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
                   5833:                ;;
                   5834: esac
1.1.1.4   misho    5835: else
                   5836:   with_selinux=no
1.1       misho    5837: fi
                   5838: 
                   5839: 
                   5840: # Check whether --enable-gss_krb5_ccache_name was given.
                   5841: if test "${enable_gss_krb5_ccache_name+set}" = set; then :
                   5842:   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
                   5843: else
                   5844:   check_gss_krb5_ccache_name=no
                   5845: fi
                   5846: 
                   5847: 
                   5848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
                   5849: $as_echo_n "checking for library containing strerror... " >&6; }
                   5850: if ${ac_cv_search_strerror+:} false; then :
                   5851:   $as_echo_n "(cached) " >&6
                   5852: else
                   5853:   ac_func_search_save_LIBS=$LIBS
                   5854: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5855: /* end confdefs.h.  */
                   5856: 
                   5857: /* Override any GCC internal prototype to avoid an error.
                   5858:    Use char because int might match the return type of a GCC
                   5859:    builtin and then its argument prototype would still apply.  */
                   5860: #ifdef __cplusplus
                   5861: extern "C"
                   5862: #endif
                   5863: char strerror ();
                   5864: int
                   5865: main ()
                   5866: {
                   5867: return strerror ();
                   5868:   ;
                   5869:   return 0;
                   5870: }
                   5871: _ACEOF
                   5872: for ac_lib in '' cposix; do
                   5873:   if test -z "$ac_lib"; then
                   5874:     ac_res="none required"
                   5875:   else
                   5876:     ac_res=-l$ac_lib
                   5877:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   5878:   fi
                   5879:   if ac_fn_c_try_link "$LINENO"; then :
                   5880:   ac_cv_search_strerror=$ac_res
                   5881: fi
                   5882: rm -f core conftest.err conftest.$ac_objext \
                   5883:     conftest$ac_exeext
                   5884:   if ${ac_cv_search_strerror+:} false; then :
                   5885:   break
                   5886: fi
                   5887: done
                   5888: if ${ac_cv_search_strerror+:} false; then :
                   5889: 
                   5890: else
                   5891:   ac_cv_search_strerror=no
                   5892: fi
                   5893: rm conftest.$ac_ext
                   5894: LIBS=$ac_func_search_save_LIBS
                   5895: fi
                   5896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
                   5897: $as_echo "$ac_cv_search_strerror" >&6; }
                   5898: ac_res=$ac_cv_search_strerror
                   5899: if test "$ac_res" != no; then :
                   5900:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   5901: 
                   5902: fi
                   5903: 
                   5904: ac_ext=c
                   5905: ac_cpp='$CPP $CPPFLAGS'
                   5906: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5907: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5908: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5910: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5911: # On Suns, sometimes $CPP names a directory.
                   5912: if test -n "$CPP" && test -d "$CPP"; then
                   5913:   CPP=
                   5914: fi
                   5915: if test -z "$CPP"; then
                   5916:   if ${ac_cv_prog_CPP+:} false; then :
                   5917:   $as_echo_n "(cached) " >&6
                   5918: else
                   5919:       # Double quotes because CPP needs to be expanded
                   5920:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5921:     do
                   5922:       ac_preproc_ok=false
                   5923: for ac_c_preproc_warn_flag in '' yes
                   5924: do
                   5925:   # Use a header file that comes with gcc, so configuring glibc
                   5926:   # with a fresh cross-compiler works.
                   5927:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5928:   # <limits.h> exists even on freestanding compilers.
                   5929:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5930:   # not just through cpp. "Syntax error" is here to catch this case.
                   5931:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5932: /* end confdefs.h.  */
                   5933: #ifdef __STDC__
                   5934: # include <limits.h>
                   5935: #else
                   5936: # include <assert.h>
                   5937: #endif
                   5938:                     Syntax error
                   5939: _ACEOF
                   5940: if ac_fn_c_try_cpp "$LINENO"; then :
                   5941: 
                   5942: else
                   5943:   # Broken: fails on valid input.
                   5944: continue
                   5945: fi
                   5946: rm -f conftest.err conftest.i conftest.$ac_ext
                   5947: 
                   5948:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5949:   # can be detected and how.
                   5950:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5951: /* end confdefs.h.  */
                   5952: #include <ac_nonexistent.h>
                   5953: _ACEOF
                   5954: if ac_fn_c_try_cpp "$LINENO"; then :
                   5955:   # Broken: success on invalid input.
                   5956: continue
                   5957: else
                   5958:   # Passes both tests.
                   5959: ac_preproc_ok=:
                   5960: break
                   5961: fi
                   5962: rm -f conftest.err conftest.i conftest.$ac_ext
                   5963: 
                   5964: done
                   5965: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5966: rm -f conftest.i conftest.err conftest.$ac_ext
                   5967: if $ac_preproc_ok; then :
                   5968:   break
                   5969: fi
                   5970: 
                   5971:     done
                   5972:     ac_cv_prog_CPP=$CPP
                   5973: 
                   5974: fi
                   5975:   CPP=$ac_cv_prog_CPP
                   5976: else
                   5977:   ac_cv_prog_CPP=$CPP
                   5978: fi
                   5979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5980: $as_echo "$CPP" >&6; }
                   5981: ac_preproc_ok=false
                   5982: for ac_c_preproc_warn_flag in '' yes
                   5983: do
                   5984:   # Use a header file that comes with gcc, so configuring glibc
                   5985:   # with a fresh cross-compiler works.
                   5986:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5987:   # <limits.h> exists even on freestanding compilers.
                   5988:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5989:   # not just through cpp. "Syntax error" is here to catch this case.
                   5990:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5991: /* end confdefs.h.  */
                   5992: #ifdef __STDC__
                   5993: # include <limits.h>
                   5994: #else
                   5995: # include <assert.h>
                   5996: #endif
                   5997:                     Syntax error
                   5998: _ACEOF
                   5999: if ac_fn_c_try_cpp "$LINENO"; then :
                   6000: 
                   6001: else
                   6002:   # Broken: fails on valid input.
                   6003: continue
                   6004: fi
                   6005: rm -f conftest.err conftest.i conftest.$ac_ext
                   6006: 
                   6007:   # OK, works on sane cases.  Now check whether nonexistent headers
                   6008:   # can be detected and how.
                   6009:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6010: /* end confdefs.h.  */
                   6011: #include <ac_nonexistent.h>
                   6012: _ACEOF
                   6013: if ac_fn_c_try_cpp "$LINENO"; then :
                   6014:   # Broken: success on invalid input.
                   6015: continue
                   6016: else
                   6017:   # Passes both tests.
                   6018: ac_preproc_ok=:
                   6019: break
                   6020: fi
                   6021: rm -f conftest.err conftest.i conftest.$ac_ext
                   6022: 
                   6023: done
                   6024: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   6025: rm -f conftest.i conftest.err conftest.$ac_ext
                   6026: if $ac_preproc_ok; then :
                   6027: 
                   6028: else
                   6029:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6030: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6031: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
                   6032: See \`config.log' for more details" "$LINENO" 5; }
                   6033: fi
                   6034: 
                   6035: ac_ext=c
                   6036: ac_cpp='$CPP $CPPFLAGS'
                   6037: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   6038: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   6039: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   6040: 
                   6041: if test -n "$ac_tool_prefix"; then
                   6042:   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
                   6043: set dummy ${ac_tool_prefix}ar; ac_word=$2
                   6044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6045: $as_echo_n "checking for $ac_word... " >&6; }
                   6046: if ${ac_cv_prog_AR+:} false; then :
                   6047:   $as_echo_n "(cached) " >&6
                   6048: else
                   6049:   if test -n "$AR"; then
                   6050:   ac_cv_prog_AR="$AR" # Let the user override the test.
                   6051: else
                   6052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6053: for as_dir in $PATH
                   6054: do
                   6055:   IFS=$as_save_IFS
                   6056:   test -z "$as_dir" && as_dir=.
                   6057:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    6058:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6059:     ac_cv_prog_AR="${ac_tool_prefix}ar"
                   6060:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6061:     break 2
                   6062:   fi
                   6063: done
                   6064:   done
                   6065: IFS=$as_save_IFS
                   6066: 
                   6067: fi
                   6068: fi
                   6069: AR=$ac_cv_prog_AR
                   6070: if test -n "$AR"; then
                   6071:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
                   6072: $as_echo "$AR" >&6; }
                   6073: else
                   6074:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6075: $as_echo "no" >&6; }
                   6076: fi
                   6077: 
                   6078: 
                   6079: fi
                   6080: if test -z "$ac_cv_prog_AR"; then
                   6081:   ac_ct_AR=$AR
                   6082:   # Extract the first word of "ar", so it can be a program name with args.
                   6083: set dummy ar; ac_word=$2
                   6084: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6085: $as_echo_n "checking for $ac_word... " >&6; }
                   6086: if ${ac_cv_prog_ac_ct_AR+:} false; then :
                   6087:   $as_echo_n "(cached) " >&6
                   6088: else
                   6089:   if test -n "$ac_ct_AR"; then
                   6090:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
                   6091: else
                   6092: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6093: for as_dir in $PATH
                   6094: do
                   6095:   IFS=$as_save_IFS
                   6096:   test -z "$as_dir" && as_dir=.
                   6097:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    6098:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6099:     ac_cv_prog_ac_ct_AR="ar"
                   6100:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6101:     break 2
                   6102:   fi
                   6103: done
                   6104:   done
                   6105: IFS=$as_save_IFS
                   6106: 
                   6107: fi
                   6108: fi
                   6109: ac_ct_AR=$ac_cv_prog_ac_ct_AR
                   6110: if test -n "$ac_ct_AR"; then
                   6111:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
                   6112: $as_echo "$ac_ct_AR" >&6; }
                   6113: else
                   6114:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6115: $as_echo "no" >&6; }
                   6116: fi
                   6117: 
                   6118:   if test "x$ac_ct_AR" = x; then
                   6119:     AR="false"
                   6120:   else
                   6121:     case $cross_compiling:$ac_tool_warned in
                   6122: yes:)
                   6123: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6124: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6125: ac_tool_warned=yes ;;
                   6126: esac
                   6127:     AR=$ac_ct_AR
                   6128:   fi
                   6129: else
                   6130:   AR="$ac_cv_prog_AR"
                   6131: fi
                   6132: 
                   6133: if test -n "$ac_tool_prefix"; then
                   6134:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6135: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6137: $as_echo_n "checking for $ac_word... " >&6; }
                   6138: if ${ac_cv_prog_RANLIB+:} false; then :
                   6139:   $as_echo_n "(cached) " >&6
                   6140: else
                   6141:   if test -n "$RANLIB"; then
                   6142:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   6143: else
                   6144: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6145: for as_dir in $PATH
                   6146: do
                   6147:   IFS=$as_save_IFS
                   6148:   test -z "$as_dir" && as_dir=.
                   6149:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    6150:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6151:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6152:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6153:     break 2
                   6154:   fi
                   6155: done
                   6156:   done
                   6157: IFS=$as_save_IFS
                   6158: 
                   6159: fi
                   6160: fi
                   6161: RANLIB=$ac_cv_prog_RANLIB
                   6162: if test -n "$RANLIB"; then
                   6163:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6164: $as_echo "$RANLIB" >&6; }
                   6165: else
                   6166:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6167: $as_echo "no" >&6; }
                   6168: fi
                   6169: 
                   6170: 
                   6171: fi
                   6172: if test -z "$ac_cv_prog_RANLIB"; then
                   6173:   ac_ct_RANLIB=$RANLIB
                   6174:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6175: set dummy ranlib; ac_word=$2
                   6176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6177: $as_echo_n "checking for $ac_word... " >&6; }
                   6178: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
                   6179:   $as_echo_n "(cached) " >&6
                   6180: else
                   6181:   if test -n "$ac_ct_RANLIB"; then
                   6182:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6183: else
                   6184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6185: for as_dir in $PATH
                   6186: do
                   6187:   IFS=$as_save_IFS
                   6188:   test -z "$as_dir" && as_dir=.
                   6189:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    6190:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6191:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6192:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6193:     break 2
                   6194:   fi
                   6195: done
                   6196:   done
                   6197: IFS=$as_save_IFS
                   6198: 
                   6199: fi
                   6200: fi
                   6201: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6202: if test -n "$ac_ct_RANLIB"; then
                   6203:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6204: $as_echo "$ac_ct_RANLIB" >&6; }
                   6205: else
                   6206:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6207: $as_echo "no" >&6; }
                   6208: fi
                   6209: 
                   6210:   if test "x$ac_ct_RANLIB" = x; then
                   6211:     RANLIB=":"
                   6212:   else
                   6213:     case $cross_compiling:$ac_tool_warned in
                   6214: yes:)
                   6215: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6216: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6217: ac_tool_warned=yes ;;
                   6218: esac
                   6219:     RANLIB=$ac_ct_RANLIB
                   6220:   fi
                   6221: else
                   6222:   RANLIB="$ac_cv_prog_RANLIB"
                   6223: fi
                   6224: 
                   6225: if test X"$AR" = X"false"; then
                   6226:     as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
                   6227: fi
                   6228: 
                   6229: if test "x$ac_cv_prog_cc_c89" = "xno"; then
                   6230:     as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
                   6231: fi
                   6232: 
                   6233: if test "$enable_static" = "no"; then
                   6234:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
                   6235: $as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
                   6236:     enable_static=yes
                   6237: fi
                   6238: 
                   6239: ac_aux_dir=
                   6240: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
                   6241:   if test -f "$ac_dir/install-sh"; then
                   6242:     ac_aux_dir=$ac_dir
                   6243:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   6244:     break
                   6245:   elif test -f "$ac_dir/install.sh"; then
                   6246:     ac_aux_dir=$ac_dir
                   6247:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   6248:     break
                   6249:   elif test -f "$ac_dir/shtool"; then
                   6250:     ac_aux_dir=$ac_dir
                   6251:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   6252:     break
                   6253:   fi
                   6254: done
                   6255: if test -z "$ac_aux_dir"; then
                   6256:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
                   6257: fi
                   6258: 
                   6259: # These three variables are undocumented and unsupported,
                   6260: # and are intended to be withdrawn in a future Autoconf release.
                   6261: # They can cause serious problems if a builder's source tree is in a directory
                   6262: # whose full name contains unusual characters.
                   6263: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   6264: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   6265: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
                   6266: 
                   6267: 
                   6268: # Make sure we can run config.sub.
                   6269: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
                   6270:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
                   6271: 
                   6272: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   6273: $as_echo_n "checking build system type... " >&6; }
                   6274: if ${ac_cv_build+:} false; then :
                   6275:   $as_echo_n "(cached) " >&6
                   6276: else
                   6277:   ac_build_alias=$build_alias
                   6278: test "x$ac_build_alias" = x &&
                   6279:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   6280: test "x$ac_build_alias" = x &&
                   6281:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
                   6282: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
                   6283:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
                   6284: 
                   6285: fi
                   6286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   6287: $as_echo "$ac_cv_build" >&6; }
                   6288: case $ac_cv_build in
                   6289: *-*-*) ;;
                   6290: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
                   6291: esac
                   6292: build=$ac_cv_build
                   6293: ac_save_IFS=$IFS; IFS='-'
                   6294: set x $ac_cv_build
                   6295: shift
                   6296: build_cpu=$1
                   6297: build_vendor=$2
                   6298: shift; shift
                   6299: # Remember, the first character of IFS is used to create $*,
                   6300: # except with old shells:
                   6301: build_os=$*
                   6302: IFS=$ac_save_IFS
                   6303: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
                   6304: 
                   6305: 
                   6306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   6307: $as_echo_n "checking host system type... " >&6; }
                   6308: if ${ac_cv_host+:} false; then :
                   6309:   $as_echo_n "(cached) " >&6
                   6310: else
                   6311:   if test "x$host_alias" = x; then
                   6312:   ac_cv_host=$ac_cv_build
                   6313: else
                   6314:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
                   6315:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
                   6316: fi
                   6317: 
                   6318: fi
                   6319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   6320: $as_echo "$ac_cv_host" >&6; }
                   6321: case $ac_cv_host in
                   6322: *-*-*) ;;
                   6323: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
                   6324: esac
                   6325: host=$ac_cv_host
                   6326: ac_save_IFS=$IFS; IFS='-'
                   6327: set x $ac_cv_host
                   6328: shift
                   6329: host_cpu=$1
                   6330: host_vendor=$2
                   6331: shift; shift
                   6332: # Remember, the first character of IFS is used to create $*,
                   6333: # except with old shells:
                   6334: host_os=$*
                   6335: IFS=$ac_save_IFS
                   6336: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
                   6337: 
                   6338: 
                   6339: 
                   6340: 
                   6341: case `pwd` in
                   6342:   *\ * | *\    *)
                   6343:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
                   6344: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
                   6345: esac
                   6346: 
                   6347: 
                   6348: 
1.1.1.6 ! misho    6349: macro_version='2.4.2.418'
        !          6350: macro_revision='2.4.2.418'
1.1       misho    6351: 
                   6352: 
                   6353: 
                   6354: 
                   6355: 
                   6356: 
                   6357: 
                   6358: 
                   6359: 
                   6360: 
                   6361: 
                   6362: 
                   6363: 
1.1.1.6 ! misho    6364: ltmain=$ac_aux_dir/ltmain.sh
1.1       misho    6365: 
                   6366: # Backslashify metacharacters that are still active within
                   6367: # double-quoted strings.
                   6368: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
                   6369: 
                   6370: # Same as above, but do not quote variable references.
                   6371: double_quote_subst='s/\(["`\\]\)/\\\1/g'
                   6372: 
                   6373: # Sed substitution to delay expansion of an escaped shell variable in a
                   6374: # double_quote_subst'ed string.
                   6375: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
                   6376: 
                   6377: # Sed substitution to delay expansion of an escaped single quote.
                   6378: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
                   6379: 
                   6380: # Sed substitution to avoid accidental globbing in evaled expressions
                   6381: no_glob_subst='s/\*/\\\*/g'
                   6382: 
                   6383: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   6384: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
                   6385: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
                   6386: 
                   6387: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
                   6388: $as_echo_n "checking how to print strings... " >&6; }
                   6389: # Test print first, because it will be a builtin if present.
                   6390: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
                   6391:    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
                   6392:   ECHO='print -r --'
                   6393: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
                   6394:   ECHO='printf %s\n'
                   6395: else
                   6396:   # Use this function as a fallback that always works.
                   6397:   func_fallback_echo ()
                   6398:   {
                   6399:     eval 'cat <<_LTECHO_EOF
                   6400: $1
                   6401: _LTECHO_EOF'
                   6402:   }
                   6403:   ECHO='func_fallback_echo'
                   6404: fi
                   6405: 
                   6406: # func_echo_all arg...
                   6407: # Invoke $ECHO with all args, space-separated.
                   6408: func_echo_all ()
                   6409: {
                   6410:     $ECHO ""
                   6411: }
                   6412: 
1.1.1.6 ! misho    6413: case $ECHO in
1.1       misho    6414:   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
                   6415: $as_echo "printf" >&6; } ;;
                   6416:   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
                   6417: $as_echo "print -r" >&6; } ;;
                   6418:   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
                   6419: $as_echo "cat" >&6; } ;;
                   6420: esac
                   6421: 
                   6422: 
                   6423: 
                   6424: 
                   6425: 
                   6426: 
                   6427: 
                   6428: 
                   6429: 
                   6430: 
                   6431: 
                   6432: 
                   6433: 
                   6434: 
                   6435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
                   6436: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
                   6437: if ${ac_cv_path_SED+:} false; then :
                   6438:   $as_echo_n "(cached) " >&6
                   6439: else
                   6440:             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
                   6441:      for ac_i in 1 2 3 4 5 6 7; do
                   6442:        ac_script="$ac_script$as_nl$ac_script"
                   6443:      done
                   6444:      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
                   6445:      { ac_script=; unset ac_script;}
                   6446:      if test -z "$SED"; then
                   6447:   ac_path_SED_found=false
                   6448:   # Loop through the user's path and test for each of PROGNAME-LIST
                   6449:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6450: for as_dir in $PATH
                   6451: do
                   6452:   IFS=$as_save_IFS
                   6453:   test -z "$as_dir" && as_dir=.
                   6454:     for ac_prog in sed gsed; do
                   6455:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6456:       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.6 ! misho    6457:       as_fn_executable_p "$ac_path_SED" || continue
1.1       misho    6458: # Check for GNU ac_path_SED and select it if it is found.
                   6459:   # Check for GNU $ac_path_SED
                   6460: case `"$ac_path_SED" --version 2>&1` in
                   6461: *GNU*)
                   6462:   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
                   6463: *)
                   6464:   ac_count=0
                   6465:   $as_echo_n 0123456789 >"conftest.in"
                   6466:   while :
                   6467:   do
                   6468:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   6469:     mv "conftest.tmp" "conftest.in"
                   6470:     cp "conftest.in" "conftest.nl"
                   6471:     $as_echo '' >> "conftest.nl"
                   6472:     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   6473:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   6474:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   6475:     if test $ac_count -gt ${ac_path_SED_max-0}; then
                   6476:       # Best one so far, save it but keep looking for a better one
                   6477:       ac_cv_path_SED="$ac_path_SED"
                   6478:       ac_path_SED_max=$ac_count
                   6479:     fi
                   6480:     # 10*(2^10) chars as input seems more than enough
                   6481:     test $ac_count -gt 10 && break
                   6482:   done
                   6483:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   6484: esac
                   6485: 
                   6486:       $ac_path_SED_found && break 3
                   6487:     done
                   6488:   done
                   6489:   done
                   6490: IFS=$as_save_IFS
                   6491:   if test -z "$ac_cv_path_SED"; then
                   6492:     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
                   6493:   fi
                   6494: else
                   6495:   ac_cv_path_SED=$SED
                   6496: fi
                   6497: 
                   6498: fi
                   6499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
                   6500: $as_echo "$ac_cv_path_SED" >&6; }
                   6501:  SED="$ac_cv_path_SED"
                   6502:   rm -f conftest.sed
                   6503: 
                   6504: test -z "$SED" && SED=sed
                   6505: Xsed="$SED -e 1s/^X//"
                   6506: 
                   6507: 
                   6508: 
                   6509: 
                   6510: 
                   6511: 
                   6512: 
                   6513: 
                   6514: 
                   6515: 
                   6516: 
                   6517: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   6518: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
                   6519: if ${ac_cv_path_GREP+:} false; then :
                   6520:   $as_echo_n "(cached) " >&6
                   6521: else
                   6522:   if test -z "$GREP"; then
                   6523:   ac_path_GREP_found=false
                   6524:   # Loop through the user's path and test for each of PROGNAME-LIST
                   6525:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6526: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   6527: do
                   6528:   IFS=$as_save_IFS
                   6529:   test -z "$as_dir" && as_dir=.
                   6530:     for ac_prog in grep ggrep; do
                   6531:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6532:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.6 ! misho    6533:       as_fn_executable_p "$ac_path_GREP" || continue
1.1       misho    6534: # Check for GNU ac_path_GREP and select it if it is found.
                   6535:   # Check for GNU $ac_path_GREP
                   6536: case `"$ac_path_GREP" --version 2>&1` in
                   6537: *GNU*)
                   6538:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   6539: *)
                   6540:   ac_count=0
                   6541:   $as_echo_n 0123456789 >"conftest.in"
                   6542:   while :
                   6543:   do
                   6544:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   6545:     mv "conftest.tmp" "conftest.in"
                   6546:     cp "conftest.in" "conftest.nl"
                   6547:     $as_echo 'GREP' >> "conftest.nl"
                   6548:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   6549:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   6550:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   6551:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   6552:       # Best one so far, save it but keep looking for a better one
                   6553:       ac_cv_path_GREP="$ac_path_GREP"
                   6554:       ac_path_GREP_max=$ac_count
                   6555:     fi
                   6556:     # 10*(2^10) chars as input seems more than enough
                   6557:     test $ac_count -gt 10 && break
                   6558:   done
                   6559:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   6560: esac
                   6561: 
                   6562:       $ac_path_GREP_found && break 3
                   6563:     done
                   6564:   done
                   6565:   done
                   6566: IFS=$as_save_IFS
                   6567:   if test -z "$ac_cv_path_GREP"; then
                   6568:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   6569:   fi
                   6570: else
                   6571:   ac_cv_path_GREP=$GREP
                   6572: fi
                   6573: 
                   6574: fi
                   6575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   6576: $as_echo "$ac_cv_path_GREP" >&6; }
                   6577:  GREP="$ac_cv_path_GREP"
                   6578: 
                   6579: 
                   6580: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   6581: $as_echo_n "checking for egrep... " >&6; }
                   6582: if ${ac_cv_path_EGREP+:} false; then :
                   6583:   $as_echo_n "(cached) " >&6
                   6584: else
                   6585:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   6586:    then ac_cv_path_EGREP="$GREP -E"
                   6587:    else
                   6588:      if test -z "$EGREP"; then
                   6589:   ac_path_EGREP_found=false
                   6590:   # Loop through the user's path and test for each of PROGNAME-LIST
                   6591:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6592: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   6593: do
                   6594:   IFS=$as_save_IFS
                   6595:   test -z "$as_dir" && as_dir=.
                   6596:     for ac_prog in egrep; do
                   6597:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6598:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.6 ! misho    6599:       as_fn_executable_p "$ac_path_EGREP" || continue
1.1       misho    6600: # Check for GNU ac_path_EGREP and select it if it is found.
                   6601:   # Check for GNU $ac_path_EGREP
                   6602: case `"$ac_path_EGREP" --version 2>&1` in
                   6603: *GNU*)
                   6604:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   6605: *)
                   6606:   ac_count=0
                   6607:   $as_echo_n 0123456789 >"conftest.in"
                   6608:   while :
                   6609:   do
                   6610:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   6611:     mv "conftest.tmp" "conftest.in"
                   6612:     cp "conftest.in" "conftest.nl"
                   6613:     $as_echo 'EGREP' >> "conftest.nl"
                   6614:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   6615:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   6616:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   6617:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   6618:       # Best one so far, save it but keep looking for a better one
                   6619:       ac_cv_path_EGREP="$ac_path_EGREP"
                   6620:       ac_path_EGREP_max=$ac_count
                   6621:     fi
                   6622:     # 10*(2^10) chars as input seems more than enough
                   6623:     test $ac_count -gt 10 && break
                   6624:   done
                   6625:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   6626: esac
                   6627: 
                   6628:       $ac_path_EGREP_found && break 3
                   6629:     done
                   6630:   done
                   6631:   done
                   6632: IFS=$as_save_IFS
                   6633:   if test -z "$ac_cv_path_EGREP"; then
                   6634:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   6635:   fi
                   6636: else
                   6637:   ac_cv_path_EGREP=$EGREP
                   6638: fi
                   6639: 
                   6640:    fi
                   6641: fi
                   6642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   6643: $as_echo "$ac_cv_path_EGREP" >&6; }
                   6644:  EGREP="$ac_cv_path_EGREP"
                   6645: 
                   6646: 
                   6647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
                   6648: $as_echo_n "checking for fgrep... " >&6; }
                   6649: if ${ac_cv_path_FGREP+:} false; then :
                   6650:   $as_echo_n "(cached) " >&6
                   6651: else
                   6652:   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
                   6653:    then ac_cv_path_FGREP="$GREP -F"
                   6654:    else
                   6655:      if test -z "$FGREP"; then
                   6656:   ac_path_FGREP_found=false
                   6657:   # Loop through the user's path and test for each of PROGNAME-LIST
                   6658:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6659: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   6660: do
                   6661:   IFS=$as_save_IFS
                   6662:   test -z "$as_dir" && as_dir=.
                   6663:     for ac_prog in fgrep; do
                   6664:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6665:       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.6 ! misho    6666:       as_fn_executable_p "$ac_path_FGREP" || continue
1.1       misho    6667: # Check for GNU ac_path_FGREP and select it if it is found.
                   6668:   # Check for GNU $ac_path_FGREP
                   6669: case `"$ac_path_FGREP" --version 2>&1` in
                   6670: *GNU*)
                   6671:   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
                   6672: *)
                   6673:   ac_count=0
                   6674:   $as_echo_n 0123456789 >"conftest.in"
                   6675:   while :
                   6676:   do
                   6677:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   6678:     mv "conftest.tmp" "conftest.in"
                   6679:     cp "conftest.in" "conftest.nl"
                   6680:     $as_echo 'FGREP' >> "conftest.nl"
                   6681:     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   6682:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   6683:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   6684:     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
                   6685:       # Best one so far, save it but keep looking for a better one
                   6686:       ac_cv_path_FGREP="$ac_path_FGREP"
                   6687:       ac_path_FGREP_max=$ac_count
                   6688:     fi
                   6689:     # 10*(2^10) chars as input seems more than enough
                   6690:     test $ac_count -gt 10 && break
                   6691:   done
                   6692:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   6693: esac
                   6694: 
                   6695:       $ac_path_FGREP_found && break 3
                   6696:     done
                   6697:   done
                   6698:   done
                   6699: IFS=$as_save_IFS
                   6700:   if test -z "$ac_cv_path_FGREP"; then
                   6701:     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   6702:   fi
                   6703: else
                   6704:   ac_cv_path_FGREP=$FGREP
                   6705: fi
                   6706: 
                   6707:    fi
                   6708: fi
                   6709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
                   6710: $as_echo "$ac_cv_path_FGREP" >&6; }
                   6711:  FGREP="$ac_cv_path_FGREP"
                   6712: 
                   6713: 
                   6714: test -z "$GREP" && GREP=grep
                   6715: 
                   6716: 
                   6717: 
                   6718: 
                   6719: 
                   6720: 
                   6721: 
                   6722: 
                   6723: 
                   6724: 
                   6725: 
                   6726: 
                   6727: 
                   6728: 
                   6729: 
                   6730: 
                   6731: 
                   6732: 
                   6733: 
                   6734: # Check whether --with-gnu-ld was given.
                   6735: if test "${with_gnu_ld+set}" = set; then :
1.1.1.6 ! misho    6736:   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
1.1       misho    6737: else
                   6738:   with_gnu_ld=no
                   6739: fi
                   6740: 
                   6741: ac_prog=ld
1.1.1.6 ! misho    6742: if test yes = "$GCC"; then
1.1       misho    6743:   # Check if gcc -print-prog-name=ld gives a path.
                   6744:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
                   6745: $as_echo_n "checking for ld used by $CC... " >&6; }
                   6746:   case $host in
                   6747:   *-*-mingw*)
1.1.1.6 ! misho    6748:     # gcc leaves a trailing carriage return, which upsets mingw
1.1       misho    6749:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
                   6750:   *)
                   6751:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
                   6752:   esac
                   6753:   case $ac_prog in
                   6754:     # Accept absolute paths.
                   6755:     [\\/]* | ?:[\\/]*)
                   6756:       re_direlt='/[^/][^/]*/\.\./'
                   6757:       # Canonicalize the pathname of ld
                   6758:       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
                   6759:       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
                   6760:        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
                   6761:       done
1.1.1.6 ! misho    6762:       test -z "$LD" && LD=$ac_prog
1.1       misho    6763:       ;;
                   6764:   "")
                   6765:     # If it fails, then pretend we aren't using GCC.
                   6766:     ac_prog=ld
                   6767:     ;;
                   6768:   *)
                   6769:     # If it is relative, then search for the first ld in PATH.
                   6770:     with_gnu_ld=unknown
                   6771:     ;;
                   6772:   esac
1.1.1.6 ! misho    6773: elif test yes = "$with_gnu_ld"; then
1.1       misho    6774:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
                   6775: $as_echo_n "checking for GNU ld... " >&6; }
                   6776: else
                   6777:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
                   6778: $as_echo_n "checking for non-GNU ld... " >&6; }
                   6779: fi
                   6780: if ${lt_cv_path_LD+:} false; then :
                   6781:   $as_echo_n "(cached) " >&6
                   6782: else
                   6783:   if test -z "$LD"; then
1.1.1.6 ! misho    6784:   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.1       misho    6785:   for ac_dir in $PATH; do
1.1.1.6 ! misho    6786:     IFS=$lt_save_ifs
1.1       misho    6787:     test -z "$ac_dir" && ac_dir=.
                   6788:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.1.1.6 ! misho    6789:       lt_cv_path_LD=$ac_dir/$ac_prog
1.1       misho    6790:       # Check to see if the program is GNU ld.  I'd rather use --version,
                   6791:       # but apparently some variants of GNU ld only accept -v.
                   6792:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   6793:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
                   6794:       *GNU* | *'with BFD'*)
1.1.1.6 ! misho    6795:        test no != "$with_gnu_ld" && break
1.1       misho    6796:        ;;
                   6797:       *)
1.1.1.6 ! misho    6798:        test yes != "$with_gnu_ld" && break
1.1       misho    6799:        ;;
                   6800:       esac
                   6801:     fi
                   6802:   done
1.1.1.6 ! misho    6803:   IFS=$lt_save_ifs
1.1       misho    6804: else
1.1.1.6 ! misho    6805:   lt_cv_path_LD=$LD # Let the user override the test with a path.
1.1       misho    6806: fi
                   6807: fi
                   6808: 
1.1.1.6 ! misho    6809: LD=$lt_cv_path_LD
1.1       misho    6810: if test -n "$LD"; then
                   6811:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
                   6812: $as_echo "$LD" >&6; }
                   6813: else
                   6814:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6815: $as_echo "no" >&6; }
                   6816: fi
                   6817: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
                   6818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
                   6819: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
                   6820: if ${lt_cv_prog_gnu_ld+:} false; then :
                   6821:   $as_echo_n "(cached) " >&6
                   6822: else
                   6823:   # I'd rather use --version here, but apparently some GNU lds only accept -v.
                   6824: case `$LD -v 2>&1 </dev/null` in
                   6825: *GNU* | *'with BFD'*)
                   6826:   lt_cv_prog_gnu_ld=yes
                   6827:   ;;
                   6828: *)
                   6829:   lt_cv_prog_gnu_ld=no
                   6830:   ;;
                   6831: esac
                   6832: fi
                   6833: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
                   6834: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
                   6835: with_gnu_ld=$lt_cv_prog_gnu_ld
                   6836: 
                   6837: 
                   6838: 
                   6839: 
                   6840: 
                   6841: 
                   6842: 
                   6843: 
                   6844: 
                   6845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
                   6846: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
                   6847: if ${lt_cv_path_NM+:} false; then :
                   6848:   $as_echo_n "(cached) " >&6
                   6849: else
                   6850:   if test -n "$NM"; then
                   6851:   # Let the user override the test.
1.1.1.6 ! misho    6852:   lt_cv_path_NM=$NM
1.1       misho    6853: else
1.1.1.6 ! misho    6854:   lt_nm_to_check=${ac_tool_prefix}nm
1.1       misho    6855:   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
                   6856:     lt_nm_to_check="$lt_nm_to_check nm"
                   6857:   fi
                   6858:   for lt_tmp_nm in $lt_nm_to_check; do
1.1.1.6 ! misho    6859:     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.1       misho    6860:     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
1.1.1.6 ! misho    6861:       IFS=$lt_save_ifs
1.1       misho    6862:       test -z "$ac_dir" && ac_dir=.
1.1.1.6 ! misho    6863:       tmp_nm=$ac_dir/$lt_tmp_nm
        !          6864:       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
1.1       misho    6865:        # Check to see if the nm accepts a BSD-compat flag.
1.1.1.6 ! misho    6866:        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
1.1       misho    6867:        #   nm: unknown option "B" ignored
                   6868:        # Tru64's nm complains that /dev/null is an invalid object file
                   6869:        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
                   6870:        */dev/null* | *'Invalid file or object type'*)
                   6871:          lt_cv_path_NM="$tmp_nm -B"
1.1.1.6 ! misho    6872:          break 2
1.1       misho    6873:          ;;
                   6874:        *)
                   6875:          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
                   6876:          */dev/null*)
                   6877:            lt_cv_path_NM="$tmp_nm -p"
1.1.1.6 ! misho    6878:            break 2
1.1       misho    6879:            ;;
                   6880:          *)
                   6881:            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
                   6882:            continue # so that we can try to find one that supports BSD flags
                   6883:            ;;
                   6884:          esac
                   6885:          ;;
                   6886:        esac
                   6887:       fi
                   6888:     done
1.1.1.6 ! misho    6889:     IFS=$lt_save_ifs
1.1       misho    6890:   done
                   6891:   : ${lt_cv_path_NM=no}
                   6892: fi
                   6893: fi
                   6894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
                   6895: $as_echo "$lt_cv_path_NM" >&6; }
1.1.1.6 ! misho    6896: if test no != "$lt_cv_path_NM"; then
        !          6897:   NM=$lt_cv_path_NM
1.1       misho    6898: else
                   6899:   # Didn't find any BSD compatible name lister, look for dumpbin.
                   6900:   if test -n "$DUMPBIN"; then :
                   6901:     # Let the user override the test.
                   6902:   else
                   6903:     if test -n "$ac_tool_prefix"; then
                   6904:   for ac_prog in dumpbin "link -dump"
                   6905:   do
                   6906:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   6907: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   6908: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6909: $as_echo_n "checking for $ac_word... " >&6; }
                   6910: if ${ac_cv_prog_DUMPBIN+:} false; then :
                   6911:   $as_echo_n "(cached) " >&6
                   6912: else
                   6913:   if test -n "$DUMPBIN"; then
                   6914:   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
                   6915: else
                   6916: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6917: for as_dir in $PATH
                   6918: do
                   6919:   IFS=$as_save_IFS
                   6920:   test -z "$as_dir" && as_dir=.
                   6921:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    6922:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6923:     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
                   6924:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6925:     break 2
                   6926:   fi
                   6927: done
                   6928:   done
                   6929: IFS=$as_save_IFS
                   6930: 
                   6931: fi
                   6932: fi
                   6933: DUMPBIN=$ac_cv_prog_DUMPBIN
                   6934: if test -n "$DUMPBIN"; then
                   6935:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
                   6936: $as_echo "$DUMPBIN" >&6; }
                   6937: else
                   6938:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6939: $as_echo "no" >&6; }
                   6940: fi
                   6941: 
                   6942: 
                   6943:     test -n "$DUMPBIN" && break
                   6944:   done
                   6945: fi
                   6946: if test -z "$DUMPBIN"; then
                   6947:   ac_ct_DUMPBIN=$DUMPBIN
                   6948:   for ac_prog in dumpbin "link -dump"
                   6949: do
                   6950:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   6951: set dummy $ac_prog; ac_word=$2
                   6952: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6953: $as_echo_n "checking for $ac_word... " >&6; }
                   6954: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
                   6955:   $as_echo_n "(cached) " >&6
                   6956: else
                   6957:   if test -n "$ac_ct_DUMPBIN"; then
                   6958:   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
                   6959: else
                   6960: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6961: for as_dir in $PATH
                   6962: do
                   6963:   IFS=$as_save_IFS
                   6964:   test -z "$as_dir" && as_dir=.
                   6965:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    6966:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6967:     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
                   6968:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6969:     break 2
                   6970:   fi
                   6971: done
                   6972:   done
                   6973: IFS=$as_save_IFS
                   6974: 
                   6975: fi
                   6976: fi
                   6977: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
                   6978: if test -n "$ac_ct_DUMPBIN"; then
                   6979:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
                   6980: $as_echo "$ac_ct_DUMPBIN" >&6; }
                   6981: else
                   6982:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6983: $as_echo "no" >&6; }
                   6984: fi
                   6985: 
                   6986: 
                   6987:   test -n "$ac_ct_DUMPBIN" && break
                   6988: done
                   6989: 
                   6990:   if test "x$ac_ct_DUMPBIN" = x; then
                   6991:     DUMPBIN=":"
                   6992:   else
                   6993:     case $cross_compiling:$ac_tool_warned in
                   6994: yes:)
                   6995: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6996: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6997: ac_tool_warned=yes ;;
                   6998: esac
                   6999:     DUMPBIN=$ac_ct_DUMPBIN
                   7000:   fi
                   7001: fi
                   7002: 
1.1.1.6 ! misho    7003:     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
1.1       misho    7004:     *COFF*)
1.1.1.6 ! misho    7005:       DUMPBIN="$DUMPBIN -symbols -headers"
1.1       misho    7006:       ;;
                   7007:     *)
                   7008:       DUMPBIN=:
                   7009:       ;;
                   7010:     esac
                   7011:   fi
                   7012: 
1.1.1.6 ! misho    7013:   if test : != "$DUMPBIN"; then
        !          7014:     NM=$DUMPBIN
1.1       misho    7015:   fi
                   7016: fi
                   7017: test -z "$NM" && NM=nm
                   7018: 
                   7019: 
                   7020: 
                   7021: 
                   7022: 
                   7023: 
                   7024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
                   7025: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
                   7026: if ${lt_cv_nm_interface+:} false; then :
                   7027:   $as_echo_n "(cached) " >&6
                   7028: else
                   7029:   lt_cv_nm_interface="BSD nm"
                   7030:   echo "int some_variable = 0;" > conftest.$ac_ext
                   7031:   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
                   7032:   (eval "$ac_compile" 2>conftest.err)
                   7033:   cat conftest.err >&5
                   7034:   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
                   7035:   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
                   7036:   cat conftest.err >&5
                   7037:   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
                   7038:   cat conftest.out >&5
                   7039:   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
                   7040:     lt_cv_nm_interface="MS dumpbin"
                   7041:   fi
                   7042:   rm -f conftest*
                   7043: fi
                   7044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
                   7045: $as_echo "$lt_cv_nm_interface" >&6; }
                   7046: 
                   7047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   7048: $as_echo_n "checking whether ln -s works... " >&6; }
                   7049: LN_S=$as_ln_s
                   7050: if test "$LN_S" = "ln -s"; then
                   7051:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7052: $as_echo "yes" >&6; }
                   7053: else
                   7054:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   7055: $as_echo "no, using $LN_S" >&6; }
                   7056: fi
                   7057: 
                   7058: # find the maximum length of command line arguments
                   7059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
                   7060: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
                   7061: if ${lt_cv_sys_max_cmd_len+:} false; then :
                   7062:   $as_echo_n "(cached) " >&6
                   7063: else
                   7064:     i=0
1.1.1.6 ! misho    7065:   teststring=ABCD
1.1       misho    7066: 
                   7067:   case $build_os in
                   7068:   msdosdjgpp*)
                   7069:     # On DJGPP, this test can blow up pretty badly due to problems in libc
                   7070:     # (any single argument exceeding 2000 bytes causes a buffer overrun
                   7071:     # during glob expansion).  Even if it were fixed, the result of this
                   7072:     # check would be larger than it should be.
                   7073:     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
                   7074:     ;;
                   7075: 
                   7076:   gnu*)
                   7077:     # Under GNU Hurd, this test is not required because there is
                   7078:     # no limit to the length of command line arguments.
                   7079:     # Libtool will interpret -1 as no limit whatsoever
                   7080:     lt_cv_sys_max_cmd_len=-1;
                   7081:     ;;
                   7082: 
                   7083:   cygwin* | mingw* | cegcc*)
                   7084:     # On Win9x/ME, this test blows up -- it succeeds, but takes
                   7085:     # about 5 minutes as the teststring grows exponentially.
                   7086:     # Worse, since 9x/ME are not pre-emptively multitasking,
                   7087:     # you end up with a "frozen" computer, even though with patience
                   7088:     # the test eventually succeeds (with a max line length of 256k).
                   7089:     # Instead, let's just punt: use the minimum linelength reported by
                   7090:     # all of the supported platforms: 8192 (on NT/2K/XP).
                   7091:     lt_cv_sys_max_cmd_len=8192;
                   7092:     ;;
                   7093: 
                   7094:   mint*)
                   7095:     # On MiNT this can take a long time and run out of memory.
                   7096:     lt_cv_sys_max_cmd_len=8192;
                   7097:     ;;
                   7098: 
                   7099:   amigaos*)
                   7100:     # On AmigaOS with pdksh, this test takes hours, literally.
                   7101:     # So we just punt and use a minimum line length of 8192.
                   7102:     lt_cv_sys_max_cmd_len=8192;
                   7103:     ;;
                   7104: 
1.1.1.6 ! misho    7105:   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
1.1       misho    7106:     # This has been around since 386BSD, at least.  Likely further.
                   7107:     if test -x /sbin/sysctl; then
                   7108:       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
                   7109:     elif test -x /usr/sbin/sysctl; then
                   7110:       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
                   7111:     else
                   7112:       lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
                   7113:     fi
                   7114:     # And add a safety zone
                   7115:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   7116:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   7117:     ;;
                   7118: 
                   7119:   interix*)
                   7120:     # We know the value 262144 and hardcode it with a safety zone (like BSD)
                   7121:     lt_cv_sys_max_cmd_len=196608
                   7122:     ;;
                   7123: 
1.1.1.2   misho    7124:   os2*)
                   7125:     # The test takes a long time on OS/2.
                   7126:     lt_cv_sys_max_cmd_len=8192
                   7127:     ;;
                   7128: 
1.1       misho    7129:   osf*)
                   7130:     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
                   7131:     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
                   7132:     # nice to cause kernel panics so lets avoid the loop below.
                   7133:     # First set a reasonable default.
                   7134:     lt_cv_sys_max_cmd_len=16384
                   7135:     #
                   7136:     if test -x /sbin/sysconfig; then
                   7137:       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
                   7138:         *1*) lt_cv_sys_max_cmd_len=-1 ;;
                   7139:       esac
                   7140:     fi
                   7141:     ;;
                   7142:   sco3.2v5*)
                   7143:     lt_cv_sys_max_cmd_len=102400
                   7144:     ;;
                   7145:   sysv5* | sco5v6* | sysv4.2uw2*)
                   7146:     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
                   7147:     if test -n "$kargmax"; then
                   7148:       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
                   7149:     else
                   7150:       lt_cv_sys_max_cmd_len=32768
                   7151:     fi
                   7152:     ;;
                   7153:   *)
                   7154:     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1.1.1.6 ! misho    7155:     if test -n "$lt_cv_sys_max_cmd_len" && \
        !          7156:        test undefined != "$lt_cv_sys_max_cmd_len"; then
1.1       misho    7157:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   7158:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   7159:     else
                   7160:       # Make teststring a little bigger before we do anything with it.
                   7161:       # a 1K string should be a reasonable start.
1.1.1.6 ! misho    7162:       for i in 1 2 3 4 5 6 7 8; do
1.1       misho    7163:         teststring=$teststring$teststring
                   7164:       done
                   7165:       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
                   7166:       # If test is not a shell built-in, we'll probably end up computing a
                   7167:       # maximum length that is only half of the actual maximum length, but
                   7168:       # we can't tell.
1.1.1.6 ! misho    7169:       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
1.1       misho    7170:                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1.1.1.6 ! misho    7171:              test 17 != "$i" # 1/2 MB should be enough
1.1       misho    7172:       do
                   7173:         i=`expr $i + 1`
                   7174:         teststring=$teststring$teststring
                   7175:       done
                   7176:       # Only check the string length outside the loop.
                   7177:       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
                   7178:       teststring=
                   7179:       # Add a significant safety factor because C++ compilers can tack on
                   7180:       # massive amounts of additional arguments before passing them to the
                   7181:       # linker.  It appears as though 1/2 is a usable value.
                   7182:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
                   7183:     fi
                   7184:     ;;
                   7185:   esac
                   7186: 
                   7187: fi
                   7188: 
1.1.1.6 ! misho    7189: if test -n "$lt_cv_sys_max_cmd_len"; then
1.1       misho    7190:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
                   7191: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
                   7192: else
                   7193:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
                   7194: $as_echo "none" >&6; }
                   7195: fi
                   7196: max_cmd_len=$lt_cv_sys_max_cmd_len
                   7197: 
                   7198: 
                   7199: 
                   7200: 
                   7201: 
                   7202: 
                   7203: : ${CP="cp -f"}
                   7204: : ${MV="mv -f"}
                   7205: : ${RM="rm -f"}
                   7206: 
                   7207: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
                   7208:   lt_unset=unset
                   7209: else
                   7210:   lt_unset=false
                   7211: fi
                   7212: 
                   7213: 
                   7214: 
                   7215: 
                   7216: 
                   7217: # test EBCDIC or ASCII
                   7218: case `echo X|tr X '\101'` in
                   7219:  A) # ASCII based system
                   7220:     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
                   7221:   lt_SP2NL='tr \040 \012'
                   7222:   lt_NL2SP='tr \015\012 \040\040'
                   7223:   ;;
                   7224:  *) # EBCDIC based system
                   7225:   lt_SP2NL='tr \100 \n'
                   7226:   lt_NL2SP='tr \r\n \100\100'
                   7227:   ;;
                   7228: esac
                   7229: 
                   7230: 
                   7231: 
                   7232: 
                   7233: 
                   7234: 
                   7235: 
                   7236: 
                   7237: 
                   7238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
                   7239: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
                   7240: if ${lt_cv_to_host_file_cmd+:} false; then :
                   7241:   $as_echo_n "(cached) " >&6
                   7242: else
                   7243:   case $host in
                   7244:   *-*-mingw* )
                   7245:     case $build in
                   7246:       *-*-mingw* ) # actually msys
                   7247:         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
                   7248:         ;;
                   7249:       *-*-cygwin* )
                   7250:         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
                   7251:         ;;
                   7252:       * ) # otherwise, assume *nix
                   7253:         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
                   7254:         ;;
                   7255:     esac
                   7256:     ;;
                   7257:   *-*-cygwin* )
                   7258:     case $build in
                   7259:       *-*-mingw* ) # actually msys
                   7260:         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
                   7261:         ;;
                   7262:       *-*-cygwin* )
                   7263:         lt_cv_to_host_file_cmd=func_convert_file_noop
                   7264:         ;;
                   7265:       * ) # otherwise, assume *nix
                   7266:         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
                   7267:         ;;
                   7268:     esac
                   7269:     ;;
                   7270:   * ) # unhandled hosts (and "normal" native builds)
                   7271:     lt_cv_to_host_file_cmd=func_convert_file_noop
                   7272:     ;;
                   7273: esac
                   7274: 
                   7275: fi
                   7276: 
                   7277: to_host_file_cmd=$lt_cv_to_host_file_cmd
                   7278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
                   7279: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
                   7280: 
                   7281: 
                   7282: 
                   7283: 
                   7284: 
                   7285: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
                   7286: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
                   7287: if ${lt_cv_to_tool_file_cmd+:} false; then :
                   7288:   $as_echo_n "(cached) " >&6
                   7289: else
                   7290:   #assume ordinary cross tools, or native build.
                   7291: lt_cv_to_tool_file_cmd=func_convert_file_noop
                   7292: case $host in
                   7293:   *-*-mingw* )
                   7294:     case $build in
                   7295:       *-*-mingw* ) # actually msys
                   7296:         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
                   7297:         ;;
                   7298:     esac
                   7299:     ;;
                   7300: esac
                   7301: 
                   7302: fi
                   7303: 
                   7304: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
                   7305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
                   7306: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
                   7307: 
                   7308: 
                   7309: 
                   7310: 
                   7311: 
                   7312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
                   7313: $as_echo_n "checking for $LD option to reload object files... " >&6; }
                   7314: if ${lt_cv_ld_reload_flag+:} false; then :
                   7315:   $as_echo_n "(cached) " >&6
                   7316: else
                   7317:   lt_cv_ld_reload_flag='-r'
                   7318: fi
                   7319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
                   7320: $as_echo "$lt_cv_ld_reload_flag" >&6; }
                   7321: reload_flag=$lt_cv_ld_reload_flag
                   7322: case $reload_flag in
                   7323: "" | " "*) ;;
                   7324: *) reload_flag=" $reload_flag" ;;
                   7325: esac
                   7326: reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   7327: case $host_os in
                   7328:   cygwin* | mingw* | pw32* | cegcc*)
1.1.1.6 ! misho    7329:     if test yes != "$GCC"; then
1.1       misho    7330:       reload_cmds=false
                   7331:     fi
                   7332:     ;;
                   7333:   darwin*)
1.1.1.6 ! misho    7334:     if test yes = "$GCC"; then
        !          7335:       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
1.1       misho    7336:     else
                   7337:       reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   7338:     fi
                   7339:     ;;
                   7340: esac
                   7341: 
                   7342: 
                   7343: 
                   7344: 
                   7345: 
                   7346: 
                   7347: 
                   7348: 
                   7349: 
                   7350: if test -n "$ac_tool_prefix"; then
                   7351:   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
                   7352: set dummy ${ac_tool_prefix}objdump; ac_word=$2
                   7353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7354: $as_echo_n "checking for $ac_word... " >&6; }
                   7355: if ${ac_cv_prog_OBJDUMP+:} false; then :
                   7356:   $as_echo_n "(cached) " >&6
                   7357: else
                   7358:   if test -n "$OBJDUMP"; then
                   7359:   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
                   7360: else
                   7361: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7362: for as_dir in $PATH
                   7363: do
                   7364:   IFS=$as_save_IFS
                   7365:   test -z "$as_dir" && as_dir=.
                   7366:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    7367:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7368:     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
                   7369:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7370:     break 2
                   7371:   fi
                   7372: done
                   7373:   done
                   7374: IFS=$as_save_IFS
                   7375: 
                   7376: fi
                   7377: fi
                   7378: OBJDUMP=$ac_cv_prog_OBJDUMP
                   7379: if test -n "$OBJDUMP"; then
                   7380:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
                   7381: $as_echo "$OBJDUMP" >&6; }
                   7382: else
                   7383:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7384: $as_echo "no" >&6; }
                   7385: fi
                   7386: 
                   7387: 
                   7388: fi
                   7389: if test -z "$ac_cv_prog_OBJDUMP"; then
                   7390:   ac_ct_OBJDUMP=$OBJDUMP
                   7391:   # Extract the first word of "objdump", so it can be a program name with args.
                   7392: set dummy objdump; ac_word=$2
                   7393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7394: $as_echo_n "checking for $ac_word... " >&6; }
                   7395: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
                   7396:   $as_echo_n "(cached) " >&6
                   7397: else
                   7398:   if test -n "$ac_ct_OBJDUMP"; then
                   7399:   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
                   7400: else
                   7401: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7402: for as_dir in $PATH
                   7403: do
                   7404:   IFS=$as_save_IFS
                   7405:   test -z "$as_dir" && as_dir=.
                   7406:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    7407:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7408:     ac_cv_prog_ac_ct_OBJDUMP="objdump"
                   7409:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7410:     break 2
                   7411:   fi
                   7412: done
                   7413:   done
                   7414: IFS=$as_save_IFS
                   7415: 
                   7416: fi
                   7417: fi
                   7418: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
                   7419: if test -n "$ac_ct_OBJDUMP"; then
                   7420:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
                   7421: $as_echo "$ac_ct_OBJDUMP" >&6; }
                   7422: else
                   7423:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7424: $as_echo "no" >&6; }
                   7425: fi
                   7426: 
                   7427:   if test "x$ac_ct_OBJDUMP" = x; then
                   7428:     OBJDUMP="false"
                   7429:   else
                   7430:     case $cross_compiling:$ac_tool_warned in
                   7431: yes:)
                   7432: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   7433: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   7434: ac_tool_warned=yes ;;
                   7435: esac
                   7436:     OBJDUMP=$ac_ct_OBJDUMP
                   7437:   fi
                   7438: else
                   7439:   OBJDUMP="$ac_cv_prog_OBJDUMP"
                   7440: fi
                   7441: 
                   7442: test -z "$OBJDUMP" && OBJDUMP=objdump
                   7443: 
                   7444: 
                   7445: 
                   7446: 
                   7447: 
                   7448: 
                   7449: 
                   7450: 
                   7451: 
                   7452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
                   7453: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
                   7454: if ${lt_cv_deplibs_check_method+:} false; then :
                   7455:   $as_echo_n "(cached) " >&6
                   7456: else
                   7457:   lt_cv_file_magic_cmd='$MAGIC_CMD'
                   7458: lt_cv_file_magic_test_file=
                   7459: lt_cv_deplibs_check_method='unknown'
                   7460: # Need to set the preceding variable on all platforms that support
                   7461: # interlibrary dependencies.
                   7462: # 'none' -- dependencies not supported.
1.1.1.6 ! misho    7463: # 'unknown' -- same as none, but documents that we really don't know.
1.1       misho    7464: # 'pass_all' -- all dependencies passed with no checks.
                   7465: # 'test_compile' -- check by making test program.
                   7466: # 'file_magic [[regex]]' -- check by looking for files in library path
1.1.1.6 ! misho    7467: # that responds to the $file_magic_cmd with a given extended regex.
        !          7468: # If you have 'file' or equivalent on your system and you're not sure
        !          7469: # whether 'pass_all' will *always* work, you probably want this one.
1.1       misho    7470: 
                   7471: case $host_os in
                   7472: aix[4-9]*)
                   7473:   lt_cv_deplibs_check_method=pass_all
                   7474:   ;;
                   7475: 
                   7476: beos*)
                   7477:   lt_cv_deplibs_check_method=pass_all
                   7478:   ;;
                   7479: 
                   7480: bsdi[45]*)
                   7481:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
                   7482:   lt_cv_file_magic_cmd='/usr/bin/file -L'
                   7483:   lt_cv_file_magic_test_file=/shlib/libc.so
                   7484:   ;;
                   7485: 
                   7486: cygwin*)
                   7487:   # func_win32_libid is a shell function defined in ltmain.sh
                   7488:   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
                   7489:   lt_cv_file_magic_cmd='func_win32_libid'
                   7490:   ;;
                   7491: 
                   7492: mingw* | pw32*)
                   7493:   # Base MSYS/MinGW do not provide the 'file' command needed by
                   7494:   # func_win32_libid shell function, so use a weaker test based on 'objdump',
                   7495:   # unless we find 'file', for example because we are cross-compiling.
1.1.1.6 ! misho    7496:   if ( file / ) >/dev/null 2>&1; then
1.1       misho    7497:     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
                   7498:     lt_cv_file_magic_cmd='func_win32_libid'
                   7499:   else
                   7500:     # Keep this pattern in sync with the one in func_win32_libid.
                   7501:     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
                   7502:     lt_cv_file_magic_cmd='$OBJDUMP -f'
                   7503:   fi
                   7504:   ;;
                   7505: 
                   7506: cegcc*)
                   7507:   # use the weaker test based on 'objdump'. See mingw*.
                   7508:   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
                   7509:   lt_cv_file_magic_cmd='$OBJDUMP -f'
                   7510:   ;;
                   7511: 
                   7512: darwin* | rhapsody*)
                   7513:   lt_cv_deplibs_check_method=pass_all
                   7514:   ;;
                   7515: 
                   7516: freebsd* | dragonfly*)
                   7517:   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
                   7518:     case $host_cpu in
                   7519:     i*86 )
                   7520:       # Not sure whether the presence of OpenBSD here was a mistake.
                   7521:       # Let's accept both of them until this is cleared up.
                   7522:       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
                   7523:       lt_cv_file_magic_cmd=/usr/bin/file
                   7524:       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
                   7525:       ;;
                   7526:     esac
                   7527:   else
                   7528:     lt_cv_deplibs_check_method=pass_all
                   7529:   fi
                   7530:   ;;
                   7531: 
                   7532: haiku*)
                   7533:   lt_cv_deplibs_check_method=pass_all
                   7534:   ;;
                   7535: 
                   7536: hpux10.20* | hpux11*)
                   7537:   lt_cv_file_magic_cmd=/usr/bin/file
                   7538:   case $host_cpu in
                   7539:   ia64*)
                   7540:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
                   7541:     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
                   7542:     ;;
                   7543:   hppa*64*)
                   7544:     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]'
                   7545:     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
                   7546:     ;;
                   7547:   *)
                   7548:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
                   7549:     lt_cv_file_magic_test_file=/usr/lib/libc.sl
                   7550:     ;;
                   7551:   esac
                   7552:   ;;
                   7553: 
                   7554: interix[3-9]*)
                   7555:   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
                   7556:   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
                   7557:   ;;
                   7558: 
                   7559: irix5* | irix6* | nonstopux*)
                   7560:   case $LD in
                   7561:   *-32|*"-32 ") libmagic=32-bit;;
                   7562:   *-n32|*"-n32 ") libmagic=N32;;
                   7563:   *-64|*"-64 ") libmagic=64-bit;;
                   7564:   *) libmagic=never-match;;
                   7565:   esac
                   7566:   lt_cv_deplibs_check_method=pass_all
                   7567:   ;;
                   7568: 
1.1.1.2   misho    7569: # This must be glibc/ELF.
1.1.1.6 ! misho    7570: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.1       misho    7571:   lt_cv_deplibs_check_method=pass_all
                   7572:   ;;
                   7573: 
                   7574: netbsd*)
                   7575:   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
                   7576:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
                   7577:   else
                   7578:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
                   7579:   fi
                   7580:   ;;
                   7581: 
                   7582: newos6*)
                   7583:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
                   7584:   lt_cv_file_magic_cmd=/usr/bin/file
                   7585:   lt_cv_file_magic_test_file=/usr/lib/libnls.so
                   7586:   ;;
                   7587: 
                   7588: *nto* | *qnx*)
                   7589:   lt_cv_deplibs_check_method=pass_all
                   7590:   ;;
                   7591: 
1.1.1.6 ! misho    7592: openbsd* | bitrig*)
        !          7593:   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1.1       misho    7594:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
                   7595:   else
                   7596:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
                   7597:   fi
                   7598:   ;;
                   7599: 
                   7600: osf3* | osf4* | osf5*)
                   7601:   lt_cv_deplibs_check_method=pass_all
                   7602:   ;;
                   7603: 
                   7604: rdos*)
                   7605:   lt_cv_deplibs_check_method=pass_all
                   7606:   ;;
                   7607: 
                   7608: solaris*)
                   7609:   lt_cv_deplibs_check_method=pass_all
                   7610:   ;;
                   7611: 
                   7612: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
                   7613:   lt_cv_deplibs_check_method=pass_all
                   7614:   ;;
                   7615: 
                   7616: sysv4 | sysv4.3*)
                   7617:   case $host_vendor in
                   7618:   motorola)
                   7619:     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]'
                   7620:     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
                   7621:     ;;
                   7622:   ncr)
                   7623:     lt_cv_deplibs_check_method=pass_all
                   7624:     ;;
                   7625:   sequent)
                   7626:     lt_cv_file_magic_cmd='/bin/file'
                   7627:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
                   7628:     ;;
                   7629:   sni)
                   7630:     lt_cv_file_magic_cmd='/bin/file'
                   7631:     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
                   7632:     lt_cv_file_magic_test_file=/lib/libc.so
                   7633:     ;;
                   7634:   siemens)
                   7635:     lt_cv_deplibs_check_method=pass_all
                   7636:     ;;
                   7637:   pc)
                   7638:     lt_cv_deplibs_check_method=pass_all
                   7639:     ;;
                   7640:   esac
                   7641:   ;;
                   7642: 
                   7643: tpf*)
                   7644:   lt_cv_deplibs_check_method=pass_all
                   7645:   ;;
                   7646: esac
                   7647: 
                   7648: fi
                   7649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
                   7650: $as_echo "$lt_cv_deplibs_check_method" >&6; }
                   7651: 
                   7652: file_magic_glob=
                   7653: want_nocaseglob=no
                   7654: if test "$build" = "$host"; then
                   7655:   case $host_os in
                   7656:   mingw* | pw32*)
                   7657:     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
                   7658:       want_nocaseglob=yes
                   7659:     else
                   7660:       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
                   7661:     fi
                   7662:     ;;
                   7663:   esac
                   7664: fi
                   7665: 
                   7666: file_magic_cmd=$lt_cv_file_magic_cmd
                   7667: deplibs_check_method=$lt_cv_deplibs_check_method
                   7668: test -z "$deplibs_check_method" && deplibs_check_method=unknown
                   7669: 
                   7670: 
                   7671: 
                   7672: 
                   7673: 
                   7674: 
                   7675: 
                   7676: 
                   7677: 
                   7678: 
                   7679: 
                   7680: 
                   7681: 
                   7682: 
                   7683: 
                   7684: 
                   7685: 
                   7686: 
                   7687: 
                   7688: 
                   7689: 
                   7690: 
                   7691: if test -n "$ac_tool_prefix"; then
                   7692:   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
                   7693: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
                   7694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7695: $as_echo_n "checking for $ac_word... " >&6; }
                   7696: if ${ac_cv_prog_DLLTOOL+:} false; then :
                   7697:   $as_echo_n "(cached) " >&6
                   7698: else
                   7699:   if test -n "$DLLTOOL"; then
                   7700:   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
                   7701: else
                   7702: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7703: for as_dir in $PATH
                   7704: do
                   7705:   IFS=$as_save_IFS
                   7706:   test -z "$as_dir" && as_dir=.
                   7707:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    7708:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7709:     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
                   7710:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7711:     break 2
                   7712:   fi
                   7713: done
                   7714:   done
                   7715: IFS=$as_save_IFS
                   7716: 
                   7717: fi
                   7718: fi
                   7719: DLLTOOL=$ac_cv_prog_DLLTOOL
                   7720: if test -n "$DLLTOOL"; then
                   7721:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
                   7722: $as_echo "$DLLTOOL" >&6; }
                   7723: else
                   7724:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7725: $as_echo "no" >&6; }
                   7726: fi
                   7727: 
                   7728: 
                   7729: fi
                   7730: if test -z "$ac_cv_prog_DLLTOOL"; then
                   7731:   ac_ct_DLLTOOL=$DLLTOOL
                   7732:   # Extract the first word of "dlltool", so it can be a program name with args.
                   7733: set dummy dlltool; ac_word=$2
                   7734: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7735: $as_echo_n "checking for $ac_word... " >&6; }
                   7736: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
                   7737:   $as_echo_n "(cached) " >&6
                   7738: else
                   7739:   if test -n "$ac_ct_DLLTOOL"; then
                   7740:   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
                   7741: else
                   7742: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7743: for as_dir in $PATH
                   7744: do
                   7745:   IFS=$as_save_IFS
                   7746:   test -z "$as_dir" && as_dir=.
                   7747:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    7748:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7749:     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
                   7750:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7751:     break 2
                   7752:   fi
                   7753: done
                   7754:   done
                   7755: IFS=$as_save_IFS
                   7756: 
                   7757: fi
                   7758: fi
                   7759: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
                   7760: if test -n "$ac_ct_DLLTOOL"; then
                   7761:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
                   7762: $as_echo "$ac_ct_DLLTOOL" >&6; }
                   7763: else
                   7764:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7765: $as_echo "no" >&6; }
                   7766: fi
                   7767: 
                   7768:   if test "x$ac_ct_DLLTOOL" = x; then
                   7769:     DLLTOOL="false"
                   7770:   else
                   7771:     case $cross_compiling:$ac_tool_warned in
                   7772: yes:)
                   7773: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   7774: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   7775: ac_tool_warned=yes ;;
                   7776: esac
                   7777:     DLLTOOL=$ac_ct_DLLTOOL
                   7778:   fi
                   7779: else
                   7780:   DLLTOOL="$ac_cv_prog_DLLTOOL"
                   7781: fi
                   7782: 
                   7783: test -z "$DLLTOOL" && DLLTOOL=dlltool
                   7784: 
                   7785: 
                   7786: 
                   7787: 
                   7788: 
                   7789: 
                   7790: 
                   7791: 
                   7792: 
                   7793: 
                   7794: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
                   7795: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
                   7796: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
                   7797:   $as_echo_n "(cached) " >&6
                   7798: else
                   7799:   lt_cv_sharedlib_from_linklib_cmd='unknown'
                   7800: 
                   7801: case $host_os in
                   7802: cygwin* | mingw* | pw32* | cegcc*)
1.1.1.6 ! misho    7803:   # two different shell functions defined in ltmain.sh;
        !          7804:   # decide which one to use based on capabilities of $DLLTOOL
1.1       misho    7805:   case `$DLLTOOL --help 2>&1` in
                   7806:   *--identify-strict*)
                   7807:     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
                   7808:     ;;
                   7809:   *)
                   7810:     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
                   7811:     ;;
                   7812:   esac
                   7813:   ;;
                   7814: *)
                   7815:   # fallback: assume linklib IS sharedlib
1.1.1.6 ! misho    7816:   lt_cv_sharedlib_from_linklib_cmd=$ECHO
1.1       misho    7817:   ;;
                   7818: esac
                   7819: 
                   7820: fi
                   7821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
                   7822: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
                   7823: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
                   7824: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
                   7825: 
                   7826: 
                   7827: 
                   7828: 
                   7829: 
                   7830: 
                   7831: 
                   7832: if test -n "$ac_tool_prefix"; then
                   7833:   for ac_prog in ar
                   7834:   do
                   7835:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   7836: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   7837: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7838: $as_echo_n "checking for $ac_word... " >&6; }
                   7839: if ${ac_cv_prog_AR+:} false; then :
                   7840:   $as_echo_n "(cached) " >&6
                   7841: else
                   7842:   if test -n "$AR"; then
                   7843:   ac_cv_prog_AR="$AR" # Let the user override the test.
                   7844: else
                   7845: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7846: for as_dir in $PATH
                   7847: do
                   7848:   IFS=$as_save_IFS
                   7849:   test -z "$as_dir" && as_dir=.
                   7850:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    7851:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7852:     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
                   7853:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7854:     break 2
                   7855:   fi
                   7856: done
                   7857:   done
                   7858: IFS=$as_save_IFS
                   7859: 
                   7860: fi
                   7861: fi
                   7862: AR=$ac_cv_prog_AR
                   7863: if test -n "$AR"; then
                   7864:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
                   7865: $as_echo "$AR" >&6; }
                   7866: else
                   7867:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7868: $as_echo "no" >&6; }
                   7869: fi
                   7870: 
                   7871: 
                   7872:     test -n "$AR" && break
                   7873:   done
                   7874: fi
                   7875: if test -z "$AR"; then
                   7876:   ac_ct_AR=$AR
                   7877:   for ac_prog in ar
                   7878: do
                   7879:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   7880: set dummy $ac_prog; ac_word=$2
                   7881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7882: $as_echo_n "checking for $ac_word... " >&6; }
                   7883: if ${ac_cv_prog_ac_ct_AR+:} false; then :
                   7884:   $as_echo_n "(cached) " >&6
                   7885: else
                   7886:   if test -n "$ac_ct_AR"; then
                   7887:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
                   7888: else
                   7889: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7890: for as_dir in $PATH
                   7891: do
                   7892:   IFS=$as_save_IFS
                   7893:   test -z "$as_dir" && as_dir=.
                   7894:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    7895:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7896:     ac_cv_prog_ac_ct_AR="$ac_prog"
                   7897:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7898:     break 2
                   7899:   fi
                   7900: done
                   7901:   done
                   7902: IFS=$as_save_IFS
                   7903: 
                   7904: fi
                   7905: fi
                   7906: ac_ct_AR=$ac_cv_prog_ac_ct_AR
                   7907: if test -n "$ac_ct_AR"; then
                   7908:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
                   7909: $as_echo "$ac_ct_AR" >&6; }
                   7910: else
                   7911:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7912: $as_echo "no" >&6; }
                   7913: fi
                   7914: 
                   7915: 
                   7916:   test -n "$ac_ct_AR" && break
                   7917: done
                   7918: 
                   7919:   if test "x$ac_ct_AR" = x; then
                   7920:     AR="false"
                   7921:   else
                   7922:     case $cross_compiling:$ac_tool_warned in
                   7923: yes:)
                   7924: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   7925: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   7926: ac_tool_warned=yes ;;
                   7927: esac
                   7928:     AR=$ac_ct_AR
                   7929:   fi
                   7930: fi
                   7931: 
                   7932: : ${AR=ar}
                   7933: : ${AR_FLAGS=cru}
                   7934: 
                   7935: 
                   7936: 
                   7937: 
                   7938: 
                   7939: 
                   7940: 
                   7941: 
                   7942: 
                   7943: 
                   7944: 
                   7945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
                   7946: $as_echo_n "checking for archiver @FILE support... " >&6; }
                   7947: if ${lt_cv_ar_at_file+:} false; then :
                   7948:   $as_echo_n "(cached) " >&6
                   7949: else
                   7950:   lt_cv_ar_at_file=no
                   7951:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7952: /* end confdefs.h.  */
                   7953: 
                   7954: int
                   7955: main ()
                   7956: {
                   7957: 
                   7958:   ;
                   7959:   return 0;
                   7960: }
                   7961: _ACEOF
                   7962: if ac_fn_c_try_compile "$LINENO"; then :
                   7963:   echo conftest.$ac_objext > conftest.lst
                   7964:       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
                   7965:       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
                   7966:   (eval $lt_ar_try) 2>&5
                   7967:   ac_status=$?
                   7968:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   7969:   test $ac_status = 0; }
1.1.1.6 ! misho    7970:       if test 0 -eq "$ac_status"; then
1.1       misho    7971:        # Ensure the archiver fails upon bogus file names.
                   7972:        rm -f conftest.$ac_objext libconftest.a
                   7973:        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
                   7974:   (eval $lt_ar_try) 2>&5
                   7975:   ac_status=$?
                   7976:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   7977:   test $ac_status = 0; }
1.1.1.6 ! misho    7978:        if test 0 -ne "$ac_status"; then
1.1       misho    7979:           lt_cv_ar_at_file=@
                   7980:         fi
                   7981:       fi
                   7982:       rm -f conftest.* libconftest.a
                   7983: 
                   7984: fi
                   7985: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7986: 
                   7987: fi
                   7988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
                   7989: $as_echo "$lt_cv_ar_at_file" >&6; }
                   7990: 
1.1.1.6 ! misho    7991: if test no = "$lt_cv_ar_at_file"; then
1.1       misho    7992:   archiver_list_spec=
                   7993: else
                   7994:   archiver_list_spec=$lt_cv_ar_at_file
                   7995: fi
                   7996: 
                   7997: 
                   7998: 
                   7999: 
                   8000: 
                   8001: 
                   8002: 
                   8003: if test -n "$ac_tool_prefix"; then
                   8004:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   8005: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   8006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   8007: $as_echo_n "checking for $ac_word... " >&6; }
                   8008: if ${ac_cv_prog_STRIP+:} false; then :
                   8009:   $as_echo_n "(cached) " >&6
                   8010: else
                   8011:   if test -n "$STRIP"; then
                   8012:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
                   8013: else
                   8014: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8015: for as_dir in $PATH
                   8016: do
                   8017:   IFS=$as_save_IFS
                   8018:   test -z "$as_dir" && as_dir=.
                   8019:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    8020:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    8021:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   8022:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   8023:     break 2
                   8024:   fi
                   8025: done
                   8026:   done
                   8027: IFS=$as_save_IFS
                   8028: 
                   8029: fi
                   8030: fi
                   8031: STRIP=$ac_cv_prog_STRIP
                   8032: if test -n "$STRIP"; then
                   8033:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   8034: $as_echo "$STRIP" >&6; }
                   8035: else
                   8036:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8037: $as_echo "no" >&6; }
                   8038: fi
                   8039: 
                   8040: 
                   8041: fi
                   8042: if test -z "$ac_cv_prog_STRIP"; then
                   8043:   ac_ct_STRIP=$STRIP
                   8044:   # Extract the first word of "strip", so it can be a program name with args.
                   8045: set dummy strip; ac_word=$2
                   8046: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   8047: $as_echo_n "checking for $ac_word... " >&6; }
                   8048: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
                   8049:   $as_echo_n "(cached) " >&6
                   8050: else
                   8051:   if test -n "$ac_ct_STRIP"; then
                   8052:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
                   8053: else
                   8054: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8055: for as_dir in $PATH
                   8056: do
                   8057:   IFS=$as_save_IFS
                   8058:   test -z "$as_dir" && as_dir=.
                   8059:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    8060:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    8061:     ac_cv_prog_ac_ct_STRIP="strip"
                   8062:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   8063:     break 2
                   8064:   fi
                   8065: done
                   8066:   done
                   8067: IFS=$as_save_IFS
                   8068: 
                   8069: fi
                   8070: fi
                   8071: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   8072: if test -n "$ac_ct_STRIP"; then
                   8073:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   8074: $as_echo "$ac_ct_STRIP" >&6; }
                   8075: else
                   8076:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8077: $as_echo "no" >&6; }
                   8078: fi
                   8079: 
                   8080:   if test "x$ac_ct_STRIP" = x; then
                   8081:     STRIP=":"
                   8082:   else
                   8083:     case $cross_compiling:$ac_tool_warned in
                   8084: yes:)
                   8085: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   8086: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   8087: ac_tool_warned=yes ;;
                   8088: esac
                   8089:     STRIP=$ac_ct_STRIP
                   8090:   fi
                   8091: else
                   8092:   STRIP="$ac_cv_prog_STRIP"
                   8093: fi
                   8094: 
                   8095: test -z "$STRIP" && STRIP=:
                   8096: 
                   8097: 
                   8098: 
                   8099: 
                   8100: 
                   8101: 
                   8102: if test -n "$ac_tool_prefix"; then
                   8103:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   8104: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   8105: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   8106: $as_echo_n "checking for $ac_word... " >&6; }
                   8107: if ${ac_cv_prog_RANLIB+:} false; then :
                   8108:   $as_echo_n "(cached) " >&6
                   8109: else
                   8110:   if test -n "$RANLIB"; then
                   8111:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   8112: else
                   8113: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8114: for as_dir in $PATH
                   8115: do
                   8116:   IFS=$as_save_IFS
                   8117:   test -z "$as_dir" && as_dir=.
                   8118:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    8119:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    8120:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   8121:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   8122:     break 2
                   8123:   fi
                   8124: done
                   8125:   done
                   8126: IFS=$as_save_IFS
                   8127: 
                   8128: fi
                   8129: fi
                   8130: RANLIB=$ac_cv_prog_RANLIB
                   8131: if test -n "$RANLIB"; then
                   8132:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   8133: $as_echo "$RANLIB" >&6; }
                   8134: else
                   8135:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8136: $as_echo "no" >&6; }
                   8137: fi
                   8138: 
                   8139: 
                   8140: fi
                   8141: if test -z "$ac_cv_prog_RANLIB"; then
                   8142:   ac_ct_RANLIB=$RANLIB
                   8143:   # Extract the first word of "ranlib", so it can be a program name with args.
                   8144: set dummy ranlib; ac_word=$2
                   8145: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   8146: $as_echo_n "checking for $ac_word... " >&6; }
                   8147: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
                   8148:   $as_echo_n "(cached) " >&6
                   8149: else
                   8150:   if test -n "$ac_ct_RANLIB"; then
                   8151:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   8152: else
                   8153: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8154: for as_dir in $PATH
                   8155: do
                   8156:   IFS=$as_save_IFS
                   8157:   test -z "$as_dir" && as_dir=.
                   8158:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    8159:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    8160:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   8161:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   8162:     break 2
                   8163:   fi
                   8164: done
                   8165:   done
                   8166: IFS=$as_save_IFS
                   8167: 
                   8168: fi
                   8169: fi
                   8170: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   8171: if test -n "$ac_ct_RANLIB"; then
                   8172:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   8173: $as_echo "$ac_ct_RANLIB" >&6; }
                   8174: else
                   8175:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8176: $as_echo "no" >&6; }
                   8177: fi
                   8178: 
                   8179:   if test "x$ac_ct_RANLIB" = x; then
                   8180:     RANLIB=":"
                   8181:   else
                   8182:     case $cross_compiling:$ac_tool_warned in
                   8183: yes:)
                   8184: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   8185: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   8186: ac_tool_warned=yes ;;
                   8187: esac
                   8188:     RANLIB=$ac_ct_RANLIB
                   8189:   fi
                   8190: else
                   8191:   RANLIB="$ac_cv_prog_RANLIB"
                   8192: fi
                   8193: 
                   8194: test -z "$RANLIB" && RANLIB=:
                   8195: 
                   8196: 
                   8197: 
                   8198: 
                   8199: 
                   8200: 
                   8201: # Determine commands to create old-style static archives.
                   8202: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
                   8203: old_postinstall_cmds='chmod 644 $oldlib'
                   8204: old_postuninstall_cmds=
                   8205: 
                   8206: if test -n "$RANLIB"; then
                   8207:   case $host_os in
1.1.1.6 ! misho    8208:   bitrig* | openbsd*)
1.1.1.2   misho    8209:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1       misho    8210:     ;;
                   8211:   *)
1.1.1.2   misho    8212:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1       misho    8213:     ;;
                   8214:   esac
1.1.1.2   misho    8215:   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.1       misho    8216: fi
                   8217: 
                   8218: case $host_os in
                   8219:   darwin*)
                   8220:     lock_old_archive_extraction=yes ;;
                   8221:   *)
                   8222:     lock_old_archive_extraction=no ;;
                   8223: esac
                   8224: 
                   8225: 
                   8226: 
                   8227: 
                   8228: 
                   8229: 
                   8230: 
                   8231: 
                   8232: 
                   8233: 
                   8234: 
                   8235: 
                   8236: 
                   8237: 
                   8238: 
                   8239: 
                   8240: 
                   8241: 
                   8242: 
                   8243: 
                   8244: 
                   8245: for ac_prog in gawk mawk nawk awk
                   8246: do
                   8247:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   8248: set dummy $ac_prog; ac_word=$2
                   8249: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   8250: $as_echo_n "checking for $ac_word... " >&6; }
                   8251: if ${ac_cv_prog_AWK+:} false; then :
                   8252:   $as_echo_n "(cached) " >&6
                   8253: else
                   8254:   if test -n "$AWK"; then
                   8255:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   8256: else
                   8257: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8258: for as_dir in $PATH
                   8259: do
                   8260:   IFS=$as_save_IFS
                   8261:   test -z "$as_dir" && as_dir=.
                   8262:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    8263:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    8264:     ac_cv_prog_AWK="$ac_prog"
                   8265:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   8266:     break 2
                   8267:   fi
                   8268: done
                   8269:   done
                   8270: IFS=$as_save_IFS
                   8271: 
                   8272: fi
                   8273: fi
                   8274: AWK=$ac_cv_prog_AWK
                   8275: if test -n "$AWK"; then
                   8276:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   8277: $as_echo "$AWK" >&6; }
                   8278: else
                   8279:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8280: $as_echo "no" >&6; }
                   8281: fi
                   8282: 
                   8283: 
                   8284:   test -n "$AWK" && break
                   8285: done
                   8286: 
                   8287: 
                   8288: 
                   8289: 
                   8290: 
                   8291: 
                   8292: 
                   8293: 
                   8294: 
                   8295: 
                   8296: 
                   8297: 
                   8298: 
                   8299: 
                   8300: 
                   8301: 
                   8302: 
                   8303: 
                   8304: 
                   8305: # If no C compiler was specified, use CC.
                   8306: LTCC=${LTCC-"$CC"}
                   8307: 
                   8308: # If no C compiler flags were specified, use CFLAGS.
                   8309: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
                   8310: 
                   8311: # Allow CC to be a program name with arguments.
                   8312: compiler=$CC
                   8313: 
                   8314: 
                   8315: # Check for command to grab the raw symbol name followed by C symbol from nm.
                   8316: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
                   8317: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
                   8318: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
                   8319:   $as_echo_n "(cached) " >&6
                   8320: else
                   8321: 
                   8322: # These are sane defaults that work on at least a few old systems.
                   8323: # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
                   8324: 
                   8325: # Character class describing NM global symbol codes.
                   8326: symcode='[BCDEGRST]'
                   8327: 
                   8328: # Regexp to match symbols that can be accessed directly from C.
                   8329: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
                   8330: 
                   8331: # Define system-specific variables.
                   8332: case $host_os in
                   8333: aix*)
                   8334:   symcode='[BCDT]'
                   8335:   ;;
                   8336: cygwin* | mingw* | pw32* | cegcc*)
                   8337:   symcode='[ABCDGISTW]'
                   8338:   ;;
                   8339: hpux*)
1.1.1.6 ! misho    8340:   if test ia64 = "$host_cpu"; then
1.1       misho    8341:     symcode='[ABCDEGRST]'
                   8342:   fi
                   8343:   ;;
                   8344: irix* | nonstopux*)
                   8345:   symcode='[BCDEGRST]'
                   8346:   ;;
                   8347: osf*)
                   8348:   symcode='[BCDEGQRST]'
                   8349:   ;;
                   8350: solaris*)
                   8351:   symcode='[BDRT]'
                   8352:   ;;
                   8353: sco3.2v5*)
                   8354:   symcode='[DT]'
                   8355:   ;;
                   8356: sysv4.2uw2*)
                   8357:   symcode='[DT]'
                   8358:   ;;
                   8359: sysv5* | sco5v6* | unixware* | OpenUNIX*)
                   8360:   symcode='[ABDT]'
                   8361:   ;;
                   8362: sysv4)
                   8363:   symcode='[DFNSTU]'
                   8364:   ;;
                   8365: esac
                   8366: 
                   8367: # If we're using GNU nm, then use its standard symbol codes.
                   8368: case `$NM -V 2>&1` in
                   8369: *GNU* | *'with BFD'*)
                   8370:   symcode='[ABCDGIRSTW]' ;;
                   8371: esac
                   8372: 
1.1.1.6 ! misho    8373: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
        !          8374:   # Gets list of data symbols to import.
        !          8375:   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
        !          8376:   # Adjust the below global symbol transforms to fixup imported variables.
        !          8377:   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
        !          8378:   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
        !          8379:   lt_c_name_lib_hook="\
        !          8380:   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
        !          8381:   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
        !          8382: else
        !          8383:   # Disable hooks by default.
        !          8384:   lt_cv_sys_global_symbol_to_import=
        !          8385:   lt_cdecl_hook=
        !          8386:   lt_c_name_hook=
        !          8387:   lt_c_name_lib_hook=
        !          8388: fi
        !          8389: 
1.1       misho    8390: # Transform an extracted symbol line into a proper C declaration.
                   8391: # Some systems (esp. on ia64) link data and code symbols differently,
                   8392: # so use this general approach.
1.1.1.6 ! misho    8393: lt_cv_sys_global_symbol_to_cdecl="sed -n"\
        !          8394: $lt_cdecl_hook\
        !          8395: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
        !          8396: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
1.1       misho    8397: 
                   8398: # Transform an extracted symbol line into symbol name and symbol address
1.1.1.6 ! misho    8399: lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
        !          8400: $lt_c_name_hook\
        !          8401: " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
        !          8402: " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
        !          8403: 
        !          8404: # Transform an extracted symbol line into symbol name with lib prefix and
        !          8405: # symbol address.
        !          8406: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
        !          8407: $lt_c_name_lib_hook\
        !          8408: " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
        !          8409: " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
        !          8410: " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
1.1       misho    8411: 
                   8412: # Handle CRLF in mingw tool chain
                   8413: opt_cr=
                   8414: case $build_os in
                   8415: mingw*)
                   8416:   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
                   8417:   ;;
                   8418: esac
                   8419: 
                   8420: # Try without a prefix underscore, then with it.
                   8421: for ac_symprfx in "" "_"; do
                   8422: 
                   8423:   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
                   8424:   symxfrm="\\1 $ac_symprfx\\2 \\2"
                   8425: 
                   8426:   # Write the raw and C identifiers.
                   8427:   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
1.1.1.6 ! misho    8428:     # Fake it for dumpbin and say T for any non-static function,
        !          8429:     # D for any global variable and I for any imported variable.
1.1       misho    8430:     # Also find C++ and __fastcall symbols from MSVC++,
                   8431:     # which start with @ or ?.
                   8432:     lt_cv_sys_global_symbol_pipe="$AWK '"\
                   8433: "     {last_section=section; section=\$ 3};"\
1.1.1.2   misho    8434: "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
1.1       misho    8435: "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
1.1.1.6 ! misho    8436: "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
        !          8437: "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
        !          8438: "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
1.1       misho    8439: "     \$ 0!~/External *\|/{next};"\
                   8440: "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
                   8441: "     {if(hide[section]) next};"\
1.1.1.6 ! misho    8442: "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
        !          8443: "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
        !          8444: "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
        !          8445: "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
1.1       misho    8446: "     ' prfx=^$ac_symprfx"
                   8447:   else
                   8448:     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[     ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
                   8449:   fi
                   8450:   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
                   8451: 
                   8452:   # Check to see that the pipe works correctly.
                   8453:   pipe_works=no
                   8454: 
                   8455:   rm -f conftest*
                   8456:   cat > conftest.$ac_ext <<_LT_EOF
                   8457: #ifdef __cplusplus
                   8458: extern "C" {
                   8459: #endif
                   8460: char nm_test_var;
                   8461: void nm_test_func(void);
                   8462: void nm_test_func(void){}
                   8463: #ifdef __cplusplus
                   8464: }
                   8465: #endif
                   8466: int main(){nm_test_var='a';nm_test_func();return(0);}
                   8467: _LT_EOF
                   8468: 
                   8469:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   8470:   (eval $ac_compile) 2>&5
                   8471:   ac_status=$?
                   8472:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   8473:   test $ac_status = 0; }; then
                   8474:     # Now try to grab the symbols.
                   8475:     nlist=conftest.nm
                   8476:     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
                   8477:   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
                   8478:   ac_status=$?
                   8479:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   8480:   test $ac_status = 0; } && test -s "$nlist"; then
                   8481:       # Try sorting and uniquifying the output.
                   8482:       if sort "$nlist" | uniq > "$nlist"T; then
                   8483:        mv -f "$nlist"T "$nlist"
                   8484:       else
                   8485:        rm -f "$nlist"T
                   8486:       fi
                   8487: 
                   8488:       # Make sure that we snagged all the symbols we need.
                   8489:       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
                   8490:        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
                   8491:          cat <<_LT_EOF > conftest.$ac_ext
                   8492: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
1.1.1.6 ! misho    8493: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
        !          8494: /* DATA imports from DLLs on WIN32 can't be const, because runtime
1.1       misho    8495:    relocations are performed -- see ld's documentation on pseudo-relocs.  */
                   8496: # define LT_DLSYM_CONST
1.1.1.6 ! misho    8497: #elif defined __osf__
1.1       misho    8498: /* This system does not cope well with relocations in const data.  */
                   8499: # define LT_DLSYM_CONST
                   8500: #else
                   8501: # define LT_DLSYM_CONST const
                   8502: #endif
                   8503: 
                   8504: #ifdef __cplusplus
                   8505: extern "C" {
                   8506: #endif
                   8507: 
                   8508: _LT_EOF
                   8509:          # Now generate the symbol file.
                   8510:          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
                   8511: 
                   8512:          cat <<_LT_EOF >> conftest.$ac_ext
                   8513: 
                   8514: /* The mapping between symbol names and symbols.  */
                   8515: LT_DLSYM_CONST struct {
                   8516:   const char *name;
                   8517:   void       *address;
                   8518: }
                   8519: lt__PROGRAM__LTX_preloaded_symbols[] =
                   8520: {
                   8521:   { "@PROGRAM@", (void *) 0 },
                   8522: _LT_EOF
1.1.1.6 ! misho    8523:          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
1.1       misho    8524:          cat <<\_LT_EOF >> conftest.$ac_ext
                   8525:   {0, (void *) 0}
                   8526: };
                   8527: 
                   8528: /* This works around a problem in FreeBSD linker */
                   8529: #ifdef FREEBSD_WORKAROUND
                   8530: static const void *lt_preloaded_setup() {
                   8531:   return lt__PROGRAM__LTX_preloaded_symbols;
                   8532: }
                   8533: #endif
                   8534: 
                   8535: #ifdef __cplusplus
                   8536: }
                   8537: #endif
                   8538: _LT_EOF
                   8539:          # Now try linking the two files.
                   8540:          mv conftest.$ac_objext conftstm.$ac_objext
                   8541:          lt_globsym_save_LIBS=$LIBS
                   8542:          lt_globsym_save_CFLAGS=$CFLAGS
1.1.1.6 ! misho    8543:          LIBS=conftstm.$ac_objext
1.1       misho    8544:          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
                   8545:          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   8546:   (eval $ac_link) 2>&5
                   8547:   ac_status=$?
                   8548:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1.1.6 ! misho    8549:   test $ac_status = 0; } && test -s conftest$ac_exeext; then
1.1       misho    8550:            pipe_works=yes
                   8551:          fi
                   8552:          LIBS=$lt_globsym_save_LIBS
                   8553:          CFLAGS=$lt_globsym_save_CFLAGS
                   8554:        else
                   8555:          echo "cannot find nm_test_func in $nlist" >&5
                   8556:        fi
                   8557:       else
                   8558:        echo "cannot find nm_test_var in $nlist" >&5
                   8559:       fi
                   8560:     else
                   8561:       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
                   8562:     fi
                   8563:   else
                   8564:     echo "$progname: failed program was:" >&5
                   8565:     cat conftest.$ac_ext >&5
                   8566:   fi
                   8567:   rm -rf conftest* conftst*
                   8568: 
                   8569:   # Do not use the global_symbol_pipe unless it works.
1.1.1.6 ! misho    8570:   if test yes = "$pipe_works"; then
1.1       misho    8571:     break
                   8572:   else
                   8573:     lt_cv_sys_global_symbol_pipe=
                   8574:   fi
                   8575: done
                   8576: 
                   8577: fi
                   8578: 
                   8579: if test -z "$lt_cv_sys_global_symbol_pipe"; then
                   8580:   lt_cv_sys_global_symbol_to_cdecl=
                   8581: fi
                   8582: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
                   8583:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
                   8584: $as_echo "failed" >&6; }
                   8585: else
                   8586:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
                   8587: $as_echo "ok" >&6; }
                   8588: fi
                   8589: 
                   8590: # Response file support.
                   8591: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
                   8592:   nm_file_list_spec='@'
                   8593: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
                   8594:   nm_file_list_spec='@'
                   8595: fi
                   8596: 
                   8597: 
                   8598: 
                   8599: 
                   8600: 
                   8601: 
                   8602: 
                   8603: 
                   8604: 
                   8605: 
                   8606: 
                   8607: 
                   8608: 
                   8609: 
                   8610: 
                   8611: 
                   8612: 
                   8613: 
                   8614: 
                   8615: 
                   8616: 
                   8617: 
                   8618: 
                   8619: 
                   8620: 
                   8621: 
                   8622: 
1.1.1.6 ! misho    8623: 
        !          8624: 
        !          8625: 
        !          8626: 
        !          8627: 
        !          8628: 
        !          8629: 
        !          8630: 
        !          8631: 
        !          8632: 
1.1       misho    8633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
                   8634: $as_echo_n "checking for sysroot... " >&6; }
                   8635: 
                   8636: # Check whether --with-sysroot was given.
                   8637: if test "${with_sysroot+set}" = set; then :
                   8638:   withval=$with_sysroot;
                   8639: else
                   8640:   with_sysroot=no
                   8641: fi
                   8642: 
                   8643: 
                   8644: lt_sysroot=
1.1.1.6 ! misho    8645: case $with_sysroot in #(
1.1       misho    8646:  yes)
1.1.1.6 ! misho    8647:    if test yes = "$GCC"; then
1.1       misho    8648:      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
                   8649:    fi
                   8650:    ;; #(
                   8651:  /*)
                   8652:    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
                   8653:    ;; #(
                   8654:  no|'')
                   8655:    ;; #(
                   8656:  *)
1.1.1.6 ! misho    8657:    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
        !          8658: $as_echo "$with_sysroot" >&6; }
1.1       misho    8659:    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
                   8660:    ;;
                   8661: esac
                   8662: 
                   8663:  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
                   8664: $as_echo "${lt_sysroot:-no}" >&6; }
                   8665: 
                   8666: 
                   8667: 
                   8668: 
                   8669: 
                   8670: # Check whether --enable-libtool-lock was given.
                   8671: if test "${enable_libtool_lock+set}" = set; then :
                   8672:   enableval=$enable_libtool_lock;
                   8673: fi
                   8674: 
1.1.1.6 ! misho    8675: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1.1       misho    8676: 
                   8677: # Some flags need to be propagated to the compiler or linker for good
                   8678: # libtool support.
                   8679: case $host in
                   8680: ia64-*-hpux*)
1.1.1.6 ! misho    8681:   # Find out what ABI is being produced by ac_compile, and set mode
        !          8682:   # options accordingly.
1.1       misho    8683:   echo 'int i;' > conftest.$ac_ext
                   8684:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   8685:   (eval $ac_compile) 2>&5
                   8686:   ac_status=$?
                   8687:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   8688:   test $ac_status = 0; }; then
                   8689:     case `/usr/bin/file conftest.$ac_objext` in
                   8690:       *ELF-32*)
1.1.1.6 ! misho    8691:        HPUX_IA64_MODE=32
1.1       misho    8692:        ;;
                   8693:       *ELF-64*)
1.1.1.6 ! misho    8694:        HPUX_IA64_MODE=64
1.1       misho    8695:        ;;
                   8696:     esac
                   8697:   fi
                   8698:   rm -rf conftest*
                   8699:   ;;
                   8700: *-*-irix6*)
1.1.1.6 ! misho    8701:   # Find out what ABI is being produced by ac_compile, and set linker
        !          8702:   # options accordingly.
1.1       misho    8703:   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
                   8704:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   8705:   (eval $ac_compile) 2>&5
                   8706:   ac_status=$?
                   8707:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   8708:   test $ac_status = 0; }; then
1.1.1.6 ! misho    8709:     if test yes = "$lt_cv_prog_gnu_ld"; then
1.1       misho    8710:       case `/usr/bin/file conftest.$ac_objext` in
                   8711:        *32-bit*)
                   8712:          LD="${LD-ld} -melf32bsmip"
                   8713:          ;;
                   8714:        *N32*)
                   8715:          LD="${LD-ld} -melf32bmipn32"
                   8716:          ;;
                   8717:        *64-bit*)
                   8718:          LD="${LD-ld} -melf64bmip"
                   8719:        ;;
                   8720:       esac
                   8721:     else
                   8722:       case `/usr/bin/file conftest.$ac_objext` in
                   8723:        *32-bit*)
                   8724:          LD="${LD-ld} -32"
                   8725:          ;;
                   8726:        *N32*)
                   8727:          LD="${LD-ld} -n32"
                   8728:          ;;
                   8729:        *64-bit*)
                   8730:          LD="${LD-ld} -64"
                   8731:          ;;
                   8732:       esac
                   8733:     fi
                   8734:   fi
                   8735:   rm -rf conftest*
                   8736:   ;;
                   8737: 
1.1.1.6 ! misho    8738: mips64*-*linux*)
        !          8739:   # Find out what ABI is being produced by ac_compile, and set linker
        !          8740:   # options accordingly.
        !          8741:   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
        !          8742:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
        !          8743:   (eval $ac_compile) 2>&5
        !          8744:   ac_status=$?
        !          8745:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
        !          8746:   test $ac_status = 0; }; then
        !          8747:     emul=elf
        !          8748:     case `/usr/bin/file conftest.$ac_objext` in
        !          8749:       *32-bit*)
        !          8750:        emul="${emul}32"
        !          8751:        ;;
        !          8752:       *64-bit*)
        !          8753:        emul="${emul}64"
        !          8754:        ;;
        !          8755:     esac
        !          8756:     case `/usr/bin/file conftest.$ac_objext` in
        !          8757:       *MSB*)
        !          8758:        emul="${emul}btsmip"
        !          8759:        ;;
        !          8760:       *LSB*)
        !          8761:        emul="${emul}ltsmip"
        !          8762:        ;;
        !          8763:     esac
        !          8764:     case `/usr/bin/file conftest.$ac_objext` in
        !          8765:       *N32*)
        !          8766:        emul="${emul}n32"
        !          8767:        ;;
        !          8768:     esac
        !          8769:     LD="${LD-ld} -m $emul"
        !          8770:   fi
        !          8771:   rm -rf conftest*
        !          8772:   ;;
        !          8773: 
        !          8774: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1.1       misho    8775: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1.1.1.6 ! misho    8776:   # Find out what ABI is being produced by ac_compile, and set linker
        !          8777:   # options accordingly.  Note that the listed cases only cover the
        !          8778:   # situations where additional linker options are needed (such as when
        !          8779:   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
        !          8780:   # vice versa); the common cases where no linker options are needed do
        !          8781:   # not appear in the list.
1.1       misho    8782:   echo 'int i;' > conftest.$ac_ext
                   8783:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   8784:   (eval $ac_compile) 2>&5
                   8785:   ac_status=$?
                   8786:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   8787:   test $ac_status = 0; }; then
                   8788:     case `/usr/bin/file conftest.o` in
                   8789:       *32-bit*)
                   8790:        case $host in
                   8791:          x86_64-*kfreebsd*-gnu)
                   8792:            LD="${LD-ld} -m elf_i386_fbsd"
                   8793:            ;;
                   8794:          x86_64-*linux*)
1.1.1.6 ! misho    8795:            case `/usr/bin/file conftest.o` in
        !          8796:              *x86-64*)
        !          8797:                LD="${LD-ld} -m elf32_x86_64"
        !          8798:                ;;
        !          8799:              *)
        !          8800:                LD="${LD-ld} -m elf_i386"
        !          8801:                ;;
        !          8802:            esac
        !          8803:            ;;
        !          8804:          powerpc64le-*linux*)
        !          8805:            LD="${LD-ld} -m elf32lppclinux"
1.1       misho    8806:            ;;
1.1.1.6 ! misho    8807:          powerpc64-*linux*)
1.1       misho    8808:            LD="${LD-ld} -m elf32ppclinux"
                   8809:            ;;
                   8810:          s390x-*linux*)
                   8811:            LD="${LD-ld} -m elf_s390"
                   8812:            ;;
                   8813:          sparc64-*linux*)
                   8814:            LD="${LD-ld} -m elf32_sparc"
                   8815:            ;;
                   8816:        esac
                   8817:        ;;
                   8818:       *64-bit*)
                   8819:        case $host in
                   8820:          x86_64-*kfreebsd*-gnu)
                   8821:            LD="${LD-ld} -m elf_x86_64_fbsd"
                   8822:            ;;
                   8823:          x86_64-*linux*)
                   8824:            LD="${LD-ld} -m elf_x86_64"
                   8825:            ;;
1.1.1.6 ! misho    8826:          powerpcle-*linux*)
        !          8827:            LD="${LD-ld} -m elf64lppc"
        !          8828:            ;;
        !          8829:          powerpc-*linux*)
1.1       misho    8830:            LD="${LD-ld} -m elf64ppc"
                   8831:            ;;
                   8832:          s390*-*linux*|s390*-*tpf*)
                   8833:            LD="${LD-ld} -m elf64_s390"
                   8834:            ;;
                   8835:          sparc*-*linux*)
                   8836:            LD="${LD-ld} -m elf64_sparc"
                   8837:            ;;
                   8838:        esac
                   8839:        ;;
                   8840:     esac
                   8841:   fi
                   8842:   rm -rf conftest*
                   8843:   ;;
                   8844: 
                   8845: *-*-sco3.2v5*)
                   8846:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1.1.1.6 ! misho    8847:   SAVE_CFLAGS=$CFLAGS
1.1       misho    8848:   CFLAGS="$CFLAGS -belf"
                   8849:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
                   8850: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
                   8851: if ${lt_cv_cc_needs_belf+:} false; then :
                   8852:   $as_echo_n "(cached) " >&6
                   8853: else
                   8854:   ac_ext=c
                   8855: ac_cpp='$CPP $CPPFLAGS'
                   8856: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   8857: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   8858: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   8859: 
                   8860:      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8861: /* end confdefs.h.  */
                   8862: 
                   8863: int
                   8864: main ()
                   8865: {
                   8866: 
                   8867:   ;
                   8868:   return 0;
                   8869: }
                   8870: _ACEOF
                   8871: if ac_fn_c_try_link "$LINENO"; then :
                   8872:   lt_cv_cc_needs_belf=yes
                   8873: else
                   8874:   lt_cv_cc_needs_belf=no
                   8875: fi
                   8876: rm -f core conftest.err conftest.$ac_objext \
                   8877:     conftest$ac_exeext conftest.$ac_ext
                   8878:      ac_ext=c
                   8879: ac_cpp='$CPP $CPPFLAGS'
                   8880: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   8881: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   8882: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   8883: 
                   8884: fi
                   8885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
                   8886: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.1.1.6 ! misho    8887:   if test yes != "$lt_cv_cc_needs_belf"; then
1.1       misho    8888:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1.1.1.6 ! misho    8889:     CFLAGS=$SAVE_CFLAGS
1.1       misho    8890:   fi
                   8891:   ;;
1.1.1.2   misho    8892: *-*solaris*)
1.1.1.6 ! misho    8893:   # Find out what ABI is being produced by ac_compile, and set linker
        !          8894:   # options accordingly.
1.1       misho    8895:   echo 'int i;' > conftest.$ac_ext
                   8896:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   8897:   (eval $ac_compile) 2>&5
                   8898:   ac_status=$?
                   8899:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   8900:   test $ac_status = 0; }; then
                   8901:     case `/usr/bin/file conftest.o` in
                   8902:     *64-bit*)
                   8903:       case $lt_cv_prog_gnu_ld in
1.1.1.2   misho    8904:       yes*)
                   8905:         case $host in
1.1.1.6 ! misho    8906:         i?86-*-solaris*|x86_64-*-solaris*)
1.1.1.2   misho    8907:           LD="${LD-ld} -m elf_x86_64"
                   8908:           ;;
                   8909:         sparc*-*-solaris*)
                   8910:           LD="${LD-ld} -m elf64_sparc"
                   8911:           ;;
                   8912:         esac
                   8913:         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
                   8914:         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1.1.1.6 ! misho    8915:           LD=${LD-ld}_sol2
1.1.1.2   misho    8916:         fi
                   8917:         ;;
1.1       misho    8918:       *)
                   8919:        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
                   8920:          LD="${LD-ld} -64"
                   8921:        fi
                   8922:        ;;
                   8923:       esac
                   8924:       ;;
                   8925:     esac
                   8926:   fi
                   8927:   rm -rf conftest*
                   8928:   ;;
                   8929: esac
                   8930: 
1.1.1.6 ! misho    8931: need_locks=$enable_libtool_lock
1.1       misho    8932: 
                   8933: if test -n "$ac_tool_prefix"; then
                   8934:   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
                   8935: set dummy ${ac_tool_prefix}mt; ac_word=$2
                   8936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   8937: $as_echo_n "checking for $ac_word... " >&6; }
                   8938: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
                   8939:   $as_echo_n "(cached) " >&6
                   8940: else
                   8941:   if test -n "$MANIFEST_TOOL"; then
                   8942:   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
                   8943: else
                   8944: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8945: for as_dir in $PATH
                   8946: do
                   8947:   IFS=$as_save_IFS
                   8948:   test -z "$as_dir" && as_dir=.
                   8949:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    8950:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    8951:     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
                   8952:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   8953:     break 2
                   8954:   fi
                   8955: done
                   8956:   done
                   8957: IFS=$as_save_IFS
                   8958: 
                   8959: fi
                   8960: fi
                   8961: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
                   8962: if test -n "$MANIFEST_TOOL"; then
                   8963:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
                   8964: $as_echo "$MANIFEST_TOOL" >&6; }
                   8965: else
                   8966:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8967: $as_echo "no" >&6; }
                   8968: fi
                   8969: 
                   8970: 
                   8971: fi
                   8972: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
                   8973:   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
                   8974:   # Extract the first word of "mt", so it can be a program name with args.
                   8975: set dummy mt; ac_word=$2
                   8976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   8977: $as_echo_n "checking for $ac_word... " >&6; }
                   8978: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
                   8979:   $as_echo_n "(cached) " >&6
                   8980: else
                   8981:   if test -n "$ac_ct_MANIFEST_TOOL"; then
                   8982:   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
                   8983: else
                   8984: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8985: for as_dir in $PATH
                   8986: do
                   8987:   IFS=$as_save_IFS
                   8988:   test -z "$as_dir" && as_dir=.
                   8989:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    8990:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    8991:     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
                   8992:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   8993:     break 2
                   8994:   fi
                   8995: done
                   8996:   done
                   8997: IFS=$as_save_IFS
                   8998: 
                   8999: fi
                   9000: fi
                   9001: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
                   9002: if test -n "$ac_ct_MANIFEST_TOOL"; then
                   9003:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
                   9004: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
                   9005: else
                   9006:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9007: $as_echo "no" >&6; }
                   9008: fi
                   9009: 
                   9010:   if test "x$ac_ct_MANIFEST_TOOL" = x; then
                   9011:     MANIFEST_TOOL=":"
                   9012:   else
                   9013:     case $cross_compiling:$ac_tool_warned in
                   9014: yes:)
                   9015: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   9016: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   9017: ac_tool_warned=yes ;;
                   9018: esac
                   9019:     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
                   9020:   fi
                   9021: else
                   9022:   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
                   9023: fi
                   9024: 
                   9025: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
                   9026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
                   9027: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
                   9028: if ${lt_cv_path_mainfest_tool+:} false; then :
                   9029:   $as_echo_n "(cached) " >&6
                   9030: else
                   9031:   lt_cv_path_mainfest_tool=no
                   9032:   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
                   9033:   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
                   9034:   cat conftest.err >&5
                   9035:   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
                   9036:     lt_cv_path_mainfest_tool=yes
                   9037:   fi
                   9038:   rm -f conftest*
                   9039: fi
                   9040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
                   9041: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.1.1.6 ! misho    9042: if test yes != "$lt_cv_path_mainfest_tool"; then
1.1       misho    9043:   MANIFEST_TOOL=:
                   9044: fi
                   9045: 
                   9046: 
                   9047: 
                   9048: 
                   9049: 
                   9050: 
                   9051:   case $host_os in
                   9052:     rhapsody* | darwin*)
                   9053:     if test -n "$ac_tool_prefix"; then
                   9054:   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
                   9055: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
                   9056: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   9057: $as_echo_n "checking for $ac_word... " >&6; }
                   9058: if ${ac_cv_prog_DSYMUTIL+:} false; then :
                   9059:   $as_echo_n "(cached) " >&6
                   9060: else
                   9061:   if test -n "$DSYMUTIL"; then
                   9062:   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
                   9063: else
                   9064: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9065: for as_dir in $PATH
                   9066: do
                   9067:   IFS=$as_save_IFS
                   9068:   test -z "$as_dir" && as_dir=.
                   9069:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    9070:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    9071:     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
                   9072:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   9073:     break 2
                   9074:   fi
                   9075: done
                   9076:   done
                   9077: IFS=$as_save_IFS
                   9078: 
                   9079: fi
                   9080: fi
                   9081: DSYMUTIL=$ac_cv_prog_DSYMUTIL
                   9082: if test -n "$DSYMUTIL"; then
                   9083:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
                   9084: $as_echo "$DSYMUTIL" >&6; }
                   9085: else
                   9086:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9087: $as_echo "no" >&6; }
                   9088: fi
                   9089: 
                   9090: 
                   9091: fi
                   9092: if test -z "$ac_cv_prog_DSYMUTIL"; then
                   9093:   ac_ct_DSYMUTIL=$DSYMUTIL
                   9094:   # Extract the first word of "dsymutil", so it can be a program name with args.
                   9095: set dummy dsymutil; ac_word=$2
                   9096: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   9097: $as_echo_n "checking for $ac_word... " >&6; }
                   9098: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
                   9099:   $as_echo_n "(cached) " >&6
                   9100: else
                   9101:   if test -n "$ac_ct_DSYMUTIL"; then
                   9102:   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
                   9103: else
                   9104: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9105: for as_dir in $PATH
                   9106: do
                   9107:   IFS=$as_save_IFS
                   9108:   test -z "$as_dir" && as_dir=.
                   9109:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    9110:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    9111:     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
                   9112:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   9113:     break 2
                   9114:   fi
                   9115: done
                   9116:   done
                   9117: IFS=$as_save_IFS
                   9118: 
                   9119: fi
                   9120: fi
                   9121: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
                   9122: if test -n "$ac_ct_DSYMUTIL"; then
                   9123:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
                   9124: $as_echo "$ac_ct_DSYMUTIL" >&6; }
                   9125: else
                   9126:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9127: $as_echo "no" >&6; }
                   9128: fi
                   9129: 
                   9130:   if test "x$ac_ct_DSYMUTIL" = x; then
                   9131:     DSYMUTIL=":"
                   9132:   else
                   9133:     case $cross_compiling:$ac_tool_warned in
                   9134: yes:)
                   9135: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   9136: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   9137: ac_tool_warned=yes ;;
                   9138: esac
                   9139:     DSYMUTIL=$ac_ct_DSYMUTIL
                   9140:   fi
                   9141: else
                   9142:   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
                   9143: fi
                   9144: 
                   9145:     if test -n "$ac_tool_prefix"; then
                   9146:   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
                   9147: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
                   9148: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   9149: $as_echo_n "checking for $ac_word... " >&6; }
                   9150: if ${ac_cv_prog_NMEDIT+:} false; then :
                   9151:   $as_echo_n "(cached) " >&6
                   9152: else
                   9153:   if test -n "$NMEDIT"; then
                   9154:   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
                   9155: else
                   9156: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9157: for as_dir in $PATH
                   9158: do
                   9159:   IFS=$as_save_IFS
                   9160:   test -z "$as_dir" && as_dir=.
                   9161:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    9162:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    9163:     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
                   9164:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   9165:     break 2
                   9166:   fi
                   9167: done
                   9168:   done
                   9169: IFS=$as_save_IFS
                   9170: 
                   9171: fi
                   9172: fi
                   9173: NMEDIT=$ac_cv_prog_NMEDIT
                   9174: if test -n "$NMEDIT"; then
                   9175:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
                   9176: $as_echo "$NMEDIT" >&6; }
                   9177: else
                   9178:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9179: $as_echo "no" >&6; }
                   9180: fi
                   9181: 
                   9182: 
                   9183: fi
                   9184: if test -z "$ac_cv_prog_NMEDIT"; then
                   9185:   ac_ct_NMEDIT=$NMEDIT
                   9186:   # Extract the first word of "nmedit", so it can be a program name with args.
                   9187: set dummy nmedit; ac_word=$2
                   9188: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   9189: $as_echo_n "checking for $ac_word... " >&6; }
                   9190: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
                   9191:   $as_echo_n "(cached) " >&6
                   9192: else
                   9193:   if test -n "$ac_ct_NMEDIT"; then
                   9194:   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
                   9195: else
                   9196: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9197: for as_dir in $PATH
                   9198: do
                   9199:   IFS=$as_save_IFS
                   9200:   test -z "$as_dir" && as_dir=.
                   9201:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    9202:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    9203:     ac_cv_prog_ac_ct_NMEDIT="nmedit"
                   9204:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   9205:     break 2
                   9206:   fi
                   9207: done
                   9208:   done
                   9209: IFS=$as_save_IFS
                   9210: 
                   9211: fi
                   9212: fi
                   9213: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
                   9214: if test -n "$ac_ct_NMEDIT"; then
                   9215:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
                   9216: $as_echo "$ac_ct_NMEDIT" >&6; }
                   9217: else
                   9218:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9219: $as_echo "no" >&6; }
                   9220: fi
                   9221: 
                   9222:   if test "x$ac_ct_NMEDIT" = x; then
                   9223:     NMEDIT=":"
                   9224:   else
                   9225:     case $cross_compiling:$ac_tool_warned in
                   9226: yes:)
                   9227: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   9228: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   9229: ac_tool_warned=yes ;;
                   9230: esac
                   9231:     NMEDIT=$ac_ct_NMEDIT
                   9232:   fi
                   9233: else
                   9234:   NMEDIT="$ac_cv_prog_NMEDIT"
                   9235: fi
                   9236: 
                   9237:     if test -n "$ac_tool_prefix"; then
                   9238:   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
                   9239: set dummy ${ac_tool_prefix}lipo; ac_word=$2
                   9240: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   9241: $as_echo_n "checking for $ac_word... " >&6; }
                   9242: if ${ac_cv_prog_LIPO+:} false; then :
                   9243:   $as_echo_n "(cached) " >&6
                   9244: else
                   9245:   if test -n "$LIPO"; then
                   9246:   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
                   9247: else
                   9248: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9249: for as_dir in $PATH
                   9250: do
                   9251:   IFS=$as_save_IFS
                   9252:   test -z "$as_dir" && as_dir=.
                   9253:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    9254:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    9255:     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
                   9256:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   9257:     break 2
                   9258:   fi
                   9259: done
                   9260:   done
                   9261: IFS=$as_save_IFS
                   9262: 
                   9263: fi
                   9264: fi
                   9265: LIPO=$ac_cv_prog_LIPO
                   9266: if test -n "$LIPO"; then
                   9267:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
                   9268: $as_echo "$LIPO" >&6; }
                   9269: else
                   9270:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9271: $as_echo "no" >&6; }
                   9272: fi
                   9273: 
                   9274: 
                   9275: fi
                   9276: if test -z "$ac_cv_prog_LIPO"; then
                   9277:   ac_ct_LIPO=$LIPO
                   9278:   # Extract the first word of "lipo", so it can be a program name with args.
                   9279: set dummy lipo; ac_word=$2
                   9280: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   9281: $as_echo_n "checking for $ac_word... " >&6; }
                   9282: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
                   9283:   $as_echo_n "(cached) " >&6
                   9284: else
                   9285:   if test -n "$ac_ct_LIPO"; then
                   9286:   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
                   9287: else
                   9288: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9289: for as_dir in $PATH
                   9290: do
                   9291:   IFS=$as_save_IFS
                   9292:   test -z "$as_dir" && as_dir=.
                   9293:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    9294:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    9295:     ac_cv_prog_ac_ct_LIPO="lipo"
                   9296:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   9297:     break 2
                   9298:   fi
                   9299: done
                   9300:   done
                   9301: IFS=$as_save_IFS
                   9302: 
                   9303: fi
                   9304: fi
                   9305: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
                   9306: if test -n "$ac_ct_LIPO"; then
                   9307:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
                   9308: $as_echo "$ac_ct_LIPO" >&6; }
                   9309: else
                   9310:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9311: $as_echo "no" >&6; }
                   9312: fi
                   9313: 
                   9314:   if test "x$ac_ct_LIPO" = x; then
                   9315:     LIPO=":"
                   9316:   else
                   9317:     case $cross_compiling:$ac_tool_warned in
                   9318: yes:)
                   9319: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   9320: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   9321: ac_tool_warned=yes ;;
                   9322: esac
                   9323:     LIPO=$ac_ct_LIPO
                   9324:   fi
                   9325: else
                   9326:   LIPO="$ac_cv_prog_LIPO"
                   9327: fi
                   9328: 
                   9329:     if test -n "$ac_tool_prefix"; then
                   9330:   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
                   9331: set dummy ${ac_tool_prefix}otool; ac_word=$2
                   9332: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   9333: $as_echo_n "checking for $ac_word... " >&6; }
                   9334: if ${ac_cv_prog_OTOOL+:} false; then :
                   9335:   $as_echo_n "(cached) " >&6
                   9336: else
                   9337:   if test -n "$OTOOL"; then
                   9338:   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
                   9339: else
                   9340: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9341: for as_dir in $PATH
                   9342: do
                   9343:   IFS=$as_save_IFS
                   9344:   test -z "$as_dir" && as_dir=.
                   9345:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    9346:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    9347:     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
                   9348:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   9349:     break 2
                   9350:   fi
                   9351: done
                   9352:   done
                   9353: IFS=$as_save_IFS
                   9354: 
                   9355: fi
                   9356: fi
                   9357: OTOOL=$ac_cv_prog_OTOOL
                   9358: if test -n "$OTOOL"; then
                   9359:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
                   9360: $as_echo "$OTOOL" >&6; }
                   9361: else
                   9362:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9363: $as_echo "no" >&6; }
                   9364: fi
                   9365: 
                   9366: 
                   9367: fi
                   9368: if test -z "$ac_cv_prog_OTOOL"; then
                   9369:   ac_ct_OTOOL=$OTOOL
                   9370:   # Extract the first word of "otool", so it can be a program name with args.
                   9371: set dummy otool; ac_word=$2
                   9372: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   9373: $as_echo_n "checking for $ac_word... " >&6; }
                   9374: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
                   9375:   $as_echo_n "(cached) " >&6
                   9376: else
                   9377:   if test -n "$ac_ct_OTOOL"; then
                   9378:   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
                   9379: else
                   9380: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9381: for as_dir in $PATH
                   9382: do
                   9383:   IFS=$as_save_IFS
                   9384:   test -z "$as_dir" && as_dir=.
                   9385:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    9386:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    9387:     ac_cv_prog_ac_ct_OTOOL="otool"
                   9388:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   9389:     break 2
                   9390:   fi
                   9391: done
                   9392:   done
                   9393: IFS=$as_save_IFS
                   9394: 
                   9395: fi
                   9396: fi
                   9397: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
                   9398: if test -n "$ac_ct_OTOOL"; then
                   9399:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
                   9400: $as_echo "$ac_ct_OTOOL" >&6; }
                   9401: else
                   9402:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9403: $as_echo "no" >&6; }
                   9404: fi
                   9405: 
                   9406:   if test "x$ac_ct_OTOOL" = x; then
                   9407:     OTOOL=":"
                   9408:   else
                   9409:     case $cross_compiling:$ac_tool_warned in
                   9410: yes:)
                   9411: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   9412: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   9413: ac_tool_warned=yes ;;
                   9414: esac
                   9415:     OTOOL=$ac_ct_OTOOL
                   9416:   fi
                   9417: else
                   9418:   OTOOL="$ac_cv_prog_OTOOL"
                   9419: fi
                   9420: 
                   9421:     if test -n "$ac_tool_prefix"; then
                   9422:   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
                   9423: set dummy ${ac_tool_prefix}otool64; ac_word=$2
                   9424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   9425: $as_echo_n "checking for $ac_word... " >&6; }
                   9426: if ${ac_cv_prog_OTOOL64+:} false; then :
                   9427:   $as_echo_n "(cached) " >&6
                   9428: else
                   9429:   if test -n "$OTOOL64"; then
                   9430:   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
                   9431: else
                   9432: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9433: for as_dir in $PATH
                   9434: do
                   9435:   IFS=$as_save_IFS
                   9436:   test -z "$as_dir" && as_dir=.
                   9437:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    9438:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    9439:     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
                   9440:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   9441:     break 2
                   9442:   fi
                   9443: done
                   9444:   done
                   9445: IFS=$as_save_IFS
                   9446: 
                   9447: fi
                   9448: fi
                   9449: OTOOL64=$ac_cv_prog_OTOOL64
                   9450: if test -n "$OTOOL64"; then
                   9451:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
                   9452: $as_echo "$OTOOL64" >&6; }
                   9453: else
                   9454:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9455: $as_echo "no" >&6; }
                   9456: fi
                   9457: 
                   9458: 
                   9459: fi
                   9460: if test -z "$ac_cv_prog_OTOOL64"; then
                   9461:   ac_ct_OTOOL64=$OTOOL64
                   9462:   # Extract the first word of "otool64", so it can be a program name with args.
                   9463: set dummy otool64; ac_word=$2
                   9464: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   9465: $as_echo_n "checking for $ac_word... " >&6; }
                   9466: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
                   9467:   $as_echo_n "(cached) " >&6
                   9468: else
                   9469:   if test -n "$ac_ct_OTOOL64"; then
                   9470:   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
                   9471: else
                   9472: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9473: for as_dir in $PATH
                   9474: do
                   9475:   IFS=$as_save_IFS
                   9476:   test -z "$as_dir" && as_dir=.
                   9477:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    9478:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    9479:     ac_cv_prog_ac_ct_OTOOL64="otool64"
                   9480:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   9481:     break 2
                   9482:   fi
                   9483: done
                   9484:   done
                   9485: IFS=$as_save_IFS
                   9486: 
                   9487: fi
                   9488: fi
                   9489: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
                   9490: if test -n "$ac_ct_OTOOL64"; then
                   9491:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
                   9492: $as_echo "$ac_ct_OTOOL64" >&6; }
                   9493: else
                   9494:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9495: $as_echo "no" >&6; }
                   9496: fi
                   9497: 
                   9498:   if test "x$ac_ct_OTOOL64" = x; then
                   9499:     OTOOL64=":"
                   9500:   else
                   9501:     case $cross_compiling:$ac_tool_warned in
                   9502: yes:)
                   9503: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   9504: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   9505: ac_tool_warned=yes ;;
                   9506: esac
                   9507:     OTOOL64=$ac_ct_OTOOL64
                   9508:   fi
                   9509: else
                   9510:   OTOOL64="$ac_cv_prog_OTOOL64"
                   9511: fi
                   9512: 
                   9513: 
                   9514: 
                   9515: 
                   9516: 
                   9517: 
                   9518: 
                   9519: 
                   9520: 
                   9521: 
                   9522: 
                   9523: 
                   9524: 
                   9525: 
                   9526: 
                   9527: 
                   9528: 
                   9529: 
                   9530: 
                   9531: 
                   9532: 
                   9533: 
                   9534: 
                   9535: 
                   9536: 
                   9537: 
                   9538: 
                   9539:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
                   9540: $as_echo_n "checking for -single_module linker flag... " >&6; }
                   9541: if ${lt_cv_apple_cc_single_mod+:} false; then :
                   9542:   $as_echo_n "(cached) " >&6
                   9543: else
                   9544:   lt_cv_apple_cc_single_mod=no
1.1.1.6 ! misho    9545:       if test -z "$LT_MULTI_MODULE"; then
1.1       misho    9546:        # By default we will add the -single_module flag. You can override
                   9547:        # by either setting the environment variable LT_MULTI_MODULE
                   9548:        # non-empty at configure time, or by adding -multi_module to the
                   9549:        # link flags.
                   9550:        rm -rf libconftest.dylib*
                   9551:        echo "int foo(void){return 1;}" > conftest.c
                   9552:        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
                   9553: -dynamiclib -Wl,-single_module conftest.c" >&5
                   9554:        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
                   9555:          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
                   9556:         _lt_result=$?
1.1.1.2   misho    9557:        # If there is a non-empty error log, and "single_module"
                   9558:        # appears in it, assume the flag caused a linker warning
                   9559:         if test -s conftest.err && $GREP single_module conftest.err; then
                   9560:          cat conftest.err >&5
                   9561:        # Otherwise, if the output was created with a 0 exit code from
                   9562:        # the compiler, it worked.
1.1.1.6 ! misho    9563:        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1.1       misho    9564:          lt_cv_apple_cc_single_mod=yes
                   9565:        else
                   9566:          cat conftest.err >&5
                   9567:        fi
                   9568:        rm -rf libconftest.dylib*
                   9569:        rm -f conftest.*
                   9570:       fi
                   9571: fi
                   9572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
                   9573: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.1.1.2   misho    9574: 
1.1       misho    9575:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
                   9576: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
                   9577: if ${lt_cv_ld_exported_symbols_list+:} false; then :
                   9578:   $as_echo_n "(cached) " >&6
                   9579: else
                   9580:   lt_cv_ld_exported_symbols_list=no
                   9581:       save_LDFLAGS=$LDFLAGS
                   9582:       echo "_main" > conftest.sym
                   9583:       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
                   9584:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9585: /* end confdefs.h.  */
                   9586: 
                   9587: int
                   9588: main ()
                   9589: {
                   9590: 
                   9591:   ;
                   9592:   return 0;
                   9593: }
                   9594: _ACEOF
                   9595: if ac_fn_c_try_link "$LINENO"; then :
                   9596:   lt_cv_ld_exported_symbols_list=yes
                   9597: else
                   9598:   lt_cv_ld_exported_symbols_list=no
                   9599: fi
                   9600: rm -f core conftest.err conftest.$ac_objext \
                   9601:     conftest$ac_exeext conftest.$ac_ext
1.1.1.6 ! misho    9602:        LDFLAGS=$save_LDFLAGS
1.1       misho    9603: 
                   9604: fi
                   9605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
                   9606: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.1.1.2   misho    9607: 
1.1       misho    9608:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
                   9609: $as_echo_n "checking for -force_load linker flag... " >&6; }
                   9610: if ${lt_cv_ld_force_load+:} false; then :
                   9611:   $as_echo_n "(cached) " >&6
                   9612: else
                   9613:   lt_cv_ld_force_load=no
                   9614:       cat > conftest.c << _LT_EOF
                   9615: int forced_loaded() { return 2;}
                   9616: _LT_EOF
                   9617:       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
                   9618:       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
                   9619:       echo "$AR cru libconftest.a conftest.o" >&5
                   9620:       $AR cru libconftest.a conftest.o 2>&5
                   9621:       echo "$RANLIB libconftest.a" >&5
                   9622:       $RANLIB libconftest.a 2>&5
                   9623:       cat > conftest.c << _LT_EOF
                   9624: int main() { return 0;}
                   9625: _LT_EOF
                   9626:       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
                   9627:       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
                   9628:       _lt_result=$?
1.1.1.2   misho    9629:       if test -s conftest.err && $GREP force_load conftest.err; then
                   9630:        cat conftest.err >&5
1.1.1.6 ! misho    9631:       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1.1       misho    9632:        lt_cv_ld_force_load=yes
                   9633:       else
                   9634:        cat conftest.err >&5
                   9635:       fi
                   9636:         rm -f conftest.err libconftest.a conftest conftest.c
                   9637:         rm -rf conftest.dSYM
                   9638: 
                   9639: fi
                   9640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
                   9641: $as_echo "$lt_cv_ld_force_load" >&6; }
                   9642:     case $host_os in
                   9643:     rhapsody* | darwin1.[012])
1.1.1.6 ! misho    9644:       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1.1       misho    9645:     darwin1.*)
1.1.1.6 ! misho    9646:       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1.1       misho    9647:     darwin*) # darwin 5.x on
                   9648:       # if running on 10.5 or later, the deployment target defaults
                   9649:       # to the OS version, if on x86, and 10.4, the deployment
                   9650:       # target defaults to 10.4. Don't you love it?
                   9651:       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
                   9652:        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
1.1.1.6 ! misho    9653:          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1.1       misho    9654:        10.[012]*)
1.1.1.6 ! misho    9655:          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1.1       misho    9656:        10.*)
1.1.1.6 ! misho    9657:          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1.1       misho    9658:       esac
                   9659:     ;;
                   9660:   esac
1.1.1.6 ! misho    9661:     if test yes = "$lt_cv_apple_cc_single_mod"; then
1.1       misho    9662:       _lt_dar_single_mod='$single_module'
                   9663:     fi
1.1.1.6 ! misho    9664:     if test yes = "$lt_cv_ld_exported_symbols_list"; then
        !          9665:       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1.1       misho    9666:     else
1.1.1.6 ! misho    9667:       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1.1       misho    9668:     fi
1.1.1.6 ! misho    9669:     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1.1       misho    9670:       _lt_dsymutil='~$DSYMUTIL $lib || :'
                   9671:     else
                   9672:       _lt_dsymutil=
                   9673:     fi
                   9674:     ;;
                   9675:   esac
                   9676: 
                   9677: 
                   9678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   9679: $as_echo_n "checking for ANSI C header files... " >&6; }
                   9680: if ${ac_cv_header_stdc+:} false; then :
                   9681:   $as_echo_n "(cached) " >&6
                   9682: else
                   9683:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9684: /* end confdefs.h.  */
                   9685: #include <stdlib.h>
                   9686: #include <stdarg.h>
                   9687: #include <string.h>
                   9688: #include <float.h>
                   9689: 
                   9690: int
                   9691: main ()
                   9692: {
                   9693: 
                   9694:   ;
                   9695:   return 0;
                   9696: }
                   9697: _ACEOF
                   9698: if ac_fn_c_try_compile "$LINENO"; then :
                   9699:   ac_cv_header_stdc=yes
                   9700: else
                   9701:   ac_cv_header_stdc=no
                   9702: fi
                   9703: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9704: 
                   9705: if test $ac_cv_header_stdc = yes; then
                   9706:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   9707:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9708: /* end confdefs.h.  */
                   9709: #include <string.h>
                   9710: 
                   9711: _ACEOF
                   9712: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   9713:   $EGREP "memchr" >/dev/null 2>&1; then :
                   9714: 
                   9715: else
                   9716:   ac_cv_header_stdc=no
                   9717: fi
                   9718: rm -f conftest*
                   9719: 
                   9720: fi
                   9721: 
                   9722: if test $ac_cv_header_stdc = yes; then
                   9723:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   9724:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9725: /* end confdefs.h.  */
                   9726: #include <stdlib.h>
                   9727: 
                   9728: _ACEOF
                   9729: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   9730:   $EGREP "free" >/dev/null 2>&1; then :
                   9731: 
                   9732: else
                   9733:   ac_cv_header_stdc=no
                   9734: fi
                   9735: rm -f conftest*
                   9736: 
                   9737: fi
                   9738: 
                   9739: if test $ac_cv_header_stdc = yes; then
                   9740:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   9741:   if test "$cross_compiling" = yes; then :
                   9742:   :
                   9743: else
                   9744:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9745: /* end confdefs.h.  */
                   9746: #include <ctype.h>
                   9747: #include <stdlib.h>
                   9748: #if ((' ' & 0x0FF) == 0x020)
                   9749: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   9750: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   9751: #else
                   9752: # define ISLOWER(c) \
                   9753:                   (('a' <= (c) && (c) <= 'i') \
                   9754:                     || ('j' <= (c) && (c) <= 'r') \
                   9755:                     || ('s' <= (c) && (c) <= 'z'))
                   9756: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   9757: #endif
                   9758: 
                   9759: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   9760: int
                   9761: main ()
                   9762: {
                   9763:   int i;
                   9764:   for (i = 0; i < 256; i++)
                   9765:     if (XOR (islower (i), ISLOWER (i))
                   9766:        || toupper (i) != TOUPPER (i))
                   9767:       return 2;
                   9768:   return 0;
                   9769: }
                   9770: _ACEOF
                   9771: if ac_fn_c_try_run "$LINENO"; then :
                   9772: 
                   9773: else
                   9774:   ac_cv_header_stdc=no
                   9775: fi
                   9776: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   9777:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   9778: fi
                   9779: 
                   9780: fi
                   9781: fi
                   9782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   9783: $as_echo "$ac_cv_header_stdc" >&6; }
                   9784: if test $ac_cv_header_stdc = yes; then
                   9785: 
                   9786: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
                   9787: 
                   9788: fi
                   9789: 
                   9790: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   9791: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   9792:                  inttypes.h stdint.h unistd.h
                   9793: do :
                   9794:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   9795: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   9796: "
                   9797: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   9798:   cat >>confdefs.h <<_ACEOF
                   9799: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   9800: _ACEOF
                   9801: 
                   9802: fi
                   9803: 
                   9804: done
                   9805: 
                   9806: 
                   9807: for ac_header in dlfcn.h
                   9808: do :
                   9809:   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
                   9810: "
                   9811: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
                   9812:   cat >>confdefs.h <<_ACEOF
                   9813: #define HAVE_DLFCN_H 1
                   9814: _ACEOF
                   9815: 
                   9816: fi
                   9817: 
                   9818: done
                   9819: 
                   9820: 
                   9821: 
                   9822: 
                   9823: 
                   9824: # Set options
                   9825: enable_dlopen=yes
                   9826: 
                   9827: 
                   9828: 
                   9829: 
                   9830:   enable_win32_dll=no
                   9831: 
                   9832: 
                   9833:             # Check whether --enable-shared was given.
                   9834: if test "${enable_shared+set}" = set; then :
                   9835:   enableval=$enable_shared; p=${PACKAGE-default}
                   9836:     case $enableval in
                   9837:     yes) enable_shared=yes ;;
                   9838:     no) enable_shared=no ;;
                   9839:     *)
                   9840:       enable_shared=no
                   9841:       # Look at the argument we got.  We use all the common list separators.
1.1.1.6 ! misho    9842:       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.1       misho    9843:       for pkg in $enableval; do
1.1.1.6 ! misho    9844:        IFS=$lt_save_ifs
1.1       misho    9845:        if test "X$pkg" = "X$p"; then
                   9846:          enable_shared=yes
                   9847:        fi
                   9848:       done
1.1.1.6 ! misho    9849:       IFS=$lt_save_ifs
1.1       misho    9850:       ;;
                   9851:     esac
                   9852: else
                   9853:   enable_shared=yes
                   9854: fi
                   9855: 
                   9856: 
                   9857: 
                   9858: 
                   9859: 
                   9860: 
                   9861: 
                   9862: 
                   9863: 
                   9864:   # Check whether --enable-static was given.
                   9865: if test "${enable_static+set}" = set; then :
                   9866:   enableval=$enable_static; p=${PACKAGE-default}
                   9867:     case $enableval in
                   9868:     yes) enable_static=yes ;;
                   9869:     no) enable_static=no ;;
                   9870:     *)
                   9871:      enable_static=no
                   9872:       # Look at the argument we got.  We use all the common list separators.
1.1.1.6 ! misho    9873:       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.1       misho    9874:       for pkg in $enableval; do
1.1.1.6 ! misho    9875:        IFS=$lt_save_ifs
1.1       misho    9876:        if test "X$pkg" = "X$p"; then
                   9877:          enable_static=yes
                   9878:        fi
                   9879:       done
1.1.1.6 ! misho    9880:       IFS=$lt_save_ifs
1.1       misho    9881:       ;;
                   9882:     esac
                   9883: else
                   9884:   enable_static=yes
                   9885: fi
                   9886: 
                   9887: 
                   9888: 
                   9889: 
                   9890: 
                   9891: 
                   9892: 
                   9893: 
                   9894: 
                   9895: 
                   9896: # Check whether --with-pic was given.
                   9897: if test "${with_pic+set}" = set; then :
1.1.1.2   misho    9898:   withval=$with_pic; lt_p=${PACKAGE-default}
                   9899:     case $withval in
                   9900:     yes|no) pic_mode=$withval ;;
                   9901:     *)
                   9902:       pic_mode=default
                   9903:       # Look at the argument we got.  We use all the common list separators.
1.1.1.6 ! misho    9904:       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.1.1.2   misho    9905:       for lt_pkg in $withval; do
1.1.1.6 ! misho    9906:        IFS=$lt_save_ifs
1.1.1.2   misho    9907:        if test "X$lt_pkg" = "X$lt_p"; then
                   9908:          pic_mode=yes
                   9909:        fi
                   9910:       done
1.1.1.6 ! misho    9911:       IFS=$lt_save_ifs
1.1.1.2   misho    9912:       ;;
                   9913:     esac
1.1       misho    9914: else
                   9915:   pic_mode=default
                   9916: fi
                   9917: 
                   9918: 
                   9919: 
                   9920: 
                   9921: 
                   9922: 
                   9923: 
                   9924: 
                   9925:   # Check whether --enable-fast-install was given.
                   9926: if test "${enable_fast_install+set}" = set; then :
                   9927:   enableval=$enable_fast_install; p=${PACKAGE-default}
                   9928:     case $enableval in
                   9929:     yes) enable_fast_install=yes ;;
                   9930:     no) enable_fast_install=no ;;
                   9931:     *)
                   9932:       enable_fast_install=no
                   9933:       # Look at the argument we got.  We use all the common list separators.
1.1.1.6 ! misho    9934:       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.1       misho    9935:       for pkg in $enableval; do
1.1.1.6 ! misho    9936:        IFS=$lt_save_ifs
1.1       misho    9937:        if test "X$pkg" = "X$p"; then
                   9938:          enable_fast_install=yes
                   9939:        fi
                   9940:       done
1.1.1.6 ! misho    9941:       IFS=$lt_save_ifs
1.1       misho    9942:       ;;
                   9943:     esac
                   9944: else
                   9945:   enable_fast_install=yes
                   9946: fi
                   9947: 
                   9948: 
                   9949: 
                   9950: 
                   9951: 
                   9952: 
                   9953: 
                   9954: 
                   9955: 
                   9956: 
                   9957: 
                   9958: # This can be used to rebuild libtool when needed
1.1.1.6 ! misho    9959: LIBTOOL_DEPS=$ltmain
1.1       misho    9960: 
                   9961: # Always use our own libtool.
                   9962: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
                   9963: 
                   9964: 
                   9965: 
                   9966: 
                   9967: 
                   9968: 
                   9969: 
                   9970: 
                   9971: 
                   9972: 
                   9973: 
                   9974: 
                   9975: 
                   9976: 
                   9977: 
                   9978: 
                   9979: 
                   9980: 
                   9981: 
                   9982: 
                   9983: 
                   9984: 
                   9985: 
                   9986: 
                   9987: 
                   9988: 
1.1.1.2   misho    9989: 
                   9990: 
                   9991: 
                   9992: 
1.1       misho    9993: test -z "$LN_S" && LN_S="ln -s"
                   9994: 
                   9995: 
                   9996: 
                   9997: 
                   9998: 
                   9999: 
                   10000: 
                   10001: 
                   10002: 
                   10003: 
                   10004: 
                   10005: 
                   10006: 
                   10007: 
1.1.1.6 ! misho    10008: if test -n "${ZSH_VERSION+set}"; then
1.1       misho    10009:    setopt NO_GLOB_SUBST
                   10010: fi
                   10011: 
                   10012: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
                   10013: $as_echo_n "checking for objdir... " >&6; }
                   10014: if ${lt_cv_objdir+:} false; then :
                   10015:   $as_echo_n "(cached) " >&6
                   10016: else
                   10017:   rm -f .libs 2>/dev/null
                   10018: mkdir .libs 2>/dev/null
                   10019: if test -d .libs; then
                   10020:   lt_cv_objdir=.libs
                   10021: else
                   10022:   # MS-DOS does not allow filenames that begin with a dot.
                   10023:   lt_cv_objdir=_libs
                   10024: fi
                   10025: rmdir .libs 2>/dev/null
                   10026: fi
                   10027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
                   10028: $as_echo "$lt_cv_objdir" >&6; }
                   10029: objdir=$lt_cv_objdir
                   10030: 
                   10031: 
                   10032: 
                   10033: 
                   10034: 
                   10035: cat >>confdefs.h <<_ACEOF
                   10036: #define LT_OBJDIR "$lt_cv_objdir/"
                   10037: _ACEOF
                   10038: 
                   10039: 
                   10040: 
                   10041: 
                   10042: case $host_os in
                   10043: aix3*)
                   10044:   # AIX sometimes has problems with the GCC collect2 program.  For some
                   10045:   # reason, if we set the COLLECT_NAMES environment variable, the problems
                   10046:   # vanish in a puff of smoke.
1.1.1.6 ! misho    10047:   if test set != "${COLLECT_NAMES+set}"; then
1.1       misho    10048:     COLLECT_NAMES=
                   10049:     export COLLECT_NAMES
                   10050:   fi
                   10051:   ;;
                   10052: esac
                   10053: 
                   10054: # Global variables:
                   10055: ofile=libtool
                   10056: can_build_shared=yes
                   10057: 
1.1.1.6 ! misho    10058: # All known linkers require a '.a' archive for static linking (except MSVC,
1.1       misho    10059: # which needs '.lib').
                   10060: libext=a
                   10061: 
1.1.1.6 ! misho    10062: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1       misho    10063: 
1.1.1.6 ! misho    10064: old_CC=$CC
        !          10065: old_CFLAGS=$CFLAGS
1.1       misho    10066: 
                   10067: # Set sane defaults for various variables
                   10068: test -z "$CC" && CC=cc
                   10069: test -z "$LTCC" && LTCC=$CC
                   10070: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
                   10071: test -z "$LD" && LD=ld
                   10072: test -z "$ac_objext" && ac_objext=o
                   10073: 
                   10074: for cc_temp in $compiler""; do
                   10075:   case $cc_temp in
                   10076:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
                   10077:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
                   10078:     \-*) ;;
                   10079:     *) break;;
                   10080:   esac
                   10081: done
                   10082: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
                   10083: 
                   10084: 
                   10085: # Only perform the check for file, if the check method requires it
                   10086: test -z "$MAGIC_CMD" && MAGIC_CMD=file
                   10087: case $deplibs_check_method in
                   10088: file_magic*)
                   10089:   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
                   10090:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
                   10091: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
                   10092: if ${lt_cv_path_MAGIC_CMD+:} false; then :
                   10093:   $as_echo_n "(cached) " >&6
                   10094: else
                   10095:   case $MAGIC_CMD in
                   10096: [\\/*] |  ?:[\\/]*)
1.1.1.6 ! misho    10097:   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.1       misho    10098:   ;;
                   10099: *)
1.1.1.6 ! misho    10100:   lt_save_MAGIC_CMD=$MAGIC_CMD
        !          10101:   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.1       misho    10102:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   10103:   for ac_dir in $ac_dummy; do
1.1.1.6 ! misho    10104:     IFS=$lt_save_ifs
1.1       misho    10105:     test -z "$ac_dir" && ac_dir=.
1.1.1.6 ! misho    10106:     if test -f "$ac_dir/${ac_tool_prefix}file"; then
        !          10107:       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
1.1       misho    10108:       if test -n "$file_magic_test_file"; then
                   10109:        case $deplibs_check_method in
                   10110:        "file_magic "*)
                   10111:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.1.1.6 ! misho    10112:          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.1       misho    10113:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   10114:            $EGREP "$file_magic_regex" > /dev/null; then
                   10115:            :
                   10116:          else
                   10117:            cat <<_LT_EOF 1>&2
                   10118: 
                   10119: *** Warning: the command libtool uses to detect shared libraries,
                   10120: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   10121: *** The result is that libtool may fail to recognize shared libraries
                   10122: *** as such.  This will affect the creation of libtool libraries that
                   10123: *** depend on shared libraries, but programs linked with such libtool
                   10124: *** libraries will work regardless of this problem.  Nevertheless, you
                   10125: *** may want to report the problem to your system manager and/or to
                   10126: *** bug-libtool@gnu.org
                   10127: 
                   10128: _LT_EOF
                   10129:          fi ;;
                   10130:        esac
                   10131:       fi
                   10132:       break
                   10133:     fi
                   10134:   done
1.1.1.6 ! misho    10135:   IFS=$lt_save_ifs
        !          10136:   MAGIC_CMD=$lt_save_MAGIC_CMD
1.1       misho    10137:   ;;
                   10138: esac
                   10139: fi
                   10140: 
1.1.1.6 ! misho    10141: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.1       misho    10142: if test -n "$MAGIC_CMD"; then
                   10143:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
                   10144: $as_echo "$MAGIC_CMD" >&6; }
                   10145: else
                   10146:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   10147: $as_echo "no" >&6; }
                   10148: fi
                   10149: 
                   10150: 
                   10151: 
                   10152: 
                   10153: 
                   10154: if test -z "$lt_cv_path_MAGIC_CMD"; then
                   10155:   if test -n "$ac_tool_prefix"; then
                   10156:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
                   10157: $as_echo_n "checking for file... " >&6; }
                   10158: if ${lt_cv_path_MAGIC_CMD+:} false; then :
                   10159:   $as_echo_n "(cached) " >&6
                   10160: else
                   10161:   case $MAGIC_CMD in
                   10162: [\\/*] |  ?:[\\/]*)
1.1.1.6 ! misho    10163:   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.1       misho    10164:   ;;
                   10165: *)
1.1.1.6 ! misho    10166:   lt_save_MAGIC_CMD=$MAGIC_CMD
        !          10167:   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.1       misho    10168:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   10169:   for ac_dir in $ac_dummy; do
1.1.1.6 ! misho    10170:     IFS=$lt_save_ifs
1.1       misho    10171:     test -z "$ac_dir" && ac_dir=.
1.1.1.6 ! misho    10172:     if test -f "$ac_dir/file"; then
        !          10173:       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
1.1       misho    10174:       if test -n "$file_magic_test_file"; then
                   10175:        case $deplibs_check_method in
                   10176:        "file_magic "*)
                   10177:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.1.1.6 ! misho    10178:          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.1       misho    10179:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   10180:            $EGREP "$file_magic_regex" > /dev/null; then
                   10181:            :
                   10182:          else
                   10183:            cat <<_LT_EOF 1>&2
                   10184: 
                   10185: *** Warning: the command libtool uses to detect shared libraries,
                   10186: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   10187: *** The result is that libtool may fail to recognize shared libraries
                   10188: *** as such.  This will affect the creation of libtool libraries that
                   10189: *** depend on shared libraries, but programs linked with such libtool
                   10190: *** libraries will work regardless of this problem.  Nevertheless, you
                   10191: *** may want to report the problem to your system manager and/or to
                   10192: *** bug-libtool@gnu.org
                   10193: 
                   10194: _LT_EOF
                   10195:          fi ;;
                   10196:        esac
                   10197:       fi
                   10198:       break
                   10199:     fi
                   10200:   done
1.1.1.6 ! misho    10201:   IFS=$lt_save_ifs
        !          10202:   MAGIC_CMD=$lt_save_MAGIC_CMD
1.1       misho    10203:   ;;
                   10204: esac
                   10205: fi
                   10206: 
1.1.1.6 ! misho    10207: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.1       misho    10208: if test -n "$MAGIC_CMD"; then
                   10209:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
                   10210: $as_echo "$MAGIC_CMD" >&6; }
                   10211: else
                   10212:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   10213: $as_echo "no" >&6; }
                   10214: fi
                   10215: 
                   10216: 
                   10217:   else
                   10218:     MAGIC_CMD=:
                   10219:   fi
                   10220: fi
                   10221: 
                   10222:   fi
                   10223:   ;;
                   10224: esac
                   10225: 
                   10226: # Use C for the default configuration in the libtool script
                   10227: 
1.1.1.6 ! misho    10228: lt_save_CC=$CC
1.1       misho    10229: ac_ext=c
                   10230: ac_cpp='$CPP $CPPFLAGS'
                   10231: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   10232: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   10233: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   10234: 
                   10235: 
                   10236: # Source file extension for C test sources.
                   10237: ac_ext=c
                   10238: 
                   10239: # Object file extension for compiled C test sources.
                   10240: objext=o
                   10241: objext=$objext
                   10242: 
                   10243: # Code to be used in simple compile tests
                   10244: lt_simple_compile_test_code="int some_variable = 0;"
                   10245: 
                   10246: # Code to be used in simple link tests
                   10247: lt_simple_link_test_code='int main(){return(0);}'
                   10248: 
                   10249: 
                   10250: 
                   10251: 
                   10252: 
                   10253: 
                   10254: 
                   10255: # If no C compiler was specified, use CC.
                   10256: LTCC=${LTCC-"$CC"}
                   10257: 
                   10258: # If no C compiler flags were specified, use CFLAGS.
                   10259: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
                   10260: 
                   10261: # Allow CC to be a program name with arguments.
                   10262: compiler=$CC
                   10263: 
                   10264: # Save the default compiler, since it gets overwritten when the other
                   10265: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
                   10266: compiler_DEFAULT=$CC
                   10267: 
                   10268: # save warnings/boilerplate of simple test code
                   10269: ac_outfile=conftest.$ac_objext
                   10270: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
                   10271: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   10272: _lt_compiler_boilerplate=`cat conftest.err`
                   10273: $RM conftest*
                   10274: 
                   10275: ac_outfile=conftest.$ac_objext
                   10276: echo "$lt_simple_link_test_code" >conftest.$ac_ext
                   10277: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   10278: _lt_linker_boilerplate=`cat conftest.err`
                   10279: $RM -r conftest*
                   10280: 
                   10281: 
                   10282: ## CAVEAT EMPTOR:
                   10283: ## There is no encapsulation within the following macros, do not change
                   10284: ## the running order or otherwise move them around unless you know exactly
                   10285: ## what you are doing...
                   10286: if test -n "$compiler"; then
                   10287: 
                   10288: lt_prog_compiler_no_builtin_flag=
                   10289: 
1.1.1.6 ! misho    10290: if test yes = "$GCC"; then
1.1       misho    10291:   case $cc_basename in
                   10292:   nvcc*)
                   10293:     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
                   10294:   *)
                   10295:     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
                   10296:   esac
                   10297: 
                   10298:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
                   10299: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
                   10300: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
                   10301:   $as_echo_n "(cached) " >&6
                   10302: else
                   10303:   lt_cv_prog_compiler_rtti_exceptions=no
                   10304:    ac_outfile=conftest.$ac_objext
                   10305:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.1.6 ! misho    10306:    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
1.1       misho    10307:    # Insert the option either (1) after the last *FLAGS variable, or
                   10308:    # (2) before a word containing "conftest.", or (3) at the end.
                   10309:    # Note that $ac_compile itself does not contain backslashes and begins
                   10310:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   10311:    # The option is referenced via a variable to avoid confusing sed.
                   10312:    lt_compile=`echo "$ac_compile" | $SED \
                   10313:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   10314:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   10315:    -e 's:$: $lt_compiler_flag:'`
                   10316:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
                   10317:    (eval "$lt_compile" 2>conftest.err)
                   10318:    ac_status=$?
                   10319:    cat conftest.err >&5
                   10320:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10321:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   10322:      # The compiler can only warn and ignore the option if not recognized
                   10323:      # So say no if there are warnings other than the usual output.
                   10324:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
                   10325:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   10326:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
                   10327:        lt_cv_prog_compiler_rtti_exceptions=yes
                   10328:      fi
                   10329:    fi
                   10330:    $RM conftest*
                   10331: 
                   10332: fi
                   10333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
                   10334: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
                   10335: 
1.1.1.6 ! misho    10336: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
1.1       misho    10337:     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
                   10338: else
                   10339:     :
                   10340: fi
                   10341: 
                   10342: fi
                   10343: 
                   10344: 
                   10345: 
                   10346: 
                   10347: 
                   10348: 
                   10349:   lt_prog_compiler_wl=
                   10350: lt_prog_compiler_pic=
                   10351: lt_prog_compiler_static=
                   10352: 
                   10353: 
1.1.1.6 ! misho    10354:   if test yes = "$GCC"; then
1.1       misho    10355:     lt_prog_compiler_wl='-Wl,'
                   10356:     lt_prog_compiler_static='-static'
                   10357: 
                   10358:     case $host_os in
                   10359:       aix*)
                   10360:       # All AIX code is PIC.
1.1.1.6 ! misho    10361:       if test ia64 = "$host_cpu"; then
1.1       misho    10362:        # AIX 5 now supports IA64 processor
                   10363:        lt_prog_compiler_static='-Bstatic'
                   10364:       fi
1.1.1.6 ! misho    10365:       lt_prog_compiler_pic='-fPIC'
1.1       misho    10366:       ;;
                   10367: 
                   10368:     amigaos*)
                   10369:       case $host_cpu in
                   10370:       powerpc)
                   10371:             # see comment about AmigaOS4 .so support
                   10372:             lt_prog_compiler_pic='-fPIC'
                   10373:         ;;
                   10374:       m68k)
                   10375:             # FIXME: we need at least 68020 code to build shared libraries, but
1.1.1.6 ! misho    10376:             # adding the '-m68020' flag to GCC prevents building anything better,
        !          10377:             # like '-m68040'.
1.1       misho    10378:             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
                   10379:         ;;
                   10380:       esac
                   10381:       ;;
                   10382: 
                   10383:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
                   10384:       # PIC is the default for these OSes.
                   10385:       ;;
                   10386: 
                   10387:     mingw* | cygwin* | pw32* | os2* | cegcc*)
                   10388:       # This hack is so that the source file can tell whether it is being
                   10389:       # built for inclusion in a dll (and should export symbols for example).
                   10390:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
                   10391:       # (--disable-auto-import) libraries
                   10392:       lt_prog_compiler_pic='-DDLL_EXPORT'
                   10393:       ;;
                   10394: 
                   10395:     darwin* | rhapsody*)
                   10396:       # PIC is the default on this platform
                   10397:       # Common symbols not allowed in MH_DYLIB files
                   10398:       lt_prog_compiler_pic='-fno-common'
                   10399:       ;;
                   10400: 
                   10401:     haiku*)
                   10402:       # PIC is the default for Haiku.
                   10403:       # The "-static" flag exists, but is broken.
                   10404:       lt_prog_compiler_static=
                   10405:       ;;
                   10406: 
                   10407:     hpux*)
                   10408:       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
                   10409:       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
                   10410:       # sets the default TLS model and affects inlining.
                   10411:       case $host_cpu in
                   10412:       hppa*64*)
                   10413:        # +Z the default
                   10414:        ;;
                   10415:       *)
                   10416:        lt_prog_compiler_pic='-fPIC'
                   10417:        ;;
                   10418:       esac
                   10419:       ;;
                   10420: 
                   10421:     interix[3-9]*)
                   10422:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
                   10423:       # Instead, we relocate shared libraries at runtime.
                   10424:       ;;
                   10425: 
                   10426:     msdosdjgpp*)
                   10427:       # Just because we use GCC doesn't mean we suddenly get shared libraries
                   10428:       # on systems that don't support them.
                   10429:       lt_prog_compiler_can_build_shared=no
                   10430:       enable_shared=no
                   10431:       ;;
                   10432: 
                   10433:     *nto* | *qnx*)
                   10434:       # QNX uses GNU C++, but need to define -shared option too, otherwise
                   10435:       # it will coredump.
                   10436:       lt_prog_compiler_pic='-fPIC -shared'
                   10437:       ;;
                   10438: 
                   10439:     sysv4*MP*)
                   10440:       if test -d /usr/nec; then
                   10441:        lt_prog_compiler_pic=-Kconform_pic
                   10442:       fi
                   10443:       ;;
                   10444: 
                   10445:     *)
                   10446:       lt_prog_compiler_pic='-fPIC'
                   10447:       ;;
                   10448:     esac
                   10449: 
                   10450:     case $cc_basename in
                   10451:     nvcc*) # Cuda Compiler Driver 2.2
                   10452:       lt_prog_compiler_wl='-Xlinker '
1.1.1.2   misho    10453:       if test -n "$lt_prog_compiler_pic"; then
                   10454:         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
                   10455:       fi
1.1       misho    10456:       ;;
                   10457:     esac
                   10458:   else
                   10459:     # PORTME Check for flag to pass linker flags through the system compiler.
                   10460:     case $host_os in
                   10461:     aix*)
                   10462:       lt_prog_compiler_wl='-Wl,'
1.1.1.6 ! misho    10463:       if test ia64 = "$host_cpu"; then
1.1       misho    10464:        # AIX 5 now supports IA64 processor
                   10465:        lt_prog_compiler_static='-Bstatic'
                   10466:       else
                   10467:        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
                   10468:       fi
                   10469:       ;;
                   10470: 
1.1.1.6 ! misho    10471:     darwin* | rhapsody*)
        !          10472:       # PIC is the default on this platform
        !          10473:       # Common symbols not allowed in MH_DYLIB files
        !          10474:       lt_prog_compiler_pic='-fno-common'
        !          10475:       case $cc_basename in
        !          10476:       nagfor*)
        !          10477:         # NAG Fortran compiler
        !          10478:         lt_prog_compiler_wl='-Wl,-Wl,,'
        !          10479:         lt_prog_compiler_pic='-PIC'
        !          10480:         lt_prog_compiler_static='-Bstatic'
        !          10481:         ;;
        !          10482:       esac
        !          10483:       ;;
        !          10484: 
1.1       misho    10485:     mingw* | cygwin* | pw32* | os2* | cegcc*)
                   10486:       # This hack is so that the source file can tell whether it is being
                   10487:       # built for inclusion in a dll (and should export symbols for example).
                   10488:       lt_prog_compiler_pic='-DDLL_EXPORT'
                   10489:       ;;
                   10490: 
                   10491:     hpux9* | hpux10* | hpux11*)
                   10492:       lt_prog_compiler_wl='-Wl,'
                   10493:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   10494:       # not for PA HP-UX.
                   10495:       case $host_cpu in
                   10496:       hppa*64*|ia64*)
                   10497:        # +Z the default
                   10498:        ;;
                   10499:       *)
                   10500:        lt_prog_compiler_pic='+Z'
                   10501:        ;;
                   10502:       esac
                   10503:       # Is there a better lt_prog_compiler_static that works with the bundled CC?
1.1.1.6 ! misho    10504:       lt_prog_compiler_static='$wl-a ${wl}archive'
1.1       misho    10505:       ;;
                   10506: 
                   10507:     irix5* | irix6* | nonstopux*)
                   10508:       lt_prog_compiler_wl='-Wl,'
                   10509:       # PIC (with -KPIC) is the default.
                   10510:       lt_prog_compiler_static='-non_shared'
                   10511:       ;;
                   10512: 
1.1.1.6 ! misho    10513:     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.1       misho    10514:       case $cc_basename in
1.1.1.6 ! misho    10515:       # old Intel for x86_64, which still supported -KPIC.
1.1       misho    10516:       ecc*)
                   10517:        lt_prog_compiler_wl='-Wl,'
                   10518:        lt_prog_compiler_pic='-KPIC'
                   10519:        lt_prog_compiler_static='-static'
                   10520:         ;;
                   10521:       # icc used to be incompatible with GCC.
                   10522:       # ICC 10 doesn't accept -KPIC any more.
                   10523:       icc* | ifort*)
                   10524:        lt_prog_compiler_wl='-Wl,'
                   10525:        lt_prog_compiler_pic='-fPIC'
                   10526:        lt_prog_compiler_static='-static'
                   10527:         ;;
                   10528:       # Lahey Fortran 8.1.
                   10529:       lf95*)
                   10530:        lt_prog_compiler_wl='-Wl,'
                   10531:        lt_prog_compiler_pic='--shared'
                   10532:        lt_prog_compiler_static='--static'
                   10533:        ;;
                   10534:       nagfor*)
                   10535:        # NAG Fortran compiler
                   10536:        lt_prog_compiler_wl='-Wl,-Wl,,'
                   10537:        lt_prog_compiler_pic='-PIC'
                   10538:        lt_prog_compiler_static='-Bstatic'
                   10539:        ;;
1.1.1.6 ! misho    10540:       tcc*)
        !          10541:        # Fabrice Bellard et al's Tiny C Compiler
        !          10542:        lt_prog_compiler_wl='-Wl,'
        !          10543:        lt_prog_compiler_pic='-fPIC'
        !          10544:        lt_prog_compiler_static='-static'
        !          10545:        ;;
1.1       misho    10546:       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
                   10547:         # Portland Group compilers (*not* the Pentium gcc compiler,
                   10548:        # which looks to be a dead project)
                   10549:        lt_prog_compiler_wl='-Wl,'
                   10550:        lt_prog_compiler_pic='-fpic'
                   10551:        lt_prog_compiler_static='-Bstatic'
                   10552:         ;;
                   10553:       ccc*)
                   10554:         lt_prog_compiler_wl='-Wl,'
                   10555:         # All Alpha code is PIC.
                   10556:         lt_prog_compiler_static='-non_shared'
                   10557:         ;;
                   10558:       xl* | bgxl* | bgf* | mpixl*)
                   10559:        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
                   10560:        lt_prog_compiler_wl='-Wl,'
                   10561:        lt_prog_compiler_pic='-qpic'
                   10562:        lt_prog_compiler_static='-qstaticlink'
                   10563:        ;;
                   10564:       *)
                   10565:        case `$CC -V 2>&1 | sed 5q` in
1.1.1.2   misho    10566:        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
1.1       misho    10567:          # Sun Fortran 8.3 passes all unrecognized flags to the linker
                   10568:          lt_prog_compiler_pic='-KPIC'
                   10569:          lt_prog_compiler_static='-Bstatic'
                   10570:          lt_prog_compiler_wl=''
                   10571:          ;;
1.1.1.2   misho    10572:        *Sun\ F* | *Sun*Fortran*)
                   10573:          lt_prog_compiler_pic='-KPIC'
                   10574:          lt_prog_compiler_static='-Bstatic'
                   10575:          lt_prog_compiler_wl='-Qoption ld '
                   10576:          ;;
1.1       misho    10577:        *Sun\ C*)
                   10578:          # Sun C 5.9
                   10579:          lt_prog_compiler_pic='-KPIC'
                   10580:          lt_prog_compiler_static='-Bstatic'
                   10581:          lt_prog_compiler_wl='-Wl,'
                   10582:          ;;
1.1.1.2   misho    10583:         *Intel*\ [CF]*Compiler*)
                   10584:          lt_prog_compiler_wl='-Wl,'
                   10585:          lt_prog_compiler_pic='-fPIC'
                   10586:          lt_prog_compiler_static='-static'
                   10587:          ;;
                   10588:        *Portland\ Group*)
                   10589:          lt_prog_compiler_wl='-Wl,'
                   10590:          lt_prog_compiler_pic='-fpic'
                   10591:          lt_prog_compiler_static='-Bstatic'
                   10592:          ;;
1.1       misho    10593:        esac
                   10594:        ;;
                   10595:       esac
                   10596:       ;;
                   10597: 
                   10598:     newsos6)
                   10599:       lt_prog_compiler_pic='-KPIC'
                   10600:       lt_prog_compiler_static='-Bstatic'
                   10601:       ;;
                   10602: 
                   10603:     *nto* | *qnx*)
                   10604:       # QNX uses GNU C++, but need to define -shared option too, otherwise
                   10605:       # it will coredump.
                   10606:       lt_prog_compiler_pic='-fPIC -shared'
                   10607:       ;;
                   10608: 
                   10609:     osf3* | osf4* | osf5*)
                   10610:       lt_prog_compiler_wl='-Wl,'
                   10611:       # All OSF/1 code is PIC.
                   10612:       lt_prog_compiler_static='-non_shared'
                   10613:       ;;
                   10614: 
                   10615:     rdos*)
                   10616:       lt_prog_compiler_static='-non_shared'
                   10617:       ;;
                   10618: 
                   10619:     solaris*)
                   10620:       lt_prog_compiler_pic='-KPIC'
                   10621:       lt_prog_compiler_static='-Bstatic'
                   10622:       case $cc_basename in
                   10623:       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
                   10624:        lt_prog_compiler_wl='-Qoption ld ';;
                   10625:       *)
                   10626:        lt_prog_compiler_wl='-Wl,';;
                   10627:       esac
                   10628:       ;;
                   10629: 
                   10630:     sunos4*)
                   10631:       lt_prog_compiler_wl='-Qoption ld '
                   10632:       lt_prog_compiler_pic='-PIC'
                   10633:       lt_prog_compiler_static='-Bstatic'
                   10634:       ;;
                   10635: 
                   10636:     sysv4 | sysv4.2uw2* | sysv4.3*)
                   10637:       lt_prog_compiler_wl='-Wl,'
                   10638:       lt_prog_compiler_pic='-KPIC'
                   10639:       lt_prog_compiler_static='-Bstatic'
                   10640:       ;;
                   10641: 
                   10642:     sysv4*MP*)
1.1.1.6 ! misho    10643:       if test -d /usr/nec; then
1.1       misho    10644:        lt_prog_compiler_pic='-Kconform_pic'
                   10645:        lt_prog_compiler_static='-Bstatic'
                   10646:       fi
                   10647:       ;;
                   10648: 
                   10649:     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
                   10650:       lt_prog_compiler_wl='-Wl,'
                   10651:       lt_prog_compiler_pic='-KPIC'
                   10652:       lt_prog_compiler_static='-Bstatic'
                   10653:       ;;
                   10654: 
                   10655:     unicos*)
                   10656:       lt_prog_compiler_wl='-Wl,'
                   10657:       lt_prog_compiler_can_build_shared=no
                   10658:       ;;
                   10659: 
                   10660:     uts4*)
                   10661:       lt_prog_compiler_pic='-pic'
                   10662:       lt_prog_compiler_static='-Bstatic'
                   10663:       ;;
                   10664: 
                   10665:     *)
                   10666:       lt_prog_compiler_can_build_shared=no
                   10667:       ;;
                   10668:     esac
                   10669:   fi
                   10670: 
                   10671: case $host_os in
1.1.1.6 ! misho    10672:   # For platforms that do not support PIC, -DPIC is meaningless:
1.1       misho    10673:   *djgpp*)
                   10674:     lt_prog_compiler_pic=
                   10675:     ;;
                   10676:   *)
                   10677:     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
                   10678:     ;;
                   10679: esac
                   10680: 
                   10681: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
                   10682: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
                   10683: if ${lt_cv_prog_compiler_pic+:} false; then :
                   10684:   $as_echo_n "(cached) " >&6
                   10685: else
                   10686:   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
                   10687: fi
                   10688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
                   10689: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
                   10690: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
                   10691: 
                   10692: #
                   10693: # Check to make sure the PIC flag actually works.
                   10694: #
                   10695: if test -n "$lt_prog_compiler_pic"; then
                   10696:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
                   10697: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
                   10698: if ${lt_cv_prog_compiler_pic_works+:} false; then :
                   10699:   $as_echo_n "(cached) " >&6
                   10700: else
                   10701:   lt_cv_prog_compiler_pic_works=no
                   10702:    ac_outfile=conftest.$ac_objext
                   10703:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.1.6 ! misho    10704:    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
1.1       misho    10705:    # Insert the option either (1) after the last *FLAGS variable, or
                   10706:    # (2) before a word containing "conftest.", or (3) at the end.
                   10707:    # Note that $ac_compile itself does not contain backslashes and begins
                   10708:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   10709:    # The option is referenced via a variable to avoid confusing sed.
                   10710:    lt_compile=`echo "$ac_compile" | $SED \
                   10711:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   10712:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   10713:    -e 's:$: $lt_compiler_flag:'`
                   10714:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
                   10715:    (eval "$lt_compile" 2>conftest.err)
                   10716:    ac_status=$?
                   10717:    cat conftest.err >&5
                   10718:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10719:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   10720:      # The compiler can only warn and ignore the option if not recognized
                   10721:      # So say no if there are warnings other than the usual output.
                   10722:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
                   10723:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   10724:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
                   10725:        lt_cv_prog_compiler_pic_works=yes
                   10726:      fi
                   10727:    fi
                   10728:    $RM conftest*
                   10729: 
                   10730: fi
                   10731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
                   10732: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
                   10733: 
1.1.1.6 ! misho    10734: if test yes = "$lt_cv_prog_compiler_pic_works"; then
1.1       misho    10735:     case $lt_prog_compiler_pic in
                   10736:      "" | " "*) ;;
                   10737:      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
                   10738:      esac
                   10739: else
                   10740:     lt_prog_compiler_pic=
                   10741:      lt_prog_compiler_can_build_shared=no
                   10742: fi
                   10743: 
                   10744: fi
                   10745: 
                   10746: 
                   10747: 
                   10748: 
                   10749: 
                   10750: 
                   10751: 
                   10752: 
                   10753: 
                   10754: 
                   10755: 
                   10756: #
                   10757: # Check to make sure the static flag actually works.
                   10758: #
                   10759: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
                   10760: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
                   10761: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
                   10762: if ${lt_cv_prog_compiler_static_works+:} false; then :
                   10763:   $as_echo_n "(cached) " >&6
                   10764: else
                   10765:   lt_cv_prog_compiler_static_works=no
1.1.1.6 ! misho    10766:    save_LDFLAGS=$LDFLAGS
1.1       misho    10767:    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
                   10768:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
                   10769:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
                   10770:      # The linker can only warn and ignore the option if not recognized
                   10771:      # So say no if there are warnings
                   10772:      if test -s conftest.err; then
                   10773:        # Append any errors to the config.log.
                   10774:        cat conftest.err 1>&5
                   10775:        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
                   10776:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   10777:        if diff conftest.exp conftest.er2 >/dev/null; then
                   10778:          lt_cv_prog_compiler_static_works=yes
                   10779:        fi
                   10780:      else
                   10781:        lt_cv_prog_compiler_static_works=yes
                   10782:      fi
                   10783:    fi
                   10784:    $RM -r conftest*
1.1.1.6 ! misho    10785:    LDFLAGS=$save_LDFLAGS
1.1       misho    10786: 
                   10787: fi
                   10788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
                   10789: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
                   10790: 
1.1.1.6 ! misho    10791: if test yes = "$lt_cv_prog_compiler_static_works"; then
1.1       misho    10792:     :
                   10793: else
                   10794:     lt_prog_compiler_static=
                   10795: fi
                   10796: 
                   10797: 
                   10798: 
                   10799: 
                   10800: 
                   10801: 
                   10802: 
                   10803:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
                   10804: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
                   10805: if ${lt_cv_prog_compiler_c_o+:} false; then :
                   10806:   $as_echo_n "(cached) " >&6
                   10807: else
                   10808:   lt_cv_prog_compiler_c_o=no
                   10809:    $RM -r conftest 2>/dev/null
                   10810:    mkdir conftest
                   10811:    cd conftest
                   10812:    mkdir out
                   10813:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   10814: 
                   10815:    lt_compiler_flag="-o out/conftest2.$ac_objext"
                   10816:    # Insert the option either (1) after the last *FLAGS variable, or
                   10817:    # (2) before a word containing "conftest.", or (3) at the end.
                   10818:    # Note that $ac_compile itself does not contain backslashes and begins
                   10819:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   10820:    lt_compile=`echo "$ac_compile" | $SED \
                   10821:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   10822:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   10823:    -e 's:$: $lt_compiler_flag:'`
                   10824:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
                   10825:    (eval "$lt_compile" 2>out/conftest.err)
                   10826:    ac_status=$?
                   10827:    cat out/conftest.err >&5
                   10828:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10829:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
                   10830:    then
                   10831:      # The compiler can only warn and ignore the option if not recognized
                   10832:      # So say no if there are warnings
                   10833:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
                   10834:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
                   10835:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
                   10836:        lt_cv_prog_compiler_c_o=yes
                   10837:      fi
                   10838:    fi
                   10839:    chmod u+w . 2>&5
                   10840:    $RM conftest*
                   10841:    # SGI C++ compiler will create directory out/ii_files/ for
                   10842:    # template instantiation
                   10843:    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
                   10844:    $RM out/* && rmdir out
                   10845:    cd ..
                   10846:    $RM -r conftest
                   10847:    $RM conftest*
                   10848: 
                   10849: fi
                   10850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
                   10851: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
                   10852: 
                   10853: 
                   10854: 
                   10855: 
                   10856: 
                   10857: 
                   10858:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
                   10859: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
                   10860: if ${lt_cv_prog_compiler_c_o+:} false; then :
                   10861:   $as_echo_n "(cached) " >&6
                   10862: else
                   10863:   lt_cv_prog_compiler_c_o=no
                   10864:    $RM -r conftest 2>/dev/null
                   10865:    mkdir conftest
                   10866:    cd conftest
                   10867:    mkdir out
                   10868:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   10869: 
                   10870:    lt_compiler_flag="-o out/conftest2.$ac_objext"
                   10871:    # Insert the option either (1) after the last *FLAGS variable, or
                   10872:    # (2) before a word containing "conftest.", or (3) at the end.
                   10873:    # Note that $ac_compile itself does not contain backslashes and begins
                   10874:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   10875:    lt_compile=`echo "$ac_compile" | $SED \
                   10876:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   10877:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   10878:    -e 's:$: $lt_compiler_flag:'`
                   10879:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
                   10880:    (eval "$lt_compile" 2>out/conftest.err)
                   10881:    ac_status=$?
                   10882:    cat out/conftest.err >&5
                   10883:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10884:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
                   10885:    then
                   10886:      # The compiler can only warn and ignore the option if not recognized
                   10887:      # So say no if there are warnings
                   10888:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
                   10889:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
                   10890:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
                   10891:        lt_cv_prog_compiler_c_o=yes
                   10892:      fi
                   10893:    fi
                   10894:    chmod u+w . 2>&5
                   10895:    $RM conftest*
                   10896:    # SGI C++ compiler will create directory out/ii_files/ for
                   10897:    # template instantiation
                   10898:    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
                   10899:    $RM out/* && rmdir out
                   10900:    cd ..
                   10901:    $RM -r conftest
                   10902:    $RM conftest*
                   10903: 
                   10904: fi
                   10905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
                   10906: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
                   10907: 
                   10908: 
                   10909: 
                   10910: 
1.1.1.6 ! misho    10911: hard_links=nottested
        !          10912: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
1.1       misho    10913:   # do not overwrite the value of need_locks provided by the user
                   10914:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
                   10915: $as_echo_n "checking if we can lock with hard links... " >&6; }
                   10916:   hard_links=yes
                   10917:   $RM conftest*
                   10918:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   10919:   touch conftest.a
                   10920:   ln conftest.a conftest.b 2>&5 || hard_links=no
                   10921:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   10922:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
                   10923: $as_echo "$hard_links" >&6; }
1.1.1.6 ! misho    10924:   if test no = "$hard_links"; then
        !          10925:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
        !          10926: $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1.1       misho    10927:     need_locks=warn
                   10928:   fi
                   10929: else
                   10930:   need_locks=no
                   10931: fi
                   10932: 
                   10933: 
                   10934: 
                   10935: 
                   10936: 
                   10937: 
                   10938:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
                   10939: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
                   10940: 
                   10941:   runpath_var=
                   10942:   allow_undefined_flag=
                   10943:   always_export_symbols=no
                   10944:   archive_cmds=
                   10945:   archive_expsym_cmds=
                   10946:   compiler_needs_object=no
                   10947:   enable_shared_with_static_runtimes=no
                   10948:   export_dynamic_flag_spec=
                   10949:   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
                   10950:   hardcode_automatic=no
                   10951:   hardcode_direct=no
                   10952:   hardcode_direct_absolute=no
                   10953:   hardcode_libdir_flag_spec=
                   10954:   hardcode_libdir_separator=
                   10955:   hardcode_minus_L=no
                   10956:   hardcode_shlibpath_var=unsupported
                   10957:   inherit_rpath=no
                   10958:   link_all_deplibs=unknown
                   10959:   module_cmds=
                   10960:   module_expsym_cmds=
                   10961:   old_archive_from_new_cmds=
                   10962:   old_archive_from_expsyms_cmds=
                   10963:   thread_safe_flag_spec=
                   10964:   whole_archive_flag_spec=
                   10965:   # include_expsyms should be a list of space-separated symbols to be *always*
                   10966:   # included in the symbol list
                   10967:   include_expsyms=
                   10968:   # exclude_expsyms can be an extended regexp of symbols to exclude
1.1.1.6 ! misho    10969:   # it will be wrapped by ' (' and ')$', so one must not match beginning or
        !          10970:   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
        !          10971:   # as well as any symbol that contains 'd'.
1.1       misho    10972:   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
                   10973:   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
                   10974:   # platforms (ab)use it in PIC code, but their linkers get confused if
                   10975:   # the symbol is explicitly referenced.  Since portable code cannot
                   10976:   # rely on this symbol name, it's probably fine to never include it in
                   10977:   # preloaded symbol tables.
                   10978:   # Exclude shared library initialization/finalization symbols.
                   10979:   extract_expsyms_cmds=
                   10980: 
                   10981:   case $host_os in
                   10982:   cygwin* | mingw* | pw32* | cegcc*)
                   10983:     # FIXME: the MSVC++ port hasn't been tested in a loooong time
                   10984:     # When not using gcc, we currently assume that we are using
                   10985:     # Microsoft Visual C++.
1.1.1.6 ! misho    10986:     if test yes != "$GCC"; then
1.1       misho    10987:       with_gnu_ld=no
                   10988:     fi
                   10989:     ;;
                   10990:   interix*)
                   10991:     # we just hope/assume this is gcc and not c89 (= MSVC++)
                   10992:     with_gnu_ld=yes
                   10993:     ;;
1.1.1.6 ! misho    10994:   openbsd* | bitrig*)
1.1       misho    10995:     with_gnu_ld=no
                   10996:     ;;
                   10997:   esac
                   10998: 
                   10999:   ld_shlibs=yes
                   11000: 
                   11001:   # On some targets, GNU ld is compatible enough with the native linker
                   11002:   # that we're better off using the native interface for both.
                   11003:   lt_use_gnu_ld_interface=no
1.1.1.6 ! misho    11004:   if test yes = "$with_gnu_ld"; then
1.1       misho    11005:     case $host_os in
                   11006:       aix*)
                   11007:        # The AIX port of GNU ld has always aspired to compatibility
                   11008:        # with the native linker.  However, as the warning in the GNU ld
                   11009:        # block says, versions before 2.19.5* couldn't really create working
                   11010:        # shared libraries, regardless of the interface used.
                   11011:        case `$LD -v 2>&1` in
                   11012:          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
                   11013:          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
                   11014:          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
                   11015:          *)
                   11016:            lt_use_gnu_ld_interface=yes
                   11017:            ;;
                   11018:        esac
                   11019:        ;;
                   11020:       *)
                   11021:        lt_use_gnu_ld_interface=yes
                   11022:        ;;
                   11023:     esac
                   11024:   fi
                   11025: 
1.1.1.6 ! misho    11026:   if test yes = "$lt_use_gnu_ld_interface"; then
1.1       misho    11027:     # If archive_cmds runs LD, not CC, wlarc should be empty
1.1.1.6 ! misho    11028:     wlarc='$wl'
1.1       misho    11029: 
                   11030:     # Set some defaults for GNU ld with shared library support. These
                   11031:     # are reset later if shared libraries are not supported. Putting them
                   11032:     # here allows them to be overridden if necessary.
                   11033:     runpath_var=LD_RUN_PATH
1.1.1.6 ! misho    11034:     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
        !          11035:     export_dynamic_flag_spec='$wl--export-dynamic'
1.1       misho    11036:     # ancient GNU ld didn't support --whole-archive et. al.
                   11037:     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
1.1.1.6 ! misho    11038:       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.1       misho    11039:     else
                   11040:       whole_archive_flag_spec=
                   11041:     fi
                   11042:     supports_anon_versioning=no
1.1.1.6 ! misho    11043:     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
1.1       misho    11044:       *GNU\ gold*) supports_anon_versioning=yes ;;
                   11045:       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
                   11046:       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
                   11047:       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
                   11048:       *\ 2.11.*) ;; # other 2.11 versions
                   11049:       *) supports_anon_versioning=yes ;;
                   11050:     esac
                   11051: 
                   11052:     # See if GNU ld supports shared libraries.
                   11053:     case $host_os in
                   11054:     aix[3-9]*)
                   11055:       # On AIX/PPC, the GNU linker is very broken
1.1.1.6 ! misho    11056:       if test ia64 != "$host_cpu"; then
1.1       misho    11057:        ld_shlibs=no
                   11058:        cat <<_LT_EOF 1>&2
                   11059: 
                   11060: *** Warning: the GNU linker, at least up to release 2.19, is reported
                   11061: *** to be unable to reliably create shared libraries on AIX.
                   11062: *** Therefore, libtool is disabling shared libraries support.  If you
                   11063: *** really care for shared libraries, you may want to install binutils
                   11064: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
                   11065: *** You will then need to restart the configuration process.
                   11066: 
                   11067: _LT_EOF
                   11068:       fi
                   11069:       ;;
                   11070: 
                   11071:     amigaos*)
                   11072:       case $host_cpu in
                   11073:       powerpc)
                   11074:             # see comment about AmigaOS4 .so support
1.1.1.6 ! misho    11075:             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.1       misho    11076:             archive_expsym_cmds=''
                   11077:         ;;
                   11078:       m68k)
                   11079:             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)'
                   11080:             hardcode_libdir_flag_spec='-L$libdir'
                   11081:             hardcode_minus_L=yes
                   11082:         ;;
                   11083:       esac
                   11084:       ;;
                   11085: 
                   11086:     beos*)
                   11087:       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
                   11088:        allow_undefined_flag=unsupported
                   11089:        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
                   11090:        # support --undefined.  This deserves some investigation.  FIXME
1.1.1.6 ! misho    11091:        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.1       misho    11092:       else
                   11093:        ld_shlibs=no
                   11094:       fi
                   11095:       ;;
                   11096: 
                   11097:     cygwin* | mingw* | pw32* | cegcc*)
                   11098:       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
                   11099:       # as there is no search path for DLLs.
                   11100:       hardcode_libdir_flag_spec='-L$libdir'
1.1.1.6 ! misho    11101:       export_dynamic_flag_spec='$wl--export-all-symbols'
1.1       misho    11102:       allow_undefined_flag=unsupported
                   11103:       always_export_symbols=no
                   11104:       enable_shared_with_static_runtimes=yes
                   11105:       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'
                   11106:       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
                   11107: 
                   11108:       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
1.1.1.6 ! misho    11109:         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
        !          11110:        # If the export-symbols file already is a .def file, use it as
        !          11111:        # is; otherwise, prepend EXPORTS...
        !          11112:        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
        !          11113:           cp $export_symbols $output_objdir/$soname.def;
        !          11114:         else
        !          11115:           echo EXPORTS > $output_objdir/$soname.def;
        !          11116:           cat $export_symbols >> $output_objdir/$soname.def;
        !          11117:         fi~
        !          11118:         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1       misho    11119:       else
                   11120:        ld_shlibs=no
                   11121:       fi
                   11122:       ;;
                   11123: 
                   11124:     haiku*)
1.1.1.6 ! misho    11125:       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.1       misho    11126:       link_all_deplibs=yes
                   11127:       ;;
                   11128: 
                   11129:     interix[3-9]*)
                   11130:       hardcode_direct=no
                   11131:       hardcode_shlibpath_var=no
1.1.1.6 ! misho    11132:       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
        !          11133:       export_dynamic_flag_spec='$wl-E'
1.1       misho    11134:       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
                   11135:       # Instead, shared libraries are loaded at an image base (0x10000000 by
                   11136:       # default) and relocated if they conflict, which is a slow very memory
                   11137:       # consuming and fragmenting process.  To avoid this, we pick a random,
                   11138:       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
                   11139:       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
1.1.1.6 ! misho    11140:       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
        !          11141:       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'
1.1       misho    11142:       ;;
                   11143: 
                   11144:     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
                   11145:       tmp_diet=no
1.1.1.6 ! misho    11146:       if test linux-dietlibc = "$host_os"; then
1.1       misho    11147:        case $cc_basename in
                   11148:          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
                   11149:        esac
                   11150:       fi
                   11151:       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
1.1.1.6 ! misho    11152:         && test no = "$tmp_diet"
1.1       misho    11153:       then
                   11154:        tmp_addflag=' $pic_flag'
                   11155:        tmp_sharedflag='-shared'
                   11156:        case $cc_basename,$host_cpu in
                   11157:         pgcc*)                         # Portland Group C compiler
1.1.1.6 ! misho    11158:          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'
1.1       misho    11159:          tmp_addflag=' $pic_flag'
                   11160:          ;;
                   11161:        pgf77* | pgf90* | pgf95* | pgfortran*)
                   11162:                                        # Portland Group f77 and f90 compilers
1.1.1.6 ! misho    11163:          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'
1.1       misho    11164:          tmp_addflag=' $pic_flag -Mnomain' ;;
                   11165:        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
                   11166:          tmp_addflag=' -i_dynamic' ;;
                   11167:        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
                   11168:          tmp_addflag=' -i_dynamic -nofor_main' ;;
                   11169:        ifc* | ifort*)                  # Intel Fortran compiler
                   11170:          tmp_addflag=' -nofor_main' ;;
                   11171:        lf95*)                          # Lahey Fortran 8.1
                   11172:          whole_archive_flag_spec=
                   11173:          tmp_sharedflag='--shared' ;;
1.1.1.6 ! misho    11174:         nagfor*)                        # NAGFOR 5.3
        !          11175:           tmp_sharedflag='-Wl,-shared' ;;
1.1       misho    11176:        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
                   11177:          tmp_sharedflag='-qmkshrobj'
                   11178:          tmp_addflag= ;;
                   11179:        nvcc*)  # Cuda Compiler Driver 2.2
1.1.1.6 ! misho    11180:          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'
1.1       misho    11181:          compiler_needs_object=yes
                   11182:          ;;
                   11183:        esac
                   11184:        case `$CC -V 2>&1 | sed 5q` in
                   11185:        *Sun\ C*)                       # Sun C 5.9
1.1.1.6 ! misho    11186:          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'
1.1       misho    11187:          compiler_needs_object=yes
                   11188:          tmp_sharedflag='-G' ;;
                   11189:        *Sun\ F*)                       # Sun Fortran 8.3
                   11190:          tmp_sharedflag='-G' ;;
                   11191:        esac
1.1.1.6 ! misho    11192:        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.1       misho    11193: 
1.1.1.6 ! misho    11194:         if test yes = "$supports_anon_versioning"; then
1.1       misho    11195:           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.1.1.6 ! misho    11196:             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
        !          11197:             echo "local: *; };" >> $output_objdir/$libname.ver~
        !          11198:             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1.1       misho    11199:         fi
                   11200: 
                   11201:        case $cc_basename in
                   11202:        xlf* | bgf* | bgxlf* | mpixlf*)
                   11203:          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
                   11204:          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
1.1.1.6 ! misho    11205:          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.1       misho    11206:          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
1.1.1.6 ! misho    11207:          if test yes = "$supports_anon_versioning"; then
1.1       misho    11208:            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.1.1.6 ! misho    11209:               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
        !          11210:               echo "local: *; };" >> $output_objdir/$libname.ver~
        !          11211:               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
1.1       misho    11212:          fi
                   11213:          ;;
                   11214:        esac
                   11215:       else
                   11216:         ld_shlibs=no
                   11217:       fi
                   11218:       ;;
                   11219: 
                   11220:     netbsd*)
                   11221:       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
                   11222:        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
                   11223:        wlarc=
                   11224:       else
1.1.1.6 ! misho    11225:        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
        !          11226:        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.1       misho    11227:       fi
                   11228:       ;;
                   11229: 
                   11230:     solaris*)
                   11231:       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
                   11232:        ld_shlibs=no
                   11233:        cat <<_LT_EOF 1>&2
                   11234: 
                   11235: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
                   11236: *** create shared libraries on Solaris systems.  Therefore, libtool
                   11237: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   11238: *** binutils to release 2.9.1 or newer.  Another option is to modify
                   11239: *** your PATH or compiler configuration so that the native linker is
                   11240: *** used, and then restart.
                   11241: 
                   11242: _LT_EOF
                   11243:       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.1.6 ! misho    11244:        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
        !          11245:        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.1       misho    11246:       else
                   11247:        ld_shlibs=no
                   11248:       fi
                   11249:       ;;
                   11250: 
                   11251:     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
                   11252:       case `$LD -v 2>&1` in
                   11253:         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
                   11254:        ld_shlibs=no
                   11255:        cat <<_LT_EOF 1>&2
                   11256: 
1.1.1.6 ! misho    11257: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
1.1       misho    11258: *** reliably create shared libraries on SCO systems.  Therefore, libtool
                   11259: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   11260: *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
                   11261: *** your PATH or compiler configuration so that the native linker is
                   11262: *** used, and then restart.
                   11263: 
                   11264: _LT_EOF
                   11265:        ;;
                   11266:        *)
                   11267:          # For security reasons, it is highly recommended that you always
                   11268:          # use absolute paths for naming shared libraries, and exclude the
                   11269:          # DT_RUNPATH tag from executables and libraries.  But doing so
                   11270:          # requires that you compile everything twice, which is a pain.
                   11271:          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.1.6 ! misho    11272:            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
        !          11273:            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
        !          11274:            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.1       misho    11275:          else
                   11276:            ld_shlibs=no
                   11277:          fi
                   11278:        ;;
                   11279:       esac
                   11280:       ;;
                   11281: 
                   11282:     sunos4*)
                   11283:       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   11284:       wlarc=
                   11285:       hardcode_direct=yes
                   11286:       hardcode_shlibpath_var=no
                   11287:       ;;
                   11288: 
                   11289:     *)
                   11290:       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.1.6 ! misho    11291:        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
        !          11292:        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.1       misho    11293:       else
                   11294:        ld_shlibs=no
                   11295:       fi
                   11296:       ;;
                   11297:     esac
                   11298: 
1.1.1.6 ! misho    11299:     if test no = "$ld_shlibs"; then
1.1       misho    11300:       runpath_var=
                   11301:       hardcode_libdir_flag_spec=
                   11302:       export_dynamic_flag_spec=
                   11303:       whole_archive_flag_spec=
                   11304:     fi
                   11305:   else
                   11306:     # PORTME fill in a description of your system's linker (not GNU ld)
                   11307:     case $host_os in
                   11308:     aix3*)
                   11309:       allow_undefined_flag=unsupported
                   11310:       always_export_symbols=yes
                   11311:       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'
                   11312:       # Note: this linker hardcodes the directories in LIBPATH if there
                   11313:       # are no directories specified by -L.
                   11314:       hardcode_minus_L=yes
1.1.1.6 ! misho    11315:       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
1.1       misho    11316:        # Neither direct hardcoding nor static linking is supported with a
                   11317:        # broken collect2.
                   11318:        hardcode_direct=unsupported
                   11319:       fi
                   11320:       ;;
                   11321: 
                   11322:     aix[4-9]*)
1.1.1.6 ! misho    11323:       if test ia64 = "$host_cpu"; then
1.1       misho    11324:        # On IA64, the linker does run time linking by default, so we don't
                   11325:        # have to do anything special.
                   11326:        aix_use_runtimelinking=no
                   11327:        exp_sym_flag='-Bexport'
1.1.1.6 ! misho    11328:        no_entry_flag=
1.1       misho    11329:       else
                   11330:        # If we're using GNU nm, then we don't want the "-C" option.
                   11331:        # -C means demangle to AIX nm, but means don't demangle with GNU nm
                   11332:        # Also, AIX nm treats weak defined symbols like other global
                   11333:        # defined symbols, whereas GNU nm marks them as "W".
                   11334:        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
                   11335:          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'
                   11336:        else
                   11337:          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'
                   11338:        fi
                   11339:        aix_use_runtimelinking=no
                   11340: 
                   11341:        # Test if we are trying to use run time linking or normal
                   11342:        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
                   11343:        # need to do runtime linking.
                   11344:        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
                   11345:          for ld_flag in $LDFLAGS; do
1.1.1.6 ! misho    11346:          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
1.1       misho    11347:            aix_use_runtimelinking=yes
                   11348:            break
                   11349:          fi
                   11350:          done
                   11351:          ;;
                   11352:        esac
                   11353: 
                   11354:        exp_sym_flag='-bexport'
                   11355:        no_entry_flag='-bnoentry'
                   11356:       fi
                   11357: 
                   11358:       # When large executables or shared objects are built, AIX ld can
                   11359:       # have problems creating the table of contents.  If linking a library
                   11360:       # or program results in "error TOC overflow" add -mminimal-toc to
                   11361:       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
                   11362:       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
                   11363: 
                   11364:       archive_cmds=''
                   11365:       hardcode_direct=yes
                   11366:       hardcode_direct_absolute=yes
                   11367:       hardcode_libdir_separator=':'
                   11368:       link_all_deplibs=yes
1.1.1.6 ! misho    11369:       file_list_spec='$wl-f,'
1.1       misho    11370: 
1.1.1.6 ! misho    11371:       if test yes = "$GCC"; then
1.1       misho    11372:        case $host_os in aix4.[012]|aix4.[012].*)
                   11373:        # We only want to do this on AIX 4.2 and lower, the check
                   11374:        # below for broken collect2 doesn't work under 4.3+
1.1.1.6 ! misho    11375:          collect2name=`$CC -print-prog-name=collect2`
1.1       misho    11376:          if test -f "$collect2name" &&
                   11377:           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
                   11378:          then
                   11379:          # We have reworked collect2
                   11380:          :
                   11381:          else
                   11382:          # We have old collect2
                   11383:          hardcode_direct=unsupported
                   11384:          # It fails to find uninstalled libraries when the uninstalled
                   11385:          # path is not listed in the libpath.  Setting hardcode_minus_L
                   11386:          # to unsupported forces relinking
                   11387:          hardcode_minus_L=yes
                   11388:          hardcode_libdir_flag_spec='-L$libdir'
                   11389:          hardcode_libdir_separator=
                   11390:          fi
                   11391:          ;;
                   11392:        esac
                   11393:        shared_flag='-shared'
1.1.1.6 ! misho    11394:        if test yes = "$aix_use_runtimelinking"; then
        !          11395:          shared_flag="$shared_flag "'$wl-G'
1.1       misho    11396:        fi
                   11397:       else
                   11398:        # not using gcc
1.1.1.6 ! misho    11399:        if test ia64 = "$host_cpu"; then
1.1       misho    11400:        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
                   11401:        # chokes on -Wl,-G. The following line is correct:
                   11402:          shared_flag='-G'
                   11403:        else
1.1.1.6 ! misho    11404:          if test yes = "$aix_use_runtimelinking"; then
        !          11405:            shared_flag='$wl-G'
1.1       misho    11406:          else
1.1.1.6 ! misho    11407:            shared_flag='$wl-bM:SRE'
1.1       misho    11408:          fi
                   11409:        fi
                   11410:       fi
                   11411: 
1.1.1.6 ! misho    11412:       export_dynamic_flag_spec='$wl-bexpall'
1.1       misho    11413:       # It seems that -bexpall does not export symbols beginning with
                   11414:       # underscore (_), so it is better to generate a list of symbols to export.
                   11415:       always_export_symbols=yes
1.1.1.6 ! misho    11416:       if test yes = "$aix_use_runtimelinking"; then
1.1       misho    11417:        # Warning - without using the other runtime loading flags (-brtl),
                   11418:        # -berok will link without error, but may produce a broken library.
                   11419:        allow_undefined_flag='-berok'
                   11420:         # Determine the default libpath from the value encoded in an
                   11421:         # empty executable.
1.1.1.6 ! misho    11422:         if test set = "${lt_cv_aix_libpath+set}"; then
1.1       misho    11423:   aix_libpath=$lt_cv_aix_libpath
                   11424: else
                   11425:   if ${lt_cv_aix_libpath_+:} false; then :
                   11426:   $as_echo_n "(cached) " >&6
                   11427: else
                   11428:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11429: /* end confdefs.h.  */
                   11430: 
                   11431: int
                   11432: main ()
                   11433: {
                   11434: 
                   11435:   ;
                   11436:   return 0;
                   11437: }
                   11438: _ACEOF
                   11439: if ac_fn_c_try_link "$LINENO"; then :
                   11440: 
                   11441:   lt_aix_libpath_sed='
                   11442:       /Import File Strings/,/^$/ {
                   11443:          /^0/ {
                   11444:              s/^0  *\([^ ]*\) *$/\1/
                   11445:              p
                   11446:          }
                   11447:       }'
                   11448:   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   11449:   # Check for a 64-bit object if we didn't find anything.
                   11450:   if test -z "$lt_cv_aix_libpath_"; then
                   11451:     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   11452:   fi
                   11453: fi
                   11454: rm -f core conftest.err conftest.$ac_objext \
                   11455:     conftest$ac_exeext conftest.$ac_ext
                   11456:   if test -z "$lt_cv_aix_libpath_"; then
1.1.1.6 ! misho    11457:     lt_cv_aix_libpath_=/usr/lib:/lib
1.1       misho    11458:   fi
                   11459: 
                   11460: fi
                   11461: 
                   11462:   aix_libpath=$lt_cv_aix_libpath_
                   11463: fi
                   11464: 
1.1.1.6 ! misho    11465:         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
        !          11466:         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
1.1       misho    11467:       else
1.1.1.6 ! misho    11468:        if test ia64 = "$host_cpu"; then
        !          11469:          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
1.1       misho    11470:          allow_undefined_flag="-z nodefs"
1.1.1.6 ! misho    11471:          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"
1.1       misho    11472:        else
                   11473:         # Determine the default libpath from the value encoded in an
                   11474:         # empty executable.
1.1.1.6 ! misho    11475:         if test set = "${lt_cv_aix_libpath+set}"; then
1.1       misho    11476:   aix_libpath=$lt_cv_aix_libpath
                   11477: else
                   11478:   if ${lt_cv_aix_libpath_+:} false; then :
                   11479:   $as_echo_n "(cached) " >&6
                   11480: else
                   11481:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11482: /* end confdefs.h.  */
                   11483: 
                   11484: int
                   11485: main ()
                   11486: {
                   11487: 
                   11488:   ;
                   11489:   return 0;
                   11490: }
                   11491: _ACEOF
                   11492: if ac_fn_c_try_link "$LINENO"; then :
                   11493: 
                   11494:   lt_aix_libpath_sed='
                   11495:       /Import File Strings/,/^$/ {
                   11496:          /^0/ {
                   11497:              s/^0  *\([^ ]*\) *$/\1/
                   11498:              p
                   11499:          }
                   11500:       }'
                   11501:   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   11502:   # Check for a 64-bit object if we didn't find anything.
                   11503:   if test -z "$lt_cv_aix_libpath_"; then
                   11504:     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   11505:   fi
                   11506: fi
                   11507: rm -f core conftest.err conftest.$ac_objext \
                   11508:     conftest$ac_exeext conftest.$ac_ext
                   11509:   if test -z "$lt_cv_aix_libpath_"; then
1.1.1.6 ! misho    11510:     lt_cv_aix_libpath_=/usr/lib:/lib
1.1       misho    11511:   fi
                   11512: 
                   11513: fi
                   11514: 
                   11515:   aix_libpath=$lt_cv_aix_libpath_
                   11516: fi
                   11517: 
1.1.1.6 ! misho    11518:         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
1.1       misho    11519:          # Warning - without using the other run time loading flags,
                   11520:          # -berok will link without error, but may produce a broken library.
1.1.1.6 ! misho    11521:          no_undefined_flag=' $wl-bernotok'
        !          11522:          allow_undefined_flag=' $wl-berok'
        !          11523:          if test yes = "$with_gnu_ld"; then
1.1       misho    11524:            # We only use this code for GNU lds that support --whole-archive.
1.1.1.6 ! misho    11525:            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
1.1       misho    11526:          else
                   11527:            # Exported symbols can be pulled into shared objects from archives
                   11528:            whole_archive_flag_spec='$convenience'
                   11529:          fi
                   11530:          archive_cmds_need_lc=yes
                   11531:          # This is similar to how AIX traditionally builds its shared libraries.
1.1.1.6 ! misho    11532:          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'
1.1       misho    11533:        fi
                   11534:       fi
                   11535:       ;;
                   11536: 
                   11537:     amigaos*)
                   11538:       case $host_cpu in
                   11539:       powerpc)
                   11540:             # see comment about AmigaOS4 .so support
1.1.1.6 ! misho    11541:             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.1       misho    11542:             archive_expsym_cmds=''
                   11543:         ;;
                   11544:       m68k)
                   11545:             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)'
                   11546:             hardcode_libdir_flag_spec='-L$libdir'
                   11547:             hardcode_minus_L=yes
                   11548:         ;;
                   11549:       esac
                   11550:       ;;
                   11551: 
                   11552:     bsdi[45]*)
                   11553:       export_dynamic_flag_spec=-rdynamic
                   11554:       ;;
                   11555: 
                   11556:     cygwin* | mingw* | pw32* | cegcc*)
                   11557:       # When not using gcc, we currently assume that we are using
                   11558:       # Microsoft Visual C++.
                   11559:       # hardcode_libdir_flag_spec is actually meaningless, as there is
                   11560:       # no search path for DLLs.
                   11561:       case $cc_basename in
                   11562:       cl*)
                   11563:        # Native MSVC
                   11564:        hardcode_libdir_flag_spec=' '
                   11565:        allow_undefined_flag=unsupported
                   11566:        always_export_symbols=yes
                   11567:        file_list_spec='@'
                   11568:        # Tell ltmain to make .lib files, not .a files.
                   11569:        libext=lib
                   11570:        # Tell ltmain to make .dll files, not .so files.
1.1.1.6 ! misho    11571:        shrext_cmds=.dll
1.1       misho    11572:        # FIXME: Setting linknames here is a bad hack.
1.1.1.6 ! misho    11573:        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
        !          11574:        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
        !          11575:             cp "$export_symbols" "$output_objdir/$soname.def";
        !          11576:             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
        !          11577:           else
        !          11578:             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
        !          11579:           fi~
        !          11580:           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
        !          11581:           linknames='
1.1       misho    11582:        # The linker will not automatically build a static lib if we build a DLL.
                   11583:        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
                   11584:        enable_shared_with_static_runtimes=yes
1.1.1.2   misho    11585:        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
1.1       misho    11586:        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
                   11587:        # Don't use ranlib
                   11588:        old_postinstall_cmds='chmod 644 $oldlib'
                   11589:        postlink_cmds='lt_outputfile="@OUTPUT@"~
1.1.1.6 ! misho    11590:           lt_tool_outputfile="@TOOL_OUTPUT@"~
        !          11591:           case $lt_outputfile in
        !          11592:             *.exe|*.EXE) ;;
        !          11593:             *)
        !          11594:               lt_outputfile=$lt_outputfile.exe
        !          11595:               lt_tool_outputfile=$lt_tool_outputfile.exe
        !          11596:               ;;
        !          11597:           esac~
        !          11598:           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
        !          11599:             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
        !          11600:             $RM "$lt_outputfile.manifest";
        !          11601:           fi'
1.1       misho    11602:        ;;
                   11603:       *)
                   11604:        # Assume MSVC wrapper
                   11605:        hardcode_libdir_flag_spec=' '
                   11606:        allow_undefined_flag=unsupported
                   11607:        # Tell ltmain to make .lib files, not .a files.
                   11608:        libext=lib
                   11609:        # Tell ltmain to make .dll files, not .so files.
1.1.1.6 ! misho    11610:        shrext_cmds=.dll
1.1       misho    11611:        # FIXME: Setting linknames here is a bad hack.
                   11612:        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
                   11613:        # The linker will automatically build a .lib file if we build a DLL.
                   11614:        old_archive_from_new_cmds='true'
                   11615:        # FIXME: Should let the user specify the lib program.
                   11616:        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
                   11617:        enable_shared_with_static_runtimes=yes
                   11618:        ;;
                   11619:       esac
                   11620:       ;;
                   11621: 
                   11622:     darwin* | rhapsody*)
                   11623: 
                   11624: 
                   11625:   archive_cmds_need_lc=no
                   11626:   hardcode_direct=no
                   11627:   hardcode_automatic=yes
                   11628:   hardcode_shlibpath_var=unsupported
1.1.1.6 ! misho    11629:   if test yes = "$lt_cv_ld_force_load"; then
        !          11630:     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\"`'
1.1.1.2   misho    11631: 
1.1       misho    11632:   else
                   11633:     whole_archive_flag_spec=''
                   11634:   fi
                   11635:   link_all_deplibs=yes
1.1.1.6 ! misho    11636:   allow_undefined_flag=$_lt_dar_allow_undefined
1.1       misho    11637:   case $cc_basename in
1.1.1.6 ! misho    11638:      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1.1       misho    11639:      *) _lt_dar_can_shared=$GCC ;;
                   11640:   esac
1.1.1.6 ! misho    11641:   if test yes = "$_lt_dar_can_shared"; then
1.1       misho    11642:     output_verbose_link_cmd=func_echo_all
1.1.1.6 ! misho    11643:     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
        !          11644:     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
        !          11645:     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"
        !          11646:     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"
1.1       misho    11647: 
                   11648:   else
                   11649:   ld_shlibs=no
                   11650:   fi
                   11651: 
                   11652:       ;;
                   11653: 
                   11654:     dgux*)
                   11655:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   11656:       hardcode_libdir_flag_spec='-L$libdir'
                   11657:       hardcode_shlibpath_var=no
                   11658:       ;;
                   11659: 
                   11660:     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
                   11661:     # support.  Future versions do this automatically, but an explicit c++rt0.o
                   11662:     # does not break anything, and helps significantly (at the cost of a little
                   11663:     # extra space).
                   11664:     freebsd2.2*)
                   11665:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
                   11666:       hardcode_libdir_flag_spec='-R$libdir'
                   11667:       hardcode_direct=yes
                   11668:       hardcode_shlibpath_var=no
                   11669:       ;;
                   11670: 
                   11671:     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1.1.1.2   misho    11672:     freebsd2.*)
1.1       misho    11673:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   11674:       hardcode_direct=yes
                   11675:       hardcode_minus_L=yes
                   11676:       hardcode_shlibpath_var=no
                   11677:       ;;
                   11678: 
                   11679:     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
                   11680:     freebsd* | dragonfly*)
                   11681:       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   11682:       hardcode_libdir_flag_spec='-R$libdir'
                   11683:       hardcode_direct=yes
                   11684:       hardcode_shlibpath_var=no
                   11685:       ;;
                   11686: 
                   11687:     hpux9*)
1.1.1.6 ! misho    11688:       if test yes = "$GCC"; then
        !          11689:        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.1       misho    11690:       else
1.1.1.6 ! misho    11691:        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.1       misho    11692:       fi
1.1.1.6 ! misho    11693:       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.1       misho    11694:       hardcode_libdir_separator=:
                   11695:       hardcode_direct=yes
                   11696: 
                   11697:       # hardcode_minus_L: Not really in the search PATH,
                   11698:       # but as the default location of the library.
                   11699:       hardcode_minus_L=yes
1.1.1.6 ! misho    11700:       export_dynamic_flag_spec='$wl-E'
1.1       misho    11701:       ;;
                   11702: 
                   11703:     hpux10*)
1.1.1.6 ! misho    11704:       if test yes,no = "$GCC,$with_gnu_ld"; then
        !          11705:        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    11706:       else
                   11707:        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
                   11708:       fi
1.1.1.6 ! misho    11709:       if test no = "$with_gnu_ld"; then
        !          11710:        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.1       misho    11711:        hardcode_libdir_separator=:
                   11712:        hardcode_direct=yes
                   11713:        hardcode_direct_absolute=yes
1.1.1.6 ! misho    11714:        export_dynamic_flag_spec='$wl-E'
1.1       misho    11715:        # hardcode_minus_L: Not really in the search PATH,
                   11716:        # but as the default location of the library.
                   11717:        hardcode_minus_L=yes
                   11718:       fi
                   11719:       ;;
                   11720: 
                   11721:     hpux11*)
1.1.1.6 ! misho    11722:       if test yes,no = "$GCC,$with_gnu_ld"; then
1.1       misho    11723:        case $host_cpu in
                   11724:        hppa*64*)
1.1.1.6 ! misho    11725:          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    11726:          ;;
                   11727:        ia64*)
1.1.1.6 ! misho    11728:          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    11729:          ;;
                   11730:        *)
1.1.1.6 ! misho    11731:          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    11732:          ;;
                   11733:        esac
                   11734:       else
                   11735:        case $host_cpu in
                   11736:        hppa*64*)
1.1.1.6 ! misho    11737:          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    11738:          ;;
                   11739:        ia64*)
1.1.1.6 ! misho    11740:          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    11741:          ;;
                   11742:        *)
                   11743: 
                   11744:          # Older versions of the 11.00 compiler do not understand -b yet
                   11745:          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
                   11746:          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
                   11747: $as_echo_n "checking if $CC understands -b... " >&6; }
                   11748: if ${lt_cv_prog_compiler__b+:} false; then :
                   11749:   $as_echo_n "(cached) " >&6
                   11750: else
                   11751:   lt_cv_prog_compiler__b=no
1.1.1.6 ! misho    11752:    save_LDFLAGS=$LDFLAGS
1.1       misho    11753:    LDFLAGS="$LDFLAGS -b"
                   11754:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
                   11755:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
                   11756:      # The linker can only warn and ignore the option if not recognized
                   11757:      # So say no if there are warnings
                   11758:      if test -s conftest.err; then
                   11759:        # Append any errors to the config.log.
                   11760:        cat conftest.err 1>&5
                   11761:        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
                   11762:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   11763:        if diff conftest.exp conftest.er2 >/dev/null; then
                   11764:          lt_cv_prog_compiler__b=yes
                   11765:        fi
                   11766:      else
                   11767:        lt_cv_prog_compiler__b=yes
                   11768:      fi
                   11769:    fi
                   11770:    $RM -r conftest*
1.1.1.6 ! misho    11771:    LDFLAGS=$save_LDFLAGS
1.1       misho    11772: 
                   11773: fi
                   11774: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
                   11775: $as_echo "$lt_cv_prog_compiler__b" >&6; }
                   11776: 
1.1.1.6 ! misho    11777: if test yes = "$lt_cv_prog_compiler__b"; then
        !          11778:     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    11779: else
                   11780:     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
                   11781: fi
                   11782: 
                   11783:          ;;
                   11784:        esac
                   11785:       fi
1.1.1.6 ! misho    11786:       if test no = "$with_gnu_ld"; then
        !          11787:        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.1       misho    11788:        hardcode_libdir_separator=:
                   11789: 
                   11790:        case $host_cpu in
                   11791:        hppa*64*|ia64*)
                   11792:          hardcode_direct=no
                   11793:          hardcode_shlibpath_var=no
                   11794:          ;;
                   11795:        *)
                   11796:          hardcode_direct=yes
                   11797:          hardcode_direct_absolute=yes
1.1.1.6 ! misho    11798:          export_dynamic_flag_spec='$wl-E'
1.1       misho    11799: 
                   11800:          # hardcode_minus_L: Not really in the search PATH,
                   11801:          # but as the default location of the library.
                   11802:          hardcode_minus_L=yes
                   11803:          ;;
                   11804:        esac
                   11805:       fi
                   11806:       ;;
                   11807: 
                   11808:     irix5* | irix6* | nonstopux*)
1.1.1.6 ! misho    11809:       if test yes = "$GCC"; then
        !          11810:        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'
1.1       misho    11811:        # Try to use the -exported_symbol ld option, if it does not
                   11812:        # work, assume that -exports_file does not work either and
                   11813:        # implicitly export all symbols.
                   11814:        # This should be the same for all languages, so no per-tag cache variable.
                   11815:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
                   11816: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
                   11817: if ${lt_cv_irix_exported_symbol+:} false; then :
                   11818:   $as_echo_n "(cached) " >&6
                   11819: else
1.1.1.6 ! misho    11820:   save_LDFLAGS=$LDFLAGS
        !          11821:           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1.1       misho    11822:           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11823: /* end confdefs.h.  */
                   11824: int foo (void) { return 0; }
                   11825: _ACEOF
                   11826: if ac_fn_c_try_link "$LINENO"; then :
                   11827:   lt_cv_irix_exported_symbol=yes
                   11828: else
                   11829:   lt_cv_irix_exported_symbol=no
                   11830: fi
                   11831: rm -f core conftest.err conftest.$ac_objext \
                   11832:     conftest$ac_exeext conftest.$ac_ext
1.1.1.6 ! misho    11833:            LDFLAGS=$save_LDFLAGS
1.1       misho    11834: fi
                   11835: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
                   11836: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.1.1.6 ! misho    11837:        if test yes = "$lt_cv_irix_exported_symbol"; then
        !          11838:           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'
1.1       misho    11839:        fi
                   11840:       else
1.1.1.6 ! misho    11841:        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'
        !          11842:        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'
1.1       misho    11843:       fi
                   11844:       archive_cmds_need_lc='no'
1.1.1.6 ! misho    11845:       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.1       misho    11846:       hardcode_libdir_separator=:
                   11847:       inherit_rpath=yes
                   11848:       link_all_deplibs=yes
                   11849:       ;;
                   11850: 
                   11851:     netbsd*)
                   11852:       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
                   11853:        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
                   11854:       else
                   11855:        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
                   11856:       fi
                   11857:       hardcode_libdir_flag_spec='-R$libdir'
                   11858:       hardcode_direct=yes
                   11859:       hardcode_shlibpath_var=no
                   11860:       ;;
                   11861: 
                   11862:     newsos6)
                   11863:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   11864:       hardcode_direct=yes
1.1.1.6 ! misho    11865:       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.1       misho    11866:       hardcode_libdir_separator=:
                   11867:       hardcode_shlibpath_var=no
                   11868:       ;;
                   11869: 
                   11870:     *nto* | *qnx*)
                   11871:       ;;
                   11872: 
1.1.1.6 ! misho    11873:     openbsd* | bitrig*)
1.1       misho    11874:       if test -f /usr/libexec/ld.so; then
                   11875:        hardcode_direct=yes
                   11876:        hardcode_shlibpath_var=no
                   11877:        hardcode_direct_absolute=yes
1.1.1.6 ! misho    11878:        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1.1       misho    11879:          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.1.1.6 ! misho    11880:          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
        !          11881:          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
        !          11882:          export_dynamic_flag_spec='$wl-E'
1.1       misho    11883:        else
1.1.1.6 ! misho    11884:          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
        !          11885:          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
1.1       misho    11886:        fi
                   11887:       else
                   11888:        ld_shlibs=no
                   11889:       fi
                   11890:       ;;
                   11891: 
                   11892:     os2*)
                   11893:       hardcode_libdir_flag_spec='-L$libdir'
                   11894:       hardcode_minus_L=yes
                   11895:       allow_undefined_flag=unsupported
                   11896:       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'
                   11897:       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
                   11898:       ;;
                   11899: 
                   11900:     osf3*)
1.1.1.6 ! misho    11901:       if test yes = "$GCC"; then
        !          11902:        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
        !          11903:        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'
1.1       misho    11904:       else
                   11905:        allow_undefined_flag=' -expect_unresolved \*'
1.1.1.6 ! misho    11906:        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'
1.1       misho    11907:       fi
                   11908:       archive_cmds_need_lc='no'
1.1.1.6 ! misho    11909:       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.1       misho    11910:       hardcode_libdir_separator=:
                   11911:       ;;
                   11912: 
                   11913:     osf4* | osf5*)     # as osf3* with the addition of -msym flag
1.1.1.6 ! misho    11914:       if test yes = "$GCC"; then
        !          11915:        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
        !          11916:        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'
        !          11917:        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.1       misho    11918:       else
                   11919:        allow_undefined_flag=' -expect_unresolved \*'
1.1.1.6 ! misho    11920:        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'
1.1       misho    11921:        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~
1.1.1.6 ! misho    11922:           $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'
1.1       misho    11923: 
                   11924:        # Both c and cxx compiler support -rpath directly
                   11925:        hardcode_libdir_flag_spec='-rpath $libdir'
                   11926:       fi
                   11927:       archive_cmds_need_lc='no'
                   11928:       hardcode_libdir_separator=:
                   11929:       ;;
                   11930: 
                   11931:     solaris*)
                   11932:       no_undefined_flag=' -z defs'
1.1.1.6 ! misho    11933:       if test yes = "$GCC"; then
        !          11934:        wlarc='$wl'
        !          11935:        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    11936:        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.1.1.6 ! misho    11937:           $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'
1.1       misho    11938:       else
                   11939:        case `$CC -V 2>&1` in
                   11940:        *"Compilers 5.0"*)
                   11941:          wlarc=''
1.1.1.6 ! misho    11942:          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.1       misho    11943:          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.1.1.6 ! misho    11944:             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
1.1       misho    11945:          ;;
                   11946:        *)
1.1.1.6 ! misho    11947:          wlarc='$wl'
        !          11948:          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    11949:          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.1.1.6 ! misho    11950:             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1.1       misho    11951:          ;;
                   11952:        esac
                   11953:       fi
                   11954:       hardcode_libdir_flag_spec='-R$libdir'
                   11955:       hardcode_shlibpath_var=no
                   11956:       case $host_os in
                   11957:       solaris2.[0-5] | solaris2.[0-5].*) ;;
                   11958:       *)
                   11959:        # The compiler driver will combine and reorder linker options,
1.1.1.6 ! misho    11960:        # but understands '-z linker_flag'.  GCC discards it without '$wl',
1.1       misho    11961:        # but is careful enough not to reorder.
                   11962:        # Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.1.6 ! misho    11963:        if test yes = "$GCC"; then
        !          11964:          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1.1       misho    11965:        else
                   11966:          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
                   11967:        fi
                   11968:        ;;
                   11969:       esac
                   11970:       link_all_deplibs=yes
                   11971:       ;;
                   11972: 
                   11973:     sunos4*)
1.1.1.6 ! misho    11974:       if test sequent = "$host_vendor"; then
1.1       misho    11975:        # Use $CC to link under sequent, because it throws in some extra .o
                   11976:        # files that make .init and .fini sections work.
1.1.1.6 ! misho    11977:        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    11978:       else
                   11979:        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
                   11980:       fi
                   11981:       hardcode_libdir_flag_spec='-L$libdir'
                   11982:       hardcode_direct=yes
                   11983:       hardcode_minus_L=yes
                   11984:       hardcode_shlibpath_var=no
                   11985:       ;;
                   11986: 
                   11987:     sysv4)
                   11988:       case $host_vendor in
                   11989:        sni)
                   11990:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   11991:          hardcode_direct=yes # is this really true???
                   11992:        ;;
                   11993:        siemens)
                   11994:          ## LD is ld it makes a PLAMLIB
                   11995:          ## CC just makes a GrossModule.
                   11996:          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
                   11997:          reload_cmds='$CC -r -o $output$reload_objs'
                   11998:          hardcode_direct=no
                   11999:         ;;
                   12000:        motorola)
                   12001:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   12002:          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
                   12003:        ;;
                   12004:       esac
                   12005:       runpath_var='LD_RUN_PATH'
                   12006:       hardcode_shlibpath_var=no
                   12007:       ;;
                   12008: 
                   12009:     sysv4.3*)
                   12010:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   12011:       hardcode_shlibpath_var=no
                   12012:       export_dynamic_flag_spec='-Bexport'
                   12013:       ;;
                   12014: 
                   12015:     sysv4*MP*)
                   12016:       if test -d /usr/nec; then
                   12017:        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   12018:        hardcode_shlibpath_var=no
                   12019:        runpath_var=LD_RUN_PATH
                   12020:        hardcode_runpath_var=yes
                   12021:        ld_shlibs=yes
                   12022:       fi
                   12023:       ;;
                   12024: 
                   12025:     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.1.1.6 ! misho    12026:       no_undefined_flag='$wl-z,text'
1.1       misho    12027:       archive_cmds_need_lc=no
                   12028:       hardcode_shlibpath_var=no
                   12029:       runpath_var='LD_RUN_PATH'
                   12030: 
1.1.1.6 ! misho    12031:       if test yes = "$GCC"; then
        !          12032:        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
        !          12033:        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    12034:       else
1.1.1.6 ! misho    12035:        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
        !          12036:        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    12037:       fi
                   12038:       ;;
                   12039: 
                   12040:     sysv5* | sco3.2v5* | sco5v6*)
1.1.1.6 ! misho    12041:       # Note: We CANNOT use -z defs as we might desire, because we do not
1.1       misho    12042:       # link with -lc, and that would cause any symbols used from libc to
                   12043:       # always be unresolved, which means just about no library would
                   12044:       # ever link correctly.  If we're not using GNU ld we use -z text
                   12045:       # though, which does catch some bad symbols but isn't as heavy-handed
                   12046:       # as -z defs.
1.1.1.6 ! misho    12047:       no_undefined_flag='$wl-z,text'
        !          12048:       allow_undefined_flag='$wl-z,nodefs'
1.1       misho    12049:       archive_cmds_need_lc=no
                   12050:       hardcode_shlibpath_var=no
1.1.1.6 ! misho    12051:       hardcode_libdir_flag_spec='$wl-R,$libdir'
1.1       misho    12052:       hardcode_libdir_separator=':'
                   12053:       link_all_deplibs=yes
1.1.1.6 ! misho    12054:       export_dynamic_flag_spec='$wl-Bexport'
1.1       misho    12055:       runpath_var='LD_RUN_PATH'
                   12056: 
1.1.1.6 ! misho    12057:       if test yes = "$GCC"; then
        !          12058:        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
        !          12059:        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    12060:       else
1.1.1.6 ! misho    12061:        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
        !          12062:        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1       misho    12063:       fi
                   12064:       ;;
                   12065: 
                   12066:     uts4*)
                   12067:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   12068:       hardcode_libdir_flag_spec='-L$libdir'
                   12069:       hardcode_shlibpath_var=no
                   12070:       ;;
                   12071: 
                   12072:     *)
                   12073:       ld_shlibs=no
                   12074:       ;;
                   12075:     esac
                   12076: 
1.1.1.6 ! misho    12077:     if test sni = "$host_vendor"; then
1.1       misho    12078:       case $host in
                   12079:       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.1.1.6 ! misho    12080:        export_dynamic_flag_spec='$wl-Blargedynsym'
1.1       misho    12081:        ;;
                   12082:       esac
                   12083:     fi
                   12084:   fi
                   12085: 
                   12086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
                   12087: $as_echo "$ld_shlibs" >&6; }
1.1.1.6 ! misho    12088: test no = "$ld_shlibs" && can_build_shared=no
1.1       misho    12089: 
                   12090: with_gnu_ld=$with_gnu_ld
                   12091: 
                   12092: 
                   12093: 
                   12094: 
                   12095: 
                   12096: 
                   12097: 
                   12098: 
                   12099: 
                   12100: 
                   12101: 
                   12102: 
                   12103: 
                   12104: 
                   12105: 
                   12106: #
                   12107: # Do we need to explicitly link libc?
                   12108: #
                   12109: case "x$archive_cmds_need_lc" in
                   12110: x|xyes)
                   12111:   # Assume -lc should be added
                   12112:   archive_cmds_need_lc=yes
                   12113: 
1.1.1.6 ! misho    12114:   if test yes,yes = "$GCC,$enable_shared"; then
1.1       misho    12115:     case $archive_cmds in
                   12116:     *'~'*)
                   12117:       # FIXME: we may have to deal with multi-command sequences.
                   12118:       ;;
                   12119:     '$CC '*)
                   12120:       # Test whether the compiler implicitly links with -lc since on some
                   12121:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
                   12122:       # to ld, don't add -lc before -lgcc.
                   12123:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
                   12124: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
                   12125: if ${lt_cv_archive_cmds_need_lc+:} false; then :
                   12126:   $as_echo_n "(cached) " >&6
                   12127: else
                   12128:   $RM conftest*
                   12129:        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   12130: 
                   12131:        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   12132:   (eval $ac_compile) 2>&5
                   12133:   ac_status=$?
                   12134:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   12135:   test $ac_status = 0; } 2>conftest.err; then
                   12136:          soname=conftest
                   12137:          lib=conftest
                   12138:          libobjs=conftest.$ac_objext
                   12139:          deplibs=
                   12140:          wl=$lt_prog_compiler_wl
                   12141:          pic_flag=$lt_prog_compiler_pic
                   12142:          compiler_flags=-v
                   12143:          linker_flags=-v
                   12144:          verstring=
                   12145:          output_objdir=.
                   12146:          libname=conftest
                   12147:          lt_save_allow_undefined_flag=$allow_undefined_flag
                   12148:          allow_undefined_flag=
                   12149:          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
                   12150:   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
                   12151:   ac_status=$?
                   12152:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   12153:   test $ac_status = 0; }
                   12154:          then
                   12155:            lt_cv_archive_cmds_need_lc=no
                   12156:          else
                   12157:            lt_cv_archive_cmds_need_lc=yes
                   12158:          fi
                   12159:          allow_undefined_flag=$lt_save_allow_undefined_flag
                   12160:        else
                   12161:          cat conftest.err 1>&5
                   12162:        fi
                   12163:        $RM conftest*
                   12164: 
                   12165: fi
                   12166: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
                   12167: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
                   12168:       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
                   12169:       ;;
                   12170:     esac
                   12171:   fi
                   12172:   ;;
                   12173: esac
                   12174: 
                   12175: 
                   12176: 
                   12177: 
                   12178: 
                   12179: 
                   12180: 
                   12181: 
                   12182: 
                   12183: 
                   12184: 
                   12185: 
                   12186: 
                   12187: 
                   12188: 
                   12189: 
                   12190: 
                   12191: 
                   12192: 
                   12193: 
                   12194: 
                   12195: 
                   12196: 
                   12197: 
                   12198: 
                   12199: 
                   12200: 
                   12201: 
                   12202: 
                   12203: 
                   12204: 
                   12205: 
                   12206: 
                   12207: 
                   12208: 
                   12209: 
                   12210: 
                   12211: 
                   12212: 
                   12213: 
                   12214: 
                   12215: 
                   12216: 
                   12217: 
                   12218: 
                   12219: 
                   12220: 
                   12221: 
                   12222: 
                   12223: 
                   12224: 
                   12225: 
                   12226: 
                   12227: 
                   12228: 
                   12229: 
                   12230: 
                   12231: 
                   12232: 
                   12233: 
                   12234: 
                   12235: 
                   12236: 
                   12237: 
                   12238: 
                   12239: 
                   12240: 
                   12241: 
                   12242: 
                   12243: 
                   12244: 
                   12245: 
                   12246: 
                   12247: 
                   12248: 
                   12249: 
                   12250: 
                   12251: 
                   12252: 
                   12253: 
                   12254: 
                   12255: 
                   12256: 
                   12257: 
                   12258: 
                   12259: 
                   12260: 
                   12261: 
                   12262: 
                   12263: 
                   12264: 
                   12265: 
                   12266: 
                   12267: 
                   12268: 
                   12269: 
                   12270: 
                   12271: 
                   12272: 
                   12273: 
                   12274: 
                   12275: 
                   12276: 
                   12277: 
                   12278: 
                   12279: 
                   12280: 
                   12281: 
                   12282: 
                   12283: 
                   12284: 
                   12285: 
                   12286: 
                   12287: 
                   12288: 
                   12289: 
                   12290: 
                   12291: 
                   12292: 
                   12293: 
                   12294: 
                   12295: 
                   12296: 
                   12297: 
                   12298: 
                   12299: 
                   12300: 
                   12301: 
                   12302: 
                   12303: 
                   12304: 
                   12305: 
                   12306: 
                   12307: 
                   12308: 
                   12309: 
                   12310: 
                   12311: 
                   12312: 
                   12313: 
                   12314: 
                   12315: 
                   12316: 
                   12317: 
                   12318: 
                   12319: 
                   12320: 
                   12321: 
                   12322: 
                   12323: 
                   12324: 
                   12325: 
                   12326:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
                   12327: $as_echo_n "checking dynamic linker characteristics... " >&6; }
                   12328: 
1.1.1.6 ! misho    12329: if test yes = "$GCC"; then
1.1       misho    12330:   case $host_os in
1.1.1.6 ! misho    12331:     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
        !          12332:     *) lt_awk_arg='/^libraries:/' ;;
1.1       misho    12333:   esac
                   12334:   case $host_os in
1.1.1.6 ! misho    12335:     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
        !          12336:     *) lt_sed_strip_eq='s|=/|/|g' ;;
1.1       misho    12337:   esac
                   12338:   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
                   12339:   case $lt_search_path_spec in
                   12340:   *\;*)
                   12341:     # if the path contains ";" then we assume it to be the separator
                   12342:     # otherwise default to the standard path separator (i.e. ":") - it is
                   12343:     # assumed that no part of a normal pathname contains ";" but that should
                   12344:     # okay in the real world where ";" in dirpaths is itself problematic.
                   12345:     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
                   12346:     ;;
                   12347:   *)
                   12348:     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
                   12349:     ;;
                   12350:   esac
                   12351:   # Ok, now we have the path, separated by spaces, we can step through it
1.1.1.6 ! misho    12352:   # and add multilib dir if necessary...
1.1       misho    12353:   lt_tmp_lt_search_path_spec=
1.1.1.6 ! misho    12354:   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
        !          12355:   # ...but if some path component already ends with the multilib dir we assume
        !          12356:   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
        !          12357:   case "$lt_multi_os_dir; $lt_search_path_spec " in
        !          12358:   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
        !          12359:     lt_multi_os_dir=
        !          12360:     ;;
        !          12361:   esac
1.1       misho    12362:   for lt_sys_path in $lt_search_path_spec; do
1.1.1.6 ! misho    12363:     if test -d "$lt_sys_path$lt_multi_os_dir"; then
        !          12364:       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
        !          12365:     elif test -n "$lt_multi_os_dir"; then
1.1       misho    12366:       test -d "$lt_sys_path" && \
                   12367:        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
                   12368:     fi
                   12369:   done
                   12370:   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1.1.1.6 ! misho    12371: BEGIN {RS = " "; FS = "/|\n";} {
        !          12372:   lt_foo = "";
        !          12373:   lt_count = 0;
1.1       misho    12374:   for (lt_i = NF; lt_i > 0; lt_i--) {
                   12375:     if ($lt_i != "" && $lt_i != ".") {
                   12376:       if ($lt_i == "..") {
                   12377:         lt_count++;
                   12378:       } else {
                   12379:         if (lt_count == 0) {
1.1.1.6 ! misho    12380:           lt_foo = "/" $lt_i lt_foo;
1.1       misho    12381:         } else {
                   12382:           lt_count--;
                   12383:         }
                   12384:       }
                   12385:     }
                   12386:   }
                   12387:   if (lt_foo != "") { lt_freq[lt_foo]++; }
                   12388:   if (lt_freq[lt_foo] == 1) { print lt_foo; }
                   12389: }'`
                   12390:   # AWK program above erroneously prepends '/' to C:/dos/paths
                   12391:   # for these hosts.
                   12392:   case $host_os in
                   12393:     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
1.1.1.6 ! misho    12394:       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
1.1       misho    12395:   esac
                   12396:   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
                   12397: else
                   12398:   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
                   12399: fi
                   12400: library_names_spec=
                   12401: libname_spec='lib$name'
                   12402: soname_spec=
1.1.1.6 ! misho    12403: shrext_cmds=.so
1.1       misho    12404: postinstall_cmds=
                   12405: postuninstall_cmds=
                   12406: finish_cmds=
                   12407: finish_eval=
                   12408: shlibpath_var=
                   12409: shlibpath_overrides_runpath=unknown
                   12410: version_type=none
                   12411: dynamic_linker="$host_os ld.so"
                   12412: sys_lib_dlsearch_path_spec="/lib /usr/lib"
                   12413: need_lib_prefix=unknown
                   12414: hardcode_into_libs=no
                   12415: 
                   12416: # when you set need_version to no, make sure it does not cause -set_version
                   12417: # flags to be left without arguments
                   12418: need_version=unknown
                   12419: 
                   12420: case $host_os in
                   12421: aix3*)
1.1.1.2   misho    12422:   version_type=linux # correct to gnu/linux during the next big refactor
1.1.1.6 ! misho    12423:   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1.1       misho    12424:   shlibpath_var=LIBPATH
                   12425: 
                   12426:   # AIX 3 has no versioning support, so we append a major version to the name.
1.1.1.6 ! misho    12427:   soname_spec='$libname$release$shared_ext$major'
1.1       misho    12428:   ;;
                   12429: 
                   12430: aix[4-9]*)
1.1.1.2   misho    12431:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    12432:   need_lib_prefix=no
                   12433:   need_version=no
                   12434:   hardcode_into_libs=yes
1.1.1.6 ! misho    12435:   if test ia64 = "$host_cpu"; then
1.1       misho    12436:     # AIX 5 supports IA64
1.1.1.6 ! misho    12437:     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1.1       misho    12438:     shlibpath_var=LD_LIBRARY_PATH
                   12439:   else
                   12440:     # With GCC up to 2.95.x, collect2 would create an import file
                   12441:     # for dependence libraries.  The import file would start with
1.1.1.6 ! misho    12442:     # the line '#! .'.  This would cause the generated library to
        !          12443:     # depend on '.', always an invalid library.  This was fixed in
1.1       misho    12444:     # development snapshots of GCC prior to 3.0.
                   12445:     case $host_os in
                   12446:       aix4 | aix4.[01] | aix4.[01].*)
                   12447:       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
                   12448:           echo ' yes '
1.1.1.6 ! misho    12449:           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1.1       misho    12450:        :
                   12451:       else
                   12452:        can_build_shared=no
                   12453:       fi
                   12454:       ;;
                   12455:     esac
1.1.1.6 ! misho    12456:     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1.1       misho    12457:     # soname into executable. Probably we can add versioning support to
                   12458:     # collect2, so additional links can be useful in future.
1.1.1.6 ! misho    12459:     if test yes = "$aix_use_runtimelinking"; then
1.1       misho    12460:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
                   12461:       # instead of lib<name>.a to let people know that these are not
                   12462:       # typical AIX shared libraries.
1.1.1.6 ! misho    12463:       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.1       misho    12464:     else
                   12465:       # We preserve .a as extension for shared libraries through AIX4.2
                   12466:       # and later when we are not doing run time linking.
1.1.1.6 ! misho    12467:       library_names_spec='$libname$release.a $libname.a'
        !          12468:       soname_spec='$libname$release$shared_ext$major'
1.1       misho    12469:     fi
                   12470:     shlibpath_var=LIBPATH
                   12471:   fi
                   12472:   ;;
                   12473: 
                   12474: amigaos*)
                   12475:   case $host_cpu in
                   12476:   powerpc)
                   12477:     # Since July 2007 AmigaOS4 officially supports .so libraries.
                   12478:     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
1.1.1.6 ! misho    12479:     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.1       misho    12480:     ;;
                   12481:   m68k)
                   12482:     library_names_spec='$libname.ixlibrary $libname.a'
                   12483:     # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.1.1.6 ! misho    12484:     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
1.1       misho    12485:     ;;
                   12486:   esac
                   12487:   ;;
                   12488: 
                   12489: beos*)
1.1.1.6 ! misho    12490:   library_names_spec='$libname$shared_ext'
1.1       misho    12491:   dynamic_linker="$host_os ld.so"
                   12492:   shlibpath_var=LIBRARY_PATH
                   12493:   ;;
                   12494: 
                   12495: bsdi[45]*)
1.1.1.2   misho    12496:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    12497:   need_version=no
1.1.1.6 ! misho    12498:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
        !          12499:   soname_spec='$libname$release$shared_ext$major'
1.1       misho    12500:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
                   12501:   shlibpath_var=LD_LIBRARY_PATH
                   12502:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
                   12503:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
                   12504:   # the default ld.so.conf also contains /usr/contrib/lib and
                   12505:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
                   12506:   # libtool to hard-code these into programs
                   12507:   ;;
                   12508: 
                   12509: cygwin* | mingw* | pw32* | cegcc*)
                   12510:   version_type=windows
1.1.1.6 ! misho    12511:   shrext_cmds=.dll
1.1       misho    12512:   need_version=no
                   12513:   need_lib_prefix=no
                   12514: 
                   12515:   case $GCC,$cc_basename in
                   12516:   yes,*)
                   12517:     # gcc
                   12518:     library_names_spec='$libname.dll.a'
                   12519:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.1.1.6 ! misho    12520:     postinstall_cmds='base_file=`basename \$file`~
        !          12521:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1.1       misho    12522:       dldir=$destdir/`dirname \$dlpath`~
                   12523:       test -d \$dldir || mkdir -p \$dldir~
                   12524:       $install_prog $dir/$dlname \$dldir/$dlname~
                   12525:       chmod a+x \$dldir/$dlname~
                   12526:       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
                   12527:         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
                   12528:       fi'
                   12529:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
                   12530:       dlpath=$dir/\$dldll~
                   12531:        $RM \$dlpath'
                   12532:     shlibpath_overrides_runpath=yes
                   12533: 
                   12534:     case $host_os in
                   12535:     cygwin*)
                   12536:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.1.1.6 ! misho    12537:       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.1       misho    12538: 
                   12539:       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
                   12540:       ;;
                   12541:     mingw* | cegcc*)
                   12542:       # MinGW DLLs use traditional 'lib' prefix
1.1.1.6 ! misho    12543:       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.1       misho    12544:       ;;
                   12545:     pw32*)
                   12546:       # pw32 DLLs use 'pw' prefix rather than 'lib'
1.1.1.6 ! misho    12547:       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.1       misho    12548:       ;;
                   12549:     esac
                   12550:     dynamic_linker='Win32 ld.exe'
                   12551:     ;;
                   12552: 
                   12553:   *,cl*)
                   12554:     # Native MSVC
                   12555:     libname_spec='$name'
1.1.1.6 ! misho    12556:     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
        !          12557:     library_names_spec='$libname.dll.lib'
1.1       misho    12558: 
                   12559:     case $build_os in
                   12560:     mingw*)
                   12561:       sys_lib_search_path_spec=
                   12562:       lt_save_ifs=$IFS
                   12563:       IFS=';'
                   12564:       for lt_path in $LIB
                   12565:       do
                   12566:         IFS=$lt_save_ifs
                   12567:         # Let DOS variable expansion print the short 8.3 style file name.
                   12568:         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
                   12569:         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
                   12570:       done
                   12571:       IFS=$lt_save_ifs
                   12572:       # Convert to MSYS style.
                   12573:       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
                   12574:       ;;
                   12575:     cygwin*)
                   12576:       # Convert to unix form, then to dos form, then back to unix form
                   12577:       # but this time dos style (no spaces!) so that the unix form looks
                   12578:       # like /cygdrive/c/PROGRA~1:/cygdr...
                   12579:       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
                   12580:       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
                   12581:       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
                   12582:       ;;
                   12583:     *)
1.1.1.6 ! misho    12584:       sys_lib_search_path_spec=$LIB
1.1       misho    12585:       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
                   12586:         # It is most probably a Windows format PATH.
                   12587:         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
                   12588:       else
                   12589:         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
                   12590:       fi
                   12591:       # FIXME: find the short name or the path components, as spaces are
                   12592:       # common. (e.g. "Program Files" -> "PROGRA~1")
                   12593:       ;;
                   12594:     esac
                   12595: 
                   12596:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.1.1.6 ! misho    12597:     postinstall_cmds='base_file=`basename \$file`~
        !          12598:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1.1       misho    12599:       dldir=$destdir/`dirname \$dlpath`~
                   12600:       test -d \$dldir || mkdir -p \$dldir~
                   12601:       $install_prog $dir/$dlname \$dldir/$dlname'
                   12602:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
                   12603:       dlpath=$dir/\$dldll~
                   12604:        $RM \$dlpath'
                   12605:     shlibpath_overrides_runpath=yes
                   12606:     dynamic_linker='Win32 link.exe'
                   12607:     ;;
                   12608: 
                   12609:   *)
                   12610:     # Assume MSVC wrapper
1.1.1.6 ! misho    12611:     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1.1       misho    12612:     dynamic_linker='Win32 ld.exe'
                   12613:     ;;
                   12614:   esac
                   12615:   # FIXME: first we should search . and the directory the executable is in
                   12616:   shlibpath_var=PATH
                   12617:   ;;
                   12618: 
                   12619: darwin* | rhapsody*)
                   12620:   dynamic_linker="$host_os dyld"
                   12621:   version_type=darwin
                   12622:   need_lib_prefix=no
                   12623:   need_version=no
1.1.1.6 ! misho    12624:   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
        !          12625:   soname_spec='$libname$release$major$shared_ext'
1.1       misho    12626:   shlibpath_overrides_runpath=yes
                   12627:   shlibpath_var=DYLD_LIBRARY_PATH
                   12628:   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
                   12629: 
                   12630:   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
                   12631:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
                   12632:   ;;
                   12633: 
                   12634: dgux*)
1.1.1.2   misho    12635:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    12636:   need_lib_prefix=no
                   12637:   need_version=no
1.1.1.6 ! misho    12638:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
        !          12639:   soname_spec='$libname$release$shared_ext$major'
1.1       misho    12640:   shlibpath_var=LD_LIBRARY_PATH
                   12641:   ;;
                   12642: 
                   12643: freebsd* | dragonfly*)
                   12644:   # DragonFly does not have aout.  When/if they implement a new
                   12645:   # versioning mechanism, adjust this.
                   12646:   if test -x /usr/bin/objformat; then
                   12647:     objformat=`/usr/bin/objformat`
                   12648:   else
                   12649:     case $host_os in
1.1.1.2   misho    12650:     freebsd[23].*) objformat=aout ;;
1.1       misho    12651:     *) objformat=elf ;;
                   12652:     esac
                   12653:   fi
                   12654:   version_type=freebsd-$objformat
                   12655:   case $version_type in
                   12656:     freebsd-elf*)
1.1.1.6 ! misho    12657:       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
1.1       misho    12658:       need_version=no
                   12659:       need_lib_prefix=no
                   12660:       ;;
                   12661:     freebsd-*)
1.1.1.6 ! misho    12662:       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.1       misho    12663:       need_version=yes
                   12664:       ;;
                   12665:   esac
                   12666:   shlibpath_var=LD_LIBRARY_PATH
                   12667:   case $host_os in
1.1.1.2   misho    12668:   freebsd2.*)
1.1       misho    12669:     shlibpath_overrides_runpath=yes
                   12670:     ;;
                   12671:   freebsd3.[01]* | freebsdelf3.[01]*)
                   12672:     shlibpath_overrides_runpath=yes
                   12673:     hardcode_into_libs=yes
                   12674:     ;;
                   12675:   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
                   12676:   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
                   12677:     shlibpath_overrides_runpath=no
                   12678:     hardcode_into_libs=yes
                   12679:     ;;
                   12680:   *) # from 4.6 on, and DragonFly
                   12681:     shlibpath_overrides_runpath=yes
                   12682:     hardcode_into_libs=yes
                   12683:     ;;
                   12684:   esac
                   12685:   ;;
                   12686: 
                   12687: haiku*)
1.1.1.2   misho    12688:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    12689:   need_lib_prefix=no
                   12690:   need_version=no
                   12691:   dynamic_linker="$host_os runtime_loader"
1.1.1.6 ! misho    12692:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
        !          12693:   soname_spec='$libname$release$shared_ext$major'
1.1       misho    12694:   shlibpath_var=LIBRARY_PATH
1.1.1.6 ! misho    12695:   shlibpath_overrides_runpath=no
1.1       misho    12696:   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
                   12697:   hardcode_into_libs=yes
                   12698:   ;;
                   12699: 
                   12700: hpux9* | hpux10* | hpux11*)
                   12701:   # Give a soname corresponding to the major version so that dld.sl refuses to
                   12702:   # link against other versions.
                   12703:   version_type=sunos
                   12704:   need_lib_prefix=no
                   12705:   need_version=no
                   12706:   case $host_cpu in
                   12707:   ia64*)
                   12708:     shrext_cmds='.so'
                   12709:     hardcode_into_libs=yes
                   12710:     dynamic_linker="$host_os dld.so"
                   12711:     shlibpath_var=LD_LIBRARY_PATH
                   12712:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.1.1.6 ! misho    12713:     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
        !          12714:     soname_spec='$libname$release$shared_ext$major'
        !          12715:     if test 32 = "$HPUX_IA64_MODE"; then
1.1       misho    12716:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
                   12717:     else
                   12718:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
                   12719:     fi
                   12720:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   12721:     ;;
                   12722:   hppa*64*)
                   12723:     shrext_cmds='.sl'
                   12724:     hardcode_into_libs=yes
                   12725:     dynamic_linker="$host_os dld.sl"
                   12726:     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
                   12727:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.1.1.6 ! misho    12728:     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
        !          12729:     soname_spec='$libname$release$shared_ext$major'
1.1       misho    12730:     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
                   12731:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   12732:     ;;
                   12733:   *)
                   12734:     shrext_cmds='.sl'
                   12735:     dynamic_linker="$host_os dld.sl"
                   12736:     shlibpath_var=SHLIB_PATH
                   12737:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.1.1.6 ! misho    12738:     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
        !          12739:     soname_spec='$libname$release$shared_ext$major'
1.1       misho    12740:     ;;
                   12741:   esac
                   12742:   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
                   12743:   postinstall_cmds='chmod 555 $lib'
                   12744:   # or fails outright, so override atomically:
                   12745:   install_override_mode=555
                   12746:   ;;
                   12747: 
                   12748: interix[3-9]*)
1.1.1.2   misho    12749:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    12750:   need_lib_prefix=no
                   12751:   need_version=no
1.1.1.6 ! misho    12752:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
        !          12753:   soname_spec='$libname$release$shared_ext$major'
1.1       misho    12754:   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
                   12755:   shlibpath_var=LD_LIBRARY_PATH
                   12756:   shlibpath_overrides_runpath=no
                   12757:   hardcode_into_libs=yes
                   12758:   ;;
                   12759: 
                   12760: irix5* | irix6* | nonstopux*)
                   12761:   case $host_os in
                   12762:     nonstopux*) version_type=nonstopux ;;
                   12763:     *)
1.1.1.6 ! misho    12764:        if test yes = "$lt_cv_prog_gnu_ld"; then
1.1.1.2   misho    12765:                version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    12766:        else
                   12767:                version_type=irix
                   12768:        fi ;;
                   12769:   esac
                   12770:   need_lib_prefix=no
                   12771:   need_version=no
1.1.1.6 ! misho    12772:   soname_spec='$libname$release$shared_ext$major'
        !          12773:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1.1       misho    12774:   case $host_os in
                   12775:   irix5* | nonstopux*)
                   12776:     libsuff= shlibsuff=
                   12777:     ;;
                   12778:   *)
                   12779:     case $LD in # libtool.m4 will add one of these switches to LD
                   12780:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
                   12781:       libsuff= shlibsuff= libmagic=32-bit;;
                   12782:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
                   12783:       libsuff=32 shlibsuff=N32 libmagic=N32;;
                   12784:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
                   12785:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
                   12786:     *) libsuff= shlibsuff= libmagic=never-match;;
                   12787:     esac
                   12788:     ;;
                   12789:   esac
                   12790:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
                   12791:   shlibpath_overrides_runpath=no
1.1.1.6 ! misho    12792:   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
        !          12793:   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1.1       misho    12794:   hardcode_into_libs=yes
                   12795:   ;;
                   12796: 
                   12797: # No shared lib support for Linux oldld, aout, or coff.
                   12798: linux*oldld* | linux*aout* | linux*coff*)
                   12799:   dynamic_linker=no
                   12800:   ;;
                   12801: 
1.1.1.6 ! misho    12802: linux*android*)
        !          12803:   version_type=none # Android doesn't support versioned libraries.
        !          12804:   need_lib_prefix=no
        !          12805:   need_version=no
        !          12806:   library_names_spec='$libname$release$shared_ext'
        !          12807:   soname_spec='$libname$release$shared_ext'
        !          12808:   finish_cmds=
        !          12809:   shlibpath_var=LD_LIBRARY_PATH
        !          12810:   shlibpath_overrides_runpath=yes
        !          12811: 
        !          12812:   # This implies no fast_install, which is unacceptable.
        !          12813:   # Some rework will be needed to allow for fast_install
        !          12814:   # before this can be enabled.
        !          12815:   hardcode_into_libs=yes
        !          12816: 
        !          12817:   dynamic_linker='Android linker'
        !          12818:   # Don't embed -rpath directories since the linker doesn't support them.
        !          12819:   hardcode_libdir_flag_spec='-L$libdir'
        !          12820:   ;;
        !          12821: 
1.1.1.2   misho    12822: # This must be glibc/ELF.
1.1.1.6 ! misho    12823: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.1.1.2   misho    12824:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    12825:   need_lib_prefix=no
                   12826:   need_version=no
1.1.1.6 ! misho    12827:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
        !          12828:   soname_spec='$libname$release$shared_ext$major'
1.1       misho    12829:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
                   12830:   shlibpath_var=LD_LIBRARY_PATH
                   12831:   shlibpath_overrides_runpath=no
                   12832: 
                   12833:   # Some binutils ld are patched to set DT_RUNPATH
                   12834:   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
                   12835:   $as_echo_n "(cached) " >&6
                   12836: else
                   12837:   lt_cv_shlibpath_overrides_runpath=no
                   12838:     save_LDFLAGS=$LDFLAGS
                   12839:     save_libdir=$libdir
                   12840:     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
                   12841:         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
                   12842:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   12843: /* end confdefs.h.  */
                   12844: 
                   12845: int
                   12846: main ()
                   12847: {
                   12848: 
                   12849:   ;
                   12850:   return 0;
                   12851: }
                   12852: _ACEOF
                   12853: if ac_fn_c_try_link "$LINENO"; then :
                   12854:   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
                   12855:   lt_cv_shlibpath_overrides_runpath=yes
                   12856: fi
                   12857: fi
                   12858: rm -f core conftest.err conftest.$ac_objext \
                   12859:     conftest$ac_exeext conftest.$ac_ext
                   12860:     LDFLAGS=$save_LDFLAGS
                   12861:     libdir=$save_libdir
                   12862: 
                   12863: fi
                   12864: 
                   12865:   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
                   12866: 
                   12867:   # This implies no fast_install, which is unacceptable.
                   12868:   # Some rework will be needed to allow for fast_install
                   12869:   # before this can be enabled.
                   12870:   hardcode_into_libs=yes
                   12871: 
                   12872:   # Append ld.so.conf contents to the search path
                   12873:   if test -f /etc/ld.so.conf; then
                   12874:     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' ' '`
                   12875:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
                   12876:   fi
                   12877: 
                   12878:   # We used to test for /lib/ld.so.1 and disable shared libraries on
                   12879:   # powerpc, because MkLinux only supported shared libraries with the
                   12880:   # GNU dynamic linker.  Since this was broken with cross compilers,
                   12881:   # most powerpc-linux boxes support dynamic linking these days and
                   12882:   # people can always --disable-shared, the test was removed, and we
                   12883:   # assume the GNU/Linux dynamic linker is in use.
                   12884:   dynamic_linker='GNU/Linux ld.so'
                   12885:   ;;
                   12886: 
                   12887: netbsd*)
                   12888:   version_type=sunos
                   12889:   need_lib_prefix=no
                   12890:   need_version=no
                   12891:   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.1.1.6 ! misho    12892:     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.1       misho    12893:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   12894:     dynamic_linker='NetBSD (a.out) ld.so'
                   12895:   else
1.1.1.6 ! misho    12896:     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
        !          12897:     soname_spec='$libname$release$shared_ext$major'
1.1       misho    12898:     dynamic_linker='NetBSD ld.elf_so'
                   12899:   fi
                   12900:   shlibpath_var=LD_LIBRARY_PATH
                   12901:   shlibpath_overrides_runpath=yes
                   12902:   hardcode_into_libs=yes
                   12903:   ;;
                   12904: 
                   12905: newsos6)
1.1.1.2   misho    12906:   version_type=linux # correct to gnu/linux during the next big refactor
1.1.1.6 ! misho    12907:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.1       misho    12908:   shlibpath_var=LD_LIBRARY_PATH
                   12909:   shlibpath_overrides_runpath=yes
                   12910:   ;;
                   12911: 
                   12912: *nto* | *qnx*)
                   12913:   version_type=qnx
                   12914:   need_lib_prefix=no
                   12915:   need_version=no
1.1.1.6 ! misho    12916:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
        !          12917:   soname_spec='$libname$release$shared_ext$major'
1.1       misho    12918:   shlibpath_var=LD_LIBRARY_PATH
                   12919:   shlibpath_overrides_runpath=no
                   12920:   hardcode_into_libs=yes
                   12921:   dynamic_linker='ldqnx.so'
                   12922:   ;;
                   12923: 
1.1.1.6 ! misho    12924: openbsd* | bitrig*)
1.1       misho    12925:   version_type=sunos
1.1.1.6 ! misho    12926:   sys_lib_dlsearch_path_spec=/usr/lib
1.1       misho    12927:   need_lib_prefix=no
1.1.1.6 ! misho    12928:   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
        !          12929:     need_version=no
1.1       misho    12930:   else
1.1.1.6 ! misho    12931:     need_version=yes
1.1       misho    12932:   fi
1.1.1.6 ! misho    12933:   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
        !          12934:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
        !          12935:   shlibpath_var=LD_LIBRARY_PATH
        !          12936:   shlibpath_overrides_runpath=yes
1.1       misho    12937:   ;;
                   12938: 
                   12939: os2*)
                   12940:   libname_spec='$name'
1.1.1.6 ! misho    12941:   shrext_cmds=.dll
1.1       misho    12942:   need_lib_prefix=no
1.1.1.6 ! misho    12943:   library_names_spec='$libname$shared_ext $libname.a'
1.1       misho    12944:   dynamic_linker='OS/2 ld.exe'
                   12945:   shlibpath_var=LIBPATH
                   12946:   ;;
                   12947: 
                   12948: osf3* | osf4* | osf5*)
                   12949:   version_type=osf
                   12950:   need_lib_prefix=no
                   12951:   need_version=no
1.1.1.6 ! misho    12952:   soname_spec='$libname$release$shared_ext$major'
        !          12953:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.1       misho    12954:   shlibpath_var=LD_LIBRARY_PATH
                   12955:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.1.1.6 ! misho    12956:   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.1       misho    12957:   ;;
                   12958: 
                   12959: rdos*)
                   12960:   dynamic_linker=no
                   12961:   ;;
                   12962: 
                   12963: solaris*)
1.1.1.2   misho    12964:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    12965:   need_lib_prefix=no
                   12966:   need_version=no
1.1.1.6 ! misho    12967:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
        !          12968:   soname_spec='$libname$release$shared_ext$major'
1.1       misho    12969:   shlibpath_var=LD_LIBRARY_PATH
                   12970:   shlibpath_overrides_runpath=yes
                   12971:   hardcode_into_libs=yes
                   12972:   # ldd complains unless libraries are executable
                   12973:   postinstall_cmds='chmod +x $lib'
                   12974:   ;;
                   12975: 
                   12976: sunos4*)
                   12977:   version_type=sunos
1.1.1.6 ! misho    12978:   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.1       misho    12979:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
                   12980:   shlibpath_var=LD_LIBRARY_PATH
                   12981:   shlibpath_overrides_runpath=yes
1.1.1.6 ! misho    12982:   if test yes = "$with_gnu_ld"; then
1.1       misho    12983:     need_lib_prefix=no
                   12984:   fi
                   12985:   need_version=yes
                   12986:   ;;
                   12987: 
                   12988: sysv4 | sysv4.3*)
1.1.1.2   misho    12989:   version_type=linux # correct to gnu/linux during the next big refactor
1.1.1.6 ! misho    12990:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
        !          12991:   soname_spec='$libname$release$shared_ext$major'
1.1       misho    12992:   shlibpath_var=LD_LIBRARY_PATH
                   12993:   case $host_vendor in
                   12994:     sni)
                   12995:       shlibpath_overrides_runpath=no
                   12996:       need_lib_prefix=no
                   12997:       runpath_var=LD_RUN_PATH
                   12998:       ;;
                   12999:     siemens)
                   13000:       need_lib_prefix=no
                   13001:       ;;
                   13002:     motorola)
                   13003:       need_lib_prefix=no
                   13004:       need_version=no
                   13005:       shlibpath_overrides_runpath=no
                   13006:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
                   13007:       ;;
                   13008:   esac
                   13009:   ;;
                   13010: 
                   13011: sysv4*MP*)
1.1.1.6 ! misho    13012:   if test -d /usr/nec; then
1.1.1.2   misho    13013:     version_type=linux # correct to gnu/linux during the next big refactor
1.1.1.6 ! misho    13014:     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
        !          13015:     soname_spec='$libname$shared_ext.$major'
1.1       misho    13016:     shlibpath_var=LD_LIBRARY_PATH
                   13017:   fi
                   13018:   ;;
                   13019: 
                   13020: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
                   13021:   version_type=freebsd-elf
                   13022:   need_lib_prefix=no
                   13023:   need_version=no
1.1.1.6 ! misho    13024:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
        !          13025:   soname_spec='$libname$release$shared_ext$major'
1.1       misho    13026:   shlibpath_var=LD_LIBRARY_PATH
                   13027:   shlibpath_overrides_runpath=yes
                   13028:   hardcode_into_libs=yes
1.1.1.6 ! misho    13029:   if test yes = "$with_gnu_ld"; then
1.1       misho    13030:     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
                   13031:   else
                   13032:     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
                   13033:     case $host_os in
                   13034:       sco3.2v5*)
                   13035:         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
                   13036:        ;;
                   13037:     esac
                   13038:   fi
                   13039:   sys_lib_dlsearch_path_spec='/usr/lib'
                   13040:   ;;
                   13041: 
                   13042: tpf*)
                   13043:   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
1.1.1.2   misho    13044:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    13045:   need_lib_prefix=no
                   13046:   need_version=no
1.1.1.6 ! misho    13047:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.1       misho    13048:   shlibpath_var=LD_LIBRARY_PATH
                   13049:   shlibpath_overrides_runpath=no
                   13050:   hardcode_into_libs=yes
                   13051:   ;;
                   13052: 
                   13053: uts4*)
1.1.1.2   misho    13054:   version_type=linux # correct to gnu/linux during the next big refactor
1.1.1.6 ! misho    13055:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
        !          13056:   soname_spec='$libname$release$shared_ext$major'
1.1       misho    13057:   shlibpath_var=LD_LIBRARY_PATH
                   13058:   ;;
                   13059: 
                   13060: *)
                   13061:   dynamic_linker=no
                   13062:   ;;
                   13063: esac
                   13064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
                   13065: $as_echo "$dynamic_linker" >&6; }
1.1.1.6 ! misho    13066: test no = "$dynamic_linker" && can_build_shared=no
1.1       misho    13067: 
                   13068: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.1.1.6 ! misho    13069: if test yes = "$GCC"; then
1.1       misho    13070:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
                   13071: fi
                   13072: 
1.1.1.6 ! misho    13073: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
        !          13074:   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
1.1       misho    13075: fi
1.1.1.6 ! misho    13076: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
        !          13077:   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
1.1       misho    13078: fi
                   13079: 
                   13080: 
                   13081: 
                   13082: 
                   13083: 
                   13084: 
                   13085: 
                   13086: 
                   13087: 
                   13088: 
                   13089: 
                   13090: 
                   13091: 
                   13092: 
                   13093: 
                   13094: 
                   13095: 
                   13096: 
                   13097: 
                   13098: 
                   13099: 
                   13100: 
                   13101: 
                   13102: 
                   13103: 
                   13104: 
                   13105: 
                   13106: 
                   13107: 
                   13108: 
                   13109: 
                   13110: 
                   13111: 
                   13112: 
                   13113: 
                   13114: 
                   13115: 
                   13116: 
                   13117: 
                   13118: 
                   13119: 
                   13120: 
                   13121: 
                   13122: 
                   13123: 
                   13124: 
                   13125: 
                   13126: 
                   13127: 
                   13128: 
                   13129: 
                   13130: 
                   13131: 
                   13132: 
                   13133: 
                   13134: 
                   13135: 
                   13136: 
                   13137: 
                   13138: 
                   13139: 
                   13140: 
                   13141: 
                   13142: 
                   13143: 
                   13144: 
                   13145: 
                   13146: 
                   13147: 
                   13148: 
                   13149: 
                   13150: 
                   13151: 
                   13152: 
                   13153: 
                   13154: 
                   13155: 
                   13156: 
                   13157: 
                   13158: 
                   13159: 
                   13160: 
                   13161: 
                   13162: 
                   13163: 
                   13164: 
                   13165: 
                   13166: 
                   13167: 
                   13168: 
                   13169: 
                   13170: 
                   13171:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
                   13172: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
                   13173: hardcode_action=
                   13174: if test -n "$hardcode_libdir_flag_spec" ||
                   13175:    test -n "$runpath_var" ||
1.1.1.6 ! misho    13176:    test yes = "$hardcode_automatic"; then
1.1       misho    13177: 
                   13178:   # We can hardcode non-existent directories.
1.1.1.6 ! misho    13179:   if test no != "$hardcode_direct" &&
1.1       misho    13180:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
                   13181:      # have to relink, otherwise we might link with an installed library
                   13182:      # when we should be linking with a yet-to-be-installed one
1.1.1.6 ! misho    13183:      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
        !          13184:      test no != "$hardcode_minus_L"; then
1.1       misho    13185:     # Linking always hardcodes the temporary library directory.
                   13186:     hardcode_action=relink
                   13187:   else
                   13188:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
                   13189:     hardcode_action=immediate
                   13190:   fi
                   13191: else
                   13192:   # We cannot hardcode anything, or else we can only hardcode existing
                   13193:   # directories.
                   13194:   hardcode_action=unsupported
                   13195: fi
                   13196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
                   13197: $as_echo "$hardcode_action" >&6; }
                   13198: 
1.1.1.6 ! misho    13199: if test relink = "$hardcode_action" ||
        !          13200:    test yes = "$inherit_rpath"; then
1.1       misho    13201:   # Fast installation is not supported
                   13202:   enable_fast_install=no
1.1.1.6 ! misho    13203: elif test yes = "$shlibpath_overrides_runpath" ||
        !          13204:      test no = "$enable_shared"; then
1.1       misho    13205:   # Fast installation is not necessary
                   13206:   enable_fast_install=needless
                   13207: fi
                   13208: 
                   13209: 
                   13210: 
                   13211: 
                   13212: 
                   13213: 
1.1.1.6 ! misho    13214:   if test yes != "$enable_dlopen"; then
1.1       misho    13215:   enable_dlopen=unknown
                   13216:   enable_dlopen_self=unknown
                   13217:   enable_dlopen_self_static=unknown
                   13218: else
                   13219:   lt_cv_dlopen=no
                   13220:   lt_cv_dlopen_libs=
                   13221: 
                   13222:   case $host_os in
                   13223:   beos*)
1.1.1.6 ! misho    13224:     lt_cv_dlopen=load_add_on
1.1       misho    13225:     lt_cv_dlopen_libs=
                   13226:     lt_cv_dlopen_self=yes
                   13227:     ;;
                   13228: 
                   13229:   mingw* | pw32* | cegcc*)
1.1.1.6 ! misho    13230:     lt_cv_dlopen=LoadLibrary
1.1       misho    13231:     lt_cv_dlopen_libs=
                   13232:     ;;
                   13233: 
                   13234:   cygwin*)
1.1.1.6 ! misho    13235:     lt_cv_dlopen=dlopen
1.1       misho    13236:     lt_cv_dlopen_libs=
                   13237:     ;;
                   13238: 
                   13239:   darwin*)
1.1.1.6 ! misho    13240:     # if libdl is installed we need to link against it
1.1       misho    13241:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   13242: $as_echo_n "checking for dlopen in -ldl... " >&6; }
                   13243: if ${ac_cv_lib_dl_dlopen+:} false; then :
                   13244:   $as_echo_n "(cached) " >&6
                   13245: else
                   13246:   ac_check_lib_save_LIBS=$LIBS
                   13247: LIBS="-ldl  $LIBS"
                   13248: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13249: /* end confdefs.h.  */
                   13250: 
                   13251: /* Override any GCC internal prototype to avoid an error.
                   13252:    Use char because int might match the return type of a GCC
                   13253:    builtin and then its argument prototype would still apply.  */
                   13254: #ifdef __cplusplus
                   13255: extern "C"
                   13256: #endif
                   13257: char dlopen ();
                   13258: int
                   13259: main ()
                   13260: {
                   13261: return dlopen ();
                   13262:   ;
                   13263:   return 0;
                   13264: }
                   13265: _ACEOF
                   13266: if ac_fn_c_try_link "$LINENO"; then :
                   13267:   ac_cv_lib_dl_dlopen=yes
                   13268: else
                   13269:   ac_cv_lib_dl_dlopen=no
                   13270: fi
                   13271: rm -f core conftest.err conftest.$ac_objext \
                   13272:     conftest$ac_exeext conftest.$ac_ext
                   13273: LIBS=$ac_check_lib_save_LIBS
                   13274: fi
                   13275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   13276: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
                   13277: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.1.1.6 ! misho    13278:   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1.1       misho    13279: else
                   13280: 
1.1.1.6 ! misho    13281:     lt_cv_dlopen=dyld
1.1       misho    13282:     lt_cv_dlopen_libs=
                   13283:     lt_cv_dlopen_self=yes
                   13284: 
                   13285: fi
                   13286: 
                   13287:     ;;
                   13288: 
1.1.1.6 ! misho    13289:   tpf*)
        !          13290:     # Don't try to run any link tests for TPF.  We know it's impossible
        !          13291:     # because TPF is a cross-compiler, and we know how we open DSOs.
        !          13292:     lt_cv_dlopen=dlopen
        !          13293:     lt_cv_dlopen_libs=
        !          13294:     lt_cv_dlopen_self=no
        !          13295:     ;;
        !          13296: 
1.1       misho    13297:   *)
                   13298:     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
                   13299: if test "x$ac_cv_func_shl_load" = xyes; then :
1.1.1.6 ! misho    13300:   lt_cv_dlopen=shl_load
1.1       misho    13301: else
                   13302:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
                   13303: $as_echo_n "checking for shl_load in -ldld... " >&6; }
                   13304: if ${ac_cv_lib_dld_shl_load+:} false; then :
                   13305:   $as_echo_n "(cached) " >&6
                   13306: else
                   13307:   ac_check_lib_save_LIBS=$LIBS
                   13308: LIBS="-ldld  $LIBS"
                   13309: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13310: /* end confdefs.h.  */
                   13311: 
                   13312: /* Override any GCC internal prototype to avoid an error.
                   13313:    Use char because int might match the return type of a GCC
                   13314:    builtin and then its argument prototype would still apply.  */
                   13315: #ifdef __cplusplus
                   13316: extern "C"
                   13317: #endif
                   13318: char shl_load ();
                   13319: int
                   13320: main ()
                   13321: {
                   13322: return shl_load ();
                   13323:   ;
                   13324:   return 0;
                   13325: }
                   13326: _ACEOF
                   13327: if ac_fn_c_try_link "$LINENO"; then :
                   13328:   ac_cv_lib_dld_shl_load=yes
                   13329: else
                   13330:   ac_cv_lib_dld_shl_load=no
                   13331: fi
                   13332: rm -f core conftest.err conftest.$ac_objext \
                   13333:     conftest$ac_exeext conftest.$ac_ext
                   13334: LIBS=$ac_check_lib_save_LIBS
                   13335: fi
                   13336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
                   13337: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
                   13338: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1.1.6 ! misho    13339:   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
1.1       misho    13340: else
                   13341:   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
                   13342: if test "x$ac_cv_func_dlopen" = xyes; then :
1.1.1.6 ! misho    13343:   lt_cv_dlopen=dlopen
1.1       misho    13344: else
                   13345:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   13346: $as_echo_n "checking for dlopen in -ldl... " >&6; }
                   13347: if ${ac_cv_lib_dl_dlopen+:} false; then :
                   13348:   $as_echo_n "(cached) " >&6
                   13349: else
                   13350:   ac_check_lib_save_LIBS=$LIBS
                   13351: LIBS="-ldl  $LIBS"
                   13352: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13353: /* end confdefs.h.  */
                   13354: 
                   13355: /* Override any GCC internal prototype to avoid an error.
                   13356:    Use char because int might match the return type of a GCC
                   13357:    builtin and then its argument prototype would still apply.  */
                   13358: #ifdef __cplusplus
                   13359: extern "C"
                   13360: #endif
                   13361: char dlopen ();
                   13362: int
                   13363: main ()
                   13364: {
                   13365: return dlopen ();
                   13366:   ;
                   13367:   return 0;
                   13368: }
                   13369: _ACEOF
                   13370: if ac_fn_c_try_link "$LINENO"; then :
                   13371:   ac_cv_lib_dl_dlopen=yes
                   13372: else
                   13373:   ac_cv_lib_dl_dlopen=no
                   13374: fi
                   13375: rm -f core conftest.err conftest.$ac_objext \
                   13376:     conftest$ac_exeext conftest.$ac_ext
                   13377: LIBS=$ac_check_lib_save_LIBS
                   13378: fi
                   13379: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   13380: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
                   13381: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.1.1.6 ! misho    13382:   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1.1       misho    13383: else
                   13384:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
                   13385: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
                   13386: if ${ac_cv_lib_svld_dlopen+:} false; then :
                   13387:   $as_echo_n "(cached) " >&6
                   13388: else
                   13389:   ac_check_lib_save_LIBS=$LIBS
                   13390: LIBS="-lsvld  $LIBS"
                   13391: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13392: /* end confdefs.h.  */
                   13393: 
                   13394: /* Override any GCC internal prototype to avoid an error.
                   13395:    Use char because int might match the return type of a GCC
                   13396:    builtin and then its argument prototype would still apply.  */
                   13397: #ifdef __cplusplus
                   13398: extern "C"
                   13399: #endif
                   13400: char dlopen ();
                   13401: int
                   13402: main ()
                   13403: {
                   13404: return dlopen ();
                   13405:   ;
                   13406:   return 0;
                   13407: }
                   13408: _ACEOF
                   13409: if ac_fn_c_try_link "$LINENO"; then :
                   13410:   ac_cv_lib_svld_dlopen=yes
                   13411: else
                   13412:   ac_cv_lib_svld_dlopen=no
                   13413: fi
                   13414: rm -f core conftest.err conftest.$ac_objext \
                   13415:     conftest$ac_exeext conftest.$ac_ext
                   13416: LIBS=$ac_check_lib_save_LIBS
                   13417: fi
                   13418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
                   13419: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
                   13420: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.1.1.6 ! misho    13421:   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
1.1       misho    13422: else
                   13423:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
                   13424: $as_echo_n "checking for dld_link in -ldld... " >&6; }
                   13425: if ${ac_cv_lib_dld_dld_link+:} false; then :
                   13426:   $as_echo_n "(cached) " >&6
                   13427: else
                   13428:   ac_check_lib_save_LIBS=$LIBS
                   13429: LIBS="-ldld  $LIBS"
                   13430: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13431: /* end confdefs.h.  */
                   13432: 
                   13433: /* Override any GCC internal prototype to avoid an error.
                   13434:    Use char because int might match the return type of a GCC
                   13435:    builtin and then its argument prototype would still apply.  */
                   13436: #ifdef __cplusplus
                   13437: extern "C"
                   13438: #endif
                   13439: char dld_link ();
                   13440: int
                   13441: main ()
                   13442: {
                   13443: return dld_link ();
                   13444:   ;
                   13445:   return 0;
                   13446: }
                   13447: _ACEOF
                   13448: if ac_fn_c_try_link "$LINENO"; then :
                   13449:   ac_cv_lib_dld_dld_link=yes
                   13450: else
                   13451:   ac_cv_lib_dld_dld_link=no
                   13452: fi
                   13453: rm -f core conftest.err conftest.$ac_objext \
                   13454:     conftest$ac_exeext conftest.$ac_ext
                   13455: LIBS=$ac_check_lib_save_LIBS
                   13456: fi
                   13457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
                   13458: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
                   13459: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.1.1.6 ! misho    13460:   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1.1       misho    13461: fi
                   13462: 
                   13463: 
                   13464: fi
                   13465: 
                   13466: 
                   13467: fi
                   13468: 
                   13469: 
                   13470: fi
                   13471: 
                   13472: 
                   13473: fi
                   13474: 
                   13475: 
                   13476: fi
                   13477: 
                   13478:     ;;
                   13479:   esac
                   13480: 
1.1.1.6 ! misho    13481:   if test no = "$lt_cv_dlopen"; then
1.1       misho    13482:     enable_dlopen=no
1.1.1.6 ! misho    13483:   else
        !          13484:     enable_dlopen=yes
1.1       misho    13485:   fi
                   13486: 
                   13487:   case $lt_cv_dlopen in
                   13488:   dlopen)
1.1.1.6 ! misho    13489:     save_CPPFLAGS=$CPPFLAGS
        !          13490:     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.1       misho    13491: 
1.1.1.6 ! misho    13492:     save_LDFLAGS=$LDFLAGS
1.1       misho    13493:     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
                   13494: 
1.1.1.6 ! misho    13495:     save_LIBS=$LIBS
1.1       misho    13496:     LIBS="$lt_cv_dlopen_libs $LIBS"
                   13497: 
                   13498:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
                   13499: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
                   13500: if ${lt_cv_dlopen_self+:} false; then :
                   13501:   $as_echo_n "(cached) " >&6
                   13502: else
1.1.1.6 ! misho    13503:          if test yes = "$cross_compiling"; then :
1.1       misho    13504:   lt_cv_dlopen_self=cross
                   13505: else
                   13506:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   13507:   lt_status=$lt_dlunknown
                   13508:   cat > conftest.$ac_ext <<_LT_EOF
                   13509: #line $LINENO "configure"
                   13510: #include "confdefs.h"
                   13511: 
                   13512: #if HAVE_DLFCN_H
                   13513: #include <dlfcn.h>
                   13514: #endif
                   13515: 
                   13516: #include <stdio.h>
                   13517: 
                   13518: #ifdef RTLD_GLOBAL
                   13519: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   13520: #else
                   13521: #  ifdef DL_GLOBAL
                   13522: #    define LT_DLGLOBAL                DL_GLOBAL
                   13523: #  else
                   13524: #    define LT_DLGLOBAL                0
                   13525: #  endif
                   13526: #endif
                   13527: 
                   13528: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   13529:    find out it does not work in some platform. */
                   13530: #ifndef LT_DLLAZY_OR_NOW
                   13531: #  ifdef RTLD_LAZY
                   13532: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   13533: #  else
                   13534: #    ifdef DL_LAZY
                   13535: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   13536: #    else
                   13537: #      ifdef RTLD_NOW
                   13538: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   13539: #      else
                   13540: #        ifdef DL_NOW
                   13541: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   13542: #        else
                   13543: #          define LT_DLLAZY_OR_NOW     0
                   13544: #        endif
                   13545: #      endif
                   13546: #    endif
                   13547: #  endif
                   13548: #endif
                   13549: 
                   13550: /* When -fvisbility=hidden is used, assume the code has been annotated
                   13551:    correspondingly for the symbols needed.  */
1.1.1.6 ! misho    13552: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1.1       misho    13553: int fnord () __attribute__((visibility("default")));
                   13554: #endif
                   13555: 
                   13556: int fnord () { return 42; }
                   13557: int main ()
                   13558: {
                   13559:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   13560:   int status = $lt_dlunknown;
                   13561: 
                   13562:   if (self)
                   13563:     {
                   13564:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   13565:       else
                   13566:         {
                   13567:          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
                   13568:           else puts (dlerror ());
                   13569:        }
                   13570:       /* dlclose (self); */
                   13571:     }
                   13572:   else
                   13573:     puts (dlerror ());
                   13574: 
                   13575:   return status;
                   13576: }
                   13577: _LT_EOF
                   13578:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   13579:   (eval $ac_link) 2>&5
                   13580:   ac_status=$?
                   13581:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1.1.6 ! misho    13582:   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.1       misho    13583:     (./conftest; exit; ) >&5 2>/dev/null
                   13584:     lt_status=$?
                   13585:     case x$lt_status in
                   13586:       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
                   13587:       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
                   13588:       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
                   13589:     esac
                   13590:   else :
                   13591:     # compilation failed
                   13592:     lt_cv_dlopen_self=no
                   13593:   fi
                   13594: fi
                   13595: rm -fr conftest*
                   13596: 
                   13597: 
                   13598: fi
                   13599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
                   13600: $as_echo "$lt_cv_dlopen_self" >&6; }
                   13601: 
1.1.1.6 ! misho    13602:     if test yes = "$lt_cv_dlopen_self"; then
1.1       misho    13603:       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
                   13604:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
                   13605: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
                   13606: if ${lt_cv_dlopen_self_static+:} false; then :
                   13607:   $as_echo_n "(cached) " >&6
                   13608: else
1.1.1.6 ! misho    13609:          if test yes = "$cross_compiling"; then :
1.1       misho    13610:   lt_cv_dlopen_self_static=cross
                   13611: else
                   13612:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   13613:   lt_status=$lt_dlunknown
                   13614:   cat > conftest.$ac_ext <<_LT_EOF
                   13615: #line $LINENO "configure"
                   13616: #include "confdefs.h"
                   13617: 
                   13618: #if HAVE_DLFCN_H
                   13619: #include <dlfcn.h>
                   13620: #endif
                   13621: 
                   13622: #include <stdio.h>
                   13623: 
                   13624: #ifdef RTLD_GLOBAL
                   13625: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   13626: #else
                   13627: #  ifdef DL_GLOBAL
                   13628: #    define LT_DLGLOBAL                DL_GLOBAL
                   13629: #  else
                   13630: #    define LT_DLGLOBAL                0
                   13631: #  endif
                   13632: #endif
                   13633: 
                   13634: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   13635:    find out it does not work in some platform. */
                   13636: #ifndef LT_DLLAZY_OR_NOW
                   13637: #  ifdef RTLD_LAZY
                   13638: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   13639: #  else
                   13640: #    ifdef DL_LAZY
                   13641: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   13642: #    else
                   13643: #      ifdef RTLD_NOW
                   13644: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   13645: #      else
                   13646: #        ifdef DL_NOW
                   13647: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   13648: #        else
                   13649: #          define LT_DLLAZY_OR_NOW     0
                   13650: #        endif
                   13651: #      endif
                   13652: #    endif
                   13653: #  endif
                   13654: #endif
                   13655: 
                   13656: /* When -fvisbility=hidden is used, assume the code has been annotated
                   13657:    correspondingly for the symbols needed.  */
1.1.1.6 ! misho    13658: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1.1       misho    13659: int fnord () __attribute__((visibility("default")));
                   13660: #endif
                   13661: 
                   13662: int fnord () { return 42; }
                   13663: int main ()
                   13664: {
                   13665:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   13666:   int status = $lt_dlunknown;
                   13667: 
                   13668:   if (self)
                   13669:     {
                   13670:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   13671:       else
                   13672:         {
                   13673:          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
                   13674:           else puts (dlerror ());
                   13675:        }
                   13676:       /* dlclose (self); */
                   13677:     }
                   13678:   else
                   13679:     puts (dlerror ());
                   13680: 
                   13681:   return status;
                   13682: }
                   13683: _LT_EOF
                   13684:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   13685:   (eval $ac_link) 2>&5
                   13686:   ac_status=$?
                   13687:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1.1.6 ! misho    13688:   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.1       misho    13689:     (./conftest; exit; ) >&5 2>/dev/null
                   13690:     lt_status=$?
                   13691:     case x$lt_status in
                   13692:       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
                   13693:       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
                   13694:       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
                   13695:     esac
                   13696:   else :
                   13697:     # compilation failed
                   13698:     lt_cv_dlopen_self_static=no
                   13699:   fi
                   13700: fi
                   13701: rm -fr conftest*
                   13702: 
                   13703: 
                   13704: fi
                   13705: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
                   13706: $as_echo "$lt_cv_dlopen_self_static" >&6; }
                   13707:     fi
                   13708: 
1.1.1.6 ! misho    13709:     CPPFLAGS=$save_CPPFLAGS
        !          13710:     LDFLAGS=$save_LDFLAGS
        !          13711:     LIBS=$save_LIBS
1.1       misho    13712:     ;;
                   13713:   esac
                   13714: 
                   13715:   case $lt_cv_dlopen_self in
                   13716:   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
                   13717:   *) enable_dlopen_self=unknown ;;
                   13718:   esac
                   13719: 
                   13720:   case $lt_cv_dlopen_self_static in
                   13721:   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
                   13722:   *) enable_dlopen_self_static=unknown ;;
                   13723:   esac
                   13724: fi
                   13725: 
                   13726: 
                   13727: 
                   13728: 
                   13729: 
                   13730: 
                   13731: 
                   13732: 
                   13733: 
                   13734: 
                   13735: 
                   13736: 
                   13737: 
                   13738: 
                   13739: 
                   13740: 
                   13741: 
                   13742: striplib=
                   13743: old_striplib=
                   13744: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
                   13745: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
                   13746: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
                   13747:   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
                   13748:   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
                   13749:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   13750: $as_echo "yes" >&6; }
                   13751: else
                   13752: # FIXME - insert some real tests, host_os isn't really good enough
                   13753:   case $host_os in
                   13754:   darwin*)
1.1.1.6 ! misho    13755:     if test -n "$STRIP"; then
1.1       misho    13756:       striplib="$STRIP -x"
                   13757:       old_striplib="$STRIP -S"
                   13758:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   13759: $as_echo "yes" >&6; }
                   13760:     else
                   13761:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   13762: $as_echo "no" >&6; }
                   13763:     fi
                   13764:     ;;
                   13765:   *)
                   13766:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   13767: $as_echo "no" >&6; }
                   13768:     ;;
                   13769:   esac
                   13770: fi
                   13771: 
                   13772: 
                   13773: 
                   13774: 
                   13775: 
                   13776: 
                   13777: 
                   13778: 
                   13779: 
                   13780: 
                   13781: 
                   13782: 
1.1.1.6 ! misho    13783:   # Report what library types will actually be built
1.1       misho    13784:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
                   13785: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
                   13786:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
                   13787: $as_echo "$can_build_shared" >&6; }
                   13788: 
                   13789:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
                   13790: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.1.1.6 ! misho    13791:   test no = "$can_build_shared" && enable_shared=no
1.1       misho    13792: 
                   13793:   # On AIX, shared libraries and static libraries use the same namespace, and
                   13794:   # are all built from PIC.
                   13795:   case $host_os in
                   13796:   aix3*)
1.1.1.6 ! misho    13797:     test yes = "$enable_shared" && enable_static=no
1.1       misho    13798:     if test -n "$RANLIB"; then
                   13799:       archive_cmds="$archive_cmds~\$RANLIB \$lib"
                   13800:       postinstall_cmds='$RANLIB $lib'
                   13801:     fi
                   13802:     ;;
                   13803: 
                   13804:   aix[4-9]*)
1.1.1.6 ! misho    13805:     if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
        !          13806:       test yes = "$enable_shared" && enable_static=no
1.1       misho    13807:     fi
                   13808:     ;;
                   13809:   esac
                   13810:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
                   13811: $as_echo "$enable_shared" >&6; }
                   13812: 
                   13813:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
                   13814: $as_echo_n "checking whether to build static libraries... " >&6; }
                   13815:   # Make sure either enable_shared or enable_static is yes.
1.1.1.6 ! misho    13816:   test yes = "$enable_shared" || enable_static=yes
1.1       misho    13817:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
                   13818: $as_echo "$enable_static" >&6; }
                   13819: 
                   13820: 
                   13821: 
                   13822: 
                   13823: fi
                   13824: ac_ext=c
                   13825: ac_cpp='$CPP $CPPFLAGS'
                   13826: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   13827: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   13828: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   13829: 
1.1.1.6 ! misho    13830: CC=$lt_save_CC
1.1       misho    13831: 
                   13832: 
                   13833: 
                   13834: 
                   13835: 
                   13836: 
                   13837: 
                   13838: 
                   13839: 
                   13840: 
                   13841: 
                   13842: 
                   13843: 
1.1.1.2   misho    13844: 
                   13845: 
1.1       misho    13846:         ac_config_commands="$ac_config_commands libtool"
                   13847: 
                   13848: 
                   13849: 
                   13850: 
                   13851: # Only expand once:
                   13852: 
                   13853: 
                   13854: 
1.1.1.4   misho    13855: 
                   13856: # Check whether --with-libtool was given.
                   13857: if test "${with_libtool+set}" = set; then :
                   13858:   withval=$with_libtool; case $with_libtool in
                   13859:     yes|builtin) ;;
                   13860:     no)                as_fn_error $? "\"--without-libtool not supported.\"" "$LINENO" 5
                   13861:                ;;
                   13862:     system)    LIBTOOL=libtool
                   13863:                ;;
                   13864:     *)         LIBTOOL="$with_libtool"
                   13865:                ;;
                   13866: esac
                   13867: fi
                   13868: 
                   13869: 
1.1       misho    13870: if test "$enable_shared" = "no"; then
                   13871:     with_noexec=no
                   13872:     enable_dlopen=no
                   13873:     lt_cv_dlopen=none
                   13874:     lt_cv_dlopen_libs=
1.1.1.2   misho    13875:     ac_cv_func_dlopen=no
1.1.1.4   misho    13876:     LT_LDFLAGS=-static
1.1       misho    13877: else
                   13878:     eval _shrext="$shrext_cmds"
                   13879:     # Darwin uses .dylib for libraries but .so for modules
                   13880:     if test X"$_shrext" = X".dylib"; then
                   13881:        SOEXT=".so"
1.1.1.5   misho    13882:        SHLIB_EXT=".dylib"
1.1       misho    13883:     else
                   13884:        SOEXT="$_shrext"
1.1.1.5   misho    13885:        SHLIB_EXT="$_shrext"
1.1       misho    13886:     fi
                   13887: fi
1.1.1.6 ! misho    13888: LIBDL="$lt_cv_dlopen_libs"
        !          13889: 
1.1       misho    13890: { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
                   13891: $as_echo_n "checking path to sudo_noexec.so... " >&6; }
                   13892: 
                   13893: # Check whether --with-noexec was given.
                   13894: if test "${with_noexec+set}" = set; then :
                   13895:   withval=$with_noexec; case $with_noexec in
1.1.1.4   misho    13896:     yes)       with_noexec="$libexecdir/sudo/sudo_noexec.so"
1.1       misho    13897:                ;;
                   13898:     no)                ;;
                   13899:     *)         ;;
                   13900: esac
                   13901: else
1.1.1.4   misho    13902:   with_noexec="$libexecdir/sudo/sudo_noexec.so"
1.1       misho    13903: fi
                   13904: 
                   13905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
                   13906: $as_echo "$with_noexec" >&6; }
1.1.1.4   misho    13907: NOEXECFILE="sudo_noexec.so"
1.1.1.3   misho    13908: NOEXECDIR="`echo $with_noexec|sed -e 's:^${\([^}]*\)}:$(\1):' -e 's:^\(.*\)/[^/]*:\1:'`"
1.1       misho    13909: 
                   13910: # Extract the first word of "uname", so it can be a program name with args.
                   13911: set dummy uname; ac_word=$2
                   13912: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   13913: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.3   misho    13914: if ${ac_cv_path_UNAMEPROG+:} false; then :
1.1       misho    13915:   $as_echo_n "(cached) " >&6
                   13916: else
1.1.1.3   misho    13917:   case $UNAMEPROG in
                   13918:   [\\/]* | ?:[\\/]*)
                   13919:   ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path.
                   13920:   ;;
                   13921:   *)
                   13922:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1       misho    13923: for as_dir in $PATH
                   13924: do
                   13925:   IFS=$as_save_IFS
                   13926:   test -z "$as_dir" && as_dir=.
                   13927:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    13928:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.3   misho    13929:     ac_cv_path_UNAMEPROG="$as_dir/$ac_word$ac_exec_ext"
1.1       misho    13930:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   13931:     break 2
                   13932:   fi
                   13933: done
                   13934:   done
                   13935: IFS=$as_save_IFS
                   13936: 
1.1.1.3   misho    13937:   test -z "$ac_cv_path_UNAMEPROG" && ac_cv_path_UNAMEPROG="uname"
                   13938:   ;;
                   13939: esac
1.1       misho    13940: fi
1.1.1.3   misho    13941: UNAMEPROG=$ac_cv_path_UNAMEPROG
1.1       misho    13942: if test -n "$UNAMEPROG"; then
                   13943:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
                   13944: $as_echo "$UNAMEPROG" >&6; }
                   13945: else
                   13946:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   13947: $as_echo "no" >&6; }
                   13948: fi
                   13949: 
                   13950: 
                   13951: # Extract the first word of "tr", so it can be a program name with args.
                   13952: set dummy tr; ac_word=$2
                   13953: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   13954: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.3   misho    13955: if ${ac_cv_path_TRPROG+:} false; then :
1.1       misho    13956:   $as_echo_n "(cached) " >&6
                   13957: else
1.1.1.3   misho    13958:   case $TRPROG in
                   13959:   [\\/]* | ?:[\\/]*)
                   13960:   ac_cv_path_TRPROG="$TRPROG" # Let the user override the test with a path.
                   13961:   ;;
                   13962:   *)
                   13963:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1       misho    13964: for as_dir in $PATH
                   13965: do
                   13966:   IFS=$as_save_IFS
                   13967:   test -z "$as_dir" && as_dir=.
                   13968:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    13969:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.3   misho    13970:     ac_cv_path_TRPROG="$as_dir/$ac_word$ac_exec_ext"
1.1       misho    13971:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   13972:     break 2
                   13973:   fi
                   13974: done
                   13975:   done
                   13976: IFS=$as_save_IFS
                   13977: 
1.1.1.3   misho    13978:   test -z "$ac_cv_path_TRPROG" && ac_cv_path_TRPROG="tr"
                   13979:   ;;
                   13980: esac
1.1       misho    13981: fi
1.1.1.3   misho    13982: TRPROG=$ac_cv_path_TRPROG
1.1       misho    13983: if test -n "$TRPROG"; then
                   13984:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
                   13985: $as_echo "$TRPROG" >&6; }
                   13986: else
                   13987:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   13988: $as_echo "no" >&6; }
                   13989: fi
                   13990: 
                   13991: 
1.1.1.3   misho    13992: # Extract the first word of "mandoc", so it can be a program name with args.
                   13993: set dummy mandoc; ac_word=$2
1.1       misho    13994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   13995: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.3   misho    13996: if ${ac_cv_path_MANDOCPROG+:} false; then :
1.1       misho    13997:   $as_echo_n "(cached) " >&6
                   13998: else
1.1.1.3   misho    13999:   case $MANDOCPROG in
                   14000:   [\\/]* | ?:[\\/]*)
                   14001:   ac_cv_path_MANDOCPROG="$MANDOCPROG" # Let the user override the test with a path.
                   14002:   ;;
                   14003:   *)
                   14004:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1       misho    14005: for as_dir in $PATH
                   14006: do
                   14007:   IFS=$as_save_IFS
                   14008:   test -z "$as_dir" && as_dir=.
                   14009:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    14010:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.3   misho    14011:     ac_cv_path_MANDOCPROG="$as_dir/$ac_word$ac_exec_ext"
1.1       misho    14012:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   14013:     break 2
                   14014:   fi
                   14015: done
                   14016:   done
                   14017: IFS=$as_save_IFS
                   14018: 
1.1.1.3   misho    14019:   test -z "$ac_cv_path_MANDOCPROG" && ac_cv_path_MANDOCPROG="mandoc"
                   14020:   ;;
                   14021: esac
1.1       misho    14022: fi
1.1.1.3   misho    14023: MANDOCPROG=$ac_cv_path_MANDOCPROG
                   14024: if test -n "$MANDOCPROG"; then
                   14025:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOCPROG" >&5
                   14026: $as_echo "$MANDOCPROG" >&6; }
1.1       misho    14027: else
                   14028:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   14029: $as_echo "no" >&6; }
                   14030: fi
                   14031: 
                   14032: 
1.1.1.3   misho    14033: if test "$MANDOCPROG" != "mandoc"; then
                   14034:     : ${MANTYPE='mdoc'}
                   14035: else
                   14036:     # Extract the first word of "nroff", so it can be a program name with args.
                   14037: set dummy nroff; ac_word=$2
                   14038: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   14039: $as_echo_n "checking for $ac_word... " >&6; }
                   14040: if ${ac_cv_path_NROFFPROG+:} false; then :
                   14041:   $as_echo_n "(cached) " >&6
                   14042: else
                   14043:   case $NROFFPROG in
                   14044:   [\\/]* | ?:[\\/]*)
                   14045:   ac_cv_path_NROFFPROG="$NROFFPROG" # Let the user override the test with a path.
                   14046:   ;;
                   14047:   *)
                   14048:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   14049: for as_dir in $PATH
                   14050: do
                   14051:   IFS=$as_save_IFS
                   14052:   test -z "$as_dir" && as_dir=.
                   14053:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    14054:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.3   misho    14055:     ac_cv_path_NROFFPROG="$as_dir/$ac_word$ac_exec_ext"
                   14056:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   14057:     break 2
                   14058:   fi
1.1       misho    14059: done
1.1.1.3   misho    14060:   done
                   14061: IFS=$as_save_IFS
1.1       misho    14062: 
1.1.1.3   misho    14063:   ;;
                   14064: esac
                   14065: fi
                   14066: NROFFPROG=$ac_cv_path_NROFFPROG
1.1       misho    14067: if test -n "$NROFFPROG"; then
1.1.1.3   misho    14068:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
                   14069: $as_echo "$NROFFPROG" >&6; }
1.1       misho    14070: else
1.1.1.3   misho    14071:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   14072: $as_echo "no" >&6; }
1.1       misho    14073: fi
1.1.1.3   misho    14074: 
                   14075: 
                   14076:     if test -n "$NROFFPROG"; then
                   14077:        test -n "$MANTYPE" && sudo_cv_var_mantype="$MANTYPE"
                   14078:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking which macro set to use for manual pages" >&5
                   14079: $as_echo_n "checking which macro set to use for manual pages... " >&6; }
                   14080: if ${sudo_cv_var_mantype+:} false; then :
1.1       misho    14081:   $as_echo_n "(cached) " >&6
                   14082: else
1.1.1.3   misho    14083: 
                   14084:                sudo_cv_var_mantype="man"
                   14085:                echo ".Sh NAME" > conftest
                   14086:                echo ".Nm sudo" >> conftest
                   14087:                echo ".Nd sudo" >> conftest
                   14088:                echo ".Sh DESCRIPTION" >> conftest
                   14089:                echo "sudo" >> conftest
                   14090:                if $NROFFPROG -mdoc conftest >/dev/null 2>&1; then
                   14091:                    sudo_cv_var_mantype="mdoc"
                   14092:                fi
                   14093:                rm -f conftest
                   14094: 
1.1       misho    14095: 
                   14096: fi
1.1.1.3   misho    14097: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_mantype" >&5
                   14098: $as_echo "$sudo_cv_var_mantype" >&6; }
                   14099:        MANTYPE="$sudo_cv_var_mantype"
                   14100:     else
                   14101:        MANTYPE=cat
                   14102:        MANDIRTYPE=cat
                   14103:        mansrcdir='$(srcdir)'
                   14104:     fi
1.1       misho    14105: fi
                   14106: 
                   14107: if test -n "$sudo_cv_prev_host"; then
                   14108:     if test "$sudo_cv_prev_host" != "$host"; then
                   14109:        as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
                   14110:     else
                   14111:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
                   14112: $as_echo_n "checking previous host type... " >&6; }
                   14113:        if ${sudo_cv_prev_host+:} false; then :
                   14114:   $as_echo_n "(cached) " >&6
                   14115: else
                   14116:   sudo_cv_prev_host="$host"
                   14117: fi
                   14118: 
                   14119:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
                   14120: $as_echo "$sudo_cv_prev_host" >&6; }
                   14121:     fi
                   14122: else
                   14123:     # this will produce no output since there is no cached value
                   14124:     if ${sudo_cv_prev_host+:} false; then :
                   14125:   $as_echo_n "(cached) " >&6
                   14126: else
                   14127:   sudo_cv_prev_host="$host"
                   14128: fi
                   14129: 
                   14130: fi
                   14131: 
                   14132: if test -n "$host_os"; then
                   14133:     OS=`echo $host_os | sed 's/[0-9].*//'`
                   14134:     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
                   14135:     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
                   14136: else
                   14137:     OS="unknown"
                   14138:     OSREV=0
                   14139:     OSMAJOR=0
                   14140: fi
                   14141: 
                   14142: case "$host" in
                   14143:     *-*-sunos4*)
1.1.1.2   misho    14144:                # LD_PRELOAD is space-delimited
                   14145:                RTLD_PRELOAD_DELIM=" "
                   14146: 
1.1       misho    14147:                # getcwd(3) opens a pipe to getpwd(1)!?!
                   14148:                BROKEN_GETCWD=1
                   14149: 
                   14150:                # system headers lack prototypes but gcc helps...
                   14151:                if test -n "$GCC"; then
                   14152:                    OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
                   14153:                fi
                   14154: 
                   14155:                shadow_funcs="getpwanam issecure"
                   14156:                ;;
                   14157:     *-*-solaris2*)
1.1.1.2   misho    14158:                # LD_PRELOAD is space-delimited
                   14159:                RTLD_PRELOAD_DELIM=" "
                   14160: 
1.1.1.4   misho    14161:                # Solaris-specific initialization
                   14162:                OS_INIT=os_init_solaris
                   14163:                SUDO_OBJS="${SUDO_OBJS} solaris.o"
                   14164: 
1.1       misho    14165:                # To get the crypt(3) prototype (so we pass -Wall)
                   14166:                OSDEFS="${OSDEFS} -D__EXTENSIONS__"
                   14167:                # AFS support needs -lucb
                   14168:                if test "$with_AFS" = "yes"; then
                   14169:                    AFS_LIBS="-lc -lucb"
                   14170:                fi
                   14171:                : ${mansectsu='1m'}
                   14172:                : ${mansectform='4'}
                   14173:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
                   14174:                for ac_func in priv_set
                   14175: do :
                   14176:   ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
                   14177: if test "x$ac_cv_func_priv_set" = xyes; then :
                   14178:   cat >>confdefs.h <<_ACEOF
                   14179: #define HAVE_PRIV_SET 1
                   14180: _ACEOF
1.1.1.3   misho    14181:  PSMAN=1
1.1       misho    14182: fi
                   14183: done
                   14184: 
                   14185:                ;;
                   14186:     *-*-aix*)
                   14187:                # To get all prototypes (so we pass -Wall)
                   14188:                OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
                   14189:                SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
                   14190: 
                   14191:                # On AIX 6 and higher default to PAM, else default to LAM
                   14192:                if test $OSMAJOR -ge 6; then
                   14193:                    if test X"$with_pam" = X""; then
                   14194:                        AUTH_EXCL_DEF="PAM"
                   14195:                    fi
                   14196:                else
                   14197:                    if test X"$with_aixauth" = X""; then
                   14198:                        for ac_func in authenticate
                   14199: do :
                   14200:   ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
                   14201: if test "x$ac_cv_func_authenticate" = xyes; then :
                   14202:   cat >>confdefs.h <<_ACEOF
                   14203: #define HAVE_AUTHENTICATE 1
                   14204: _ACEOF
                   14205:  AUTH_EXCL_DEF="AIX_AUTH"
                   14206: fi
                   14207: done
                   14208: 
                   14209:                    fi
                   14210:                fi
                   14211: 
                   14212:                # AIX analog of nsswitch.conf, enabled by default
                   14213: 
                   14214: # Check whether --with-netsvc was given.
                   14215: if test "${with_netsvc+set}" = set; then :
                   14216:   withval=$with_netsvc; case $with_netsvc in
                   14217:                    no)         ;;
                   14218:                    yes)        with_netsvc="/etc/netsvc.conf"
                   14219:                                ;;
                   14220:                    *)          ;;
                   14221:                esac
                   14222: fi
                   14223: 
                   14224:                if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
                   14225:                    with_netsvc="/etc/netsvc.conf"
                   14226:                fi
                   14227: 
                   14228:                # LDR_PRELOAD is only supported in AIX 5.3 and later
                   14229:                if test $OSMAJOR -lt 5; then
                   14230:                    with_noexec=no
1.1.1.2   misho    14231:                else
                   14232:                    RTLD_PRELOAD_VAR="LDR_PRELOAD"
1.1       misho    14233:                fi
                   14234: 
1.1.1.6 ! misho    14235:                # Remove timedir on boot, AIX does not have /var/run
        !          14236:                INIT_SCRIPT=aix.sh
        !          14237:                INIT_DIR=/etc/rc.d/init.d
        !          14238:                RC_LINK=/etc/rc.d/rc2.d/S90sudo
        !          14239: 
1.1       misho    14240:                # AIX-specific functions
1.1.1.4   misho    14241:                for ac_func in getuserattr setauthdb setrlimit64
1.1       misho    14242: do :
                   14243:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   14244: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   14245: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   14246:   cat >>confdefs.h <<_ACEOF
                   14247: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   14248: _ACEOF
                   14249: 
                   14250: fi
                   14251: done
                   14252: 
1.1.1.6 ! misho    14253:                COMMON_OBJS="${COMMON_OBJS} aix.lo"
1.1       misho    14254:                ;;
                   14255:     *-*-hiuxmpp*)
                   14256:                : ${mansectsu='1m'}
                   14257:                : ${mansectform='4'}
1.1.1.3   misho    14258: 
1.1.1.6 ! misho    14259:                # HP-UX does not clear /var/run so we need to do it
        !          14260:                INIT_SCRIPT=hpux.sh
        !          14261:                INIT_DIR=/sbin/init.d
        !          14262:                RC_LINK=/sbin/rc2.d/S900sudo
        !          14263: 
1.1.1.3   misho    14264:                # HP-UX shared libs must be executable
                   14265:                SHLIB_MODE=0755
1.1.1.6 ! misho    14266: 
        !          14267:                for ac_func in pstat_getproc
        !          14268: do :
        !          14269:   ac_fn_c_check_func "$LINENO" "pstat_getproc" "ac_cv_func_pstat_getproc"
        !          14270: if test "x$ac_cv_func_pstat_getproc" = xyes; then :
        !          14271:   cat >>confdefs.h <<_ACEOF
        !          14272: #define HAVE_PSTAT_GETPROC 1
        !          14273: _ACEOF
        !          14274: 
        !          14275: fi
        !          14276: done
        !          14277: 
1.1       misho    14278:                ;;
                   14279:     *-*-hpux*)
                   14280:                # AFS support needs -lBSD
                   14281:                if test "$with_AFS" = "yes"; then
                   14282:                    AFS_LIBS="-lc -lBSD"
                   14283:                fi
                   14284:                : ${mansectsu='1m'}
                   14285:                : ${mansectform='4'}
                   14286: 
1.1.1.6 ! misho    14287:                # HP-UX does not clear /var/run so we need to do it
        !          14288:                INIT_SCRIPT=hpux.sh
        !          14289:                INIT_DIR=/sbin/init.d
        !          14290:                RC_LINK=/sbin/rc2.d/S900sudo
        !          14291: 
1.1.1.3   misho    14292:                # HP-UX shared libs must be executable
                   14293:                SHLIB_MODE=0755
                   14294: 
1.1       misho    14295:                # The HP bundled compiler cannot generate shared libs
                   14296:                if test -z "$GCC"; then
                   14297:                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
                   14298: $as_echo_n "checking for HP bundled C compiler... " >&6; }
                   14299: if ${sudo_cv_var_hpccbundled+:} false; then :
                   14300:   $as_echo_n "(cached) " >&6
                   14301: else
                   14302:   if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
                   14303:                            sudo_cv_var_hpccbundled=yes
                   14304:                        else
                   14305:                            sudo_cv_var_hpccbundled=no
                   14306:                        fi
                   14307: 
                   14308: fi
                   14309: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
                   14310: $as_echo "$sudo_cv_var_hpccbundled" >&6; }
                   14311:                    if test "$sudo_cv_var_hpccbundled" = "yes"; then
                   14312:                        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
                   14313:                    fi
                   14314:                fi
                   14315: 
                   14316:                # Build PA-RISC1.1 objects for better portability
                   14317:                case "$host_cpu" in
                   14318:                    hppa[2-9]*)
                   14319:                        _CFLAGS="$CFLAGS"
                   14320:                        if test -n "$GCC"; then
                   14321:                            portable_flag="-march=1.1"
                   14322:                        else
                   14323:                            portable_flag="+DAportable"
                   14324:                        fi
                   14325:                        CFLAGS="$CFLAGS $portable_flag"
                   14326:                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
                   14327: $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
                   14328: if ${sudo_cv_var_daportable+:} false; then :
                   14329:   $as_echo_n "(cached) " >&6
                   14330: else
                   14331:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14332: /* end confdefs.h.  */
                   14333: 
                   14334: int
                   14335: main ()
                   14336: {
                   14337: 
                   14338:   ;
                   14339:   return 0;
                   14340: }
                   14341: _ACEOF
                   14342: if ac_fn_c_try_link "$LINENO"; then :
                   14343:   sudo_cv_var_daportable=yes
                   14344: else
                   14345:   sudo_cv_var_daportable=no
                   14346: 
                   14347: fi
                   14348: rm -f core conftest.err conftest.$ac_objext \
                   14349:     conftest$ac_exeext conftest.$ac_ext
                   14350: 
                   14351: 
                   14352: fi
                   14353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
                   14354: $as_echo "$sudo_cv_var_daportable" >&6; }
                   14355:                        if test X"$sudo_cv_var_daportable" != X"yes"; then
                   14356:                            CFLAGS="$_CFLAGS"
                   14357:                        fi
                   14358:                        ;;
                   14359:                esac
                   14360: 
1.1.1.4   misho    14361:                case "$host_os" in
                   14362:                        hpux[1-8].*)
1.1       misho    14363:                            $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
                   14364: 
                   14365:                        ;;
1.1.1.4   misho    14366:                        hpux9.*)
1.1       misho    14367:                            $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
                   14368: 
                   14369: 
                   14370:                            shadow_funcs="getspwuid"
                   14371: 
                   14372:                            # DCE support (requires ANSI C compiler)
                   14373:                            if test "$with_DCE" = "yes"; then
                   14374:                                # order of libs in 9.X is important. -lc_r must be last
                   14375:                                SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
                   14376:                                LIBS="${LIBS} -ldce -lM -lc_r"
1.1.1.4   misho    14377: 
                   14378:     case "${CPPFLAGS}" in
                   14379:        *"-D_REENTRANT"|*"-D_REENTRANT ")
                   14380:            ;;
                   14381:        *)
                   14382:            if test X"${CPPFLAGS}" = X""; then
                   14383:                CPPFLAGS="-D_REENTRANT"
                   14384:            else
                   14385:                CPPFLAGS="${CPPFLAGS} -D_REENTRANT"
                   14386:            fi
                   14387:            ;;
                   14388:     esac
                   14389: 
                   14390: 
                   14391:     case "${CPPFLAGS}" in
                   14392:        *"-I/usr/include/reentrant"|*"-I/usr/include/reentrant ")
                   14393:            ;;
                   14394:        *)
                   14395:            if test X"${CPPFLAGS}" = X""; then
                   14396:                CPPFLAGS="-I/usr/include/reentrant"
                   14397:            else
                   14398:                CPPFLAGS="${CPPFLAGS} -I/usr/include/reentrant"
                   14399:            fi
                   14400:            ;;
                   14401:     esac
                   14402: 
1.1       misho    14403:                            fi
                   14404:                        ;;
1.1.1.4   misho    14405:                        hpux10.*)
1.1       misho    14406:                            shadow_funcs="getprpwnam iscomsec"
                   14407:                            shadow_libs="-lsec"
                   14408:                            # HP-UX 10.20 libc has an incompatible getline
                   14409:                            ac_cv_func_getline="no"
                   14410:                        ;;
                   14411:                        *)
                   14412:                            shadow_funcs="getspnam iscomsec"
                   14413:                            shadow_libs="-lsec"
                   14414:                            test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
                   14415:                        ;;
                   14416:                esac
1.1.1.4   misho    14417:                for ac_func in pstat_getproc
                   14418: do :
                   14419:   ac_fn_c_check_func "$LINENO" "pstat_getproc" "ac_cv_func_pstat_getproc"
                   14420: if test "x$ac_cv_func_pstat_getproc" = xyes; then :
                   14421:   cat >>confdefs.h <<_ACEOF
                   14422: #define HAVE_PSTAT_GETPROC 1
                   14423: _ACEOF
                   14424: 
                   14425: fi
                   14426: done
                   14427: 
1.1       misho    14428:                ;;
                   14429:     *-dec-osf*)
                   14430:                # ignore envariables wrt dynamic lib path
1.1.1.3   misho    14431:                # XXX - sudo LDFLAGS instead?
1.1       misho    14432:                SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
                   14433: 
                   14434:                : ${CHECKSIA='true'}
                   14435:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
                   14436: $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
                   14437:                # Check whether --enable-sia was given.
                   14438: if test "${enable_sia+set}" = set; then :
                   14439:   enableval=$enable_sia;  case "$enableval" in
                   14440:                    yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   14441: $as_echo "no" >&6; }
                   14442:                                CHECKSIA=true
                   14443:                                ;;
                   14444:                    no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   14445: $as_echo "yes" >&6; }
                   14446:                                CHECKSIA=false
                   14447:                                ;;
                   14448:                    *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   14449: $as_echo "no" >&6; }
                   14450:                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
                   14451: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
                   14452:                                ;;
                   14453:                  esac
                   14454: 
                   14455: else
                   14456:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   14457: $as_echo "no" >&6; }
                   14458: fi
                   14459: 
                   14460: 
                   14461:                shadow_funcs="getprpwnam dispcrypt"
                   14462:                # OSF/1 4.x and higher need -ldb too
                   14463:                if test $OSMAJOR -lt 4; then
                   14464:                    shadow_libs="-lsecurity -laud -lm"
                   14465:                else
                   14466:                    shadow_libs="-lsecurity -ldb -laud -lm"
                   14467:                fi
                   14468: 
                   14469:                # use SIA by default, if we have it
                   14470:                test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
                   14471: 
                   14472:                #
                   14473:                # Some versions of Digital Unix ship with a broken
                   14474:                # copy of prot.h, which we need for shadow passwords.
                   14475:                # XXX - make should remove this as part of distclean
                   14476:                #
                   14477:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
                   14478: $as_echo_n "checking for broken prot.h... " >&6; }
                   14479:                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14480: /* end confdefs.h.  */
                   14481: 
                   14482: #include <sys/types.h>
                   14483: #include <sys/security.h>
                   14484: #include <prot.h>
                   14485: 
                   14486: int
                   14487: main ()
                   14488: {
                   14489: exit(0);
                   14490:   ;
                   14491:   return 0;
                   14492: }
                   14493: _ACEOF
                   14494: if ac_fn_c_try_compile "$LINENO"; then :
                   14495:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   14496: $as_echo "no" >&6; }
                   14497: else
                   14498:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
                   14499: $as_echo "yes, fixing locally" >&6; }
                   14500:                sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
                   14501: 
                   14502: fi
                   14503: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.2   misho    14504:                # ":DEFAULT" must be appended to _RLD_LIST
                   14505:                RTLD_PRELOAD_VAR="_RLD_LIST"
                   14506:                RTLD_PRELOAD_DEFAULT="DEFAULT"
1.1       misho    14507:                : ${mansectsu='8'}
                   14508:                : ${mansectform='4'}
                   14509:                ;;
                   14510:     *-*-irix*)
                   14511:                OSDEFS="${OSDEFS} -D_BSD_TYPES"
                   14512:                if test -z "$NROFFPROG"; then
                   14513:                    if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
                   14514:                        if test -d /usr/share/catman/local; then
                   14515:                            mandir="/usr/share/catman/local"
                   14516:                        else
                   14517:                            mandir="/usr/catman/local"
                   14518:                        fi
                   14519:                    fi
1.1.1.3   misho    14520:                    # Compress cat pages with pack
                   14521:                    MANCOMPRESS='pack'
                   14522:                    MANCOMPRESSEXT='.z'
1.1       misho    14523:                else
                   14524:                    if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
                   14525:                        if test -d "/usr/share/man/local"; then
                   14526:                            mandir="/usr/share/man/local"
                   14527:                        else
                   14528:                            mandir="/usr/man/local"
                   14529:                        fi
                   14530:                    fi
                   14531:                fi
                   14532:                # IRIX <= 4 needs -lsun
                   14533:                if test "$OSMAJOR" -le 4; then
                   14534:                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
                   14535: $as_echo_n "checking for getpwnam in -lsun... " >&6; }
                   14536: if ${ac_cv_lib_sun_getpwnam+:} false; then :
                   14537:   $as_echo_n "(cached) " >&6
                   14538: else
                   14539:   ac_check_lib_save_LIBS=$LIBS
                   14540: LIBS="-lsun  $LIBS"
                   14541: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14542: /* end confdefs.h.  */
                   14543: 
                   14544: /* Override any GCC internal prototype to avoid an error.
                   14545:    Use char because int might match the return type of a GCC
                   14546:    builtin and then its argument prototype would still apply.  */
                   14547: #ifdef __cplusplus
                   14548: extern "C"
                   14549: #endif
                   14550: char getpwnam ();
                   14551: int
                   14552: main ()
                   14553: {
                   14554: return getpwnam ();
                   14555:   ;
                   14556:   return 0;
                   14557: }
                   14558: _ACEOF
                   14559: if ac_fn_c_try_link "$LINENO"; then :
                   14560:   ac_cv_lib_sun_getpwnam=yes
                   14561: else
                   14562:   ac_cv_lib_sun_getpwnam=no
                   14563: fi
                   14564: rm -f core conftest.err conftest.$ac_objext \
                   14565:     conftest$ac_exeext conftest.$ac_ext
                   14566: LIBS=$ac_check_lib_save_LIBS
                   14567: fi
                   14568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
                   14569: $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
                   14570: if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
                   14571:   LIBS="${LIBS} -lsun"
                   14572: fi
                   14573: 
                   14574:                fi
1.1.1.2   misho    14575:                # ":DEFAULT" must be appended to _RLD_LIST
                   14576:                RTLD_PRELOAD_VAR="_RLD_LIST"
                   14577:                RTLD_PRELOAD_DEFAULT="DEFAULT"
1.1       misho    14578:                : ${mansectsu='1m'}
                   14579:                : ${mansectform='4'}
                   14580:                ;;
                   14581:     *-*-linux*|*-*-k*bsd*-gnu)
                   14582:                OSDEFS="${OSDEFS} -D_GNU_SOURCE"
                   14583:                # Some Linux versions need to link with -lshadow
                   14584:                shadow_funcs="getspnam"
                   14585:                shadow_libs_optional="-lshadow"
                   14586:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
                   14587:                ;;
                   14588:     *-convex-bsd*)
                   14589:                OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
                   14590:                if test -z "$GCC"; then
                   14591:                    CFLAGS="${CFLAGS} -D__STDC__"
                   14592:                fi
                   14593: 
                   14594:                shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
                   14595:                shadow_funcs="getprpwnam"
                   14596:                shadow_libs="-lprot"
                   14597:                ;;
                   14598:     *-*-ultrix*)
                   14599:                OS="ultrix"
                   14600:                shadow_funcs="getauthuid"
                   14601:                shadow_libs="-lauth"
                   14602:                ;;
                   14603:     *-*-riscos*)
                   14604:                LIBS="${LIBS} -lsun -lbsd"
1.1.1.4   misho    14605: 
                   14606:     case "${CPPFLAGS}" in
                   14607:        *"-I/usr/include"|*"-I/usr/include ")
                   14608:            ;;
                   14609:        *)
                   14610:            if test X"${CPPFLAGS}" = X""; then
                   14611:                CPPFLAGS="-I/usr/include"
                   14612:            else
                   14613:                CPPFLAGS="${CPPFLAGS} -I/usr/include"
                   14614:            fi
                   14615:            ;;
                   14616:     esac
                   14617: 
                   14618: 
                   14619:     case "${CPPFLAGS}" in
                   14620:        *"-I/usr/include/bsd"|*"-I/usr/include/bsd ")
                   14621:            ;;
                   14622:        *)
                   14623:            if test X"${CPPFLAGS}" = X""; then
                   14624:                CPPFLAGS="-I/usr/include/bsd"
                   14625:            else
                   14626:                CPPFLAGS="${CPPFLAGS} -I/usr/include/bsd"
                   14627:            fi
                   14628:            ;;
                   14629:     esac
                   14630: 
1.1       misho    14631:                OSDEFS="${OSDEFS} -D_MIPS"
                   14632:                : ${mansectsu='1m'}
                   14633:                : ${mansectform='4'}
                   14634:                ;;
                   14635:     *-*-isc*)
                   14636:                OSDEFS="${OSDEFS} -D_ISC"
                   14637:                LIB_CRYPT=1
                   14638:                SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
                   14639: 
                   14640:                shadow_funcs="getspnam"
                   14641:                shadow_libs="-lsec"
                   14642: 
                   14643:                : ${mansectsu='1m'}
                   14644:                : ${mansectform='4'}
                   14645:                ;;
                   14646:     *-*-sco*|*-sco-*)
                   14647:                shadow_funcs="getprpwnam"
                   14648:                shadow_libs="-lprot -lx"
                   14649:                : ${mansectsu='1m'}
                   14650:                : ${mansectform='4'}
                   14651:                ;;
                   14652:     m88k-motorola-sysv*)
                   14653:                # motorolla's cc (a variant of gcc) does -O but not -O2
                   14654:                CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
                   14655:                : ${mansectsu='1m'}
                   14656:                : ${mansectform='4'}
                   14657:                ;;
                   14658:     *-sequent-sysv*)
                   14659:                shadow_funcs="getspnam"
                   14660:                shadow_libs="-lsec"
                   14661:                : ${mansectsu='1m'}
                   14662:                : ${mansectform='4'}
                   14663:                ;;
                   14664:     *-ncr-sysv4*|*-ncr-sysvr4*)
                   14665:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
                   14666: $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
                   14667: if ${ac_cv_lib_c89_strcasecmp+:} false; then :
                   14668:   $as_echo_n "(cached) " >&6
                   14669: else
                   14670:   ac_check_lib_save_LIBS=$LIBS
                   14671: LIBS="-lc89  $LIBS"
                   14672: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14673: /* end confdefs.h.  */
                   14674: 
                   14675: /* Override any GCC internal prototype to avoid an error.
                   14676:    Use char because int might match the return type of a GCC
                   14677:    builtin and then its argument prototype would still apply.  */
                   14678: #ifdef __cplusplus
                   14679: extern "C"
                   14680: #endif
                   14681: char strcasecmp ();
                   14682: int
                   14683: main ()
                   14684: {
                   14685: return strcasecmp ();
                   14686:   ;
                   14687:   return 0;
                   14688: }
                   14689: _ACEOF
                   14690: if ac_fn_c_try_link "$LINENO"; then :
                   14691:   ac_cv_lib_c89_strcasecmp=yes
                   14692: else
                   14693:   ac_cv_lib_c89_strcasecmp=no
                   14694: fi
                   14695: rm -f core conftest.err conftest.$ac_objext \
                   14696:     conftest$ac_exeext conftest.$ac_ext
                   14697: LIBS=$ac_check_lib_save_LIBS
                   14698: fi
                   14699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
                   14700: $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
                   14701: if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
                   14702:   LIBS="${LIBS} -lc89"
                   14703: fi
                   14704: 
                   14705:                : ${mansectsu='1m'}
                   14706:                : ${mansectform='4'}
                   14707:                ;;
                   14708:     *-ccur-sysv4*|*-ccur-sysvr4*)
                   14709:                LIBS="${LIBS} -lgen"
                   14710:                : ${mansectsu='1m'}
                   14711:                : ${mansectform='4'}
                   14712:                ;;
                   14713:     *-*-bsdi*)
                   14714:                SKIP_SETREUID=yes
                   14715:                # Check for newer BSD auth API
                   14716:                if test -z "$with_bsdauth"; then
                   14717:                    for ac_func in auth_challenge
                   14718: do :
                   14719:   ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
                   14720: if test "x$ac_cv_func_auth_challenge" = xyes; then :
                   14721:   cat >>confdefs.h <<_ACEOF
                   14722: #define HAVE_AUTH_CHALLENGE 1
                   14723: _ACEOF
                   14724:  AUTH_EXCL_DEF="BSD_AUTH"
                   14725: fi
                   14726: done
                   14727: 
                   14728:                fi
                   14729:                ;;
                   14730:     *-*-freebsd*)
                   14731:                # FreeBSD has a real setreuid(2) starting with 2.1 and
                   14732:                # backported to 2.0.5.  We just take 2.1 and above...
                   14733:                case "$OSREV" in
                   14734:                0.*|1.*|2.0*)
                   14735:                    SKIP_SETREUID=yes
                   14736:                    ;;
                   14737:                esac
                   14738:                OSDEFS="${OSDEFS} -D_BSD_SOURCE"
                   14739:                if test "${with_skey-'no'}" = "yes"; then
                   14740:                     SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
                   14741:                fi
                   14742:                CHECKSHADOW="false"
                   14743:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
                   14744:                : ${with_logincap='maybe'}
                   14745:                ;;
                   14746:     *-*-*openbsd*)
1.1.1.4   misho    14747:                # OpenBSD-specific initialization
                   14748:                OS_INIT=os_init_openbsd
                   14749:                SUDO_OBJS="${SUDO_OBJS} openbsd.o"
                   14750: 
1.1       misho    14751:                # OpenBSD has a real setreuid(2) starting with 3.3 but
                   14752:                # we will use setresuid(2) instead.
                   14753:                SKIP_SETREUID=yes
                   14754:                OSDEFS="${OSDEFS} -D_BSD_SOURCE"
                   14755:                CHECKSHADOW="false"
                   14756:                # OpenBSD >= 3.0 supports BSD auth
                   14757:                if test -z "$with_bsdauth"; then
                   14758:                    if test "$OSMAJOR" -ge 3; then
                   14759:                        AUTH_EXCL_DEF="BSD_AUTH"
                   14760:                    fi
                   14761:                fi
                   14762:                : ${with_logincap='maybe'}
                   14763:                ;;
                   14764:     *-*-*netbsd*)
                   14765:                # NetBSD has a real setreuid(2) starting with 1.3.2
                   14766:                case "$OSREV" in
                   14767:                0.9*|1.[012]*|1.3|1.3.1)
                   14768:                    SKIP_SETREUID=yes
                   14769:                    ;;
                   14770:                esac
                   14771:                CHECKSHADOW="false"
                   14772:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
                   14773:                : ${with_logincap='maybe'}
                   14774:                ;;
                   14775:     *-*-dragonfly*)
                   14776:                OSDEFS="${OSDEFS} -D_BSD_SOURCE"
                   14777:                if test "${with_skey-'no'}" = "yes"; then
                   14778:                     SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
                   14779:                fi
                   14780:                CHECKSHADOW="false"
                   14781:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
                   14782:                : ${with_logincap='yes'}
                   14783:                ;;
                   14784:     *-*-*bsd*)
                   14785:                CHECKSHADOW="false"
                   14786:                ;;
                   14787:     *-*-darwin*)
                   14788:                # Darwin has a real setreuid(2) starting with 9.0
                   14789:                if test $OSMAJOR -lt 9; then
                   14790:                    SKIP_SETREUID=yes
                   14791:                fi
                   14792:                CHECKSHADOW="false"
                   14793:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
                   14794:                : ${with_logincap='yes'}
1.1.1.6 ! misho    14795:                # Darwin has a broken poll()
        !          14796:                : ${enable_poll='no'}
1.1.1.5   misho    14797:                # Darwin 8 and above can interpose library symbols cleanly
                   14798:                if test $OSMAJOR -ge 8; then
                   14799:                    $as_echo "#define HAVE___INTERPOSE 1" >>confdefs.h
                   14800: 
                   14801:                    dlyld_interpose=yes
                   14802:                else
                   14803:                    RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
                   14804:                fi
1.1.1.2   misho    14805:                RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
1.1       misho    14806:                ;;
                   14807:     *-*-nextstep*)
                   14808:                # lockf() on is broken on the NeXT -- use flock instead
                   14809:                ac_cv_func_lockf=no
                   14810:                ac_cv_func_flock=yes
1.1.1.2   misho    14811:                RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
                   14812:                RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
1.1       misho    14813:                ;;
                   14814:     *-*-*sysv4*)
                   14815:                : ${mansectsu='1m'}
                   14816:                : ${mansectform='4'}
                   14817:                ;;
                   14818:     *-*-sysv*)
                   14819:                : ${mansectsu='1m'}
                   14820:                : ${mansectform='4'}
                   14821:                ;;
                   14822:     *-gnu*)
                   14823:                OSDEFS="${OSDEFS} -D_GNU_SOURCE"
                   14824:                ;;
                   14825: esac
                   14826: 
1.1.1.2   misho    14827: if test -n "$with_noexec"; then
                   14828:     cat >>confdefs.h <<EOF
                   14829: #define RTLD_PRELOAD_VAR "$RTLD_PRELOAD_VAR"
                   14830: EOF
                   14831: 
                   14832:     cat >>confdefs.h <<EOF
                   14833: #define RTLD_PRELOAD_DELIM "$RTLD_PRELOAD_DELIM"
                   14834: EOF
                   14835: 
                   14836:     if test -n "$RTLD_PRELOAD_DEFAULT"; then
                   14837:        cat >>confdefs.h <<EOF
                   14838: #define RTLD_PRELOAD_DEFAULT "$RTLD_PRELOAD_DEFAULT"
                   14839: EOF
                   14840: 
                   14841:     fi
                   14842:     if test -n "$RTLD_PRELOAD_ENABLE_VAR"; then
                   14843:        cat >>confdefs.h <<EOF
                   14844: #define RTLD_PRELOAD_ENABLE_VAR "$RTLD_PRELOAD_ENABLE_VAR"
                   14845: EOF
                   14846: 
                   14847:     fi
                   14848: fi
                   14849: 
1.1       misho    14850: AUTH_REG=${AUTH_REG# }
                   14851: AUTH_EXCL=${AUTH_EXCL# }
                   14852: if test -n "$AUTH_EXCL"; then
                   14853:     set -- $AUTH_EXCL
                   14854:     if test $# != 1; then
                   14855:        as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
                   14856:     fi
                   14857:     if test -n "$AUTH_REG"; then
                   14858:        as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
                   14859:     fi
                   14860: fi
                   14861: if test X"${with_skey}${with_opie}" = X"yesyes"; then
                   14862:     as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
                   14863: fi
                   14864: 
                   14865: : ${mansectsu='8'}
                   14866: : ${mansectform='5'}
                   14867: 
                   14868: if test -n "$with_libpath"; then
                   14869:     for i in ${with_libpath}; do
                   14870: 
1.1.1.4   misho    14871:     case "${LDFLAGS}" in
                   14872:        *"-L$i"|*"-L$i ")
                   14873:            ;;
                   14874:        *)
                   14875:            LDFLAGS="${LDFLAGS} -L$i"
                   14876:            if test X"$enable_rpath" = X"yes"; then
                   14877:                LDFLAGS_R="${LDFLAGS_R} -R$i"
                   14878:            fi
                   14879:            ;;
                   14880:     esac
1.1       misho    14881: 
                   14882:     done
                   14883: fi
                   14884: if test -n "$with_libraries"; then
                   14885:     for i in ${with_libraries}; do
                   14886:        case $i in
                   14887:            -l*)        ;;
                   14888:            *.a)        ;;
                   14889:            *.o)        ;;
                   14890:            *)  i="-l${i}";;
                   14891:        esac
                   14892:        LIBS="${LIBS} ${i}"
                   14893:     done
                   14894: fi
                   14895: 
                   14896: if test $ac_cv_c_compiler_gnu = yes; then
                   14897:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
                   14898: $as_echo_n "checking whether $CC needs -traditional... " >&6; }
                   14899: if ${ac_cv_prog_gcc_traditional+:} false; then :
                   14900:   $as_echo_n "(cached) " >&6
                   14901: else
                   14902:     ac_pattern="Autoconf.*'x'"
                   14903:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14904: /* end confdefs.h.  */
                   14905: #include <sgtty.h>
                   14906: Autoconf TIOCGETP
                   14907: _ACEOF
                   14908: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14909:   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
                   14910:   ac_cv_prog_gcc_traditional=yes
                   14911: else
                   14912:   ac_cv_prog_gcc_traditional=no
                   14913: fi
                   14914: rm -f conftest*
                   14915: 
                   14916: 
                   14917:   if test $ac_cv_prog_gcc_traditional = no; then
                   14918:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14919: /* end confdefs.h.  */
                   14920: #include <termio.h>
                   14921: Autoconf TCGETA
                   14922: _ACEOF
                   14923: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14924:   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
                   14925:   ac_cv_prog_gcc_traditional=yes
                   14926: fi
                   14927: rm -f conftest*
                   14928: 
                   14929:   fi
                   14930: fi
                   14931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
                   14932: $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
                   14933:   if test $ac_cv_prog_gcc_traditional = yes; then
                   14934:     CC="$CC -traditional"
                   14935:   fi
                   14936: fi
                   14937: 
                   14938: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   14939: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
                   14940: if ${ac_cv_c_const+:} false; then :
                   14941:   $as_echo_n "(cached) " >&6
                   14942: else
                   14943:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14944: /* end confdefs.h.  */
                   14945: 
                   14946: int
                   14947: main ()
                   14948: {
1.1.1.6 ! misho    14949: 
1.1       misho    14950: #ifndef __cplusplus
1.1.1.6 ! misho    14951:   /* Ultrix mips cc rejects this sort of thing.  */
1.1       misho    14952:   typedef int charset[2];
1.1.1.6 ! misho    14953:   const charset cs = { 0, 0 };
1.1       misho    14954:   /* SunOS 4.1.1 cc rejects this.  */
                   14955:   char const *const *pcpcc;
                   14956:   char **ppc;
                   14957:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   14958:   struct point {int x, y;};
                   14959:   static struct point const zero = {0,0};
                   14960:   /* AIX XL C 1.02.0.0 rejects this.
                   14961:      It does not let you subtract one const X* pointer from another in
                   14962:      an arm of an if-expression whose if-part is not a constant
                   14963:      expression */
                   14964:   const char *g = "string";
                   14965:   pcpcc = &g + (g ? g-g : 0);
                   14966:   /* HPUX 7.0 cc rejects these. */
                   14967:   ++pcpcc;
                   14968:   ppc = (char**) pcpcc;
                   14969:   pcpcc = (char const *const *) ppc;
1.1.1.6 ! misho    14970:   { /* SCO 3.2v4 cc rejects this sort of thing.  */
        !          14971:     char tx;
        !          14972:     char *t = &tx;
1.1       misho    14973:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   14974: 
                   14975:     *t++ = 0;
                   14976:     if (s) return 0;
                   14977:   }
                   14978:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   14979:     int x[] = {25, 17};
                   14980:     const int *foo = &x[0];
                   14981:     ++foo;
                   14982:   }
                   14983:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   14984:     typedef const int *iptr;
                   14985:     iptr p = 0;
                   14986:     ++p;
                   14987:   }
1.1.1.6 ! misho    14988:   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
1.1       misho    14989:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1.1.1.6 ! misho    14990:     struct s { int j; const int *ap[3]; } bx;
        !          14991:     struct s *b = &bx; b->j = 5;
1.1       misho    14992:   }
                   14993:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   14994:     const int foo = 10;
                   14995:     if (!foo) return 0;
                   14996:   }
                   14997:   return !cs[0] && !zero.x;
                   14998: #endif
                   14999: 
                   15000:   ;
                   15001:   return 0;
                   15002: }
                   15003: _ACEOF
                   15004: if ac_fn_c_try_compile "$LINENO"; then :
                   15005:   ac_cv_c_const=yes
                   15006: else
                   15007:   ac_cv_c_const=no
                   15008: fi
                   15009: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15010: fi
                   15011: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   15012: $as_echo "$ac_cv_c_const" >&6; }
                   15013: if test $ac_cv_c_const = no; then
                   15014: 
                   15015: $as_echo "#define const /**/" >>confdefs.h
                   15016: 
                   15017: fi
                   15018: 
                   15019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
                   15020: $as_echo_n "checking for working volatile... " >&6; }
                   15021: if ${ac_cv_c_volatile+:} false; then :
                   15022:   $as_echo_n "(cached) " >&6
                   15023: else
                   15024:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15025: /* end confdefs.h.  */
                   15026: 
                   15027: int
                   15028: main ()
                   15029: {
                   15030: 
                   15031: volatile int x;
                   15032: int * volatile y = (int *) 0;
                   15033: return !x && !y;
                   15034:   ;
                   15035:   return 0;
                   15036: }
                   15037: _ACEOF
                   15038: if ac_fn_c_try_compile "$LINENO"; then :
                   15039:   ac_cv_c_volatile=yes
                   15040: else
                   15041:   ac_cv_c_volatile=no
                   15042: fi
                   15043: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15044: fi
                   15045: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
                   15046: $as_echo "$ac_cv_c_volatile" >&6; }
                   15047: if test $ac_cv_c_volatile = no; then
                   15048: 
                   15049: $as_echo "#define volatile /**/" >>confdefs.h
                   15050: 
                   15051: fi
                   15052: 
1.1.1.6 ! misho    15053: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variadic macro support in cpp" >&5
        !          15054: $as_echo_n "checking for variadic macro support in cpp... " >&6; }
1.1.1.2   misho    15055: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15056: /* end confdefs.h.  */
                   15057: 
                   15058: $ac_includes_default
                   15059: #if defined(__GNUC__) && __GNUC__ == 2
                   15060: # define sudo_fprintf(fp, fmt...) fprintf((fp), (fmt))
                   15061: #else
                   15062: # define sudo_fprintf(fp, ...) fprintf((fp), __VA_ARGS__)
                   15063: #endif
                   15064: 
                   15065: int
                   15066: main ()
                   15067: {
                   15068: sudo_fprintf(stderr, "a %s", "test");
                   15069:   ;
                   15070:   return 0;
                   15071: }
                   15072: _ACEOF
                   15073: if ac_fn_c_try_compile "$LINENO"; then :
1.1.1.6 ! misho    15074:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
        !          15075: $as_echo "yes" >&6; }
1.1.1.2   misho    15076: else
1.1.1.6 ! misho    15077:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          15078: $as_echo "no" >&6; }
        !          15079: 
        !          15080: $as_echo "#define NO_VARIADIC_MACROS 1" >>confdefs.h
        !          15081: 
        !          15082:  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your C preprocessor doesn't support variadic macros, debugging support will be limited" >&5
        !          15083: $as_echo "$as_me: WARNING: Your C preprocessor doesn't support variadic macros, debugging support will be limited" >&2;}
1.1.1.2   misho    15084: fi
                   15085: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       misho    15086: 
                   15087: for ac_prog in 'bison -y' byacc
                   15088: do
                   15089:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   15090: set dummy $ac_prog; ac_word=$2
                   15091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   15092: $as_echo_n "checking for $ac_word... " >&6; }
                   15093: if ${ac_cv_prog_YACC+:} false; then :
                   15094:   $as_echo_n "(cached) " >&6
                   15095: else
                   15096:   if test -n "$YACC"; then
                   15097:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   15098: else
                   15099: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   15100: for as_dir in $PATH
                   15101: do
                   15102:   IFS=$as_save_IFS
                   15103:   test -z "$as_dir" && as_dir=.
                   15104:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    15105:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    15106:     ac_cv_prog_YACC="$ac_prog"
                   15107:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   15108:     break 2
                   15109:   fi
                   15110: done
                   15111:   done
                   15112: IFS=$as_save_IFS
                   15113: 
                   15114: fi
                   15115: fi
                   15116: YACC=$ac_cv_prog_YACC
                   15117: if test -n "$YACC"; then
                   15118:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
                   15119: $as_echo "$YACC" >&6; }
                   15120: else
                   15121:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   15122: $as_echo "no" >&6; }
                   15123: fi
                   15124: 
                   15125: 
                   15126:   test -n "$YACC" && break
                   15127: done
                   15128: test -n "$YACC" || YACC="yacc"
                   15129: 
                   15130: # Extract the first word of "flex", so it can be a program name with args.
                   15131: set dummy flex; ac_word=$2
                   15132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   15133: $as_echo_n "checking for $ac_word... " >&6; }
                   15134: if ${ac_cv_path_FLEX+:} false; then :
                   15135:   $as_echo_n "(cached) " >&6
                   15136: else
                   15137:   case $FLEX in
                   15138:   [\\/]* | ?:[\\/]*)
                   15139:   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
                   15140:   ;;
                   15141:   *)
                   15142:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   15143: for as_dir in $PATH
                   15144: do
                   15145:   IFS=$as_save_IFS
                   15146:   test -z "$as_dir" && as_dir=.
                   15147:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    15148:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    15149:     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
                   15150:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   15151:     break 2
                   15152:   fi
                   15153: done
                   15154:   done
                   15155: IFS=$as_save_IFS
                   15156: 
                   15157:   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
                   15158:   ;;
                   15159: esac
                   15160: fi
                   15161: FLEX=$ac_cv_path_FLEX
                   15162: if test -n "$FLEX"; then
                   15163:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
                   15164: $as_echo "$FLEX" >&6; }
                   15165: else
                   15166:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   15167: $as_echo "no" >&6; }
                   15168: fi
                   15169: 
                   15170: 
                   15171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
                   15172: $as_echo_n "checking for mv... " >&6; }
                   15173: found=no
                   15174: for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
                   15175:     if test -f "$p"; then
                   15176:        found=yes
                   15177:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
                   15178: $as_echo "$p" >&6; }
                   15179:        cat >>confdefs.h <<EOF
                   15180: #define _PATH_MV "$p"
                   15181: EOF
                   15182: 
                   15183:        break
                   15184:     fi
                   15185: done
                   15186: if test X"$found" != X"yes"; then
                   15187:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   15188: $as_echo "not found" >&6; }
                   15189: fi
                   15190: 
                   15191: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
                   15192: $as_echo_n "checking for bourne shell... " >&6; }
                   15193: found=no
                   15194: for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
                   15195:     if test -f "$p"; then
                   15196:        found=yes
                   15197:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
                   15198: $as_echo "$p" >&6; }
                   15199:        cat >>confdefs.h <<EOF
                   15200: #define _PATH_BSHELL "$p"
                   15201: EOF
                   15202: 
                   15203:        break
                   15204:     fi
                   15205: done
                   15206: if test X"$found" != X"yes"; then
                   15207:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   15208: $as_echo "not found" >&6; }
                   15209: fi
                   15210: 
                   15211: if test -z "$with_sendmail"; then
                   15212:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
                   15213: $as_echo_n "checking for sendmail... " >&6; }
                   15214: found=no
                   15215: for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
                   15216:     if test -f "$p"; then
                   15217:        found=yes
                   15218:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
                   15219: $as_echo "$p" >&6; }
                   15220:        cat >>confdefs.h <<EOF
                   15221: #define _PATH_SUDO_SENDMAIL "$p"
                   15222: EOF
                   15223: 
                   15224:        break
                   15225:     fi
                   15226: done
                   15227: if test X"$found" != X"yes"; then
                   15228:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   15229: $as_echo "not found" >&6; }
                   15230: fi
                   15231: 
                   15232: fi
                   15233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
                   15234: $as_echo_n "checking for vi... " >&6; }
                   15235: found=no
                   15236: for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
                   15237:     if test -f "$editor"; then
                   15238:        found=yes
                   15239:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
                   15240: $as_echo "$editor" >&6; }
                   15241:        cat >>confdefs.h <<EOF
                   15242: #define _PATH_VI "$editor"
                   15243: EOF
                   15244: 
                   15245:        break
                   15246:     fi
                   15247: done
                   15248: if test X"$found" != X"yes"; then
                   15249:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   15250: $as_echo "not found" >&6; }
                   15251: fi
                   15252: 
                   15253: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
                   15254: $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
                   15255: if test X"$with_logfac" = X""; then
                   15256:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15257: /* end confdefs.h.  */
                   15258: #include <syslog.h>
                   15259: int
                   15260: main ()
                   15261: {
                   15262: int i = LOG_AUTHPRIV; (void)i;
                   15263:   ;
                   15264:   return 0;
                   15265: }
                   15266: _ACEOF
                   15267: if ac_fn_c_try_compile "$LINENO"; then :
                   15268:   logfac=authpriv
                   15269: fi
                   15270: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15271: fi
                   15272: 
                   15273: cat >>confdefs.h <<_ACEOF
                   15274: #define LOGFAC "$logfac"
                   15275: _ACEOF
                   15276: 
                   15277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
                   15278: $as_echo "$logfac" >&6; }
                   15279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   15280: $as_echo_n "checking for ANSI C header files... " >&6; }
                   15281: if ${ac_cv_header_stdc+:} false; then :
                   15282:   $as_echo_n "(cached) " >&6
                   15283: else
                   15284:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15285: /* end confdefs.h.  */
                   15286: #include <stdlib.h>
                   15287: #include <stdarg.h>
                   15288: #include <string.h>
                   15289: #include <float.h>
                   15290: 
                   15291: int
                   15292: main ()
                   15293: {
                   15294: 
                   15295:   ;
                   15296:   return 0;
                   15297: }
                   15298: _ACEOF
                   15299: if ac_fn_c_try_compile "$LINENO"; then :
                   15300:   ac_cv_header_stdc=yes
                   15301: else
                   15302:   ac_cv_header_stdc=no
                   15303: fi
                   15304: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15305: 
                   15306: if test $ac_cv_header_stdc = yes; then
                   15307:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   15308:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15309: /* end confdefs.h.  */
                   15310: #include <string.h>
                   15311: 
                   15312: _ACEOF
                   15313: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   15314:   $EGREP "memchr" >/dev/null 2>&1; then :
                   15315: 
                   15316: else
                   15317:   ac_cv_header_stdc=no
                   15318: fi
                   15319: rm -f conftest*
                   15320: 
                   15321: fi
                   15322: 
                   15323: if test $ac_cv_header_stdc = yes; then
                   15324:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   15325:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15326: /* end confdefs.h.  */
                   15327: #include <stdlib.h>
                   15328: 
                   15329: _ACEOF
                   15330: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   15331:   $EGREP "free" >/dev/null 2>&1; then :
                   15332: 
                   15333: else
                   15334:   ac_cv_header_stdc=no
                   15335: fi
                   15336: rm -f conftest*
                   15337: 
                   15338: fi
                   15339: 
                   15340: if test $ac_cv_header_stdc = yes; then
                   15341:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   15342:   if test "$cross_compiling" = yes; then :
                   15343:   :
                   15344: else
                   15345:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15346: /* end confdefs.h.  */
                   15347: #include <ctype.h>
                   15348: #include <stdlib.h>
                   15349: #if ((' ' & 0x0FF) == 0x020)
                   15350: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   15351: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   15352: #else
                   15353: # define ISLOWER(c) \
                   15354:                   (('a' <= (c) && (c) <= 'i') \
                   15355:                     || ('j' <= (c) && (c) <= 'r') \
                   15356:                     || ('s' <= (c) && (c) <= 'z'))
                   15357: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   15358: #endif
                   15359: 
                   15360: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   15361: int
                   15362: main ()
                   15363: {
                   15364:   int i;
                   15365:   for (i = 0; i < 256; i++)
                   15366:     if (XOR (islower (i), ISLOWER (i))
                   15367:        || toupper (i) != TOUPPER (i))
                   15368:       return 2;
                   15369:   return 0;
                   15370: }
                   15371: _ACEOF
                   15372: if ac_fn_c_try_run "$LINENO"; then :
                   15373: 
                   15374: else
                   15375:   ac_cv_header_stdc=no
                   15376: fi
                   15377: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15378:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15379: fi
                   15380: 
                   15381: fi
                   15382: fi
                   15383: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   15384: $as_echo "$ac_cv_header_stdc" >&6; }
                   15385: if test $ac_cv_header_stdc = yes; then
                   15386: 
                   15387: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
                   15388: 
                   15389: fi
                   15390: 
                   15391: ac_header_dirent=no
                   15392: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   15393:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   15394: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   15395: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
                   15396: if eval \${$as_ac_Header+:} false; then :
                   15397:   $as_echo_n "(cached) " >&6
                   15398: else
                   15399:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15400: /* end confdefs.h.  */
                   15401: #include <sys/types.h>
                   15402: #include <$ac_hdr>
                   15403: 
                   15404: int
                   15405: main ()
                   15406: {
                   15407: if ((DIR *) 0)
                   15408: return 0;
                   15409:   ;
                   15410:   return 0;
                   15411: }
                   15412: _ACEOF
                   15413: if ac_fn_c_try_compile "$LINENO"; then :
                   15414:   eval "$as_ac_Header=yes"
                   15415: else
                   15416:   eval "$as_ac_Header=no"
                   15417: fi
                   15418: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15419: fi
                   15420: eval ac_res=\$$as_ac_Header
                   15421:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   15422: $as_echo "$ac_res" >&6; }
                   15423: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   15424:   cat >>confdefs.h <<_ACEOF
                   15425: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   15426: _ACEOF
                   15427: 
                   15428: ac_header_dirent=$ac_hdr; break
                   15429: fi
                   15430: 
                   15431: done
                   15432: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   15433: if test $ac_header_dirent = dirent.h; then
                   15434:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   15435: $as_echo_n "checking for library containing opendir... " >&6; }
                   15436: if ${ac_cv_search_opendir+:} false; then :
                   15437:   $as_echo_n "(cached) " >&6
                   15438: else
                   15439:   ac_func_search_save_LIBS=$LIBS
                   15440: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15441: /* end confdefs.h.  */
                   15442: 
                   15443: /* Override any GCC internal prototype to avoid an error.
                   15444:    Use char because int might match the return type of a GCC
                   15445:    builtin and then its argument prototype would still apply.  */
                   15446: #ifdef __cplusplus
                   15447: extern "C"
                   15448: #endif
                   15449: char opendir ();
                   15450: int
                   15451: main ()
                   15452: {
                   15453: return opendir ();
                   15454:   ;
                   15455:   return 0;
                   15456: }
                   15457: _ACEOF
                   15458: for ac_lib in '' dir; do
                   15459:   if test -z "$ac_lib"; then
                   15460:     ac_res="none required"
                   15461:   else
                   15462:     ac_res=-l$ac_lib
                   15463:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   15464:   fi
                   15465:   if ac_fn_c_try_link "$LINENO"; then :
                   15466:   ac_cv_search_opendir=$ac_res
                   15467: fi
                   15468: rm -f core conftest.err conftest.$ac_objext \
                   15469:     conftest$ac_exeext
                   15470:   if ${ac_cv_search_opendir+:} false; then :
                   15471:   break
                   15472: fi
                   15473: done
                   15474: if ${ac_cv_search_opendir+:} false; then :
                   15475: 
                   15476: else
                   15477:   ac_cv_search_opendir=no
                   15478: fi
                   15479: rm conftest.$ac_ext
                   15480: LIBS=$ac_func_search_save_LIBS
                   15481: fi
                   15482: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   15483: $as_echo "$ac_cv_search_opendir" >&6; }
                   15484: ac_res=$ac_cv_search_opendir
                   15485: if test "$ac_res" != no; then :
                   15486:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   15487: 
                   15488: fi
                   15489: 
                   15490: else
                   15491:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   15492: $as_echo_n "checking for library containing opendir... " >&6; }
                   15493: if ${ac_cv_search_opendir+:} false; then :
                   15494:   $as_echo_n "(cached) " >&6
                   15495: else
                   15496:   ac_func_search_save_LIBS=$LIBS
                   15497: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15498: /* end confdefs.h.  */
                   15499: 
                   15500: /* Override any GCC internal prototype to avoid an error.
                   15501:    Use char because int might match the return type of a GCC
                   15502:    builtin and then its argument prototype would still apply.  */
                   15503: #ifdef __cplusplus
                   15504: extern "C"
                   15505: #endif
                   15506: char opendir ();
                   15507: int
                   15508: main ()
                   15509: {
                   15510: return opendir ();
                   15511:   ;
                   15512:   return 0;
                   15513: }
                   15514: _ACEOF
                   15515: for ac_lib in '' x; do
                   15516:   if test -z "$ac_lib"; then
                   15517:     ac_res="none required"
                   15518:   else
                   15519:     ac_res=-l$ac_lib
                   15520:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   15521:   fi
                   15522:   if ac_fn_c_try_link "$LINENO"; then :
                   15523:   ac_cv_search_opendir=$ac_res
                   15524: fi
                   15525: rm -f core conftest.err conftest.$ac_objext \
                   15526:     conftest$ac_exeext
                   15527:   if ${ac_cv_search_opendir+:} false; then :
                   15528:   break
                   15529: fi
                   15530: done
                   15531: if ${ac_cv_search_opendir+:} false; then :
                   15532: 
                   15533: else
                   15534:   ac_cv_search_opendir=no
                   15535: fi
                   15536: rm conftest.$ac_ext
                   15537: LIBS=$ac_func_search_save_LIBS
                   15538: fi
                   15539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   15540: $as_echo "$ac_cv_search_opendir" >&6; }
                   15541: ac_res=$ac_cv_search_opendir
                   15542: if test "$ac_res" != no; then :
                   15543:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   15544: 
                   15545: fi
                   15546: 
                   15547: fi
                   15548: 
                   15549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   15550: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
                   15551: if ${ac_cv_header_time+:} false; then :
                   15552:   $as_echo_n "(cached) " >&6
                   15553: else
                   15554:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15555: /* end confdefs.h.  */
                   15556: #include <sys/types.h>
                   15557: #include <sys/time.h>
                   15558: #include <time.h>
                   15559: 
                   15560: int
                   15561: main ()
                   15562: {
                   15563: if ((struct tm *) 0)
                   15564: return 0;
                   15565:   ;
                   15566:   return 0;
                   15567: }
                   15568: _ACEOF
                   15569: if ac_fn_c_try_compile "$LINENO"; then :
                   15570:   ac_cv_header_time=yes
                   15571: else
                   15572:   ac_cv_header_time=no
                   15573: fi
                   15574: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15575: fi
                   15576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   15577: $as_echo "$ac_cv_header_time" >&6; }
                   15578: if test $ac_cv_header_time = yes; then
                   15579: 
                   15580: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
                   15581: 
                   15582: fi
                   15583: 
1.1.1.2   misho    15584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
                   15585: $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
                   15586: if ${ac_cv_header_stdbool_h+:} false; then :
                   15587:   $as_echo_n "(cached) " >&6
                   15588: else
                   15589:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15590: /* end confdefs.h.  */
                   15591: 
1.1.1.6 ! misho    15592:              #include <stdbool.h>
        !          15593:              #ifndef bool
        !          15594:               "error: bool is not defined"
        !          15595:              #endif
        !          15596:              #ifndef false
        !          15597:               "error: false is not defined"
        !          15598:              #endif
        !          15599:              #if false
        !          15600:               "error: false is not 0"
        !          15601:              #endif
        !          15602:              #ifndef true
        !          15603:               "error: true is not defined"
        !          15604:              #endif
        !          15605:              #if true != 1
        !          15606:               "error: true is not 1"
        !          15607:              #endif
        !          15608:              #ifndef __bool_true_false_are_defined
        !          15609:               "error: __bool_true_false_are_defined is not defined"
        !          15610:              #endif
        !          15611: 
        !          15612:              struct s { _Bool s: 1; _Bool t; } s;
        !          15613: 
        !          15614:              char a[true == 1 ? 1 : -1];
        !          15615:              char b[false == 0 ? 1 : -1];
        !          15616:              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
        !          15617:              char d[(bool) 0.5 == true ? 1 : -1];
        !          15618:              /* See body of main program for 'e'.  */
        !          15619:              char f[(_Bool) 0.0 == false ? 1 : -1];
        !          15620:              char g[true];
        !          15621:              char h[sizeof (_Bool)];
        !          15622:              char i[sizeof s.t];
        !          15623:              enum { j = false, k = true, l = false * true, m = true * 256 };
        !          15624:              /* The following fails for
        !          15625:                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
        !          15626:              _Bool n[m];
        !          15627:              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
        !          15628:              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
        !          15629:              /* Catch a bug in an HP-UX C compiler.  See
        !          15630:                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
        !          15631:                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
        !          15632:               */
        !          15633:              _Bool q = true;
        !          15634:              _Bool *pq = &q;
1.1.1.2   misho    15635: 
                   15636: int
                   15637: main ()
                   15638: {
                   15639: 
1.1.1.6 ! misho    15640:              bool e = &s;
        !          15641:              *pq |= q;
        !          15642:              *pq |= ! q;
        !          15643:              /* Refer to every declared value, to avoid compiler optimizations.  */
        !          15644:              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
        !          15645:                      + !m + !n + !o + !p + !q + !pq);
1.1.1.2   misho    15646: 
                   15647:   ;
                   15648:   return 0;
                   15649: }
                   15650: _ACEOF
                   15651: if ac_fn_c_try_compile "$LINENO"; then :
                   15652:   ac_cv_header_stdbool_h=yes
                   15653: else
                   15654:   ac_cv_header_stdbool_h=no
                   15655: fi
                   15656: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15657: fi
                   15658: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
                   15659: $as_echo "$ac_cv_header_stdbool_h" >&6; }
1.1.1.6 ! misho    15660:    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
1.1.1.2   misho    15661: if test "x$ac_cv_type__Bool" = xyes; then :
                   15662: 
                   15663: cat >>confdefs.h <<_ACEOF
                   15664: #define HAVE__BOOL 1
                   15665: _ACEOF
                   15666: 
                   15667: 
                   15668: fi
                   15669: 
1.1.1.6 ! misho    15670: 
1.1.1.2   misho    15671: if test $ac_cv_header_stdbool_h = yes; then
                   15672: 
                   15673: $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
                   15674: 
                   15675: fi
                   15676: 
                   15677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
                   15678: $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
                   15679: if ${ac_cv_header_sys_types_h_makedev+:} false; then :
                   15680:   $as_echo_n "(cached) " >&6
                   15681: else
                   15682:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15683: /* end confdefs.h.  */
                   15684: #include <sys/types.h>
                   15685: int
                   15686: main ()
                   15687: {
                   15688: return makedev(0, 0);
                   15689:   ;
                   15690:   return 0;
                   15691: }
                   15692: _ACEOF
                   15693: if ac_fn_c_try_link "$LINENO"; then :
                   15694:   ac_cv_header_sys_types_h_makedev=yes
                   15695: else
                   15696:   ac_cv_header_sys_types_h_makedev=no
                   15697: fi
                   15698: rm -f core conftest.err conftest.$ac_objext \
                   15699:     conftest$ac_exeext conftest.$ac_ext
                   15700: 
                   15701: fi
                   15702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
                   15703: $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
                   15704: 
                   15705: if test $ac_cv_header_sys_types_h_makedev = no; then
                   15706: ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
                   15707: if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
                   15708: 
                   15709: $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
                   15710: 
                   15711: fi
                   15712: 
                   15713: 
                   15714: 
                   15715:   if test $ac_cv_header_sys_mkdev_h = no; then
                   15716:     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
                   15717: if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
                   15718: 
                   15719: $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
                   15720: 
                   15721: fi
                   15722: 
                   15723: 
                   15724:   fi
                   15725: fi
                   15726: 
                   15727: 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
                   15728: do :
                   15729:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   15730: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   15731: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   15732:   cat >>confdefs.h <<_ACEOF
                   15733: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   15734: _ACEOF
                   15735: 
                   15736: fi
                   15737: 
                   15738: done
                   15739: 
1.1.1.4   misho    15740: for ac_header in endian.h sys/endian.h machine/endian.h
                   15741: do :
                   15742:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   15743: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   15744: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   15745:   cat >>confdefs.h <<_ACEOF
                   15746: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   15747: _ACEOF
                   15748:  break
                   15749: fi
                   15750: 
                   15751: done
                   15752: 
1.1.1.2   misho    15753: for ac_header in procfs.h sys/procfs.h
                   15754: do :
                   15755:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   15756: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   15757: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   15758:   cat >>confdefs.h <<_ACEOF
                   15759: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   15760: _ACEOF
                   15761:  ac_fn_c_check_member "$LINENO" "struct psinfo" "pr_ttydev" "ac_cv_member_struct_psinfo_pr_ttydev" "$ac_includes_default
                   15762: #ifdef HAVE_PROCFS_H
                   15763: #include <procfs.h>
                   15764: #endif
                   15765: #ifdef HAVE_SYS_PROCFS_H
                   15766: #include <sys/procfs.h>
                   15767: #endif
                   15768: 
                   15769: "
                   15770: if test "x$ac_cv_member_struct_psinfo_pr_ttydev" = xyes; then :
                   15771: 
                   15772: cat >>confdefs.h <<_ACEOF
                   15773: #define HAVE_STRUCT_PSINFO_PR_TTYDEV 1
                   15774: _ACEOF
                   15775: 
                   15776: for ac_func in _ttyname_dev
                   15777: do :
                   15778:   ac_fn_c_check_func "$LINENO" "_ttyname_dev" "ac_cv_func__ttyname_dev"
                   15779: if test "x$ac_cv_func__ttyname_dev" = xyes; then :
                   15780:   cat >>confdefs.h <<_ACEOF
                   15781: #define HAVE__TTYNAME_DEV 1
                   15782: _ACEOF
                   15783: 
                   15784: fi
                   15785: done
                   15786: 
                   15787: fi
                   15788: 
                   15789: break
1.1       misho    15790: fi
                   15791: 
                   15792: done
                   15793: 
1.1.1.6 ! misho    15794: #
        !          15795: # Check for large file support.
        !          15796: #
1.1       misho    15797: # Check whether --enable-largefile was given.
                   15798: if test "${enable_largefile+set}" = set; then :
                   15799:   enableval=$enable_largefile;
                   15800: fi
                   15801: 
                   15802: if test "$enable_largefile" != no; then
                   15803: 
                   15804:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
                   15805: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
                   15806: if ${ac_cv_sys_largefile_CC+:} false; then :
                   15807:   $as_echo_n "(cached) " >&6
                   15808: else
                   15809:   ac_cv_sys_largefile_CC=no
                   15810:      if test "$GCC" != yes; then
                   15811:        ac_save_CC=$CC
                   15812:        while :; do
                   15813:         # IRIX 6.2 and later do not support large files by default,
                   15814:         # so use the C compiler's -n32 option if that helps.
                   15815:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15816: /* end confdefs.h.  */
                   15817: #include <sys/types.h>
                   15818:  /* Check that off_t can represent 2**63 - 1 correctly.
                   15819:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   15820:     since some C++ compilers masquerading as C compilers
                   15821:     incorrectly reject 9223372036854775807.  */
                   15822: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
                   15823:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   15824:                       && LARGE_OFF_T % 2147483647 == 1)
                   15825:                      ? 1 : -1];
                   15826: int
                   15827: main ()
                   15828: {
                   15829: 
                   15830:   ;
                   15831:   return 0;
                   15832: }
                   15833: _ACEOF
                   15834:         if ac_fn_c_try_compile "$LINENO"; then :
                   15835:   break
                   15836: fi
                   15837: rm -f core conftest.err conftest.$ac_objext
                   15838:         CC="$CC -n32"
                   15839:         if ac_fn_c_try_compile "$LINENO"; then :
                   15840:   ac_cv_sys_largefile_CC=' -n32'; break
                   15841: fi
                   15842: rm -f core conftest.err conftest.$ac_objext
                   15843:         break
                   15844:        done
                   15845:        CC=$ac_save_CC
                   15846:        rm -f conftest.$ac_ext
                   15847:     fi
                   15848: fi
                   15849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
                   15850: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
                   15851:   if test "$ac_cv_sys_largefile_CC" != no; then
                   15852:     CC=$CC$ac_cv_sys_largefile_CC
                   15853:   fi
                   15854: 
                   15855:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
                   15856: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
                   15857: if ${ac_cv_sys_file_offset_bits+:} false; then :
                   15858:   $as_echo_n "(cached) " >&6
                   15859: else
                   15860:   while :; do
                   15861:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15862: /* end confdefs.h.  */
                   15863: #include <sys/types.h>
                   15864:  /* Check that off_t can represent 2**63 - 1 correctly.
                   15865:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   15866:     since some C++ compilers masquerading as C compilers
                   15867:     incorrectly reject 9223372036854775807.  */
                   15868: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
                   15869:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   15870:                       && LARGE_OFF_T % 2147483647 == 1)
                   15871:                      ? 1 : -1];
                   15872: int
                   15873: main ()
                   15874: {
                   15875: 
                   15876:   ;
                   15877:   return 0;
                   15878: }
                   15879: _ACEOF
                   15880: if ac_fn_c_try_compile "$LINENO"; then :
                   15881:   ac_cv_sys_file_offset_bits=no; break
                   15882: fi
                   15883: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15884:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15885: /* end confdefs.h.  */
                   15886: #define _FILE_OFFSET_BITS 64
                   15887: #include <sys/types.h>
                   15888:  /* Check that off_t can represent 2**63 - 1 correctly.
                   15889:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   15890:     since some C++ compilers masquerading as C compilers
                   15891:     incorrectly reject 9223372036854775807.  */
                   15892: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
                   15893:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   15894:                       && LARGE_OFF_T % 2147483647 == 1)
                   15895:                      ? 1 : -1];
                   15896: int
                   15897: main ()
                   15898: {
                   15899: 
                   15900:   ;
                   15901:   return 0;
                   15902: }
                   15903: _ACEOF
                   15904: if ac_fn_c_try_compile "$LINENO"; then :
                   15905:   ac_cv_sys_file_offset_bits=64; break
                   15906: fi
                   15907: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15908:   ac_cv_sys_file_offset_bits=unknown
                   15909:   break
                   15910: done
                   15911: fi
                   15912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
                   15913: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
                   15914: case $ac_cv_sys_file_offset_bits in #(
                   15915:   no | unknown) ;;
                   15916:   *)
                   15917: cat >>confdefs.h <<_ACEOF
                   15918: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
                   15919: _ACEOF
                   15920: ;;
                   15921: esac
                   15922: rm -rf conftest*
                   15923:   if test $ac_cv_sys_file_offset_bits = unknown; then
                   15924:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
                   15925: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
                   15926: if ${ac_cv_sys_large_files+:} false; then :
                   15927:   $as_echo_n "(cached) " >&6
                   15928: else
                   15929:   while :; do
                   15930:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15931: /* end confdefs.h.  */
                   15932: #include <sys/types.h>
                   15933:  /* Check that off_t can represent 2**63 - 1 correctly.
                   15934:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   15935:     since some C++ compilers masquerading as C compilers
                   15936:     incorrectly reject 9223372036854775807.  */
                   15937: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
                   15938:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   15939:                       && LARGE_OFF_T % 2147483647 == 1)
                   15940:                      ? 1 : -1];
                   15941: int
                   15942: main ()
                   15943: {
                   15944: 
                   15945:   ;
                   15946:   return 0;
                   15947: }
                   15948: _ACEOF
                   15949: if ac_fn_c_try_compile "$LINENO"; then :
                   15950:   ac_cv_sys_large_files=no; break
                   15951: fi
                   15952: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15953:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15954: /* end confdefs.h.  */
                   15955: #define _LARGE_FILES 1
                   15956: #include <sys/types.h>
                   15957:  /* Check that off_t can represent 2**63 - 1 correctly.
                   15958:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   15959:     since some C++ compilers masquerading as C compilers
                   15960:     incorrectly reject 9223372036854775807.  */
                   15961: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
                   15962:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   15963:                       && LARGE_OFF_T % 2147483647 == 1)
                   15964:                      ? 1 : -1];
                   15965: int
                   15966: main ()
                   15967: {
                   15968: 
                   15969:   ;
                   15970:   return 0;
                   15971: }
                   15972: _ACEOF
                   15973: if ac_fn_c_try_compile "$LINENO"; then :
                   15974:   ac_cv_sys_large_files=1; break
                   15975: fi
                   15976: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15977:   ac_cv_sys_large_files=unknown
                   15978:   break
                   15979: done
                   15980: fi
                   15981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
                   15982: $as_echo "$ac_cv_sys_large_files" >&6; }
                   15983: case $ac_cv_sys_large_files in #(
                   15984:   no | unknown) ;;
                   15985:   *)
                   15986: cat >>confdefs.h <<_ACEOF
                   15987: #define _LARGE_FILES $ac_cv_sys_large_files
                   15988: _ACEOF
                   15989: ;;
                   15990: esac
                   15991: rm -rf conftest*
                   15992:   fi
1.1.1.6 ! misho    15993: 
        !          15994: 
1.1       misho    15995: fi
                   15996: 
1.1.1.6 ! misho    15997: #
        !          15998: # HP-UX may need to define _XOPEN_SOURCE_EXTENDED to expose MSG_WAITALL.
        !          15999: # Also, HP-UX 11.23 has a broken sys/types.h when large files support
        !          16000: # is enabled and _XOPEN_SOURCE_EXTENDED is not also defined.
        !          16001: # The following test will define _XOPEN_SOURCE_EXTENDED in either case.
        !          16002: #
1.1.1.4   misho    16003: case "$host_os" in
1.1.1.6 ! misho    16004:     hpux*)
        !          16005:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/socket.h needs _XOPEN_SOURCE_EXTENDED for MSG_WAITALL" >&5
        !          16006: $as_echo_n "checking whether sys/socket.h needs _XOPEN_SOURCE_EXTENDED for MSG_WAITALL... " >&6; }
1.1       misho    16007: if ${sudo_cv_xopen_source_extended+:} false; then :
                   16008:   $as_echo_n "(cached) " >&6
                   16009: else
                   16010:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16011: /* end confdefs.h.  */
                   16012: $ac_includes_default
1.1.1.6 ! misho    16013: #      include <sys/socket.h>
1.1       misho    16014: int
                   16015: main ()
                   16016: {
1.1.1.6 ! misho    16017: int a = MSG_WAITALL; return a;
1.1       misho    16018:   ;
                   16019:   return 0;
                   16020: }
                   16021: _ACEOF
                   16022: if ac_fn_c_try_compile "$LINENO"; then :
                   16023:   sudo_cv_xopen_source_extended=no
                   16024: else
                   16025: 
                   16026:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16027: /* end confdefs.h.  */
                   16028: #define _XOPEN_SOURCE_EXTENDED
                   16029:            $ac_includes_default
1.1.1.6 ! misho    16030: #          include <sys/socket.h>
1.1       misho    16031: int
                   16032: main ()
                   16033: {
1.1.1.6 ! misho    16034: int a = MSG_WAITALL; return a;
1.1       misho    16035:   ;
                   16036:   return 0;
                   16037: }
                   16038: _ACEOF
                   16039: if ac_fn_c_try_compile "$LINENO"; then :
                   16040:   sudo_cv_xopen_source_extended=yes
                   16041: else
                   16042:   sudo_cv_xopen_source_extended=error
                   16043: fi
                   16044: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   16045: 
                   16046: fi
                   16047: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   16048: fi
                   16049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
                   16050: $as_echo "$sudo_cv_xopen_source_extended" >&6; }
                   16051:        if test "$sudo_cv_xopen_source_extended" = "yes"; then
                   16052:            OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
                   16053:            cat >>confdefs.h <<\EOF
                   16054: #define _XOPEN_SOURCE_EXTENDED 1
                   16055: EOF
                   16056: 
                   16057:        fi
                   16058:        ;;
                   16059: esac
                   16060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
                   16061: $as_echo_n "checking POSIX termios... " >&6; }
                   16062: if ${ac_cv_sys_posix_termios+:} false; then :
                   16063:   $as_echo_n "(cached) " >&6
                   16064: else
                   16065:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16066: /* end confdefs.h.  */
                   16067: #include <sys/types.h>
                   16068: #include <unistd.h>
                   16069: #include <termios.h>
                   16070: 
                   16071: int
                   16072: main ()
                   16073: {
                   16074: /* SunOS 4.0.3 has termios.h but not the library calls.  */
                   16075:    tcgetattr(0, 0);
                   16076:   ;
                   16077:   return 0;
                   16078: }
                   16079: _ACEOF
                   16080: if ac_fn_c_try_link "$LINENO"; then :
                   16081:   ac_cv_sys_posix_termios=yes
                   16082: else
                   16083:   ac_cv_sys_posix_termios=no
                   16084: fi
                   16085: rm -f core conftest.err conftest.$ac_objext \
                   16086:     conftest$ac_exeext conftest.$ac_ext
                   16087: fi
                   16088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
                   16089: $as_echo "$ac_cv_sys_posix_termios" >&6; }
                   16090: 
                   16091: if test "$ac_cv_sys_posix_termios" != "yes"; then
                   16092:     as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
                   16093: fi
                   16094: 
                   16095: maildir=no
                   16096: if test X"$ac_cv_header_paths_h" = X"yes"; then
                   16097: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16098: /* end confdefs.h.  */
                   16099: $ac_includes_default
                   16100: #include <paths.h>
                   16101: int
                   16102: main ()
                   16103: {
                   16104: char *p = _PATH_MAILDIR;
                   16105:   ;
                   16106:   return 0;
                   16107: }
                   16108: _ACEOF
                   16109: if ac_fn_c_try_compile "$LINENO"; then :
                   16110:   maildir=yes
                   16111: fi
                   16112: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   16113: fi
                   16114: if test $maildir = no; then
                   16115:     # Solaris has maillock.h which defines MAILDIR
                   16116:     for ac_header in maillock.h
                   16117: do :
                   16118:   ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
                   16119: if test "x$ac_cv_header_maillock_h" = xyes; then :
                   16120:   cat >>confdefs.h <<_ACEOF
                   16121: #define HAVE_MAILLOCK_H 1
                   16122: _ACEOF
                   16123: 
                   16124:        cat >>confdefs.h <<\EOF
                   16125: #define _PATH_MAILDIR MAILDIR
                   16126: EOF
                   16127: 
                   16128:        maildir=yes
                   16129: 
                   16130: fi
                   16131: 
                   16132: done
                   16133: 
                   16134:     if test $maildir = no; then
                   16135:        for d in /var/mail /var/spool/mail /usr/spool/mail; do
                   16136:            if test -d "$d"; then
                   16137:                maildir=yes
                   16138:                cat >>confdefs.h <<EOF
                   16139: #define _PATH_MAILDIR "$d"
                   16140: EOF
                   16141: 
                   16142:                break
                   16143:            fi
                   16144:        done
                   16145:        if test $maildir = no; then
                   16146:            # unable to find mail dir, hope for the best
                   16147:            cat >>confdefs.h <<EOF
                   16148: #define _PATH_MAILDIR "/var/mail"
                   16149: EOF
                   16150: 
                   16151:        fi
                   16152:     fi
                   16153: fi
                   16154: 
                   16155: if test ${with_logincap-'no'} != "no"; then
                   16156:     for ac_header in login_cap.h
                   16157: do :
                   16158:   ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
                   16159: if test "x$ac_cv_header_login_cap_h" = xyes; then :
                   16160:   cat >>confdefs.h <<_ACEOF
                   16161: #define HAVE_LOGIN_CAP_H 1
                   16162: _ACEOF
1.1.1.5   misho    16163:  LOGINCAP_USAGE='[-c class] '; LCMAN=1
1.1       misho    16164:        case "$OS" in
                   16165:            freebsd|netbsd)
                   16166:                SUDO_LIBS="${SUDO_LIBS} -lutil"
                   16167:                SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
                   16168:                ;;
                   16169:        esac
                   16170: 
                   16171: fi
                   16172: 
                   16173: done
                   16174: 
                   16175: fi
                   16176: if test ${with_project-'no'} != "no"; then
                   16177:     ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
                   16178: if test "x$ac_cv_header_project_h" = xyes; then :
                   16179: 
                   16180:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
                   16181: $as_echo_n "checking for setproject in -lproject... " >&6; }
                   16182: if ${ac_cv_lib_project_setproject+:} false; then :
                   16183:   $as_echo_n "(cached) " >&6
                   16184: else
                   16185:   ac_check_lib_save_LIBS=$LIBS
                   16186: LIBS="-lproject  $LIBS"
                   16187: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16188: /* end confdefs.h.  */
                   16189: 
                   16190: /* Override any GCC internal prototype to avoid an error.
                   16191:    Use char because int might match the return type of a GCC
                   16192:    builtin and then its argument prototype would still apply.  */
                   16193: #ifdef __cplusplus
                   16194: extern "C"
                   16195: #endif
                   16196: char setproject ();
                   16197: int
                   16198: main ()
                   16199: {
                   16200: return setproject ();
                   16201:   ;
                   16202:   return 0;
                   16203: }
                   16204: _ACEOF
                   16205: if ac_fn_c_try_link "$LINENO"; then :
                   16206:   ac_cv_lib_project_setproject=yes
                   16207: else
                   16208:   ac_cv_lib_project_setproject=no
                   16209: fi
                   16210: rm -f core conftest.err conftest.$ac_objext \
                   16211:     conftest$ac_exeext conftest.$ac_ext
                   16212: LIBS=$ac_check_lib_save_LIBS
                   16213: fi
                   16214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
                   16215: $as_echo "$ac_cv_lib_project_setproject" >&6; }
                   16216: if test "x$ac_cv_lib_project_setproject" = xyes; then :
                   16217: 
                   16218:            $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
                   16219: 
                   16220:            SUDO_LIBS="${SUDO_LIBS} -lproject"
                   16221: 
                   16222: fi
                   16223: 
                   16224: 
                   16225: fi
                   16226: 
                   16227: 
                   16228: fi
1.1.1.5   misho    16229: 
                   16230:     case "${CPPFLAGS}" in
                   16231:        *"-D__STDC_WANT_LIB_EXT1__=1"|*"-D__STDC_WANT_LIB_EXT1__=1 ")
                   16232:            ;;
                   16233:        *)
                   16234:            if test X"${CPPFLAGS}" = X""; then
                   16235:                CPPFLAGS="-D__STDC_WANT_LIB_EXT1__=1"
                   16236:            else
                   16237:                CPPFLAGS="${CPPFLAGS} -D__STDC_WANT_LIB_EXT1__=1"
                   16238:            fi
                   16239:            ;;
                   16240:     esac
                   16241: 
1.1       misho    16242: ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
                   16243: if test "x$ac_cv_type_mode_t" = xyes; then :
                   16244: 
                   16245: else
                   16246: 
                   16247: cat >>confdefs.h <<_ACEOF
                   16248: #define mode_t int
                   16249: _ACEOF
                   16250: 
                   16251: fi
                   16252: 
                   16253: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   16254: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
                   16255: if ${ac_cv_type_uid_t+:} false; then :
                   16256:   $as_echo_n "(cached) " >&6
                   16257: else
                   16258:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16259: /* end confdefs.h.  */
                   16260: #include <sys/types.h>
                   16261: 
                   16262: _ACEOF
                   16263: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   16264:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   16265:   ac_cv_type_uid_t=yes
                   16266: else
                   16267:   ac_cv_type_uid_t=no
                   16268: fi
                   16269: rm -f conftest*
                   16270: 
                   16271: fi
                   16272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   16273: $as_echo "$ac_cv_type_uid_t" >&6; }
                   16274: if test $ac_cv_type_uid_t = no; then
                   16275: 
                   16276: $as_echo "#define uid_t int" >>confdefs.h
                   16277: 
                   16278: 
                   16279: $as_echo "#define gid_t int" >>confdefs.h
                   16280: 
                   16281: fi
                   16282: 
1.1.1.6 ! misho    16283: ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" "#include <sys/types.h>
        !          16284: #include <time.h>
        !          16285: "
        !          16286: if test "x$ac_cv_type_clockid_t" = xyes; then :
1.1       misho    16287: 
                   16288: else
1.1.1.6 ! misho    16289:   $as_echo "#define clockid_t int" >>confdefs.h
1.1       misho    16290: 
                   16291: fi
                   16292: 
                   16293: ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
                   16294: #include <signal.h>
                   16295: "
                   16296: if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
                   16297: 
                   16298: else
                   16299:   $as_echo "#define sig_atomic_t int" >>confdefs.h
                   16300: 
                   16301: fi
                   16302: 
                   16303: ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
                   16304: #include <signal.h>
                   16305: "
                   16306: if test "x$ac_cv_type_sigaction_t" = xyes; then :
                   16307: 
                   16308: cat >>confdefs.h <<_ACEOF
                   16309: #define HAVE_SIGACTION_T 1
                   16310: _ACEOF
                   16311: 
                   16312: 
                   16313: fi
                   16314: 
                   16315: ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
1.1.1.6 ! misho    16316: #ifdef TIME_WITH_SYS_TIME
1.1       misho    16317: # include <sys/time.h>
                   16318: #endif
                   16319: #include <time.h>
                   16320: "
                   16321: if test "x$ac_cv_type_struct_timespec" = xyes; then :
1.1.1.2   misho    16322: 
                   16323: cat >>confdefs.h <<_ACEOF
                   16324: #define HAVE_STRUCT_TIMESPEC 1
                   16325: _ACEOF
                   16326: 
1.1       misho    16327: 
                   16328: fi
                   16329: 
                   16330: ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
                   16331: #include <netinet/in.h>
                   16332: "
                   16333: if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
                   16334: 
                   16335: cat >>confdefs.h <<_ACEOF
                   16336: #define HAVE_STRUCT_IN6_ADDR 1
                   16337: _ACEOF
                   16338: 
                   16339: 
                   16340: fi
                   16341: 
                   16342: 
1.1.1.6 ! misho    16343:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
        !          16344: $as_echo_n "checking for unsigned long long int... " >&6; }
        !          16345: if ${ac_cv_type_unsigned_long_long_int+:} false; then :
1.1       misho    16346:   $as_echo_n "(cached) " >&6
                   16347: else
1.1.1.6 ! misho    16348:   ac_cv_type_unsigned_long_long_int=yes
        !          16349:      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
        !          16350:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       misho    16351: /* end confdefs.h.  */
                   16352: 
                   16353:   /* For now, do not test the preprocessor; as of 2007 there are too many
1.1.1.6 ! misho    16354:          implementations with broken preprocessors.  Perhaps this can
        !          16355:          be revisited in 2012.  In the meantime, code should not expect
        !          16356:          #if to work with literals wider than 32 bits.  */
1.1       misho    16357:       /* Test literals.  */
                   16358:       long long int ll = 9223372036854775807ll;
                   16359:       long long int nll = -9223372036854775807LL;
                   16360:       unsigned long long int ull = 18446744073709551615ULL;
                   16361:       /* Test constant expressions.   */
                   16362:       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
1.1.1.6 ! misho    16363:                      ? 1 : -1)];
1.1       misho    16364:       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
1.1.1.6 ! misho    16365:                      ? 1 : -1)];
1.1       misho    16366:       int i = 63;
                   16367: int
                   16368: main ()
                   16369: {
                   16370: /* Test availability of runtime routines for shift and division.  */
                   16371:       long long int llmax = 9223372036854775807ll;
                   16372:       unsigned long long int ullmax = 18446744073709551615ull;
                   16373:       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
1.1.1.6 ! misho    16374:               | (llmax / ll) | (llmax % ll)
        !          16375:               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
        !          16376:               | (ullmax / ull) | (ullmax % ull));
1.1       misho    16377:   ;
                   16378:   return 0;
                   16379: }
                   16380: 
                   16381: _ACEOF
                   16382: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.6 ! misho    16383: 
        !          16384: else
        !          16385:   ac_cv_type_unsigned_long_long_int=no
        !          16386: fi
        !          16387: rm -f core conftest.err conftest.$ac_objext \
        !          16388:     conftest$ac_exeext conftest.$ac_ext
        !          16389:      fi
        !          16390: fi
        !          16391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
        !          16392: $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
        !          16393:   if test $ac_cv_type_unsigned_long_long_int = yes; then
        !          16394: 
        !          16395: $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
        !          16396: 
        !          16397:   fi
        !          16398: 
        !          16399: 
        !          16400: 
        !          16401:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
        !          16402: $as_echo_n "checking for long long int... " >&6; }
        !          16403: if ${ac_cv_type_long_long_int+:} false; then :
        !          16404:   $as_echo_n "(cached) " >&6
        !          16405: else
1.1       misho    16406:   ac_cv_type_long_long_int=yes
1.1.1.6 ! misho    16407:       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
        !          16408:         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
        !          16409:         if test $ac_cv_type_long_long_int = yes; then
        !          16410:                                         if test "$cross_compiling" = yes; then :
        !          16411:   :
1.1       misho    16412: else
                   16413:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16414: /* end confdefs.h.  */
                   16415: #include <limits.h>
1.1.1.6 ! misho    16416:                  #ifndef LLONG_MAX
        !          16417:                  # define HALF \
        !          16418:                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
        !          16419:                  # define LLONG_MAX (HALF - 1 + HALF)
        !          16420:                  #endif
1.1       misho    16421: int
                   16422: main ()
                   16423: {
                   16424: long long int n = 1;
1.1.1.6 ! misho    16425:                  int i;
        !          16426:                  for (i = 0; ; i++)
        !          16427:                    {
        !          16428:                      long long int m = n << i;
        !          16429:                      if (m >> i != n)
        !          16430:                        return 1;
        !          16431:                      if (LLONG_MAX / 2 < m)
        !          16432:                        break;
        !          16433:                    }
        !          16434:                  return 0;
1.1       misho    16435:   ;
                   16436:   return 0;
                   16437: }
                   16438: _ACEOF
                   16439: if ac_fn_c_try_run "$LINENO"; then :
1.1.1.6 ! misho    16440: 
1.1       misho    16441: else
                   16442:   ac_cv_type_long_long_int=no
                   16443: fi
                   16444: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   16445:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   16446: fi
                   16447: 
1.1.1.6 ! misho    16448:         fi
        !          16449:       fi
1.1       misho    16450: fi
                   16451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
                   16452: $as_echo "$ac_cv_type_long_long_int" >&6; }
                   16453:   if test $ac_cv_type_long_long_int = yes; then
                   16454: 
                   16455: $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
                   16456: 
                   16457:   fi
                   16458: 
1.1.1.4   misho    16459: if test X"$ac_cv_type_long_long_int" != X"yes"; then
1.1.1.6 ! misho    16460:     as_fn_error $? "\"C compiler does not appear to support the long long int type\"" "$LINENO" 5
1.1.1.4   misho    16461: fi
1.1       misho    16462: # The cast to long int works around a bug in the HP C Compiler
                   16463: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   16464: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   16465: # This bug is HP SR number 8606223364.
                   16466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   16467: $as_echo_n "checking size of long int... " >&6; }
                   16468: if ${ac_cv_sizeof_long_int+:} false; then :
                   16469:   $as_echo_n "(cached) " >&6
                   16470: else
                   16471:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
                   16472: 
                   16473: else
                   16474:   if test "$ac_cv_type_long_int" = yes; then
                   16475:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   16476: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   16477: as_fn_error 77 "cannot compute sizeof (long int)
                   16478: See \`config.log' for more details" "$LINENO" 5; }
                   16479:    else
                   16480:      ac_cv_sizeof_long_int=0
                   16481:    fi
                   16482: fi
                   16483: 
                   16484: fi
                   16485: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   16486: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   16487: 
                   16488: 
                   16489: 
                   16490: cat >>confdefs.h <<_ACEOF
                   16491: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
                   16492: _ACEOF
                   16493: 
                   16494: 
1.1.1.5   misho    16495: ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
                   16496: if test "x$ac_cv_type_id_t" = xyes; then :
                   16497: 
                   16498: else
                   16499: 
                   16500: cat >>confdefs.h <<_ACEOF
                   16501: #define id_t unsigned int
                   16502: _ACEOF
                   16503: 
                   16504: fi
                   16505: 
1.1.1.2   misho    16506: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   16507: if test "x$ac_cv_type_size_t" = xyes; then :
                   16508: 
1.1       misho    16509: else
1.1.1.2   misho    16510: 
                   16511: cat >>confdefs.h <<_ACEOF
                   16512: #define size_t unsigned int
1.1       misho    16513: _ACEOF
                   16514: 
                   16515: fi
                   16516: 
1.1.1.2   misho    16517: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
                   16518: if test "x$ac_cv_type_ssize_t" = xyes; then :
1.1       misho    16519: 
                   16520: else
1.1.1.2   misho    16521: 
                   16522: cat >>confdefs.h <<_ACEOF
                   16523: #define ssize_t int
1.1       misho    16524: _ACEOF
                   16525: 
                   16526: fi
                   16527: 
1.1.1.2   misho    16528: ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
                   16529: if test "x$ac_cv_type_dev_t" = xyes; then :
1.1       misho    16530: 
                   16531: else
1.1.1.2   misho    16532: 
                   16533: cat >>confdefs.h <<_ACEOF
                   16534: #define dev_t int
1.1       misho    16535: _ACEOF
                   16536: 
                   16537: fi
                   16538: 
1.1.1.2   misho    16539: ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
                   16540: if test "x$ac_cv_type_ino_t" = xyes; then :
1.1       misho    16541: 
                   16542: else
1.1.1.2   misho    16543: 
                   16544: cat >>confdefs.h <<_ACEOF
                   16545: #define ino_t unsigned int
1.1       misho    16546: _ACEOF
                   16547: 
                   16548: fi
                   16549: 
1.1.1.4   misho    16550: ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
                   16551: if test "x$ac_cv_type_uint8_t" = xyes; then :
                   16552: 
                   16553: else
                   16554: 
                   16555: cat >>confdefs.h <<_ACEOF
                   16556: #define uint8_t unsigned char
                   16557: _ACEOF
                   16558: 
                   16559: fi
                   16560: 
                   16561: ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
                   16562: if test "x$ac_cv_type_uint32_t" = xyes; then :
                   16563: 
                   16564: else
                   16565: 
                   16566: cat >>confdefs.h <<_ACEOF
                   16567: #define uint32_t unsigned int
                   16568: _ACEOF
                   16569: 
                   16570: fi
                   16571: 
                   16572: ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
                   16573: if test "x$ac_cv_type_uint64_t" = xyes; then :
                   16574: 
                   16575: else
                   16576: 
                   16577: cat >>confdefs.h <<_ACEOF
                   16578: #define uint64_t unsigned long long
                   16579: _ACEOF
                   16580: 
                   16581: fi
                   16582: 
1.1.1.2   misho    16583: ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
                   16584: $ac_includes_default
                   16585: #include <sys/socket.h>
                   16586: "
                   16587: if test "x$ac_cv_type_socklen_t" = xyes; then :
                   16588: 
                   16589: else
                   16590:   $as_echo "#define socklen_t unsigned int" >>confdefs.h
1.1       misho    16591: 
                   16592: fi
                   16593: 
1.1.1.5   misho    16594: ac_fn_c_check_type "$LINENO" "rsize_t" "ac_cv_type_rsize_t" "$ac_includes_default"
                   16595: if test "x$ac_cv_type_rsize_t" = xyes; then :
                   16596: 
                   16597: else
                   16598: 
                   16599: cat >>confdefs.h <<_ACEOF
                   16600: #define rsize_t size_t
                   16601: _ACEOF
                   16602: 
                   16603: fi
                   16604: 
                   16605: ac_fn_c_check_type "$LINENO" "errno_t" "ac_cv_type_errno_t" "$ac_includes_default"
                   16606: if test "x$ac_cv_type_errno_t" = xyes; then :
                   16607: 
                   16608: else
                   16609: 
                   16610: cat >>confdefs.h <<_ACEOF
                   16611: #define errno_t int
                   16612: _ACEOF
                   16613: 
                   16614: fi
                   16615: 
1.1       misho    16616: 
                   16617: { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
                   16618: $as_echo_n "checking max length of uid_t... " >&6; }
                   16619: if ${sudo_cv_uid_t_len+:} false; then :
                   16620:   $as_echo_n "(cached) " >&6
                   16621: else
                   16622:   rm -f conftestdata
                   16623: if test "$cross_compiling" = yes; then :
                   16624:   sudo_cv_uid_t_len=10
                   16625: else
                   16626:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16627: /* end confdefs.h.  */
1.1.1.6 ! misho    16628: 
1.1       misho    16629: #include <stdio.h>
                   16630: #include <pwd.h>
                   16631: #include <limits.h>
                   16632: #include <sys/types.h>
                   16633: #include <sys/param.h>
                   16634: main() {
                   16635:   FILE *f;
                   16636:   char b[1024];
                   16637:   uid_t u = (uid_t) -1;
                   16638: 
                   16639:   if ((f = fopen("conftestdata", "w")) == NULL)
                   16640:     exit(1);
                   16641: 
                   16642:   (void) sprintf(b, "%lu", (unsigned long) u);
                   16643:   (void) fprintf(f, "%d\n", strlen(b));
                   16644:   (void) fclose(f);
                   16645:   exit(0);
                   16646: }
                   16647: _ACEOF
                   16648: if ac_fn_c_try_run "$LINENO"; then :
                   16649:   sudo_cv_uid_t_len=`cat conftestdata`
                   16650: else
                   16651:   sudo_cv_uid_t_len=10
                   16652: fi
                   16653: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   16654:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   16655: fi
                   16656: 
                   16657: 
                   16658: fi
                   16659: 
                   16660: rm -f conftestdata
                   16661: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
                   16662: $as_echo "$sudo_cv_uid_t_len" >&6; }
                   16663: 
                   16664: cat >>confdefs.h <<_ACEOF
                   16665: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
                   16666: _ACEOF
                   16667: 
                   16668: 
                   16669: 
1.1.1.6 ! misho    16670:     ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
        !          16671: #        include <sys/types.h>
        !          16672: #        include <sys/socket.h>
1.1       misho    16673: 
                   16674: "
                   16675: if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
                   16676: 
1.1.1.2   misho    16677: $as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
1.1       misho    16678: 
                   16679: fi
                   16680: 
                   16681: 
1.1.1.6 ! misho    16682: 
        !          16683:     ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
        !          16684: #        include <sys/types.h>
        !          16685: #        include <sys/socket.h>
        !          16686: 
        !          16687: "
        !          16688: if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
        !          16689: 
        !          16690: $as_echo "#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
        !          16691: 
        !          16692: fi
        !          16693: 
        !          16694: 
1.1       misho    16695: _CFLAGS="$CFLAGS"
                   16696: CFLAGS="$CFLAGS $OSDEFS"
                   16697: if test $ac_cv_header_utmpx_h = "yes"; then
                   16698:     ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
1.1.1.6 ! misho    16699: #      include <sys/types.h>
        !          16700: #      include <utmpx.h>
1.1       misho    16701: 
                   16702: "
                   16703: if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
                   16704: 
                   16705: cat >>confdefs.h <<_ACEOF
                   16706: #define HAVE_STRUCT_UTMPX_UT_ID 1
                   16707: _ACEOF
                   16708: 
                   16709: 
                   16710: fi
                   16711: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
1.1.1.6 ! misho    16712: #      include <sys/types.h>
        !          16713: #      include <utmpx.h>
1.1       misho    16714: 
                   16715: "
                   16716: if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
                   16717: 
                   16718: cat >>confdefs.h <<_ACEOF
                   16719: #define HAVE_STRUCT_UTMPX_UT_PID 1
                   16720: _ACEOF
                   16721: 
                   16722: 
                   16723: fi
                   16724: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
1.1.1.6 ! misho    16725: #      include <sys/types.h>
        !          16726: #      include <utmpx.h>
1.1       misho    16727: 
                   16728: "
                   16729: if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
                   16730: 
                   16731: cat >>confdefs.h <<_ACEOF
                   16732: #define HAVE_STRUCT_UTMPX_UT_TV 1
                   16733: _ACEOF
                   16734: 
                   16735: 
                   16736: fi
                   16737: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
1.1.1.6 ! misho    16738: #      include <sys/types.h>
        !          16739: #      include <utmpx.h>
1.1       misho    16740: 
                   16741: "
                   16742: if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
                   16743: 
                   16744: cat >>confdefs.h <<_ACEOF
                   16745: #define HAVE_STRUCT_UTMPX_UT_TYPE 1
                   16746: _ACEOF
                   16747: 
                   16748: 
                   16749: fi
                   16750: 
                   16751:                 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
1.1.1.6 ! misho    16752: #      include <sys/types.h>
        !          16753: #      include <utmpx.h>
1.1       misho    16754: 
                   16755: "
                   16756: if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
                   16757: 
                   16758: cat >>confdefs.h <<_ACEOF
                   16759: #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
                   16760: _ACEOF
                   16761: 
                   16762: $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
                   16763: 
                   16764: else
                   16765: 
                   16766:        ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
1.1.1.6 ! misho    16767: #          include <sys/types.h>
        !          16768: #          include <utmpx.h>
1.1       misho    16769: 
                   16770: "
                   16771: if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
                   16772: 
                   16773: cat >>confdefs.h <<_ACEOF
                   16774: #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
                   16775: _ACEOF
                   16776: 
                   16777: $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
                   16778: 
                   16779: fi
                   16780: 
                   16781: 
                   16782: fi
                   16783: 
                   16784: else
                   16785:     ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
1.1.1.6 ! misho    16786: #      include <sys/types.h>
        !          16787: #      include <utmp.h>
1.1       misho    16788: 
                   16789: "
                   16790: if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
                   16791: 
                   16792: cat >>confdefs.h <<_ACEOF
                   16793: #define HAVE_STRUCT_UTMP_UT_ID 1
                   16794: _ACEOF
                   16795: 
                   16796: 
                   16797: fi
                   16798: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
1.1.1.6 ! misho    16799: #      include <sys/types.h>
        !          16800: #      include <utmp.h>
1.1       misho    16801: 
                   16802: "
                   16803: if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
                   16804: 
                   16805: cat >>confdefs.h <<_ACEOF
                   16806: #define HAVE_STRUCT_UTMP_UT_PID 1
                   16807: _ACEOF
                   16808: 
                   16809: 
                   16810: fi
                   16811: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
1.1.1.6 ! misho    16812: #      include <sys/types.h>
        !          16813: #      include <utmp.h>
1.1       misho    16814: 
                   16815: "
                   16816: if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
                   16817: 
                   16818: cat >>confdefs.h <<_ACEOF
                   16819: #define HAVE_STRUCT_UTMP_UT_TV 1
                   16820: _ACEOF
                   16821: 
                   16822: 
                   16823: fi
                   16824: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
1.1.1.6 ! misho    16825: #      include <sys/types.h>
        !          16826: #      include <utmp.h>
1.1       misho    16827: 
                   16828: "
                   16829: if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
                   16830: 
                   16831: cat >>confdefs.h <<_ACEOF
                   16832: #define HAVE_STRUCT_UTMP_UT_TYPE 1
                   16833: _ACEOF
                   16834: 
                   16835: 
                   16836: fi
                   16837: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
1.1.1.6 ! misho    16838: #      include <sys/types.h>
        !          16839: #      include <utmp.h>
1.1       misho    16840: 
                   16841: "
                   16842: if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
                   16843: 
                   16844: cat >>confdefs.h <<_ACEOF
                   16845: #define HAVE_STRUCT_UTMP_UT_USER 1
                   16846: _ACEOF
                   16847: 
                   16848: 
                   16849: fi
                   16850: 
                   16851:                 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
1.1.1.6 ! misho    16852: #      include <sys/types.h>
        !          16853: #      include <utmp.h>
1.1       misho    16854: 
                   16855: "
                   16856: if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
                   16857: 
                   16858: cat >>confdefs.h <<_ACEOF
                   16859: #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
                   16860: _ACEOF
                   16861: 
                   16862: $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
                   16863: 
                   16864: else
                   16865: 
                   16866:        ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
1.1.1.6 ! misho    16867: #          include <sys/types.h>
        !          16868: #          include <utmp.h>
1.1       misho    16869: 
                   16870: "
                   16871: if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
                   16872: 
                   16873: cat >>confdefs.h <<_ACEOF
                   16874: #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
                   16875: _ACEOF
                   16876: 
                   16877: $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
                   16878: 
                   16879: fi
                   16880: 
                   16881: 
                   16882: fi
                   16883: 
                   16884: fi
                   16885: CFLAGS="$_CFLAGS"
                   16886: 
                   16887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
                   16888: $as_echo_n "checking type of array argument to getgroups... " >&6; }
                   16889: if ${ac_cv_type_getgroups+:} false; then :
                   16890:   $as_echo_n "(cached) " >&6
                   16891: else
                   16892:   if test "$cross_compiling" = yes; then :
                   16893:   ac_cv_type_getgroups=cross
                   16894: else
                   16895:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16896: /* end confdefs.h.  */
                   16897: /* Thanks to Mike Rendell for this test.  */
                   16898: $ac_includes_default
                   16899: #define NGID 256
                   16900: #undef MAX
                   16901: #define MAX(x, y) ((x) > (y) ? (x) : (y))
                   16902: 
                   16903: int
                   16904: main ()
                   16905: {
                   16906:   gid_t gidset[NGID];
                   16907:   int i, n;
                   16908:   union { gid_t gval; long int lval; }  val;
                   16909: 
                   16910:   val.lval = -1;
                   16911:   for (i = 0; i < NGID; i++)
                   16912:     gidset[i] = val.gval;
                   16913:   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
                   16914:                 gidset);
                   16915:   /* Exit non-zero if getgroups seems to require an array of ints.  This
                   16916:      happens when gid_t is short int but getgroups modifies an array
                   16917:      of ints.  */
                   16918:   return n > 0 && gidset[n] != val.gval;
                   16919: }
                   16920: _ACEOF
                   16921: if ac_fn_c_try_run "$LINENO"; then :
                   16922:   ac_cv_type_getgroups=gid_t
                   16923: else
                   16924:   ac_cv_type_getgroups=int
                   16925: fi
                   16926: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   16927:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   16928: fi
                   16929: 
                   16930: if test $ac_cv_type_getgroups = cross; then
                   16931:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16932: /* end confdefs.h.  */
                   16933: #include <unistd.h>
                   16934: 
                   16935: _ACEOF
                   16936: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   16937:   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
                   16938:   ac_cv_type_getgroups=gid_t
                   16939: else
                   16940:   ac_cv_type_getgroups=int
                   16941: fi
                   16942: rm -f conftest*
                   16943: 
                   16944: fi
                   16945: fi
                   16946: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
                   16947: $as_echo "$ac_cv_type_getgroups" >&6; }
                   16948: 
                   16949: cat >>confdefs.h <<_ACEOF
                   16950: #define GETGROUPS_T $ac_cv_type_getgroups
                   16951: _ACEOF
                   16952: 
                   16953: 
                   16954: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   16955: if test "x$ac_cv_type_size_t" = xyes; then :
                   16956: 
                   16957: else
                   16958: 
                   16959: cat >>confdefs.h <<_ACEOF
                   16960: #define size_t unsigned int
                   16961: _ACEOF
                   16962: 
                   16963: fi
                   16964: 
                   16965: ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
                   16966: if test "x$ac_cv_func_getgroups" = xyes; then :
                   16967: 
                   16968: fi
                   16969: 
                   16970: 
                   16971: # If we don't yet have getgroups, see if it's in -lbsd.
                   16972: # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
                   16973: ac_save_LIBS=$LIBS
                   16974: if test $ac_cv_func_getgroups = no; then
                   16975:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
                   16976: $as_echo_n "checking for getgroups in -lbsd... " >&6; }
                   16977: if ${ac_cv_lib_bsd_getgroups+:} false; then :
                   16978:   $as_echo_n "(cached) " >&6
                   16979: else
                   16980:   ac_check_lib_save_LIBS=$LIBS
                   16981: LIBS="-lbsd  $LIBS"
                   16982: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16983: /* end confdefs.h.  */
                   16984: 
                   16985: /* Override any GCC internal prototype to avoid an error.
                   16986:    Use char because int might match the return type of a GCC
                   16987:    builtin and then its argument prototype would still apply.  */
                   16988: #ifdef __cplusplus
                   16989: extern "C"
                   16990: #endif
                   16991: char getgroups ();
                   16992: int
                   16993: main ()
                   16994: {
                   16995: return getgroups ();
                   16996:   ;
                   16997:   return 0;
                   16998: }
                   16999: _ACEOF
                   17000: if ac_fn_c_try_link "$LINENO"; then :
                   17001:   ac_cv_lib_bsd_getgroups=yes
                   17002: else
                   17003:   ac_cv_lib_bsd_getgroups=no
                   17004: fi
                   17005: rm -f core conftest.err conftest.$ac_objext \
                   17006:     conftest$ac_exeext conftest.$ac_ext
                   17007: LIBS=$ac_check_lib_save_LIBS
                   17008: fi
                   17009: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
                   17010: $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
                   17011: if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
                   17012:   GETGROUPS_LIB=-lbsd
                   17013: fi
                   17014: 
                   17015: fi
                   17016: 
                   17017: # Run the program to test the functionality of the system-supplied
                   17018: # getgroups function only if there is such a function.
                   17019: if test $ac_cv_func_getgroups = yes; then
                   17020:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
                   17021: $as_echo_n "checking for working getgroups... " >&6; }
                   17022: if ${ac_cv_func_getgroups_works+:} false; then :
                   17023:   $as_echo_n "(cached) " >&6
                   17024: else
                   17025:   if test "$cross_compiling" = yes; then :
                   17026:   ac_cv_func_getgroups_works=no
                   17027: else
                   17028:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17029: /* end confdefs.h.  */
                   17030: $ac_includes_default
                   17031: int
                   17032: main ()
                   17033: {
                   17034: /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
                   17035:        return getgroups (0, 0) == -1;
                   17036:   ;
                   17037:   return 0;
                   17038: }
                   17039: _ACEOF
                   17040: if ac_fn_c_try_run "$LINENO"; then :
                   17041:   ac_cv_func_getgroups_works=yes
                   17042: else
                   17043:   ac_cv_func_getgroups_works=no
                   17044: fi
                   17045: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   17046:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   17047: fi
                   17048: 
                   17049: 
                   17050: fi
                   17051: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
                   17052: $as_echo "$ac_cv_func_getgroups_works" >&6; }
                   17053: else
                   17054:   ac_cv_func_getgroups_works=no
                   17055: fi
                   17056: if test $ac_cv_func_getgroups_works = yes; then
                   17057: 
                   17058: $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
                   17059: 
                   17060: fi
                   17061: LIBS=$ac_save_LIBS
                   17062: 
1.1.1.4   misho    17063: for ac_func in glob nl_langinfo regcomp setenv strftime strrchr strtoll \
                   17064:               sysconf tzset
1.1       misho    17065: do :
                   17066:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17067: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   17068: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   17069:   cat >>confdefs.h <<_ACEOF
                   17070: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17071: _ACEOF
                   17072: 
                   17073: fi
                   17074: done
                   17075: 
1.1.1.4   misho    17076: for ac_func in getgrouplist
                   17077: do :
                   17078:   ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
1.1       misho    17079: if test "x$ac_cv_func_getgrouplist" = xyes; then :
1.1.1.4   misho    17080:   cat >>confdefs.h <<_ACEOF
                   17081: #define HAVE_GETGROUPLIST 1
                   17082: _ACEOF
1.1       misho    17083: 
                   17084: else
1.1.1.4   misho    17085: 
                   17086:     case "$host_os" in
                   17087:     aix*)
                   17088:        for ac_func in getgrset
                   17089: do :
                   17090:   ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
                   17091: if test "x$ac_cv_func_getgrset" = xyes; then :
                   17092:   cat >>confdefs.h <<_ACEOF
                   17093: #define HAVE_GETGRSET 1
                   17094: _ACEOF
                   17095: 
                   17096: fi
                   17097: done
                   17098: 
                   17099:        ;;
                   17100:     *)
                   17101:        ac_fn_c_check_func "$LINENO" "nss_search" "ac_cv_func_nss_search"
                   17102: if test "x$ac_cv_func_nss_search" = xyes; then :
                   17103: 
                   17104:            ac_fn_c_check_func "$LINENO" "_nss_XbyY_buf_alloc" "ac_cv_func__nss_XbyY_buf_alloc"
                   17105: if test "x$ac_cv_func__nss_XbyY_buf_alloc" = xyes; then :
                   17106: 
                   17107:                # Solaris
                   17108:                ac_fn_c_check_func "$LINENO" "_nss_initf_group" "ac_cv_func__nss_initf_group"
                   17109: if test "x$ac_cv_func__nss_initf_group" = xyes; then :
                   17110: 
                   17111:                    for ac_header in nss_dbdefs.h
                   17112: do :
                   17113:   ac_fn_c_check_header_mongrel "$LINENO" "nss_dbdefs.h" "ac_cv_header_nss_dbdefs_h" "$ac_includes_default"
                   17114: if test "x$ac_cv_header_nss_dbdefs_h" = xyes; then :
                   17115:   cat >>confdefs.h <<_ACEOF
                   17116: #define HAVE_NSS_DBDEFS_H 1
                   17117: _ACEOF
                   17118: 
                   17119: fi
                   17120: 
                   17121: done
                   17122: 
                   17123:                    $as_echo "#define HAVE_NSS_SEARCH 1" >>confdefs.h
                   17124: 
                   17125:                    $as_echo "#define HAVE__NSS_XBYY_BUF_ALLOC 1" >>confdefs.h
                   17126: 
                   17127:                    $as_echo "#define HAVE__NSS_INITF_GROUP 1" >>confdefs.h
                   17128: 
                   17129: 
                   17130: fi
                   17131: 
                   17132: 
                   17133: else
                   17134: 
                   17135:                # HP-UX
                   17136:                ac_fn_c_check_func "$LINENO" "__nss_XbyY_buf_alloc" "ac_cv_func___nss_XbyY_buf_alloc"
                   17137: if test "x$ac_cv_func___nss_XbyY_buf_alloc" = xyes; then :
                   17138: 
                   17139:                    ac_fn_c_check_func "$LINENO" "__nss_initf_group" "ac_cv_func___nss_initf_group"
                   17140: if test "x$ac_cv_func___nss_initf_group" = xyes; then :
                   17141: 
                   17142:                        for ac_header in nss_dbdefs.h
                   17143: do :
                   17144:   ac_fn_c_check_header_mongrel "$LINENO" "nss_dbdefs.h" "ac_cv_header_nss_dbdefs_h" "$ac_includes_default"
                   17145: if test "x$ac_cv_header_nss_dbdefs_h" = xyes; then :
                   17146:   cat >>confdefs.h <<_ACEOF
                   17147: #define HAVE_NSS_DBDEFS_H 1
                   17148: _ACEOF
                   17149: 
                   17150: fi
                   17151: 
                   17152: done
                   17153: 
                   17154:                        $as_echo "#define HAVE_NSS_SEARCH 1" >>confdefs.h
                   17155: 
                   17156:                        $as_echo "#define HAVE___NSS_XBYY_BUF_ALLOC 1" >>confdefs.h
                   17157: 
                   17158:                        $as_echo "#define HAVE___NSS_INITF_GROUP 1" >>confdefs.h
                   17159: 
                   17160: 
                   17161: fi
                   17162: 
                   17163: 
                   17164: fi
                   17165: 
                   17166: 
                   17167: fi
                   17168: 
                   17169: 
                   17170: fi
                   17171: 
                   17172:        ;;
                   17173:     esac
                   17174:     case " $LIBOBJS " in
1.1       misho    17175:   *" getgrouplist.$ac_objext "* ) ;;
                   17176:   *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
                   17177:  ;;
                   17178: esac
                   17179: 
                   17180: 
1.1.1.4   misho    17181: fi
                   17182: done
1.1       misho    17183: 
                   17184: for ac_func in getline
                   17185: do :
                   17186:   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
                   17187: if test "x$ac_cv_func_getline" = xyes; then :
                   17188:   cat >>confdefs.h <<_ACEOF
                   17189: #define HAVE_GETLINE 1
                   17190: _ACEOF
                   17191: 
                   17192: else
                   17193: 
                   17194:     case " $LIBOBJS " in
                   17195:   *" getline.$ac_objext "* ) ;;
                   17196:   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
                   17197:  ;;
                   17198: esac
                   17199: 
                   17200:     for ac_func in fgetln
                   17201: do :
                   17202:   ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
                   17203: if test "x$ac_cv_func_fgetln" = xyes; then :
                   17204:   cat >>confdefs.h <<_ACEOF
                   17205: #define HAVE_FGETLN 1
                   17206: _ACEOF
                   17207: 
                   17208: fi
                   17209: done
                   17210: 
                   17211: 
                   17212: fi
                   17213: done
                   17214: 
1.1.1.3   misho    17215: if test "$enable_hardening" != "no"; then
                   17216:     O_CPPFLAGS="$CPPFLAGS"
                   17217:     CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
                   17218:     ac_fn_c_check_func "$LINENO" "__sprintf_chk" "ac_cv_func___sprintf_chk"
1.1.1.2   misho    17219: if test "x$ac_cv_func___sprintf_chk" = xyes; then :
                   17220: 
1.1.1.3   misho    17221:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1.2   misho    17222: /* end confdefs.h.  */
                   17223: 
                   17224: int
                   17225: main ()
                   17226: {
                   17227: char buf[4]; (void)sprintf(buf, "%s", "foo");
                   17228:   ;
                   17229:   return 0;
                   17230: }
                   17231: _ACEOF
                   17232: if ac_fn_c_try_link "$LINENO"; then :
                   17233:   OSDEFS="${OSDEFS} -D_FORTIFY_SOURCE=2"
                   17234: fi
                   17235: rm -f core conftest.err conftest.$ac_objext \
                   17236:     conftest$ac_exeext conftest.$ac_ext
                   17237: 
                   17238: fi
                   17239: 
1.1.1.3   misho    17240:     CPPFLAGS="$O_CPPFLAGS"
                   17241: fi
1.1.1.2   misho    17242: 
1.1       misho    17243: utmp_style=LEGACY
                   17244: for ac_func in getutxid getutid
                   17245: do :
                   17246:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17247: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   17248: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   17249:   cat >>confdefs.h <<_ACEOF
                   17250: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17251: _ACEOF
                   17252:  utmp_style=POSIX; break
                   17253: fi
                   17254: done
                   17255: 
                   17256: if test "$utmp_style" = "LEGACY"; then
                   17257:     for ac_func in getttyent ttyslot
                   17258: do :
                   17259:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17260: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   17261: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   17262:   cat >>confdefs.h <<_ACEOF
                   17263: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17264: _ACEOF
                   17265:  break
                   17266: fi
                   17267: done
                   17268: 
1.1.1.3   misho    17269:     for ac_func in fseeko
                   17270: do :
                   17271:   ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
                   17272: if test "x$ac_cv_func_fseeko" = xyes; then :
                   17273:   cat >>confdefs.h <<_ACEOF
                   17274: #define HAVE_FSEEKO 1
                   17275: _ACEOF
                   17276: 
                   17277: fi
                   17278: done
                   17279: 
1.1       misho    17280: fi
                   17281: 
1.1.1.2   misho    17282: for ac_func in sysctl
1.1       misho    17283: do :
1.1.1.2   misho    17284:   ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
                   17285: if test "x$ac_cv_func_sysctl" = xyes; then :
1.1       misho    17286:   cat >>confdefs.h <<_ACEOF
1.1.1.2   misho    17287: #define HAVE_SYSCTL 1
1.1       misho    17288: _ACEOF
1.1.1.2   misho    17289:  ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_tdev" "ac_cv_member_struct_kinfo_proc_ki_tdev" "
1.1.1.6 ! misho    17290: #      include <sys/param.h>
        !          17291: #      include <sys/sysctl.h>
        !          17292: #      include <sys/user.h>
1.1.1.2   misho    17293: 
                   17294: "
                   17295: if test "x$ac_cv_member_struct_kinfo_proc_ki_tdev" = xyes; then :
                   17296: 
                   17297: cat >>confdefs.h <<_ACEOF
                   17298: #define HAVE_STRUCT_KINFO_PROC_KI_TDEV 1
1.1       misho    17299: _ACEOF
                   17300: 
                   17301: 
                   17302: else
                   17303: 
1.1.1.2   misho    17304:        ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_tdev" "ac_cv_member_struct_kinfo_proc2_p_tdev" "
1.1.1.6 ! misho    17305: #          include <sys/param.h>
        !          17306: #          include <sys/sysctl.h>
1.1       misho    17307: 
1.1.1.2   misho    17308: "
                   17309: if test "x$ac_cv_member_struct_kinfo_proc2_p_tdev" = xyes; then :
                   17310: 
                   17311: cat >>confdefs.h <<_ACEOF
                   17312: #define HAVE_STRUCT_KINFO_PROC2_P_TDEV 1
1.1       misho    17313: _ACEOF
1.1.1.2   misho    17314: 
                   17315: 
1.1       misho    17316: else
1.1.1.2   misho    17317: 
                   17318:            ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_tdev" "ac_cv_member_struct_kinfo_proc_p_tdev" "
1.1.1.6 ! misho    17319: #              include <sys/param.h>
        !          17320: #              include <sys/sysctl.h>
1.1.1.2   misho    17321: 
                   17322: "
                   17323: if test "x$ac_cv_member_struct_kinfo_proc_p_tdev" = xyes; then :
                   17324: 
                   17325: cat >>confdefs.h <<_ACEOF
                   17326: #define HAVE_STRUCT_KINFO_PROC_P_TDEV 1
                   17327: _ACEOF
                   17328: 
                   17329: 
                   17330: else
                   17331: 
                   17332:                ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_eproc.e_tdev" "ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" "
1.1.1.6 ! misho    17333: #                  include <sys/param.h>
        !          17334: #                  include <sys/sysctl.h>
1.1.1.2   misho    17335: 
                   17336: "
                   17337: if test "x$ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" = xyes; then :
                   17338: 
                   17339: cat >>confdefs.h <<_ACEOF
                   17340: #define HAVE_STRUCT_KINFO_PROC_KP_EPROC_E_TDEV 1
                   17341: _ACEOF
                   17342: 
                   17343: 
                   17344: fi
                   17345: 
                   17346: 
                   17347: fi
                   17348: 
                   17349: 
                   17350: fi
                   17351: 
                   17352: 
                   17353: fi
                   17354: 
                   17355: 
                   17356: fi
                   17357: done
                   17358: 
                   17359: 
                   17360: for ac_func in openpty
                   17361: do :
                   17362:   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
                   17363: if test "x$ac_cv_func_openpty" = xyes; then :
                   17364:   cat >>confdefs.h <<_ACEOF
                   17365: #define HAVE_OPENPTY 1
                   17366: _ACEOF
                   17367:  for ac_header in libutil.h util.h pty.h
                   17368: do :
                   17369:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   17370: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   17371: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   17372:   cat >>confdefs.h <<_ACEOF
                   17373: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   17374: _ACEOF
                   17375:  break
                   17376: fi
                   17377: 
                   17378: done
                   17379: 
                   17380: else
                   17381: 
                   17382:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
                   17383: $as_echo_n "checking for openpty in -lutil... " >&6; }
                   17384: if ${ac_cv_lib_util_openpty+:} false; then :
                   17385:   $as_echo_n "(cached) " >&6
                   17386: else
                   17387:   ac_check_lib_save_LIBS=$LIBS
                   17388: LIBS="-lutil  $LIBS"
                   17389: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17390: /* end confdefs.h.  */
                   17391: 
                   17392: /* Override any GCC internal prototype to avoid an error.
                   17393:    Use char because int might match the return type of a GCC
                   17394:    builtin and then its argument prototype would still apply.  */
                   17395: #ifdef __cplusplus
                   17396: extern "C"
                   17397: #endif
                   17398: char openpty ();
                   17399: int
                   17400: main ()
                   17401: {
                   17402: return openpty ();
                   17403:   ;
                   17404:   return 0;
                   17405: }
                   17406: _ACEOF
                   17407: if ac_fn_c_try_link "$LINENO"; then :
                   17408:   ac_cv_lib_util_openpty=yes
                   17409: else
                   17410:   ac_cv_lib_util_openpty=no
1.1       misho    17411: fi
                   17412: rm -f core conftest.err conftest.$ac_objext \
                   17413:     conftest$ac_exeext conftest.$ac_ext
                   17414: LIBS=$ac_check_lib_save_LIBS
                   17415: fi
                   17416: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
                   17417: $as_echo "$ac_cv_lib_util_openpty" >&6; }
                   17418: if test "x$ac_cv_lib_util_openpty" = xyes; then :
                   17419: 
                   17420:        for ac_header in libutil.h util.h pty.h
                   17421: do :
                   17422:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   17423: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   17424: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   17425:   cat >>confdefs.h <<_ACEOF
                   17426: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   17427: _ACEOF
                   17428:  break
                   17429: fi
                   17430: 
                   17431: done
                   17432: 
                   17433:        case "$SUDO_LIBS" in
                   17434:            *-lutil*) ;;
                   17435:            *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
                   17436:        esac
                   17437:        $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
                   17438: 
                   17439: 
                   17440: else
                   17441: 
                   17442:        for ac_func in _getpty
                   17443: do :
                   17444:   ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
                   17445: if test "x$ac_cv_func__getpty" = xyes; then :
                   17446:   cat >>confdefs.h <<_ACEOF
                   17447: #define HAVE__GETPTY 1
                   17448: _ACEOF
                   17449: 
                   17450: else
                   17451: 
                   17452:            for ac_func in grantpt
                   17453: do :
                   17454:   ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
                   17455: if test "x$ac_cv_func_grantpt" = xyes; then :
                   17456:   cat >>confdefs.h <<_ACEOF
                   17457: #define HAVE_GRANTPT 1
                   17458: _ACEOF
                   17459: 
                   17460:                for ac_func in posix_openpt
                   17461: do :
                   17462:   ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
                   17463: if test "x$ac_cv_func_posix_openpt" = xyes; then :
                   17464:   cat >>confdefs.h <<_ACEOF
                   17465: #define HAVE_POSIX_OPENPT 1
                   17466: _ACEOF
                   17467: 
                   17468: fi
                   17469: done
                   17470: 
                   17471: 
                   17472: else
                   17473: 
                   17474:                for ac_func in revoke
                   17475: do :
                   17476:   ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
                   17477: if test "x$ac_cv_func_revoke" = xyes; then :
                   17478:   cat >>confdefs.h <<_ACEOF
                   17479: #define HAVE_REVOKE 1
                   17480: _ACEOF
                   17481: 
                   17482: fi
                   17483: done
                   17484: 
                   17485: 
                   17486: fi
                   17487: done
                   17488: 
                   17489: 
                   17490: fi
                   17491: done
                   17492: 
                   17493: 
                   17494: fi
                   17495: 
                   17496: 
                   17497: fi
                   17498: done
                   17499: 
                   17500: for ac_func in unsetenv
                   17501: do :
                   17502:   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
                   17503: if test "x$ac_cv_func_unsetenv" = xyes; then :
                   17504:   cat >>confdefs.h <<_ACEOF
                   17505: #define HAVE_UNSETENV 1
                   17506: _ACEOF
                   17507:  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
                   17508: $as_echo_n "checking whether unsetenv returns void... " >&6; }
                   17509: if ${sudo_cv_func_unsetenv_void+:} false; then :
                   17510:   $as_echo_n "(cached) " >&6
                   17511: else
                   17512:   if test "$cross_compiling" = yes; then :
                   17513:   sudo_cv_func_unsetenv_void=no
                   17514: else
                   17515:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17516: /* end confdefs.h.  */
                   17517: $ac_includes_default
                   17518:         int unsetenv();
                   17519: 
                   17520: int
                   17521: main ()
                   17522: {
                   17523: 
                   17524:         return unsetenv("FOO") != 0;
                   17525: 
                   17526:   ;
                   17527:   return 0;
                   17528: }
                   17529: 
                   17530: _ACEOF
                   17531: if ac_fn_c_try_run "$LINENO"; then :
                   17532:   sudo_cv_func_unsetenv_void=no
                   17533: else
                   17534:   sudo_cv_func_unsetenv_void=yes
                   17535: fi
                   17536: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   17537:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   17538: fi
                   17539: 
                   17540: fi
                   17541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
                   17542: $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
                   17543:     if test $sudo_cv_func_unsetenv_void = yes; then
                   17544: 
                   17545: $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
                   17546: 
                   17547:     fi
                   17548: 
1.1.1.2   misho    17549: fi
                   17550: done
                   17551: 
                   17552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv takes a const argument" >&5
                   17553: $as_echo_n "checking whether putenv takes a const argument... " >&6; }
                   17554: if ${sudo_cv_func_putenv_const+:} false; then :
                   17555:   $as_echo_n "(cached) " >&6
1.1       misho    17556: else
1.1.1.2   misho    17557:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17558: /* end confdefs.h.  */
                   17559: $ac_includes_default
                   17560: int putenv(const char *string) {return 0;}
                   17561: int
                   17562: main ()
                   17563: {
1.1       misho    17564: 
1.1.1.2   misho    17565:   ;
                   17566:   return 0;
                   17567: }
                   17568: _ACEOF
                   17569: if ac_fn_c_try_compile "$LINENO"; then :
                   17570:   sudo_cv_func_putenv_const=yes
                   17571: else
                   17572:   sudo_cv_func_putenv_const=no
1.1       misho    17573: fi
1.1.1.2   misho    17574: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17575: 
                   17576: fi
                   17577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
                   17578: $as_echo "$sudo_cv_func_putenv_const" >&6; }
                   17579:   if test $sudo_cv_func_putenv_const = yes; then
                   17580: 
                   17581: $as_echo "#define PUTENV_CONST const" >>confdefs.h
                   17582: 
                   17583:   else
                   17584:     $as_echo "#define PUTENV_CONST /**/" >>confdefs.h
                   17585: 
                   17586:   fi
1.1       misho    17587: 
                   17588: if test -z "$SKIP_SETRESUID"; then
                   17589:     for ac_func in setresuid
                   17590: do :
                   17591:   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
                   17592: if test "x$ac_cv_func_setresuid" = xyes; then :
                   17593:   cat >>confdefs.h <<_ACEOF
                   17594: #define HAVE_SETRESUID 1
                   17595: _ACEOF
                   17596: 
                   17597:        SKIP_SETREUID=yes
                   17598:        for ac_func in getresuid
                   17599: do :
                   17600:   ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
                   17601: if test "x$ac_cv_func_getresuid" = xyes; then :
                   17602:   cat >>confdefs.h <<_ACEOF
                   17603: #define HAVE_GETRESUID 1
                   17604: _ACEOF
                   17605: 
                   17606: fi
                   17607: done
                   17608: 
                   17609: 
                   17610: fi
                   17611: done
                   17612: 
                   17613: fi
                   17614: if test -z "$SKIP_SETREUID"; then
                   17615:     for ac_func in setreuid
                   17616: do :
                   17617:   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
                   17618: if test "x$ac_cv_func_setreuid" = xyes; then :
                   17619:   cat >>confdefs.h <<_ACEOF
                   17620: #define HAVE_SETREUID 1
                   17621: _ACEOF
1.1.1.4   misho    17622: 
1.1       misho    17623: fi
                   17624: done
                   17625: 
                   17626: fi
1.1.1.4   misho    17627: for ac_func in seteuid
1.1       misho    17628: do :
                   17629:   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
                   17630: if test "x$ac_cv_func_seteuid" = xyes; then :
                   17631:   cat >>confdefs.h <<_ACEOF
                   17632: #define HAVE_SETEUID 1
                   17633: _ACEOF
                   17634: 
                   17635: fi
                   17636: done
                   17637: 
                   17638: if test X"$with_interfaces" != X"no"; then
                   17639:     for ac_func in getifaddrs
                   17640: do :
                   17641:   ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
                   17642: if test "x$ac_cv_func_getifaddrs" = xyes; then :
                   17643:   cat >>confdefs.h <<_ACEOF
                   17644: #define HAVE_GETIFADDRS 1
                   17645: _ACEOF
                   17646:  for ac_func in freeifaddrs
                   17647: do :
                   17648:   ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
                   17649: if test "x$ac_cv_func_freeifaddrs" = xyes; then :
                   17650:   cat >>confdefs.h <<_ACEOF
                   17651: #define HAVE_FREEIFADDRS 1
                   17652: _ACEOF
                   17653: 
                   17654: fi
                   17655: done
                   17656: 
                   17657: fi
                   17658: done
                   17659: 
                   17660: fi
                   17661: if test -z "$BROKEN_GETCWD"; then
                   17662:     ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
                   17663: if test "x$ac_cv_func_getcwd" = xyes; then :
                   17664:   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
                   17665: 
                   17666: else
                   17667:   case " $LIBOBJS " in
                   17668:   *" getcwd.$ac_objext "* ) ;;
                   17669:   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
                   17670:  ;;
                   17671: esac
                   17672: 
                   17673: fi
                   17674: 
                   17675: 
                   17676: fi
                   17677: for ac_func in lockf flock
                   17678: do :
                   17679:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17680: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   17681: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   17682:   cat >>confdefs.h <<_ACEOF
                   17683: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17684: _ACEOF
                   17685:  break
                   17686: fi
                   17687: done
                   17688: 
                   17689: for ac_func in innetgr _innetgr
                   17690: do :
                   17691:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17692: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   17693: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   17694:   cat >>confdefs.h <<_ACEOF
                   17695: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17696: _ACEOF
                   17697:  for ac_func in getdomainname
                   17698: do :
                   17699:   ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
                   17700: if test "x$ac_cv_func_getdomainname" = xyes; then :
                   17701:   cat >>confdefs.h <<_ACEOF
                   17702: #define HAVE_GETDOMAINNAME 1
                   17703: _ACEOF
                   17704: 
                   17705: fi
                   17706: done
                   17707:  break
                   17708: fi
                   17709: done
                   17710: 
                   17711: for ac_func in utimes
                   17712: do :
                   17713:   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
                   17714: if test "x$ac_cv_func_utimes" = xyes; then :
                   17715:   cat >>confdefs.h <<_ACEOF
                   17716: #define HAVE_UTIMES 1
                   17717: _ACEOF
                   17718:  for ac_func in futimes futimesat
                   17719: do :
                   17720:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17721: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   17722: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   17723:   cat >>confdefs.h <<_ACEOF
                   17724: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17725: _ACEOF
                   17726:  break
                   17727: fi
                   17728: done
                   17729: 
                   17730: else
                   17731:   for ac_func in futime
                   17732: do :
                   17733:   ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
                   17734: if test "x$ac_cv_func_futime" = xyes; then :
                   17735:   cat >>confdefs.h <<_ACEOF
                   17736: #define HAVE_FUTIME 1
                   17737: _ACEOF
                   17738: 
                   17739: fi
                   17740: done
                   17741:  case " $LIBOBJS " in
                   17742:   *" utimes.$ac_objext "* ) ;;
                   17743:   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
                   17744:  ;;
                   17745: esac
                   17746: 
                   17747: fi
                   17748: done
                   17749: 
                   17750: for ac_func in killpg
                   17751: do :
                   17752:   ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
                   17753: if test "x$ac_cv_func_killpg" = xyes; then :
                   17754:   cat >>confdefs.h <<_ACEOF
                   17755: #define HAVE_KILLPG 1
                   17756: _ACEOF
                   17757: 
                   17758: else
                   17759:   case " $LIBOBJS " in
                   17760:   *" killpg.$ac_objext "* ) ;;
                   17761:   *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
                   17762:  ;;
                   17763: esac
                   17764: 
                   17765: fi
                   17766: done
                   17767: 
                   17768: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
                   17769: $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
                   17770: if ${sudo_cv_func_fnmatch+:} false; then :
                   17771:   $as_echo_n "(cached) " >&6
                   17772: else
                   17773:   rm -f conftestdata; > conftestdata
                   17774: if test "$cross_compiling" = yes; then :
                   17775:   sudo_cv_func_fnmatch=no
                   17776: else
                   17777:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17778: /* end confdefs.h.  */
                   17779: #include <fnmatch.h>
                   17780: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
                   17781: _ACEOF
                   17782: if ac_fn_c_try_run "$LINENO"; then :
                   17783:   sudo_cv_func_fnmatch=yes
                   17784: else
                   17785:   sudo_cv_func_fnmatch=no
                   17786: fi
                   17787: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   17788:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   17789: fi
                   17790: 
                   17791: rm -f core core.* *.core
                   17792: fi
                   17793: 
                   17794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
                   17795: $as_echo "$sudo_cv_func_fnmatch" >&6; }
                   17796: if test $sudo_cv_func_fnmatch = yes; then :
                   17797:   $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
                   17798: 
                   17799: else
                   17800:   case " $LIBOBJS " in
                   17801:   *" fnmatch.$ac_objext "* ) ;;
                   17802:   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
                   17803:  ;;
                   17804: esac
                   17805: 
1.1.1.2   misho    17806:     COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }fnm_test"
                   17807: 
1.1       misho    17808: fi
                   17809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
                   17810: $as_echo_n "checking for isblank... " >&6; }
                   17811: if ${sudo_cv_func_isblank+:} false; then :
                   17812:   $as_echo_n "(cached) " >&6
                   17813: else
                   17814:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17815: /* end confdefs.h.  */
                   17816: #include <ctype.h>
                   17817: int
                   17818: main ()
                   17819: {
                   17820: return (isblank('a'));
                   17821:   ;
                   17822:   return 0;
                   17823: }
                   17824: _ACEOF
                   17825: if ac_fn_c_try_link "$LINENO"; then :
                   17826:   sudo_cv_func_isblank=yes
                   17827: else
                   17828:   sudo_cv_func_isblank=no
                   17829: fi
                   17830: rm -f core conftest.err conftest.$ac_objext \
                   17831:     conftest$ac_exeext conftest.$ac_ext
                   17832: fi
                   17833: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
                   17834: $as_echo "$sudo_cv_func_isblank" >&6; }
                   17835: 
                   17836:   if test "$sudo_cv_func_isblank" = "yes"; then
                   17837: 
                   17838: $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
                   17839: 
                   17840:   else
                   17841:     case " $LIBOBJS " in
                   17842:   *" isblank.$ac_objext "* ) ;;
                   17843:   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
                   17844:  ;;
                   17845: esac
                   17846: 
                   17847:   fi
                   17848: 
                   17849: ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
                   17850: if test "x$ac_cv_func_memrchr" = xyes; then :
                   17851:   $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
                   17852: 
                   17853: else
                   17854:   case " $LIBOBJS " in
                   17855:   *" memrchr.$ac_objext "* ) ;;
                   17856:   *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
                   17857:  ;;
                   17858: esac
                   17859: 
                   17860: fi
                   17861: 
1.1.1.5   misho    17862: ac_fn_c_check_func "$LINENO" "memset_s" "ac_cv_func_memset_s"
                   17863: if test "x$ac_cv_func_memset_s" = xyes; then :
                   17864:   $as_echo "#define HAVE_MEMSET_S 1" >>confdefs.h
                   17865: 
                   17866: else
                   17867:   case " $LIBOBJS " in
                   17868:   *" memset_s.$ac_objext "* ) ;;
                   17869:   *) LIBOBJS="$LIBOBJS memset_s.$ac_objext"
                   17870:  ;;
                   17871: esac
                   17872: 
                   17873: fi
                   17874: 
1.1.1.2   misho    17875: ac_fn_c_check_func "$LINENO" "pw_dup" "ac_cv_func_pw_dup"
                   17876: if test "x$ac_cv_func_pw_dup" = xyes; then :
                   17877:   $as_echo "#define HAVE_PW_DUP 1" >>confdefs.h
                   17878: 
                   17879: else
                   17880:   case " $LIBOBJS " in
                   17881:   *" pw_dup.$ac_objext "* ) ;;
                   17882:   *) LIBOBJS="$LIBOBJS pw_dup.$ac_objext"
                   17883:  ;;
                   17884: esac
                   17885: 
                   17886: fi
                   17887: 
1.1       misho    17888: ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
                   17889: if test "x$ac_cv_func_strlcpy" = xyes; then :
                   17890:   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
                   17891: 
                   17892: else
                   17893:   case " $LIBOBJS " in
                   17894:   *" strlcpy.$ac_objext "* ) ;;
                   17895:   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
                   17896:  ;;
                   17897: esac
                   17898: 
                   17899: fi
                   17900: 
                   17901: ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
                   17902: if test "x$ac_cv_func_strlcat" = xyes; then :
                   17903:   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
                   17904: 
                   17905: else
                   17906:   case " $LIBOBJS " in
                   17907:   *" strlcat.$ac_objext "* ) ;;
                   17908:   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
                   17909:  ;;
                   17910: esac
                   17911: 
                   17912: fi
                   17913: 
1.1.1.6 ! misho    17914: ac_fn_c_check_func "$LINENO" "strtonum" "ac_cv_func_strtonum"
        !          17915: if test "x$ac_cv_func_strtonum" = xyes; then :
        !          17916:   $as_echo "#define HAVE_STRTONUM 1" >>confdefs.h
1.1       misho    17917: 
                   17918: else
1.1.1.6 ! misho    17919:   case " $LIBOBJS " in
        !          17920:   *" strtonum.$ac_objext "* ) ;;
        !          17921:   *) LIBOBJS="$LIBOBJS strtonum.$ac_objext"
        !          17922:  ;;
        !          17923: esac
        !          17924: 
        !          17925: fi
        !          17926: 
        !          17927: 
        !          17928: for ac_func in clock_gettime
        !          17929: do :
        !          17930:   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
        !          17931: if test "x$ac_cv_func_clock_gettime" = xyes; then :
        !          17932:   cat >>confdefs.h <<_ACEOF
        !          17933: #define HAVE_CLOCK_GETTIME 1
        !          17934: _ACEOF
        !          17935: 
        !          17936: else
        !          17937: 
        !          17938:     # On Solaris, clock_gettime is in librt
        !          17939:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
        !          17940: $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
        !          17941: if ${ac_cv_lib_rt_clock_gettime+:} false; then :
        !          17942:   $as_echo_n "(cached) " >&6
1.1       misho    17943: else
                   17944:   ac_check_lib_save_LIBS=$LIBS
                   17945: LIBS="-lrt  $LIBS"
                   17946: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17947: /* end confdefs.h.  */
                   17948: 
                   17949: /* Override any GCC internal prototype to avoid an error.
                   17950:    Use char because int might match the return type of a GCC
                   17951:    builtin and then its argument prototype would still apply.  */
                   17952: #ifdef __cplusplus
                   17953: extern "C"
                   17954: #endif
1.1.1.6 ! misho    17955: char clock_gettime ();
1.1       misho    17956: int
                   17957: main ()
                   17958: {
1.1.1.6 ! misho    17959: return clock_gettime ();
1.1       misho    17960:   ;
                   17961:   return 0;
                   17962: }
                   17963: _ACEOF
                   17964: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.6 ! misho    17965:   ac_cv_lib_rt_clock_gettime=yes
1.1       misho    17966: else
1.1.1.6 ! misho    17967:   ac_cv_lib_rt_clock_gettime=no
1.1       misho    17968: fi
                   17969: rm -f core conftest.err conftest.$ac_objext \
                   17970:     conftest$ac_exeext conftest.$ac_ext
                   17971: LIBS=$ac_check_lib_save_LIBS
                   17972: fi
1.1.1.6 ! misho    17973: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
        !          17974: $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
        !          17975: if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
        !          17976: 
        !          17977:        $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
        !          17978: 
        !          17979:        SUDOERS_LIBS="${SUDOERS_LIBS} -lrt"
        !          17980: 
1.1       misho    17981: else
                   17982:   case " $LIBOBJS " in
1.1.1.6 ! misho    17983:   *" clock_gettime.$ac_objext "* ) ;;
        !          17984:   *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext"
1.1       misho    17985:  ;;
                   17986: esac
                   17987: 
                   17988: fi
                   17989: 
                   17990: 
                   17991: fi
                   17992: done
                   17993: 
1.1.1.5   misho    17994: for ac_func in getopt_long
                   17995: do :
                   17996:   ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
                   17997: if test "x$ac_cv_func_getopt_long" = xyes; then :
                   17998:   cat >>confdefs.h <<_ACEOF
                   17999: #define HAVE_GETOPT_LONG 1
                   18000: _ACEOF
                   18001: 
                   18002: else
                   18003:   case " $LIBOBJS " in
                   18004:   *" getopt_long.$ac_objext "* ) ;;
                   18005:   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
                   18006:  ;;
                   18007: esac
                   18008: 
                   18009:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
                   18010: $as_echo_n "checking for optreset... " >&6; }
                   18011:     if ${sudo_cv_optreset+:} false; then :
                   18012:   $as_echo_n "(cached) " >&6
                   18013: else
                   18014: 
                   18015:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18016: /* end confdefs.h.  */
                   18017: 
                   18018: int
                   18019: main ()
                   18020: {
                   18021: extern int optreset; optreset = 1; return optreset;
                   18022:   ;
                   18023:   return 0;
                   18024: }
                   18025: _ACEOF
                   18026: if ac_fn_c_try_link "$LINENO"; then :
                   18027:   sudo_cv_optreset=yes
                   18028: else
                   18029:   sudo_cv_optreset=no
                   18030: fi
                   18031: rm -f core conftest.err conftest.$ac_objext \
                   18032:     conftest$ac_exeext conftest.$ac_ext
                   18033: fi
                   18034: 
                   18035:     if test "$sudo_cv_optreset" = "yes"; then
                   18036:        $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
                   18037: 
                   18038:     fi
                   18039:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_optreset" >&5
                   18040: $as_echo "$sudo_cv_optreset" >&6; }
                   18041: 
                   18042: fi
                   18043: done
                   18044: 
1.1       misho    18045: for ac_func in closefrom
                   18046: do :
                   18047:   ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
                   18048: if test "x$ac_cv_func_closefrom" = xyes; then :
                   18049:   cat >>confdefs.h <<_ACEOF
                   18050: #define HAVE_CLOSEFROM 1
                   18051: _ACEOF
                   18052: 
                   18053: else
                   18054:   case " $LIBOBJS " in
                   18055:   *" closefrom.$ac_objext "* ) ;;
                   18056:   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
                   18057:  ;;
                   18058: esac
                   18059: 
1.1.1.6 ! misho    18060:     ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "
        !          18061: #      include <limits.h>
        !          18062: #      include <fcntl.h>
1.1       misho    18063: "
                   18064: if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
                   18065:   $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
                   18066: 
                   18067: fi
                   18068: 
                   18069: 
                   18070: fi
                   18071: done
                   18072: 
                   18073: for ac_func in mkstemps mkdtemp
                   18074: do :
                   18075:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18076: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18077: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18078:   cat >>confdefs.h <<_ACEOF
                   18079: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18080: _ACEOF
                   18081: 
                   18082: else
                   18083: 
                   18084:     for ac_func in random lrand48
                   18085: do :
                   18086:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18087: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18088: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18089:   cat >>confdefs.h <<_ACEOF
                   18090: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18091: _ACEOF
                   18092:  break
                   18093: fi
                   18094: done
                   18095: 
                   18096:     case " $LIBOBJS " in
                   18097:   *" mktemp.$ac_objext "* ) ;;
                   18098:   *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
                   18099:  ;;
                   18100: esac
                   18101: 
                   18102: 
                   18103: fi
                   18104: done
                   18105: 
1.1.1.6 ! misho    18106: for ac_func in snprintf vsnprintf
1.1       misho    18107: do :
                   18108:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18109: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18110: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18111:   cat >>confdefs.h <<_ACEOF
                   18112: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18113: _ACEOF
                   18114: 
1.1.1.6 ! misho    18115: fi
        !          18116: done
        !          18117: 
        !          18118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
        !          18119: $as_echo_n "checking for working snprintf... " >&6; }
        !          18120: if ${ac_cv_have_working_snprintf+:} false; then :
        !          18121:   $as_echo_n "(cached) " >&6
        !          18122: else
        !          18123:   if test "$cross_compiling" = yes; then :
        !          18124:   ac_cv_have_working_snprintf=cross
1.1       misho    18125: else
1.1.1.6 ! misho    18126:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          18127: /* end confdefs.h.  */
        !          18128: #include <stdio.h>
        !          18129: 
        !          18130: int main(void)
        !          18131: {
        !          18132:     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
        !          18133:     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
        !          18134:     int i;
        !          18135:     i = snprintf (bufs, 2, "%s", "111");
        !          18136:     if (strcmp (bufs, "1")) exit (1);
        !          18137:     if (i != 3) exit (1);
        !          18138:     i = snprintf (bufd, 2, "%d", 111);
        !          18139:     if (strcmp (bufd, "1")) exit (1);
        !          18140:     if (i != 3) exit (1);
        !          18141:     exit(0);
        !          18142: }
        !          18143: _ACEOF
        !          18144: if ac_fn_c_try_run "$LINENO"; then :
        !          18145:   ac_cv_have_working_snprintf=yes
        !          18146: else
        !          18147:   ac_cv_have_working_snprintf=no
        !          18148: fi
        !          18149: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
        !          18150:   conftest.$ac_objext conftest.beam conftest.$ac_ext
        !          18151: fi
        !          18152: 
        !          18153: fi
        !          18154: 
        !          18155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_working_snprintf" >&5
        !          18156: $as_echo "$ac_cv_have_working_snprintf" >&6; }
        !          18157: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5
        !          18158: $as_echo_n "checking for working vsnprintf... " >&6; }
        !          18159: if ${ac_cv_have_working_vsnprintf+:} false; then :
        !          18160:   $as_echo_n "(cached) " >&6
        !          18161: else
        !          18162:   if test "$cross_compiling" = yes; then :
        !          18163:   ac_cv_have_working_vsnprintf=cross
        !          18164: else
        !          18165:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          18166: /* end confdefs.h.  */
        !          18167: #include <stdio.h>
        !          18168: #include <stdarg.h>
        !          18169: 
        !          18170: int my_vsnprintf (char *buf, const char *tmpl, ...)
        !          18171: {
        !          18172:     int i;
        !          18173:     va_list args;
        !          18174:     va_start (args, tmpl);
        !          18175:     i = vsnprintf (buf, 2, tmpl, args);
        !          18176:     va_end (args);
        !          18177:     return i;
        !          18178: }
        !          18179: 
        !          18180: int main(void)
        !          18181: {
        !          18182:     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
        !          18183:     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
        !          18184:     int i;
        !          18185:     i = my_vsnprintf (bufs, "%s", "111");
        !          18186:     if (strcmp (bufs, "1")) exit (1);
        !          18187:     if (i != 3) exit (1);
        !          18188:     i = my_vsnprintf (bufd, "%d", 111);
        !          18189:     if (strcmp (bufd, "1")) exit (1);
        !          18190:     if (i != 3) exit (1);
        !          18191:     exit(0);
        !          18192: }
        !          18193: _ACEOF
        !          18194: if ac_fn_c_try_run "$LINENO"; then :
        !          18195:   ac_cv_have_working_vsnprintf=yes
        !          18196: else
        !          18197:   ac_cv_have_working_vsnprintf=no
        !          18198: fi
        !          18199: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
        !          18200:   conftest.$ac_objext conftest.beam conftest.$ac_ext
        !          18201: fi
        !          18202: 
        !          18203: fi
        !          18204: 
        !          18205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_working_vsnprintf" >&5
        !          18206: $as_echo "$ac_cv_have_working_vsnprintf" >&6; }
        !          18207: if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
        !          18208:   case " $LIBOBJS " in
        !          18209:   *" snprintf.$ac_objext "* ) ;;
        !          18210:   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
        !          18211:  ;;
        !          18212: esac
        !          18213: 
        !          18214:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing missing/broken (v)snprintf() with sudo's version." >&5
        !          18215: $as_echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with sudo's version." >&2;}
        !          18216: 
        !          18217: $as_echo "#define PREFER_PORTABLE_SNPRINTF 1" >>confdefs.h
        !          18218: 
        !          18219: fi
        !          18220: for ac_func in asprintf vasprintf
        !          18221: do :
        !          18222:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
        !          18223: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
        !          18224: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
        !          18225:   cat >>confdefs.h <<_ACEOF
        !          18226: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
        !          18227: _ACEOF
        !          18228: 
1.1       misho    18229: fi
                   18230: done
                   18231: 
1.1.1.6 ! misho    18232: if test X"$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf" = X"yesyes"; then
        !          18233:     # Don't add snprintf to LIBOBJS if it is already present.
        !          18234:     if test X"$ac_cv_func_asprintf$ac_cv_func_vasprintf" != X"yesyes"; then
        !          18235:        case " $LIBOBJS " in
        !          18236:   *" snprintf.$ac_objext "* ) ;;
        !          18237:   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
        !          18238:  ;;
        !          18239: esac
        !          18240: 
        !          18241:     fi
        !          18242: fi
        !          18243: # We wrap OpenBSD's strtonum() to get translatable error strings.
        !          18244: for ac_func in strtonum
        !          18245: do :
        !          18246:   ac_fn_c_check_func "$LINENO" "strtonum" "ac_cv_func_strtonum"
        !          18247: if test "x$ac_cv_func_strtonum" = xyes; then :
        !          18248:   cat >>confdefs.h <<_ACEOF
        !          18249: #define HAVE_STRTONUM 1
        !          18250: _ACEOF
        !          18251: 
        !          18252: fi
        !          18253: done
        !          18254: 
        !          18255: case " $LIBOBJS " in
        !          18256:   *" strtonum.$ac_objext "* ) ;;
        !          18257:   *) LIBOBJS="$LIBOBJS strtonum.$ac_objext"
        !          18258:  ;;
        !          18259: esac
        !          18260: 
1.1       misho    18261: if test X"$ac_cv_type_struct_timespec" != X"no"; then
                   18262:     ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
                   18263: if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
                   18264:   $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
                   18265: 
                   18266:        ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
                   18267: if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
                   18268:   $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
                   18269: 
                   18270: fi
                   18271: 
                   18272: else
                   18273:   ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
                   18274: if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
                   18275:   $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
                   18276: 
                   18277: fi
                   18278: 
                   18279: fi
                   18280: 
                   18281: fi
1.1.1.5   misho    18282: if test X"$with_noexec" != X"no"; then
                   18283:     # Check for underscore versions of standard exec functions
                   18284:     # unless we are using dyld symbole interposition
                   18285:     if test X"$dlyld_interpose" != X"yes"; then
                   18286:        for ac_func in _execl __execl
                   18287: do :
                   18288:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18289: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18290: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18291:   cat >>confdefs.h <<_ACEOF
                   18292: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18293: _ACEOF
                   18294: 
                   18295: fi
                   18296: done
                   18297: 
                   18298:        for ac_func in _execle __execle
                   18299: do :
                   18300:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18301: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18302: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18303:   cat >>confdefs.h <<_ACEOF
                   18304: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18305: _ACEOF
                   18306: 
                   18307: fi
                   18308: done
                   18309: 
                   18310:        for ac_func in _execlp __execlp
                   18311: do :
                   18312:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18313: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18314: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18315:   cat >>confdefs.h <<_ACEOF
                   18316: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18317: _ACEOF
                   18318: 
                   18319: fi
                   18320: done
                   18321: 
                   18322:        for ac_func in _execv __execv
                   18323: do :
                   18324:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18325: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18326: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18327:   cat >>confdefs.h <<_ACEOF
                   18328: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18329: _ACEOF
                   18330: 
                   18331: fi
                   18332: done
                   18333: 
                   18334:        for ac_func in _execve __execve
                   18335: do :
                   18336:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18337: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18338: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18339:   cat >>confdefs.h <<_ACEOF
                   18340: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18341: _ACEOF
                   18342: 
                   18343: fi
                   18344: done
                   18345: 
                   18346:        for ac_func in _execvp __execvp
                   18347: do :
                   18348:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18349: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18350: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18351:   cat >>confdefs.h <<_ACEOF
                   18352: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18353: _ACEOF
                   18354: 
                   18355: fi
                   18356: done
                   18357: 
                   18358:     fi
                   18359:     # Check for non-standard exec functions including underscore versions
                   18360:     for ac_func in exect
                   18361: do :
                   18362:   ac_fn_c_check_func "$LINENO" "exect" "ac_cv_func_exect"
                   18363: if test "x$ac_cv_func_exect" = xyes; then :
                   18364:   cat >>confdefs.h <<_ACEOF
                   18365: #define HAVE_EXECT 1
                   18366: _ACEOF
                   18367: 
                   18368:        if test X"$dlyld_interpose" != X"yes"; then
                   18369:            for ac_func in _exect __exect
                   18370: do :
                   18371:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18372: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18373: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18374:   cat >>confdefs.h <<_ACEOF
                   18375: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18376: _ACEOF
                   18377: 
                   18378: fi
                   18379: done
                   18380: 
                   18381:        fi
                   18382: 
                   18383: fi
                   18384: done
                   18385: 
                   18386:     for ac_func in execvP
                   18387: do :
                   18388:   ac_fn_c_check_func "$LINENO" "execvP" "ac_cv_func_execvP"
                   18389: if test "x$ac_cv_func_execvP" = xyes; then :
                   18390:   cat >>confdefs.h <<_ACEOF
                   18391: #define HAVE_EXECVP 1
                   18392: _ACEOF
                   18393: 
                   18394:        if test X"$dlyld_interpose" != X"yes"; then
                   18395:            for ac_func in _execvP __execvP
                   18396: do :
                   18397:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18398: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18399: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18400:   cat >>confdefs.h <<_ACEOF
                   18401: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18402: _ACEOF
                   18403: 
                   18404: fi
                   18405: done
                   18406: 
                   18407:        fi
                   18408: 
                   18409: fi
                   18410: done
                   18411: 
                   18412:     for ac_func in execvpe
                   18413: do :
                   18414:   ac_fn_c_check_func "$LINENO" "execvpe" "ac_cv_func_execvpe"
                   18415: if test "x$ac_cv_func_execvpe" = xyes; then :
                   18416:   cat >>confdefs.h <<_ACEOF
                   18417: #define HAVE_EXECVPE 1
                   18418: _ACEOF
                   18419: 
                   18420:        if test X"$dlyld_interpose" != X"yes"; then
                   18421:            for ac_func in _execvpe __execvpe
                   18422: do :
                   18423:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18424: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18425: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18426:   cat >>confdefs.h <<_ACEOF
                   18427: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18428: _ACEOF
                   18429: 
                   18430: fi
                   18431: done
                   18432: 
                   18433:        fi
                   18434: 
                   18435: fi
                   18436: done
                   18437: 
                   18438:     for ac_func in fexecve
                   18439: do :
                   18440:   ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve"
                   18441: if test "x$ac_cv_func_fexecve" = xyes; then :
                   18442:   cat >>confdefs.h <<_ACEOF
                   18443: #define HAVE_FEXECVE 1
                   18444: _ACEOF
                   18445: 
                   18446:        if test X"$dlyld_interpose" != X"yes"; then
                   18447:            for ac_func in _fexecve __fexecve
                   18448: do :
                   18449:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18450: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18451: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18452:   cat >>confdefs.h <<_ACEOF
                   18453: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18454: _ACEOF
                   18455: 
                   18456: fi
                   18457: done
                   18458: 
                   18459:        fi
                   18460: 
                   18461: fi
                   18462: done
                   18463: 
                   18464:     # Check for posix_spawn, posix_spawnp and any underscore versions
                   18465:     for ac_func in posix_spawn
                   18466: do :
                   18467:   ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
                   18468: if test "x$ac_cv_func_posix_spawn" = xyes; then :
                   18469:   cat >>confdefs.h <<_ACEOF
                   18470: #define HAVE_POSIX_SPAWN 1
                   18471: _ACEOF
                   18472: 
                   18473:        if test X"$dlyld_interpose" != X"yes"; then
                   18474:            for ac_func in _posix_spawn __posix_spawn
                   18475: do :
                   18476:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18477: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18478: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18479:   cat >>confdefs.h <<_ACEOF
                   18480: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18481: _ACEOF
                   18482: 
                   18483: fi
                   18484: done
                   18485: 
                   18486:        fi
                   18487: 
                   18488: fi
                   18489: done
                   18490: 
                   18491:     for ac_func in posix_spawnp
                   18492: do :
                   18493:   ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
                   18494: if test "x$ac_cv_func_posix_spawnp" = xyes; then :
                   18495:   cat >>confdefs.h <<_ACEOF
                   18496: #define HAVE_POSIX_SPAWNP 1
                   18497: _ACEOF
                   18498: 
                   18499:        if test X"$dlyld_interpose" != X"yes"; then
                   18500:            for ac_func in _posix_spawnp __posix_spawnp
                   18501: do :
                   18502:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18503: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18504: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18505:   cat >>confdefs.h <<_ACEOF
                   18506: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18507: _ACEOF
                   18508: 
                   18509: fi
                   18510: done
                   18511: 
                   18512:        fi
                   18513: 
                   18514: fi
                   18515: done
                   18516: 
                   18517: fi
                   18518: 
1.1       misho    18519: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18520: /* end confdefs.h.  */
                   18521: #include <sys/types.h>
                   18522: #include <$ac_header_dirent>
                   18523: int
                   18524: main ()
                   18525: {
                   18526: DIR *d; (void)dirfd(d);
                   18527:   ;
                   18528:   return 0;
                   18529: }
                   18530: _ACEOF
                   18531: if ac_fn_c_try_link "$LINENO"; then :
                   18532:   $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
                   18533: 
                   18534: else
                   18535:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18536: /* end confdefs.h.  */
                   18537: #include <sys/types.h>
                   18538: #include <$ac_header_dirent>
                   18539: int
                   18540: main ()
                   18541: {
                   18542: DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
                   18543:   ;
                   18544:   return 0;
                   18545: }
                   18546: _ACEOF
                   18547: if ac_fn_c_try_link "$LINENO"; then :
                   18548:   $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
                   18549: 
                   18550: fi
                   18551: rm -f core conftest.err conftest.$ac_objext \
                   18552:     conftest$ac_exeext conftest.$ac_ext
                   18553: fi
                   18554: rm -f core conftest.err conftest.$ac_objext \
                   18555:     conftest$ac_exeext conftest.$ac_ext
1.1.1.2   misho    18556: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
                   18557: $ac_includes_default
                   18558: #include <$ac_header_dirent>
                   18559: 
                   18560: "
                   18561: if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
                   18562: 
                   18563: cat >>confdefs.h <<_ACEOF
                   18564: #define HAVE_STRUCT_DIRENT_D_TYPE 1
                   18565: _ACEOF
                   18566: 
                   18567: 
                   18568: fi
                   18569: 
1.1       misho    18570: ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
                   18571: if test "x$ac_cv_func_socket" = xyes; then :
                   18572: 
                   18573: else
1.1.1.2   misho    18574: 
                   18575:     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
                   18576:        _libs=
                   18577:        for lib in $libs; do
                   18578:            case "$NET_LIBS" in
                   18579:                *"$lib"*)   ;;
                   18580:                *)          _libs="$_libs $lib";;
                   18581:            esac
                   18582:        done
                   18583:        libs="${_libs# }"
                   18584:        test -z "$libs" && continue
                   18585:        lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
                   18586:        extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
                   18587: 
                   18588:     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/       *//g' -e 's/-l/_/g'`
                   18589:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5
                   18590: $as_echo_n "checking for socket in -l$lib${5+ }$extralibs... " >&6; }
                   18591:     if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
1.1       misho    18592:   $as_echo_n "(cached) " >&6
                   18593: else
1.1.1.2   misho    18594: 
                   18595:        SUDO_CHECK_LIB_OLIBS="$LIBS"
                   18596:        LIBS="$LIBS -l$lib${5+ }$extralibs"
                   18597:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       misho    18598: /* end confdefs.h.  */
                   18599: 
                   18600: /* Override any GCC internal prototype to avoid an error.
                   18601:    Use char because int might match the return type of a GCC
                   18602:    builtin and then its argument prototype would still apply.  */
                   18603: #ifdef __cplusplus
                   18604: extern "C"
                   18605: #endif
                   18606: char socket ();
                   18607: int
                   18608: main ()
                   18609: {
                   18610: return socket ();
                   18611:   ;
                   18612:   return 0;
                   18613: }
                   18614: _ACEOF
                   18615: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2   misho    18616:   eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes
1.1       misho    18617: else
1.1.1.2   misho    18618:   eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no
                   18619: 
1.1       misho    18620: fi
                   18621: rm -f core conftest.err conftest.$ac_objext \
                   18622:     conftest$ac_exeext conftest.$ac_ext
1.1.1.2   misho    18623:        LIBS="$SUDO_CHECK_LIB_OLIBS"
                   18624: 
                   18625: fi
                   18626: 
                   18627:     if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then
                   18628:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   18629: $as_echo "yes" >&6; }
                   18630:        NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
                   18631:     else
                   18632:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   18633: $as_echo "no" >&6; }
                   18634: 
                   18635:     fi
                   18636: 
                   18637:     done
                   18638: 
1.1       misho    18639: fi
1.1.1.2   misho    18640: 
1.1.1.6 ! misho    18641: ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
        !          18642: if test "x$ac_cv_func_inet_pton" = xyes; then :
1.1.1.2   misho    18643: 
                   18644: else
                   18645: 
1.1.1.6 ! misho    18646:     for libs in "-lsocket" "-linet" "-lsocket -lnsl" "-lresolv"; do
        !          18647:        _libs=
        !          18648:        for lib in $libs; do
        !          18649:            case "$NET_LIBS" in
        !          18650:                *"$lib"*)   ;;
        !          18651:                *)              _libs="$_libs $lib";;
        !          18652:            esac
        !          18653:        done
        !          18654:        libs="${_libs# }"
        !          18655:        test -z "$libs" && continue
        !          18656:        lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
        !          18657:        extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
1.1.1.2   misho    18658: 
                   18659:     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/       *//g' -e 's/-l/_/g'`
1.1.1.6 ! misho    18660:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -l$lib${5+ }$extralibs" >&5
        !          18661: $as_echo_n "checking for inet_pton in -l$lib${5+ }$extralibs... " >&6; }
        !          18662:     if { as_var=sudo_cv_lib_$lib''_inet_pton$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
1.1       misho    18663:   $as_echo_n "(cached) " >&6
                   18664: else
1.1.1.2   misho    18665: 
                   18666:        SUDO_CHECK_LIB_OLIBS="$LIBS"
                   18667:        LIBS="$LIBS -l$lib${5+ }$extralibs"
                   18668:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       misho    18669: /* end confdefs.h.  */
                   18670: 
                   18671: /* Override any GCC internal prototype to avoid an error.
                   18672:    Use char because int might match the return type of a GCC
                   18673:    builtin and then its argument prototype would still apply.  */
                   18674: #ifdef __cplusplus
                   18675: extern "C"
                   18676: #endif
1.1.1.6 ! misho    18677: char inet_pton ();
1.1       misho    18678: int
                   18679: main ()
                   18680: {
1.1.1.6 ! misho    18681: return inet_pton ();
1.1       misho    18682:   ;
                   18683:   return 0;
                   18684: }
                   18685: _ACEOF
                   18686: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.6 ! misho    18687:   eval sudo_cv_lib_$lib''_inet_pton$_sudo_check_lib_extras=yes
1.1       misho    18688: else
1.1.1.6 ! misho    18689:   eval sudo_cv_lib_$lib''_inet_pton$_sudo_check_lib_extras=no
1.1.1.2   misho    18690: 
1.1       misho    18691: fi
                   18692: rm -f core conftest.err conftest.$ac_objext \
                   18693:     conftest$ac_exeext conftest.$ac_ext
1.1.1.2   misho    18694:        LIBS="$SUDO_CHECK_LIB_OLIBS"
                   18695: 
                   18696: fi
                   18697: 
1.1.1.6 ! misho    18698:     if eval test \$sudo_cv_lib_$lib''_inet_pton$_sudo_check_lib_extras = "yes"; then
1.1.1.2   misho    18699:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   18700: $as_echo "yes" >&6; }
1.1.1.6 ! misho    18701: 
        !          18702:            $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
        !          18703: 
        !          18704:            NET_LIBS="${NET_LIBS} $libs"
        !          18705:            LIBS="${LIBS} $libs"
        !          18706:            break
        !          18707: 
1.1.1.2   misho    18708:     else
                   18709:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   18710: $as_echo "no" >&6; }
                   18711: 
                   18712:     fi
                   18713: 
1.1.1.6 ! misho    18714:     done
1.1.1.2   misho    18715: 
1.1       misho    18716: fi
1.1.1.2   misho    18717: 
1.1.1.6 ! misho    18718: if test X"$ac_cv_func_inet_pton" != X"yes"; then
        !          18719:     case " $LIBOBJS " in
        !          18720:   *" inet_pton.$ac_objext "* ) ;;
        !          18721:   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
        !          18722:  ;;
        !          18723: esac
1.1.1.2   misho    18724: 
                   18725: fi
                   18726: ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
                   18727: if test "x$ac_cv_func_syslog" = xyes; then :
                   18728: 
                   18729: else
                   18730: 
                   18731:     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
                   18732:        _libs=
                   18733:        for lib in $libs; do
                   18734:            case "$NET_LIBS" in
                   18735:                *"$lib"*)   ;;
                   18736:                *)          _libs="$_libs $lib";;
                   18737:            esac
                   18738:        done
                   18739:        libs="${_libs# }"
                   18740:        test -z "$libs" && continue
                   18741:        lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
                   18742:        extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
                   18743: 
                   18744:     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/       *//g' -e 's/-l/_/g'`
                   18745:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5
                   18746: $as_echo_n "checking for syslog in -l$lib${5+ }$extralibs... " >&6; }
                   18747:     if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
1.1       misho    18748:   $as_echo_n "(cached) " >&6
                   18749: else
1.1.1.2   misho    18750: 
                   18751:        SUDO_CHECK_LIB_OLIBS="$LIBS"
                   18752:        LIBS="$LIBS -l$lib${5+ }$extralibs"
                   18753:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       misho    18754: /* end confdefs.h.  */
                   18755: 
                   18756: /* Override any GCC internal prototype to avoid an error.
                   18757:    Use char because int might match the return type of a GCC
                   18758:    builtin and then its argument prototype would still apply.  */
                   18759: #ifdef __cplusplus
                   18760: extern "C"
                   18761: #endif
1.1.1.2   misho    18762: char syslog ();
1.1       misho    18763: int
                   18764: main ()
                   18765: {
1.1.1.2   misho    18766: return syslog ();
1.1       misho    18767:   ;
                   18768:   return 0;
                   18769: }
                   18770: _ACEOF
                   18771: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2   misho    18772:   eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes
1.1       misho    18773: else
1.1.1.2   misho    18774:   eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no
                   18775: 
1.1       misho    18776: fi
                   18777: rm -f core conftest.err conftest.$ac_objext \
                   18778:     conftest$ac_exeext conftest.$ac_ext
1.1.1.2   misho    18779:        LIBS="$SUDO_CHECK_LIB_OLIBS"
1.1       misho    18780: 
                   18781: fi
                   18782: 
1.1.1.2   misho    18783:     if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then
                   18784:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   18785: $as_echo "yes" >&6; }
                   18786:        NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
                   18787:     else
                   18788:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   18789: $as_echo "no" >&6; }
                   18790: 
                   18791:     fi
                   18792: 
                   18793:     done
1.1       misho    18794: 
                   18795: fi
                   18796: 
1.1.1.6 ! misho    18797: #
        !          18798: # Check for getaddrinfo and add any required libs to NET_LIBS
        !          18799: #
        !          18800: OLIBS="$LIBS"
        !          18801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
        !          18802: $as_echo_n "checking for getaddrinfo... " >&6; }
        !          18803: if ${ax_cv_func_getaddrinfo+:} false; then :
        !          18804:   $as_echo_n "(cached) " >&6
        !          18805: else
        !          18806:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          18807: /* end confdefs.h.  */
        !          18808: #include <sys/types.h>
        !          18809: #include <sys/socket.h>
        !          18810: #include <netdb.h>
        !          18811: int main() { return getaddrinfo(0, 0, 0, 0); }
1.1.1.2   misho    18812: _ACEOF
1.1.1.6 ! misho    18813: if ac_fn_c_try_link "$LINENO"; then :
        !          18814:   ax_cv_func_getaddrinfo=yes
1.1       misho    18815: else
1.1.1.6 ! misho    18816:   ax_cv_func_getaddrinfo=no
        !          18817: fi
        !          18818: rm -f core conftest.err conftest.$ac_objext \
        !          18819:     conftest$ac_exeext conftest.$ac_ext
        !          18820: fi
1.1       misho    18821: 
1.1.1.6 ! misho    18822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_func_getaddrinfo" >&5
        !          18823: $as_echo "$ax_cv_func_getaddrinfo" >&6; }
        !          18824: if test X"$ax_cv_func_getaddrinfo" = X"yes"; then
1.1       misho    18825: 
1.1.1.6 ! misho    18826: $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
        !          18827: 
        !          18828: else
        !          18829:     # Not found in libc, check libsocket and libinet
        !          18830:     _found=no
        !          18831:     for _libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
        !          18832:        _cv="ax_cv_lib_getaddrinfo`echo \"$_libs\"|sed -e 's/-l/_/g' -e 's/ *//g'`"
        !          18833:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in $_libs" >&5
        !          18834: $as_echo_n "checking for getaddrinfo in $_libs... " >&6; }
        !          18835:        if eval \${$_cv+:} false; then :
1.1       misho    18836:   $as_echo_n "(cached) " >&6
                   18837: else
                   18838: 
1.1.1.6 ! misho    18839:            _nlibs=
        !          18840:            for _l in $_libs; do
        !          18841:                case "$LIBS" in
        !          18842:                    *"$_l"*)    ;;
        !          18843:                    *)          _nlibs="$_nlibs $_l";;
        !          18844:                esac
        !          18845:            done
        !          18846:            _libs="${_nlibs# }"
        !          18847:            if test -z "$_libs"; then
        !          18848:                # No new libs to check
        !          18849:                eval $_cv=no
        !          18850:            else
        !          18851:                AX_FUNC_GETADDRINFO_OLIBS="$LIBS"
        !          18852:                LIBS="$LIBS $_libs"
        !          18853:                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       misho    18854: /* end confdefs.h.  */
1.1.1.6 ! misho    18855: #include <sys/types.h>
        !          18856:     #include <sys/socket.h>
        !          18857:     #include <netdb.h>
        !          18858:     int main() { return getaddrinfo(0, 0, 0, 0); }
1.1       misho    18859: _ACEOF
                   18860: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.6 ! misho    18861:   eval $_cv=yes
1.1       misho    18862: else
1.1.1.6 ! misho    18863:   eval $_cv=no
1.1       misho    18864: fi
                   18865: rm -f core conftest.err conftest.$ac_objext \
                   18866:     conftest$ac_exeext conftest.$ac_ext
1.1.1.6 ! misho    18867:                LIBS="$AX_FUNC_GETADDRINFO_OLIBS"
        !          18868:            fi
1.1       misho    18869: 
                   18870: fi
                   18871: 
1.1.1.6 ! misho    18872:        if eval test \$$_cv = "yes"; then
        !          18873:            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.1.1.2   misho    18874: $as_echo "yes" >&6; }
1.1.1.6 ! misho    18875:            $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
        !          18876: 
        !          18877:            test -n "$_libs" && LIBS="$LIBS $_libs"
        !          18878:            break
        !          18879:        fi
1.1.1.2   misho    18880:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   18881: $as_echo "no" >&6; }
                   18882:     done
1.1.1.6 ! misho    18883:     if eval test \$$_cv != "yes"; then
        !          18884:        case " $LIBOBJS " in
        !          18885:   *" getaddrinfo.$ac_objext "* ) ;;
        !          18886:   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
        !          18887:  ;;
        !          18888: esac
1.1.1.2   misho    18889: 
                   18890:     fi
1.1       misho    18891: fi
                   18892: 
1.1.1.6 ! misho    18893: for lib in $LIBS; do
        !          18894:     case "$OLIBS" in
        !          18895:        *"$lib"*)   ;;
        !          18896:        *)          NET_LIBS="$NET_LIBS $lib";;
        !          18897:     esac
        !          18898: done
1.1.1.2   misho    18899: for ac_func in getprogname
                   18900: do :
                   18901:   ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
                   18902: if test "x$ac_cv_func_getprogname" = xyes; then :
                   18903:   cat >>confdefs.h <<_ACEOF
                   18904: #define HAVE_GETPROGNAME 1
                   18905: _ACEOF
1.1       misho    18906: 
                   18907: else
1.1.1.2   misho    18908: 
                   18909:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
                   18910: $as_echo_n "checking for __progname... " >&6; }
                   18911:     if ${sudo_cv___progname+:} false; then :
1.1       misho    18912:   $as_echo_n "(cached) " >&6
                   18913: else
1.1.1.2   misho    18914: 
                   18915:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       misho    18916: /* end confdefs.h.  */
                   18917: 
                   18918: int
                   18919: main ()
                   18920: {
1.1.1.2   misho    18921: extern char *__progname; (void)puts(__progname);
1.1       misho    18922:   ;
                   18923:   return 0;
                   18924: }
                   18925: _ACEOF
                   18926: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2   misho    18927:   sudo_cv___progname=yes
1.1       misho    18928: else
1.1.1.2   misho    18929:   sudo_cv___progname=no
1.1       misho    18930: fi
                   18931: rm -f core conftest.err conftest.$ac_objext \
                   18932:     conftest$ac_exeext conftest.$ac_ext
                   18933: fi
                   18934: 
1.1.1.2   misho    18935:     if test "$sudo_cv___progname" = "yes"; then
                   18936:        $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
                   18937: 
                   18938:     fi
                   18939:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
                   18940: $as_echo "$sudo_cv___progname" >&6; }
                   18941: 
1.1       misho    18942: fi
1.1.1.2   misho    18943: done
                   18944: 
                   18945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
                   18946: $as_echo_n "checking for __func__... " >&6; }
                   18947: if ${sudo_cv___func__+:} false; then :
1.1       misho    18948:   $as_echo_n "(cached) " >&6
                   18949: else
1.1.1.2   misho    18950: 
1.1       misho    18951: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18952: /* end confdefs.h.  */
                   18953: 
                   18954: int
                   18955: main ()
                   18956: {
1.1.1.2   misho    18957: (void)puts(__func__);
1.1       misho    18958:   ;
                   18959:   return 0;
                   18960: }
                   18961: _ACEOF
                   18962: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2   misho    18963:   sudo_cv___func__=yes
1.1       misho    18964: else
1.1.1.2   misho    18965:   sudo_cv___func__=no
1.1       misho    18966: fi
                   18967: rm -f core conftest.err conftest.$ac_objext \
                   18968:     conftest$ac_exeext conftest.$ac_ext
                   18969: fi
                   18970: 
1.1.1.2   misho    18971: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___func__" >&5
                   18972: $as_echo "$sudo_cv___func__" >&6; }
                   18973: if test "$sudo_cv___func__" = "yes"; then
                   18974:     $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
                   18975: 
                   18976: elif test -n "$GCC"; then
                   18977:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
                   18978: $as_echo_n "checking for __FUNCTION__... " >&6; }
                   18979:     if ${sudo_cv___FUNCTION__+:} false; then :
1.1       misho    18980:   $as_echo_n "(cached) " >&6
                   18981: else
                   18982: 
                   18983:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18984: /* end confdefs.h.  */
                   18985: 
                   18986: int
                   18987: main ()
                   18988: {
1.1.1.2   misho    18989: (void)puts(__FUNCTION__);
1.1       misho    18990:   ;
                   18991:   return 0;
                   18992: }
                   18993: _ACEOF
                   18994: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2   misho    18995:   sudo_cv___FUNCTION__=yes
1.1       misho    18996: else
1.1.1.2   misho    18997:   sudo_cv___FUNCTION__=no
1.1       misho    18998: fi
                   18999: rm -f core conftest.err conftest.$ac_objext \
                   19000:     conftest$ac_exeext conftest.$ac_ext
                   19001: fi
                   19002: 
1.1.1.2   misho    19003:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___FUNCTION__" >&5
                   19004: $as_echo "$sudo_cv___FUNCTION__" >&6; }
                   19005:     if test "$sudo_cv___FUNCTION__" = "yes"; then
                   19006:        $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
1.1       misho    19007: 
                   19008: 
1.1.1.2   misho    19009: $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
1.1       misho    19010: 
1.1.1.2   misho    19011:     fi
1.1       misho    19012: fi
                   19013: 
                   19014: # gettext() and friends may be located in libc (Linux and Solaris)
                   19015: # or in libintl.  However, it is possible to have libintl installed
                   19016: # even when gettext() is present in libc.  In the case of GNU libintl,
                   19017: # gettext() will be defined to gettext_libintl in libintl.h.
                   19018: # Since gcc prefers /usr/local/include to /usr/include, we need to
                   19019: # make sure we use the gettext() that matches the include file.
                   19020: if test "$enable_nls" != "no"; then
                   19021:     if test "$enable_nls" != "yes"; then
                   19022: 
1.1.1.4   misho    19023:     case "${CPPFLAGS}" in
                   19024:        *"-I${enable_nls}/include"|*"-I${enable_nls}/include ")
                   19025:            ;;
                   19026:        *)
                   19027:            if test X"${CPPFLAGS}" = X""; then
                   19028:                CPPFLAGS="-I${enable_nls}/include"
                   19029:            else
                   19030:                CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
                   19031:            fi
                   19032:            ;;
                   19033:     esac
                   19034: 
                   19035: 
                   19036:     case "${LDFLAGS}" in
                   19037:        *"-L$enable_nls/lib"|*"-L$enable_nls/lib ")
                   19038:            ;;
                   19039:        *)
                   19040:            LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
                   19041:            if test X"$enable_rpath" = X"yes"; then
                   19042:                LDFLAGS_R="${LDFLAGS_R} -R$enable_nls/lib"
                   19043:            fi
                   19044:            ;;
                   19045:     esac
1.1       misho    19046: 
                   19047:     fi
                   19048:     OLIBS="$LIBS"
                   19049:     for l in "libc" "-lintl" "-lintl -liconv"; do
                   19050:        if test "$l" = "libc"; then
                   19051:            # If user specified a dir for libintl ignore libc
                   19052:            if test "$enable_nls" != "yes"; then
                   19053:                continue
                   19054:            fi
                   19055:            gettext_name=sudo_cv_gettext
                   19056:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
                   19057: $as_echo_n "checking for gettext... " >&6; }
                   19058:        else
                   19059:            LIBS="$OLIBS $l"
                   19060:            gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
                   19061:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
                   19062: $as_echo_n "checking for gettext in $l... " >&6; }
                   19063:        fi
                   19064:        if eval \${$gettext_name+:} false; then :
                   19065:   $as_echo_n "(cached) " >&6
                   19066: else
                   19067: 
                   19068:                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19069: /* end confdefs.h.  */
                   19070: 
                   19071:                        #include <libintl.h>
                   19072: int
                   19073: main ()
                   19074: {
                   19075: (void)gettext((char *)0);
                   19076:   ;
                   19077:   return 0;
                   19078: }
                   19079: 
                   19080: _ACEOF
                   19081: if ac_fn_c_try_link "$LINENO"; then :
                   19082:   eval $gettext_name=yes
                   19083: else
                   19084:   eval $gettext_name=no
                   19085: 
                   19086: fi
                   19087: rm -f core conftest.err conftest.$ac_objext \
                   19088:     conftest$ac_exeext conftest.$ac_ext
                   19089: 
                   19090: fi
                   19091: 
                   19092:        eval gettext_result="\$$gettext_name"
                   19093:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
                   19094: $as_echo "$gettext_result" >&6; }
1.1.1.3   misho    19095:        if test "$gettext_result" = "yes"; then
                   19096:            for ac_func in ngettext
                   19097: do :
                   19098:   ac_fn_c_check_func "$LINENO" "ngettext" "ac_cv_func_ngettext"
                   19099: if test "x$ac_cv_func_ngettext" = xyes; then :
                   19100:   cat >>confdefs.h <<_ACEOF
                   19101: #define HAVE_NGETTEXT 1
                   19102: _ACEOF
                   19103: 
                   19104: fi
                   19105: done
                   19106: 
                   19107:            break
                   19108:        fi
1.1       misho    19109:     done
                   19110:     LIBS="$OLIBS"
                   19111: 
                   19112:     if test "$sudo_cv_gettext" = "yes"; then
                   19113:        $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
                   19114: 
                   19115:        SUDO_NLS=enabled
1.1.1.4   misho    19116:        # For Solaris we need links from lang to lang.UTF-8 in localedir
                   19117:        case "$host_os" in
                   19118:            solaris2*) LOCALEDIR_SUFFIX=".UTF-8";;
                   19119:        esac
1.1       misho    19120:     elif test "$sudo_cv_gettext_lintl" = "yes"; then
                   19121:        $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
                   19122: 
                   19123:        SUDO_NLS=enabled
                   19124:        LIBINTL="-lintl"
                   19125:     elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
                   19126:        $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
                   19127: 
                   19128:        SUDO_NLS=enabled
                   19129:        LIBINTL="-lintl -liconv"
                   19130:     fi
                   19131: fi
                   19132: 
                   19133: case "$enable_zlib" in
                   19134:     yes)
                   19135:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
                   19136: $as_echo_n "checking for gzdopen in -lz... " >&6; }
                   19137: if ${ac_cv_lib_z_gzdopen+:} false; then :
                   19138:   $as_echo_n "(cached) " >&6
                   19139: else
                   19140:   ac_check_lib_save_LIBS=$LIBS
                   19141: LIBS="-lz  $LIBS"
                   19142: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19143: /* end confdefs.h.  */
                   19144: 
                   19145: /* Override any GCC internal prototype to avoid an error.
                   19146:    Use char because int might match the return type of a GCC
                   19147:    builtin and then its argument prototype would still apply.  */
                   19148: #ifdef __cplusplus
                   19149: extern "C"
                   19150: #endif
                   19151: char gzdopen ();
                   19152: int
                   19153: main ()
                   19154: {
                   19155: return gzdopen ();
                   19156:   ;
                   19157:   return 0;
                   19158: }
                   19159: _ACEOF
                   19160: if ac_fn_c_try_link "$LINENO"; then :
                   19161:   ac_cv_lib_z_gzdopen=yes
                   19162: else
                   19163:   ac_cv_lib_z_gzdopen=no
                   19164: fi
                   19165: rm -f core conftest.err conftest.$ac_objext \
                   19166:     conftest$ac_exeext conftest.$ac_ext
                   19167: LIBS=$ac_check_lib_save_LIBS
                   19168: fi
                   19169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
                   19170: $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
                   19171: if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
                   19172: 
                   19173:            for ac_header in zlib.h
                   19174: do :
                   19175:   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
                   19176: if test "x$ac_cv_header_zlib_h" = xyes; then :
                   19177:   cat >>confdefs.h <<_ACEOF
                   19178: #define HAVE_ZLIB_H 1
                   19179: _ACEOF
                   19180:  ZLIB="-lz"
                   19181: else
                   19182:   enable_zlib=builtin
                   19183: fi
                   19184: 
                   19185: done
                   19186: 
                   19187: 
                   19188: fi
                   19189: 
                   19190:        ;;
                   19191:     no)
                   19192:        ;;
                   19193:     system)
                   19194:        $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
                   19195: 
                   19196:        ZLIB="-lz"
                   19197:        ;;
                   19198:     builtin)
                   19199:        # handled below
                   19200:        ;;
                   19201:     *)
                   19202:        $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
                   19203: 
                   19204: 
1.1.1.4   misho    19205:     case "${CPPFLAGS}" in
                   19206:        *"-I${enable_zlib}/include"|*"-I${enable_zlib}/include ")
                   19207:            ;;
                   19208:        *)
                   19209:            if test X"${CPPFLAGS}" = X""; then
                   19210:                CPPFLAGS="-I${enable_zlib}/include"
                   19211:            else
                   19212:                CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
                   19213:            fi
                   19214:            ;;
                   19215:     esac
                   19216: 
                   19217: 
                   19218:     case "${ZLIB}" in
                   19219:        *"-L$enable_zlib/lib"|*"-L$enable_zlib/lib ")
                   19220:            ;;
                   19221:        *)
                   19222:            ZLIB="${ZLIB} -L$enable_zlib/lib"
                   19223:            if test X"$enable_rpath" = X"yes"; then
                   19224:                ZLIB_R="${ZLIB_R} -R$enable_zlib/lib"
                   19225:            fi
                   19226:            ;;
                   19227:     esac
1.1       misho    19228: 
                   19229:        ZLIB="${ZLIB} -lz"
                   19230:        ;;
                   19231: esac
                   19232: if test X"$enable_zlib" = X"builtin"; then
                   19233:     $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
                   19234: 
1.1.1.2   misho    19235:     CPPFLAGS='-I$(top_builddir)/zlib -I$(top_srcdir)/zlib '"${CPPFLAGS}"
1.1       misho    19236:     ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
                   19237:     ZLIB_SRC=zlib
                   19238:     ac_config_headers="$ac_config_headers zlib/zconf.h"
                   19239: 
                   19240:     ac_config_files="$ac_config_files zlib/Makefile"
                   19241: 
                   19242: fi
                   19243: 
                   19244: ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
                   19245: $ac_includes_default
                   19246: #include <errno.h>
                   19247: 
                   19248: "
                   19249: if test "x$ac_cv_have_decl_errno" = xyes; then :
                   19250:   ac_have_decl=1
                   19251: else
                   19252:   ac_have_decl=0
                   19253: fi
                   19254: 
                   19255: cat >>confdefs.h <<_ACEOF
                   19256: #define HAVE_DECL_ERRNO $ac_have_decl
                   19257: _ACEOF
                   19258: 
                   19259: 
1.1.1.2   misho    19260: ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
                   19261: $ac_includes_default
                   19262: #include <netdb.h>
                   19263: 
                   19264: "
                   19265: if test "x$ac_cv_have_decl_h_errno" = xyes; then :
                   19266:   ac_have_decl=1
                   19267: else
                   19268:   ac_have_decl=0
                   19269: fi
                   19270: 
                   19271: cat >>confdefs.h <<_ACEOF
                   19272: #define HAVE_DECL_H_ERRNO $ac_have_decl
                   19273: _ACEOF
                   19274: 
                   19275: 
1.1       misho    19276: for ac_func in strsignal
                   19277: do :
                   19278:   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
                   19279: if test "x$ac_cv_func_strsignal" = xyes; then :
                   19280:   cat >>confdefs.h <<_ACEOF
                   19281: #define HAVE_STRSIGNAL 1
                   19282: _ACEOF
                   19283: 
                   19284: else
                   19285: 
                   19286:     case " $LIBOBJS " in
                   19287:   *" strsignal.$ac_objext "* ) ;;
                   19288:   *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
                   19289:  ;;
                   19290: esac
                   19291: 
                   19292:     HAVE_SIGLIST="false"
                   19293:     ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
                   19294: $ac_includes_default
                   19295: #include <signal.h>
                   19296: 
                   19297: "
                   19298: if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
                   19299:   ac_have_decl=1
                   19300: else
                   19301:   ac_have_decl=0
                   19302: fi
                   19303: 
                   19304: cat >>confdefs.h <<_ACEOF
                   19305: #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
                   19306: _ACEOF
                   19307: if test $ac_have_decl = 1; then :
                   19308: 
                   19309:        HAVE_SIGLIST="true"
                   19310:        break
                   19311: 
                   19312: fi
                   19313: ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
                   19314: $ac_includes_default
                   19315: #include <signal.h>
                   19316: 
                   19317: "
                   19318: if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
                   19319:   ac_have_decl=1
                   19320: else
                   19321:   ac_have_decl=0
                   19322: fi
                   19323: 
                   19324: cat >>confdefs.h <<_ACEOF
                   19325: #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
                   19326: _ACEOF
                   19327: if test $ac_have_decl = 1; then :
                   19328: 
                   19329:        HAVE_SIGLIST="true"
                   19330:        break
                   19331: 
                   19332: fi
                   19333: ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
                   19334: $ac_includes_default
                   19335: #include <signal.h>
                   19336: 
                   19337: "
                   19338: if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
                   19339:   ac_have_decl=1
                   19340: else
                   19341:   ac_have_decl=0
                   19342: fi
                   19343: 
                   19344: cat >>confdefs.h <<_ACEOF
                   19345: #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
                   19346: _ACEOF
                   19347: if test $ac_have_decl = 1; then :
                   19348: 
                   19349:        HAVE_SIGLIST="true"
                   19350:        break
                   19351: 
                   19352: fi
                   19353: 
                   19354:     if test "$HAVE_SIGLIST" != "true"; then
                   19355:        case " $LIBOBJS " in
                   19356:   *" siglist.$ac_objext "* ) ;;
                   19357:   *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
                   19358:  ;;
1.1.1.2   misho    19359: esac
                   19360: 
                   19361:     fi
                   19362: 
1.1       misho    19363: fi
1.1.1.2   misho    19364: done
1.1       misho    19365: 
                   19366: 
1.1.1.3   misho    19367: for ac_func in sig2str
                   19368: do :
                   19369:   ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
                   19370: if test "x$ac_cv_func_sig2str" = xyes; then :
                   19371:   cat >>confdefs.h <<_ACEOF
                   19372: #define HAVE_SIG2STR 1
                   19373: _ACEOF
1.1       misho    19374: 
1.1.1.3   misho    19375: else
1.1.1.2   misho    19376: 
1.1.1.3   misho    19377:     case " $LIBOBJS " in
                   19378:   *" sig2str.$ac_objext "* ) ;;
                   19379:   *) LIBOBJS="$LIBOBJS sig2str.$ac_objext"
                   19380:  ;;
                   19381: esac
                   19382: 
                   19383:     HAVE_SIGNAME="false"
                   19384:     ac_fn_c_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "
                   19385: $ac_includes_default
                   19386: #include <signal.h>
                   19387: 
                   19388: "
                   19389: if test "x$ac_cv_have_decl_sys_signame" = xyes; then :
                   19390:   ac_have_decl=1
                   19391: else
                   19392:   ac_have_decl=0
1.1.1.2   misho    19393: fi
1.1       misho    19394: 
1.1.1.3   misho    19395: cat >>confdefs.h <<_ACEOF
                   19396: #define HAVE_DECL_SYS_SIGNAME $ac_have_decl
                   19397: _ACEOF
                   19398: if test $ac_have_decl = 1; then :
                   19399: 
                   19400:        HAVE_SIGNAME="true"
                   19401:        break
1.1       misho    19402: 
                   19403: fi
1.1.1.3   misho    19404: ac_fn_c_check_decl "$LINENO" "_sys_signame" "ac_cv_have_decl__sys_signame" "
                   19405: $ac_includes_default
                   19406: #include <signal.h>
1.1.1.2   misho    19407: 
1.1.1.3   misho    19408: "
                   19409: if test "x$ac_cv_have_decl__sys_signame" = xyes; then :
                   19410:   ac_have_decl=1
1.1       misho    19411: else
1.1.1.3   misho    19412:   ac_have_decl=0
                   19413: fi
1.1       misho    19414: 
1.1.1.3   misho    19415: cat >>confdefs.h <<_ACEOF
                   19416: #define HAVE_DECL__SYS_SIGNAME $ac_have_decl
                   19417: _ACEOF
                   19418: if test $ac_have_decl = 1; then :
                   19419: 
                   19420:        HAVE_SIGNAME="true"
                   19421:        break
                   19422: 
                   19423: fi
                   19424: ac_fn_c_check_decl "$LINENO" "__sys_signame" "ac_cv_have_decl___sys_signame" "
                   19425: $ac_includes_default
                   19426: #include <signal.h>
                   19427: 
                   19428: "
                   19429: if test "x$ac_cv_have_decl___sys_signame" = xyes; then :
                   19430:   ac_have_decl=1
                   19431: else
                   19432:   ac_have_decl=0
                   19433: fi
                   19434: 
                   19435: cat >>confdefs.h <<_ACEOF
                   19436: #define HAVE_DECL___SYS_SIGNAME $ac_have_decl
                   19437: _ACEOF
                   19438: if test $ac_have_decl = 1; then :
                   19439: 
                   19440:        HAVE_SIGNAME="true"
                   19441:        break
                   19442: 
                   19443: fi
                   19444: ac_fn_c_check_decl "$LINENO" "sys_sigabbrev" "ac_cv_have_decl_sys_sigabbrev" "
                   19445: $ac_includes_default
                   19446: #include <signal.h>
                   19447: 
                   19448: "
                   19449: if test "x$ac_cv_have_decl_sys_sigabbrev" = xyes; then :
                   19450:   ac_have_decl=1
                   19451: else
                   19452:   ac_have_decl=0
                   19453: fi
                   19454: 
                   19455: cat >>confdefs.h <<_ACEOF
                   19456: #define HAVE_DECL_SYS_SIGABBREV $ac_have_decl
                   19457: _ACEOF
                   19458: if test $ac_have_decl = 1; then :
                   19459: 
                   19460:        HAVE_SIGNAME="true"
                   19461:        break
                   19462: 
                   19463: fi
                   19464: 
                   19465:     if test "$HAVE_SIGNAME" != "true"; then
                   19466:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for undeclared sys_sigabbrev" >&5
                   19467: $as_echo_n "checking for undeclared sys_sigabbrev... " >&6; }
                   19468: if ${sudo_cv_var_sys_sigabbrev+:} false; then :
                   19469:   $as_echo_n "(cached) " >&6
                   19470: else
                   19471:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19472: /* end confdefs.h.  */
                   19473: extern char **sys_sigabbrev;
                   19474: int
                   19475: main ()
                   19476: {
                   19477: return sys_sigabbrev[1];
                   19478:   ;
                   19479:   return 0;
                   19480: }
                   19481: _ACEOF
                   19482: if ac_fn_c_try_link "$LINENO"; then :
                   19483:   sudo_cv_var_sys_sigabbrev=yes
                   19484: else
                   19485:   sudo_cv_var_sys_sigabbrev=no
                   19486: 
                   19487: fi
                   19488: rm -f core conftest.err conftest.$ac_objext \
                   19489:     conftest$ac_exeext conftest.$ac_ext
                   19490: 
                   19491: 
                   19492: fi
                   19493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_sys_sigabbrev" >&5
                   19494: $as_echo "$sudo_cv_var_sys_sigabbrev" >&6; }
                   19495:        if test "$sudo_cv_var_sys_sigabbrev" = yes; then
                   19496:            $as_echo "#define HAVE_SYS_SIGABBREV 1" >>confdefs.h
                   19497: 
                   19498:        else
                   19499:            case " $LIBOBJS " in
                   19500:   *" signame.$ac_objext "* ) ;;
                   19501:   *) LIBOBJS="$LIBOBJS signame.$ac_objext"
                   19502:  ;;
                   19503: esac
                   19504: 
                   19505:        fi
                   19506:     fi
                   19507: 
                   19508: fi
                   19509: done
                   19510: 
                   19511: 
                   19512: if test ${with_netsvc-"no"} != "no"; then
                   19513:     cat >>confdefs.h <<EOF
                   19514: #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
                   19515: EOF
                   19516: 
                   19517:     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
                   19518: elif test ${with_nsswitch-"yes"} != "no"; then
                   19519:     cat >>confdefs.h <<EOF
                   19520: #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
                   19521: EOF
                   19522: 
                   19523:     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
                   19524: fi
                   19525: 
                   19526: 
                   19527: if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
                   19528:     for auth in $AUTH_EXCL_DEF; do
                   19529:        case $auth in
                   19530:            AIX_AUTH)   with_aixauth=maybe;;
                   19531:            BSD_AUTH)   with_bsdauth=maybe;;
                   19532:            PAM)        with_pam=maybe;;
                   19533:            SIA)        CHECKSIA=true;;
                   19534:        esac
                   19535:     done
                   19536: fi
                   19537: 
                   19538: if test ${with_pam-"no"} != "no"; then
                   19539:     #
                   19540:     # Check for pam_start() in libpam first, then for pam_appl.h.
                   19541:     #
                   19542:     found_pam_lib=no
                   19543:     as_ac_Lib=`$as_echo "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | $as_tr_sh`
                   19544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
                   19545: $as_echo_n "checking for pam_start in -lpam... " >&6; }
                   19546: if eval \${$as_ac_Lib+:} false; then :
                   19547:   $as_echo_n "(cached) " >&6
                   19548: else
                   19549:   ac_check_lib_save_LIBS=$LIBS
                   19550: LIBS="-lpam $lt_cv_dlopen_libs $LIBS"
                   19551: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19552: /* end confdefs.h.  */
                   19553: 
                   19554: /* Override any GCC internal prototype to avoid an error.
                   19555:    Use char because int might match the return type of a GCC
                   19556:    builtin and then its argument prototype would still apply.  */
                   19557: #ifdef __cplusplus
                   19558: extern "C"
                   19559: #endif
                   19560: char pam_start ();
                   19561: int
                   19562: main ()
                   19563: {
                   19564: return pam_start ();
                   19565:   ;
                   19566:   return 0;
                   19567: }
1.1       misho    19568: _ACEOF
                   19569: if ac_fn_c_try_link "$LINENO"; then :
                   19570:   eval "$as_ac_Lib=yes"
                   19571: else
                   19572:   eval "$as_ac_Lib=no"
                   19573: fi
                   19574: rm -f core conftest.err conftest.$ac_objext \
                   19575:     conftest$ac_exeext conftest.$ac_ext
                   19576: LIBS=$ac_check_lib_save_LIBS
                   19577: fi
                   19578: eval ac_res=\$$as_ac_Lib
                   19579:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   19580: $as_echo "$ac_res" >&6; }
                   19581: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
1.1.1.2   misho    19582:   found_pam_lib=yes
                   19583: fi
                   19584: 
                   19585:     #
                   19586:     # Some PAM implementations (MacOS X for example) put the PAM headers
                   19587:     # in /usr/include/pam instead of /usr/include/security...
                   19588:     #
                   19589:     found_pam_hdrs=no
                   19590:     for ac_header in security/pam_appl.h pam/pam_appl.h
                   19591: do :
                   19592:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   19593: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   19594: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   19595:   cat >>confdefs.h <<_ACEOF
                   19596: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   19597: _ACEOF
                   19598:  found_pam_hdrs=yes; break
                   19599: fi
                   19600: 
                   19601: done
                   19602: 
                   19603:     if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"; then
                   19604:        # Found both PAM libs and headers
                   19605:        with_pam=yes
                   19606:     elif test "$with_pam" = "yes"; then
                   19607:        if test "$found_pam_lib" = "no"; then
                   19608:            as_fn_error $? "\"--with-pam specified but unable to locate PAM development library.\"" "$LINENO" 5
                   19609:        fi
                   19610:        if test "$found_pam_hdrs" = "no"; then
                   19611:            as_fn_error $? "\"--with-pam specified but unable to locate PAM development headers.\"" "$LINENO" 5
                   19612:        fi
                   19613:     elif test "$found_pam_lib" != "$found_pam_hdrs"; then
                   19614:        if test "$found_pam_lib" = "no"; then
                   19615:            as_fn_error $? "\"found PAM headers but no PAM development library; specify --without-pam to build without PAM\"" "$LINENO" 5
                   19616:        fi
                   19617:        if test "$found_pam_hdrs" = "no"; then
                   19618:            as_fn_error $? "\"found PAM library but no PAM development headers; specify --without-pam to build without PAM\"" "$LINENO" 5
                   19619:        fi
                   19620:     fi
                   19621: 
                   19622:     if test "$with_pam" = "yes"; then
                   19623:        # Older PAM implementations lack pam_getenvlist
                   19624:        OLIBS="$LIBS"
                   19625:        LIBS="$LIBS -lpam $lt_cv_dlopen_libs"
                   19626:        for ac_func in pam_getenvlist
                   19627: do :
                   19628:   ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
                   19629: if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
                   19630:   cat >>confdefs.h <<_ACEOF
                   19631: #define HAVE_PAM_GETENVLIST 1
                   19632: _ACEOF
                   19633: 
                   19634: fi
                   19635: done
                   19636: 
                   19637:        LIBS="$OLIBS"
                   19638: 
                   19639:        # We already link with -ldl if needed (see LIBDL below)
                   19640:        SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
                   19641:        $as_echo "#define HAVE_PAM 1" >>confdefs.h
                   19642: 
                   19643:        AUTH_OBJS="$AUTH_OBJS pam.lo";
                   19644:        AUTH_EXCL=PAM
                   19645: 
                   19646: 
                   19647: # Check whether --with-pam-login was given.
                   19648: if test "${with_pam_login+set}" = set; then :
                   19649:   withval=$with_pam_login; case $with_pam_login in
                   19650:            yes)        $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
                   19651: 
                   19652:                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
                   19653: $as_echo_n "checking whether to use PAM login... " >&6; }
                   19654:                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   19655: $as_echo "yes" >&6; }
1.1.1.5   misho    19656:                        pam_login_service="sudo-i"
1.1.1.2   misho    19657:                        ;;
                   19658:            no)         ;;
                   19659:            *)          as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
                   19660:                        ;;
                   19661:        esac
                   19662: fi
                   19663: 
                   19664: 
                   19665:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
                   19666: $as_echo_n "checking whether to use PAM session support... " >&6; }
                   19667:        # Check whether --enable-pam_session was given.
                   19668: if test "${enable_pam_session+set}" = set; then :
                   19669:   enableval=$enable_pam_session;  case "$enableval" in
                   19670:                yes)    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   19671: $as_echo "yes" >&6; }
                   19672:                        ;;
1.1.1.4   misho    19673:                no)     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1.1.2   misho    19674: $as_echo "no" >&6; }
1.1.1.4   misho    19675:                        $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
1.1.1.2   misho    19676: 
1.1.1.4   misho    19677:                        pam_session=off
                   19678:                        ;;
                   19679:                *)      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1.1.2   misho    19680: $as_echo "no" >&6; }
1.1.1.4   misho    19681:                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
1.1.1.2   misho    19682: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
1.1.1.4   misho    19683:                        ;;
1.1.1.2   misho    19684:            esac
1.1       misho    19685: else
1.1.1.2   misho    19686:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   19687: $as_echo "yes" >&6; }
                   19688: fi
1.1       misho    19689: 
1.1.1.2   misho    19690:     fi
                   19691: fi
                   19692: 
                   19693: if test ${with_aixauth-'no'} != "no"; then
                   19694:     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
                   19695:        { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
                   19696: $as_echo "$as_me: using AIX general authentication" >&6;}
                   19697:        $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
                   19698: 
                   19699:        AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
                   19700:        SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
                   19701:        AUTH_EXCL=AIX_AUTH
                   19702:     fi
                   19703: fi
                   19704: 
                   19705: if test ${with_bsdauth-'no'} != "no"; then
                   19706:     ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
                   19707: if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
                   19708:   $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
                   19709: 
                   19710:        AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
1.1.1.5   misho    19711:        BSDAUTH_USAGE='[-a type] '
1.1.1.2   misho    19712:        AUTH_EXCL=BSD_AUTH; BAMAN=1
1.1       misho    19713: else
1.1.1.2   misho    19714:   as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
                   19715: fi
1.1       misho    19716: 
                   19717: 
1.1.1.2   misho    19718: fi
                   19719: 
                   19720: if test ${CHECKSIA-'false'} = "true"; then
                   19721:     for ac_func in sia_ses_init
                   19722: do :
                   19723:   ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
                   19724: if test "x$ac_cv_func_sia_ses_init" = xyes; then :
                   19725:   cat >>confdefs.h <<_ACEOF
                   19726: #define HAVE_SIA_SES_INIT 1
1.1       misho    19727: _ACEOF
1.1.1.2   misho    19728:  found=true
1.1       misho    19729: else
1.1.1.2   misho    19730:   found=false
1.1       misho    19731: fi
1.1.1.2   misho    19732: done
                   19733: 
                   19734:     if test "$found" = "true"; then
                   19735:        AUTH_EXCL=SIA
                   19736:        AUTH_OBJS="$AUTH_OBJS sia.lo"
                   19737:     fi
1.1       misho    19738: fi
                   19739: 
1.1.1.2   misho    19740: if test ${with_fwtk-'no'} != "no"; then
                   19741:     if test "$with_fwtk" != "yes"; then
                   19742: 
1.1.1.4   misho    19743:     case "${SUDOERS_LDFLAGS}" in
                   19744:        *"-L${with_fwtk}"|*"-L${with_fwtk} ")
                   19745:            ;;
                   19746:        *)
                   19747:            SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
                   19748:            if test X"$enable_rpath" = X"yes"; then
                   19749:                SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_fwtk}"
                   19750:            fi
                   19751:            ;;
                   19752:     esac
                   19753: 
                   19754: 
                   19755:     case "${CPPFLAGS}" in
                   19756:        *"-I${with_fwtk}"|*"-I${with_fwtk} ")
                   19757:            ;;
                   19758:        *)
                   19759:            if test X"${CPPFLAGS}" = X""; then
                   19760:                CPPFLAGS="-I${with_fwtk}"
                   19761:            else
                   19762:                CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
                   19763:            fi
                   19764:            ;;
                   19765:     esac
1.1.1.2   misho    19766: 
                   19767:        with_fwtk=yes
                   19768:     fi
                   19769:     SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
                   19770:     AUTH_OBJS="$AUTH_OBJS fwtk.lo"
1.1       misho    19771: fi
                   19772: 
1.1.1.2   misho    19773: if test ${with_SecurID-'no'} != "no"; then
                   19774:     if test "$with_SecurID" != "yes"; then
                   19775:        :
                   19776:     elif test -d /usr/ace/examples; then
                   19777:        with_SecurID=/usr/ace/examples
                   19778:     else
                   19779:        with_SecurID=/usr/ace
                   19780:     fi
                   19781: 
1.1.1.4   misho    19782:     case "${CPPFLAGS}" in
                   19783:        *"-I${with_SecurID}"|*"-I${with_SecurID} ")
                   19784:            ;;
                   19785:        *)
                   19786:            if test X"${CPPFLAGS}" = X""; then
                   19787:                CPPFLAGS="-I${with_SecurID}"
                   19788:            else
                   19789:                CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
                   19790:            fi
                   19791:            ;;
                   19792:     esac
                   19793: 
                   19794: 
                   19795:     case "${SUDOERS_LDFLAGS}" in
                   19796:        *"-L${with_SecurID}"|*"-L${with_SecurID} ")
                   19797:            ;;
                   19798:        *)
                   19799:            SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID}"
                   19800:            if test X"$enable_rpath" = X"yes"; then
                   19801:                SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_SecurID}"
                   19802:            fi
                   19803:            ;;
                   19804:     esac
1.1       misho    19805: 
1.1.1.2   misho    19806:     SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
                   19807:     AUTH_OBJS="$AUTH_OBJS securid5.lo";
1.1       misho    19808: fi
                   19809: 
1.1.1.2   misho    19810: 
                   19811: if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
                   19812:     for auth in $AUTH_DEF; do
                   19813:        case $auth in
                   19814:            passwd)     : ${with_passwd='maybe'};;
                   19815:        esac
                   19816:     done
1.1       misho    19817: fi
                   19818: 
                   19819: if test ${with_kerb5-'no'} != "no"; then
                   19820:     # Extract the first word of "krb5-config", so it can be a program name with args.
                   19821: set dummy krb5-config; ac_word=$2
                   19822: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   19823: $as_echo_n "checking for $ac_word... " >&6; }
                   19824: if ${ac_cv_prog_KRB5CONFIG+:} false; then :
                   19825:   $as_echo_n "(cached) " >&6
                   19826: else
                   19827:   if test -n "$KRB5CONFIG"; then
                   19828:   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
                   19829: else
                   19830: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   19831: for as_dir in $PATH
                   19832: do
                   19833:   IFS=$as_save_IFS
                   19834:   test -z "$as_dir" && as_dir=.
                   19835:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! misho    19836:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    19837:     ac_cv_prog_KRB5CONFIG="yes"
                   19838:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   19839:     break 2
                   19840:   fi
                   19841: done
                   19842:   done
                   19843: IFS=$as_save_IFS
                   19844: 
                   19845:   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
                   19846: fi
                   19847: fi
                   19848: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
                   19849: if test -n "$KRB5CONFIG"; then
                   19850:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
                   19851: $as_echo "$KRB5CONFIG" >&6; }
                   19852: else
                   19853:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   19854: $as_echo "no" >&6; }
                   19855: fi
                   19856: 
                   19857: 
                   19858:     if test -n "$KRB5CONFIG"; then
                   19859:        $as_echo "#define HAVE_KERB5 1" >>confdefs.h
                   19860: 
                   19861:        AUTH_OBJS="$AUTH_OBJS kerb5.lo"
                   19862:        CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
                   19863:        SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
                   19864:                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
                   19865: $as_echo_n "checking whether we are using Heimdal... " >&6; }
                   19866:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19867: /* end confdefs.h.  */
                   19868: #include <krb5.h>
                   19869: int
                   19870: main ()
                   19871: {
                   19872: const char *tmp = heimdal_version;
                   19873:   ;
                   19874:   return 0;
                   19875: }
                   19876: _ACEOF
                   19877: if ac_fn_c_try_compile "$LINENO"; then :
                   19878: 
                   19879:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   19880: $as_echo "yes" >&6; }
                   19881:                $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
                   19882: 
                   19883: 
                   19884: else
                   19885: 
                   19886:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   19887: $as_echo "no" >&6; }
                   19888: 
                   19889: 
                   19890: fi
                   19891: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   19892:     else
                   19893:        $as_echo "#define HAVE_KERB5 1" >>confdefs.h
                   19894: 
                   19895:                                if test "$with_kerb5" = "yes"; then
                   19896:            found=no
                   19897:            O_CPPFLAGS="$CPPFLAGS"
                   19898:            for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
                   19899:                CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
                   19900:                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19901: /* end confdefs.h.  */
                   19902: #include <krb5.h>
                   19903: int
                   19904: main ()
                   19905: {
                   19906: 
                   19907:   ;
                   19908:   return 0;
                   19909: }
                   19910: _ACEOF
                   19911: if ac_fn_c_try_cpp "$LINENO"; then :
                   19912:   found=yes; break
                   19913: fi
                   19914: rm -f conftest.err conftest.i conftest.$ac_ext
                   19915:            done
                   19916:            if test X"$found" = X"no"; then
                   19917:                CPPFLAGS="$O_CPPFLAGS"
                   19918:                { $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
                   19919: $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;}
                   19920:            fi
                   19921:        else
                   19922: 
1.1.1.4   misho    19923:     case "${SUDOERS_LDFLAGS}" in
                   19924:        *"-L${with_kerb5}/lib"|*"-L${with_kerb5}/lib ")
                   19925:            ;;
                   19926:        *)
                   19927:            SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
                   19928:            if test X"$enable_rpath" = X"yes"; then
                   19929:                SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_kerb5}/lib"
                   19930:            fi
                   19931:            ;;
                   19932:     esac
                   19933: 
                   19934: 
                   19935:     case "${CPPFLAGS}" in
                   19936:        *"-I${with_kerb5}/include"|*"-I${with_kerb5}/include ")
                   19937:            ;;
                   19938:        *)
                   19939:            if test X"${CPPFLAGS}" = X""; then
                   19940:                CPPFLAGS="-I${with_kerb5}/include"
                   19941:            else
                   19942:                CPPFLAGS="${CPPFLAGS} -I${with_kerb5}/include"
                   19943:            fi
                   19944:            ;;
                   19945:     esac
1.1       misho    19946: 
                   19947:        fi
                   19948: 
                   19949:                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
                   19950: $as_echo_n "checking whether we are using Heimdal... " >&6; }
                   19951:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19952: /* end confdefs.h.  */
                   19953: #include <krb5.h>
                   19954: int
                   19955: main ()
                   19956: {
                   19957: const char *tmp = heimdal_version;
                   19958:   ;
                   19959:   return 0;
                   19960: }
                   19961: _ACEOF
                   19962: if ac_fn_c_try_compile "$LINENO"; then :
                   19963: 
                   19964:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   19965: $as_echo "yes" >&6; }
                   19966:                $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
                   19967: 
                   19968:                # XXX - need to check whether -lcrypo is needed!
                   19969:                SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
                   19970:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
                   19971: $as_echo_n "checking for main in -lroken... " >&6; }
                   19972: if ${ac_cv_lib_roken_main+:} false; then :
                   19973:   $as_echo_n "(cached) " >&6
                   19974: else
                   19975:   ac_check_lib_save_LIBS=$LIBS
                   19976: LIBS="-lroken  $LIBS"
                   19977: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19978: /* end confdefs.h.  */
                   19979: 
                   19980: 
                   19981: int
                   19982: main ()
                   19983: {
                   19984: return main ();
                   19985:   ;
                   19986:   return 0;
                   19987: }
                   19988: _ACEOF
                   19989: if ac_fn_c_try_link "$LINENO"; then :
                   19990:   ac_cv_lib_roken_main=yes
                   19991: else
                   19992:   ac_cv_lib_roken_main=no
                   19993: fi
                   19994: rm -f core conftest.err conftest.$ac_objext \
                   19995:     conftest$ac_exeext conftest.$ac_ext
                   19996: LIBS=$ac_check_lib_save_LIBS
                   19997: fi
                   19998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
                   19999: $as_echo "$ac_cv_lib_roken_main" >&6; }
                   20000: if test "x$ac_cv_lib_roken_main" = xyes; then :
                   20001:   SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
                   20002: fi
                   20003: 
                   20004: 
                   20005: else
                   20006: 
                   20007:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   20008: $as_echo "no" >&6; }
                   20009:                SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
                   20010:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
                   20011: $as_echo_n "checking for main in -lkrb5support... " >&6; }
                   20012: if ${ac_cv_lib_krb5support_main+:} false; then :
                   20013:   $as_echo_n "(cached) " >&6
                   20014: else
                   20015:   ac_check_lib_save_LIBS=$LIBS
                   20016: LIBS="-lkrb5support  $LIBS"
                   20017: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20018: /* end confdefs.h.  */
                   20019: 
                   20020: 
                   20021: int
                   20022: main ()
                   20023: {
                   20024: return main ();
                   20025:   ;
                   20026:   return 0;
                   20027: }
                   20028: _ACEOF
                   20029: if ac_fn_c_try_link "$LINENO"; then :
                   20030:   ac_cv_lib_krb5support_main=yes
                   20031: else
                   20032:   ac_cv_lib_krb5support_main=no
                   20033: fi
                   20034: rm -f core conftest.err conftest.$ac_objext \
                   20035:     conftest$ac_exeext conftest.$ac_ext
                   20036: LIBS=$ac_check_lib_save_LIBS
                   20037: fi
                   20038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
                   20039: $as_echo "$ac_cv_lib_krb5support_main" >&6; }
                   20040: if test "x$ac_cv_lib_krb5support_main" = xyes; then :
                   20041:   SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
                   20042: fi
                   20043: 
                   20044: 
                   20045: fi
                   20046: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20047:        AUTH_OBJS="$AUTH_OBJS kerb5.lo"
                   20048:     fi
                   20049:     _LIBS="$LIBS"
                   20050:     LIBS="${LIBS} ${SUDOERS_LIBS}"
                   20051:     for ac_func in krb5_verify_user krb5_init_secure_context
                   20052: do :
                   20053:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   20054: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   20055: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   20056:   cat >>confdefs.h <<_ACEOF
                   20057: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   20058: _ACEOF
                   20059: 
                   20060: fi
                   20061: done
                   20062: 
                   20063:     for ac_func in krb5_get_init_creds_opt_alloc
                   20064: do :
                   20065:   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
                   20066: if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
                   20067:   cat >>confdefs.h <<_ACEOF
                   20068: #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
                   20069: _ACEOF
                   20070: 
                   20071:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
                   20072: $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
                   20073: if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
                   20074:   $as_echo_n "(cached) " >&6
                   20075: else
                   20076: 
                   20077:                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20078: /* end confdefs.h.  */
                   20079: #include <krb5.h>
                   20080: int
                   20081: main ()
                   20082: {
                   20083: krb5_get_init_creds_opt_free(NULL, NULL);
                   20084: 
                   20085:   ;
                   20086:   return 0;
                   20087: }
                   20088: _ACEOF
                   20089: if ac_fn_c_try_compile "$LINENO"; then :
                   20090:   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
                   20091: else
                   20092:   sudo_cv_krb5_get_init_creds_opt_free_two_args=no
                   20093: 
                   20094: fi
                   20095: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20096: 
                   20097: 
                   20098: fi
                   20099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
                   20100: $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
                   20101: 
                   20102: fi
                   20103: done
                   20104: 
                   20105:     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
                   20106:        $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
                   20107: 
                   20108:     fi
                   20109:     LIBS="$_LIBS"
1.1.1.2   misho    20110:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an instance name for Kerberos V" >&5
                   20111: $as_echo_n "checking whether to use an instance name for Kerberos V... " >&6; }
                   20112:     # Check whether --enable-kerb5-instance was given.
                   20113: if test "${enable_kerb5_instance+set}" = set; then :
                   20114:   enableval=$enable_kerb5_instance;  case "$enableval" in
                   20115:            yes)        as_fn_error $? "\"must give --enable-kerb5-instance an argument.\"" "$LINENO" 5
                   20116:                        ;;
                   20117:            no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   20118: $as_echo "no" >&6; }
                   20119:                        ;;
                   20120:            *)          cat >>confdefs.h <<EOF
                   20121: #define SUDO_KRB5_INSTANCE "$enableval"
                   20122: EOF
                   20123: 
                   20124:                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
                   20125: $as_echo "$enableval" >&6; }
                   20126:                        ;;
                   20127:        esac
                   20128: else
                   20129:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   20130: $as_echo "no" >&6; }
                   20131: fi
                   20132: 
1.1       misho    20133: fi
                   20134: 
                   20135: if test ${with_AFS-'no'} = "yes"; then
                   20136: 
                   20137:     # looks like the "standard" place for AFS libs is /usr/afsws/lib
                   20138:     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
                   20139:     for i in $AFSLIBDIRS; do
                   20140:        if test -d ${i}; then
                   20141: 
1.1.1.4   misho    20142:     case "${SUDOERS_LDFLAGS}" in
                   20143:        *"-L$i"|*"-L$i ")
                   20144:            ;;
                   20145:        *)
                   20146:            SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
                   20147:            if test X"$enable_rpath" = X"yes"; then
                   20148:                SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R$i"
                   20149:            fi
                   20150:            ;;
                   20151:     esac
1.1       misho    20152: 
                   20153:            FOUND_AFSLIBDIR=true
                   20154:        fi
                   20155:     done
                   20156:     if test -z "$FOUND_AFSLIBDIR"; then
                   20157:        { $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
                   20158: $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;}
                   20159:     fi
                   20160: 
                   20161:     # Order is important here.  Note that we build AFS_LIBS from right to left
                   20162:     # since AFS_LIBS may be initialized with BSD compat libs that must go last
                   20163:     AFS_LIBS="-laudit ${AFS_LIBS}"
                   20164:     for i in $AFSLIBDIRS; do
                   20165:        if test -f ${i}/util.a; then
                   20166:            AFS_LIBS="${i}/util.a ${AFS_LIBS}"
                   20167:            FOUND_UTIL_A=true
                   20168:            break;
                   20169:        fi
                   20170:     done
                   20171:     if test -z "$FOUND_UTIL_A"; then
                   20172:        AFS_LIBS="-lutil ${AFS_LIBS}"
                   20173:     fi
                   20174:     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
                   20175: 
                   20176:     # AFS includes may live in /usr/include on some machines...
                   20177:     for i in /usr/afsws/include; do
                   20178:        if test -d ${i}; then
1.1.1.4   misho    20179: 
                   20180:     case "${CPPFLAGS}" in
                   20181:        *"-I${i}"|*"-I${i} ")
                   20182:            ;;
                   20183:        *)
                   20184:            if test X"${CPPFLAGS}" = X""; then
                   20185:                CPPFLAGS="-I${i}"
                   20186:            else
                   20187:                CPPFLAGS="${CPPFLAGS} -I${i}"
                   20188:            fi
                   20189:            ;;
                   20190:     esac
                   20191: 
1.1       misho    20192:            FOUND_AFSINCDIR=true
                   20193:        fi
                   20194:     done
                   20195: 
                   20196:     if test -z "$FOUND_AFSLIBDIR"; then
                   20197:        { $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
                   20198: $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;}
                   20199:     fi
                   20200: 
                   20201:     AUTH_OBJS="$AUTH_OBJS afs.lo"
                   20202: fi
                   20203: 
                   20204: if test ${with_DCE-'no'} = "yes"; then
                   20205:     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
                   20206:     SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
                   20207:     AUTH_OBJS="$AUTH_OBJS dce.lo"
                   20208: fi
                   20209: 
                   20210: if test "${with_skey-'no'}" = "yes"; then
                   20211:     O_LDFLAGS="$LDFLAGS"
                   20212:     if test "$with_skey" != "yes"; then
                   20213: 
1.1.1.4   misho    20214:     case "${CPPFLAGS}" in
                   20215:        *"-I${with_skey}/include"|*"-I${with_skey}/include ")
                   20216:            ;;
                   20217:        *)
                   20218:            if test X"${CPPFLAGS}" = X""; then
                   20219:                CPPFLAGS="-I${with_skey}/include"
                   20220:            else
                   20221:                CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
                   20222:            fi
                   20223:            ;;
                   20224:     esac
1.1       misho    20225: 
1.1.1.4   misho    20226:        LDFLAGS="$LDFLAGS -L${with_skey}/lib"
1.1       misho    20227: 
1.1.1.4   misho    20228:     case "${SUDOERS_LDFLAGS}" in
                   20229:        *"-L${with_skey}/lib"|*"-L${with_skey}/lib ")
                   20230:            ;;
                   20231:        *)
                   20232:            SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
                   20233:            if test X"$enable_rpath" = X"yes"; then
                   20234:                SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_skey}/lib"
                   20235:            fi
                   20236:            ;;
                   20237:     esac
1.1       misho    20238: 
                   20239:        ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
                   20240: "
                   20241: if test "x$ac_cv_header_skey_h" = xyes; then :
                   20242:   found=yes
                   20243: else
                   20244:   found=no
                   20245: fi
                   20246: 
                   20247: 
                   20248:     else
                   20249:        found=no
                   20250:        O_CPPFLAGS="$CPPFLAGS"
                   20251:        for dir in "" "/usr/local" "/usr/contrib"; do
                   20252:            test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
                   20253:            ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
                   20254: "
                   20255: if test "x$ac_cv_header_skey_h" = xyes; then :
                   20256:   found=yes; break
                   20257: fi
                   20258: 
                   20259: 
                   20260:        done
                   20261:        if test "$found" = "no" -o -z "$dir"; then
                   20262:            CPPFLAGS="$O_CPPFLAGS"
                   20263:        else
1.1.1.4   misho    20264:            LDFLAGS="$LDFLAGS -L${dir}/lib"
1.1       misho    20265: 
1.1.1.4   misho    20266:     case "${SUDOERS_LDFLAGS}" in
                   20267:        *"-L${dir}/lib"|*"-L${dir}/lib ")
                   20268:            ;;
                   20269:        *)
                   20270:            SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
                   20271:            if test X"$enable_rpath" = X"yes"; then
                   20272:                SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${dir}/lib"
                   20273:            fi
                   20274:            ;;
                   20275:     esac
1.1       misho    20276: 
                   20277:        fi
                   20278:        if test "$found" = "no"; then
                   20279:            { $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
                   20280: $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;}
                   20281:        fi
                   20282:     fi
                   20283:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
                   20284: $as_echo_n "checking for main in -lskey... " >&6; }
                   20285: if ${ac_cv_lib_skey_main+:} false; then :
                   20286:   $as_echo_n "(cached) " >&6
                   20287: else
                   20288:   ac_check_lib_save_LIBS=$LIBS
                   20289: LIBS="-lskey  $LIBS"
                   20290: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20291: /* end confdefs.h.  */
                   20292: 
                   20293: 
                   20294: int
                   20295: main ()
                   20296: {
                   20297: return main ();
                   20298:   ;
                   20299:   return 0;
                   20300: }
                   20301: _ACEOF
                   20302: if ac_fn_c_try_link "$LINENO"; then :
                   20303:   ac_cv_lib_skey_main=yes
                   20304: else
                   20305:   ac_cv_lib_skey_main=no
                   20306: fi
                   20307: rm -f core conftest.err conftest.$ac_objext \
                   20308:     conftest$ac_exeext conftest.$ac_ext
                   20309: LIBS=$ac_check_lib_save_LIBS
                   20310: fi
                   20311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
                   20312: $as_echo "$ac_cv_lib_skey_main" >&6; }
                   20313: if test "x$ac_cv_lib_skey_main" = xyes; then :
                   20314:   found=yes
                   20315: else
                   20316:   { $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
                   20317: $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;}
                   20318: fi
                   20319: 
                   20320:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
                   20321: $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
                   20322: if ${ac_cv_lib_skey_skeyaccess+:} false; then :
                   20323:   $as_echo_n "(cached) " >&6
                   20324: else
                   20325:   ac_check_lib_save_LIBS=$LIBS
                   20326: LIBS="-lskey  $LIBS"
                   20327: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20328: /* end confdefs.h.  */
                   20329: 
                   20330: /* Override any GCC internal prototype to avoid an error.
                   20331:    Use char because int might match the return type of a GCC
                   20332:    builtin and then its argument prototype would still apply.  */
                   20333: #ifdef __cplusplus
                   20334: extern "C"
                   20335: #endif
                   20336: char skeyaccess ();
                   20337: int
                   20338: main ()
                   20339: {
                   20340: return skeyaccess ();
                   20341:   ;
                   20342:   return 0;
                   20343: }
                   20344: _ACEOF
                   20345: if ac_fn_c_try_link "$LINENO"; then :
                   20346:   ac_cv_lib_skey_skeyaccess=yes
                   20347: else
                   20348:   ac_cv_lib_skey_skeyaccess=no
                   20349: fi
                   20350: rm -f core conftest.err conftest.$ac_objext \
                   20351:     conftest$ac_exeext conftest.$ac_ext
                   20352: LIBS=$ac_check_lib_save_LIBS
                   20353: fi
                   20354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
                   20355: $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
                   20356: if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
                   20357:   $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
                   20358: 
                   20359: fi
                   20360: 
                   20361: 
                   20362:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
                   20363: $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
                   20364:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20365: /* end confdefs.h.  */
1.1.1.6 ! misho    20366: 
        !          20367: #          include <stdio.h>
        !          20368: #          include <skey.h>
1.1       misho    20369: int
                   20370: main ()
                   20371: {
                   20372: skeychallenge(NULL, NULL, NULL, 0);
                   20373: 
                   20374:   ;
                   20375:   return 0;
                   20376: }
                   20377: _ACEOF
                   20378: if ac_fn_c_try_compile "$LINENO"; then :
                   20379: 
                   20380:            $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
                   20381: 
                   20382:            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   20383: $as_echo "yes" >&6; }
                   20384: 
                   20385: else
                   20386: 
                   20387:            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   20388: $as_echo "no" >&6; }
                   20389: 
                   20390: 
                   20391: fi
                   20392: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20393: 
                   20394:     LDFLAGS="$O_LDFLAGS"
                   20395:     SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
                   20396:     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
                   20397: fi
                   20398: 
                   20399: if test "${with_opie-'no'}" = "yes"; then
                   20400:     O_LDFLAGS="$LDFLAGS"
                   20401:     if test "$with_opie" != "yes"; then
                   20402: 
1.1.1.4   misho    20403:     case "${CPPFLAGS}" in
                   20404:        *"-I${with_opie}/include"|*"-I${with_opie}/include ")
                   20405:            ;;
                   20406:        *)
                   20407:            if test X"${CPPFLAGS}" = X""; then
                   20408:                CPPFLAGS="-I${with_opie}/include"
                   20409:            else
                   20410:                CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
                   20411:            fi
                   20412:            ;;
                   20413:     esac
1.1       misho    20414: 
1.1.1.4   misho    20415:        LDFLAGS="$LDFLAGS -L${with_opie}/lib"
1.1       misho    20416: 
1.1.1.4   misho    20417:     case "${SUDOERS_LDFLAGS}" in
                   20418:        *"-L${with_opie}/lib"|*"-L${with_opie}/lib ")
                   20419:            ;;
                   20420:        *)
                   20421:            SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
                   20422:            if test X"$enable_rpath" = X"yes"; then
                   20423:                SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_opie}/lib"
                   20424:            fi
                   20425:            ;;
                   20426:     esac
1.1       misho    20427: 
                   20428:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20429: /* end confdefs.h.  */
                   20430: #include <opie.h>
                   20431: int
                   20432: main ()
                   20433: {
                   20434: 
                   20435:   ;
                   20436:   return 0;
                   20437: }
                   20438: _ACEOF
                   20439: if ac_fn_c_try_cpp "$LINENO"; then :
                   20440:   found=yes
                   20441: else
                   20442:   found=no
                   20443: fi
                   20444: rm -f conftest.err conftest.i conftest.$ac_ext
                   20445:     else
                   20446:        found=no
                   20447:        O_CPPFLAGS="$CPPFLAGS"
                   20448:        for dir in "" "/usr/local" "/usr/contrib"; do
                   20449:            test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
                   20450:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20451: /* end confdefs.h.  */
                   20452: #include <opie.h>
                   20453: int
                   20454: main ()
                   20455: {
                   20456: 
                   20457:   ;
                   20458:   return 0;
                   20459: }
                   20460: _ACEOF
                   20461: if ac_fn_c_try_cpp "$LINENO"; then :
                   20462:   found=yes; break
                   20463: fi
                   20464: rm -f conftest.err conftest.i conftest.$ac_ext
                   20465:        done
                   20466:        if test "$found" = "no" -o -z "$dir"; then
                   20467:            CPPFLAGS="$O_CPPFLAGS"
                   20468:        else
1.1.1.4   misho    20469:            LDFLAGS="$LDFLAGS -L${dir}/lib"
1.1       misho    20470: 
1.1.1.4   misho    20471:     case "${SUDOERS_LDFLAGS}" in
                   20472:        *"-L${dir}/lib"|*"-L${dir}/lib ")
                   20473:            ;;
                   20474:        *)
                   20475:            SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
                   20476:            if test X"$enable_rpath" = X"yes"; then
                   20477:                SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${dir}/lib"
                   20478:            fi
                   20479:            ;;
                   20480:     esac
1.1       misho    20481: 
                   20482:        fi
                   20483:        if test "$found" = "no"; then
                   20484:            { $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
                   20485: $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;}
                   20486:        fi
                   20487:     fi
                   20488:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
                   20489: $as_echo_n "checking for main in -lopie... " >&6; }
                   20490: if ${ac_cv_lib_opie_main+:} false; then :
                   20491:   $as_echo_n "(cached) " >&6
                   20492: else
                   20493:   ac_check_lib_save_LIBS=$LIBS
                   20494: LIBS="-lopie  $LIBS"
                   20495: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20496: /* end confdefs.h.  */
                   20497: 
                   20498: 
                   20499: int
                   20500: main ()
                   20501: {
                   20502: return main ();
                   20503:   ;
                   20504:   return 0;
                   20505: }
                   20506: _ACEOF
                   20507: if ac_fn_c_try_link "$LINENO"; then :
                   20508:   ac_cv_lib_opie_main=yes
                   20509: else
                   20510:   ac_cv_lib_opie_main=no
                   20511: fi
                   20512: rm -f core conftest.err conftest.$ac_objext \
                   20513:     conftest$ac_exeext conftest.$ac_ext
                   20514: LIBS=$ac_check_lib_save_LIBS
                   20515: fi
                   20516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
                   20517: $as_echo "$ac_cv_lib_opie_main" >&6; }
                   20518: if test "x$ac_cv_lib_opie_main" = xyes; then :
                   20519:   found=yes
                   20520: else
                   20521:   { $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
                   20522: $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;}
                   20523: fi
                   20524: 
                   20525:     LDFLAGS="$O_LDFLAGS"
                   20526:     SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
                   20527:     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
                   20528: fi
                   20529: 
                   20530: if test ${with_passwd-'no'} != "no"; then
                   20531:                 if test -z "$LIB_CRYPT"; then
                   20532:        _LIBS="$LIBS"
                   20533:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
                   20534: $as_echo_n "checking for library containing crypt... " >&6; }
                   20535: if ${ac_cv_search_crypt+:} false; then :
                   20536:   $as_echo_n "(cached) " >&6
                   20537: else
                   20538:   ac_func_search_save_LIBS=$LIBS
                   20539: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20540: /* end confdefs.h.  */
                   20541: 
                   20542: /* Override any GCC internal prototype to avoid an error.
                   20543:    Use char because int might match the return type of a GCC
                   20544:    builtin and then its argument prototype would still apply.  */
                   20545: #ifdef __cplusplus
                   20546: extern "C"
                   20547: #endif
                   20548: char crypt ();
                   20549: int
                   20550: main ()
                   20551: {
                   20552: return crypt ();
                   20553:   ;
                   20554:   return 0;
                   20555: }
                   20556: _ACEOF
                   20557: for ac_lib in '' crypt crypt_d ufc; do
                   20558:   if test -z "$ac_lib"; then
                   20559:     ac_res="none required"
                   20560:   else
                   20561:     ac_res=-l$ac_lib
                   20562:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   20563:   fi
                   20564:   if ac_fn_c_try_link "$LINENO"; then :
                   20565:   ac_cv_search_crypt=$ac_res
                   20566: fi
                   20567: rm -f core conftest.err conftest.$ac_objext \
                   20568:     conftest$ac_exeext
                   20569:   if ${ac_cv_search_crypt+:} false; then :
                   20570:   break
                   20571: fi
                   20572: done
                   20573: if ${ac_cv_search_crypt+:} false; then :
                   20574: 
                   20575: else
                   20576:   ac_cv_search_crypt=no
                   20577: fi
                   20578: rm conftest.$ac_ext
                   20579: LIBS=$ac_func_search_save_LIBS
                   20580: fi
                   20581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
                   20582: $as_echo "$ac_cv_search_crypt" >&6; }
                   20583: ac_res=$ac_cv_search_crypt
                   20584: if test "$ac_res" != no; then :
                   20585:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   20586:   test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
                   20587: fi
                   20588: 
                   20589:        LIBS="$_LIBS"
                   20590:     fi
                   20591: 
                   20592:     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
                   20593:        _LIBS="$LIBS"
                   20594:        LIBS="$LIBS $shadow_libs"
                   20595:        found=no
                   20596:        for ac_func in $shadow_funcs
                   20597: do :
                   20598:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   20599: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   20600: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   20601:   cat >>confdefs.h <<_ACEOF
                   20602: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   20603: _ACEOF
                   20604:  found=yes
                   20605: fi
                   20606: done
                   20607: 
                   20608:        if test "$found" = "yes"; then
                   20609:            SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
                   20610:        elif test -n "$shadow_libs_optional"; then
                   20611:            LIBS="$LIBS $shadow_libs_optional"
                   20612:            for ac_func in $shadow_funcs
                   20613: do :
                   20614:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   20615: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   20616: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   20617:   cat >>confdefs.h <<_ACEOF
                   20618: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   20619: _ACEOF
                   20620:  found=yes
                   20621: fi
                   20622: done
                   20623: 
                   20624:            if test "$found" = "yes"; then
                   20625:                SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
                   20626:            fi
                   20627:        fi
                   20628:        if test "$found" = "yes"; then
                   20629:            case "$shadow_funcs" in
                   20630:                *getprpwnam*) SECUREWARE=1;;
                   20631:            esac
                   20632:            test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
                   20633:        else
                   20634:            LIBS="$_LIBS"
                   20635:        fi
                   20636:        CHECKSHADOW=false
                   20637:     fi
                   20638:     if test "$CHECKSHADOW" = "true"; then
                   20639:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
                   20640: $as_echo_n "checking for library containing getspnam... " >&6; }
                   20641: if ${ac_cv_search_getspnam+:} false; then :
                   20642:   $as_echo_n "(cached) " >&6
                   20643: else
                   20644:   ac_func_search_save_LIBS=$LIBS
                   20645: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20646: /* end confdefs.h.  */
                   20647: 
                   20648: /* Override any GCC internal prototype to avoid an error.
                   20649:    Use char because int might match the return type of a GCC
                   20650:    builtin and then its argument prototype would still apply.  */
                   20651: #ifdef __cplusplus
                   20652: extern "C"
                   20653: #endif
                   20654: char getspnam ();
                   20655: int
                   20656: main ()
                   20657: {
                   20658: return getspnam ();
                   20659:   ;
                   20660:   return 0;
                   20661: }
                   20662: _ACEOF
                   20663: for ac_lib in '' gen; do
                   20664:   if test -z "$ac_lib"; then
                   20665:     ac_res="none required"
                   20666:   else
                   20667:     ac_res=-l$ac_lib
                   20668:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   20669:   fi
                   20670:   if ac_fn_c_try_link "$LINENO"; then :
                   20671:   ac_cv_search_getspnam=$ac_res
                   20672: fi
                   20673: rm -f core conftest.err conftest.$ac_objext \
                   20674:     conftest$ac_exeext
                   20675:   if ${ac_cv_search_getspnam+:} false; then :
                   20676:   break
                   20677: fi
                   20678: done
                   20679: if ${ac_cv_search_getspnam+:} false; then :
                   20680: 
                   20681: else
                   20682:   ac_cv_search_getspnam=no
                   20683: fi
                   20684: rm conftest.$ac_ext
                   20685: LIBS=$ac_func_search_save_LIBS
                   20686: fi
                   20687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
                   20688: $as_echo "$ac_cv_search_getspnam" >&6; }
                   20689: ac_res=$ac_cv_search_getspnam
                   20690: if test "$ac_res" != no; then :
                   20691:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   20692:   $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
                   20693:  CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
                   20694: fi
                   20695: 
                   20696:     fi
                   20697:     if test "$CHECKSHADOW" = "true"; then
                   20698:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
                   20699: $as_echo_n "checking for library containing getprpwnam... " >&6; }
                   20700: if ${ac_cv_search_getprpwnam+:} false; then :
                   20701:   $as_echo_n "(cached) " >&6
                   20702: else
                   20703:   ac_func_search_save_LIBS=$LIBS
                   20704: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20705: /* end confdefs.h.  */
                   20706: 
                   20707: /* Override any GCC internal prototype to avoid an error.
                   20708:    Use char because int might match the return type of a GCC
                   20709:    builtin and then its argument prototype would still apply.  */
                   20710: #ifdef __cplusplus
                   20711: extern "C"
                   20712: #endif
                   20713: char getprpwnam ();
                   20714: int
                   20715: main ()
                   20716: {
                   20717: return getprpwnam ();
                   20718:   ;
                   20719:   return 0;
                   20720: }
                   20721: _ACEOF
                   20722: for ac_lib in '' sec security prot; do
                   20723:   if test -z "$ac_lib"; then
                   20724:     ac_res="none required"
                   20725:   else
                   20726:     ac_res=-l$ac_lib
                   20727:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   20728:   fi
                   20729:   if ac_fn_c_try_link "$LINENO"; then :
                   20730:   ac_cv_search_getprpwnam=$ac_res
                   20731: fi
                   20732: rm -f core conftest.err conftest.$ac_objext \
                   20733:     conftest$ac_exeext
                   20734:   if ${ac_cv_search_getprpwnam+:} false; then :
                   20735:   break
                   20736: fi
                   20737: done
                   20738: if ${ac_cv_search_getprpwnam+:} false; then :
                   20739: 
                   20740: else
                   20741:   ac_cv_search_getprpwnam=no
                   20742: fi
                   20743: rm conftest.$ac_ext
                   20744: LIBS=$ac_func_search_save_LIBS
                   20745: fi
                   20746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
                   20747: $as_echo "$ac_cv_search_getprpwnam" >&6; }
                   20748: ac_res=$ac_cv_search_getprpwnam
                   20749: if test "$ac_res" != no; then :
                   20750:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   20751:   $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
                   20752:  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
                   20753: fi
                   20754: 
                   20755:     fi
                   20756:     if test -n "$SECUREWARE"; then
                   20757:        for ac_func in bigcrypt set_auth_parameters initprivs
                   20758: do :
                   20759:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   20760: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   20761: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   20762:   cat >>confdefs.h <<_ACEOF
                   20763: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   20764: _ACEOF
                   20765: 
                   20766: fi
                   20767: done
                   20768: 
                   20769:        AUTH_OBJS="$AUTH_OBJS secureware.lo"
                   20770:     fi
                   20771: fi
                   20772: 
1.1.1.6 ! misho    20773: if test X"$enable_poll" = X""; then
        !          20774:     for ac_func in poll
        !          20775: do :
        !          20776:   ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
        !          20777: if test "x$ac_cv_func_poll" = xyes; then :
        !          20778:   cat >>confdefs.h <<_ACEOF
        !          20779: #define HAVE_POLL 1
        !          20780: _ACEOF
        !          20781:  enable_poll=yes
        !          20782: else
        !          20783:   enable_poll=no
        !          20784: fi
        !          20785: done
        !          20786: 
        !          20787: elif test X"$enable_poll" = X"yes"; then
        !          20788:     $as_echo "#define HAVE_POLL 1" >>confdefs.h
        !          20789: 
        !          20790: fi
        !          20791: if test "$enable_poll" = "yes"; then
        !          20792:     COMMON_OBJS="${COMMON_OBJS} event_poll.lo"
        !          20793: else
        !          20794:     COMMON_OBJS="${COMMON_OBJS} event_select.lo"
        !          20795: fi
        !          20796: 
1.1       misho    20797: if test ${with_ldap-'no'} != "no"; then
1.1.1.4   misho    20798:     O_LDFLAGS="$LDFLAGS"
1.1       misho    20799:     if test "$with_ldap" != "yes"; then
                   20800: 
1.1.1.4   misho    20801:     case "${SUDOERS_LDFLAGS}" in
                   20802:        *"-L${with_ldap}/lib"|*"-L${with_ldap}/lib ")
                   20803:            ;;
                   20804:        *)
                   20805:            SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
                   20806:            if test X"$enable_rpath" = X"yes"; then
                   20807:                SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_ldap}/lib"
                   20808:            fi
                   20809:            ;;
                   20810:     esac
1.1       misho    20811: 
1.1.1.4   misho    20812:        LDFLAGS="$LDFLAGS -L${with_ldap}/lib"
1.1       misho    20813: 
1.1.1.4   misho    20814:     case "${CPPFLAGS}" in
                   20815:        *"-I${with_ldap}/include"|*"-I${with_ldap}/include ")
                   20816:            ;;
                   20817:        *)
                   20818:            if test X"${CPPFLAGS}" = X""; then
                   20819:                CPPFLAGS="-I${with_ldap}/include"
                   20820:            else
                   20821:                CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
                   20822:            fi
                   20823:            ;;
                   20824:     esac
1.1       misho    20825: 
                   20826:        with_ldap=yes
                   20827:     fi
                   20828:     SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
                   20829:     LDAP=""
                   20830: 
                   20831:     _LIBS="$LIBS"
1.1.1.4   misho    20832:     LDAP_LIBS=""
                   20833:     IBMLDAP_EXTRA=""
1.1       misho    20834:     found=no
1.1.1.4   misho    20835:     # On HP-UX, libibmldap has a hidden dependency on libCsup
                   20836:     case "$host_os" in
                   20837:        hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCsup" >&5
                   20838: $as_echo_n "checking for main in -lCsup... " >&6; }
                   20839: if ${ac_cv_lib_Csup_main+:} false; then :
                   20840:   $as_echo_n "(cached) " >&6
                   20841: else
                   20842:   ac_check_lib_save_LIBS=$LIBS
                   20843: LIBS="-lCsup  $LIBS"
                   20844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       misho    20845: /* end confdefs.h.  */
1.1.1.4   misho    20846: 
                   20847: 
1.1       misho    20848: int
                   20849: main ()
                   20850: {
1.1.1.4   misho    20851: return main ();
1.1       misho    20852:   ;
                   20853:   return 0;
                   20854: }
                   20855: _ACEOF
                   20856: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.4   misho    20857:   ac_cv_lib_Csup_main=yes
                   20858: else
                   20859:   ac_cv_lib_Csup_main=no
1.1       misho    20860: fi
                   20861: rm -f core conftest.err conftest.$ac_objext \
                   20862:     conftest$ac_exeext conftest.$ac_ext
1.1.1.4   misho    20863: LIBS=$ac_check_lib_save_LIBS
                   20864: fi
                   20865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Csup_main" >&5
                   20866: $as_echo "$ac_cv_lib_Csup_main" >&6; }
                   20867: if test "x$ac_cv_lib_Csup_main" = xyes; then :
                   20868:   IBMLDAP_EXTRA=" -lCsup"
                   20869: fi
                   20870: ;;
                   20871:     esac
                   20872:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_init" >&5
                   20873: $as_echo_n "checking for library containing ldap_init... " >&6; }
                   20874: if ${ac_cv_search_ldap_init+:} false; then :
                   20875:   $as_echo_n "(cached) " >&6
                   20876: else
                   20877:   ac_func_search_save_LIBS=$LIBS
                   20878: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       misho    20879: /* end confdefs.h.  */
1.1.1.4   misho    20880: 
                   20881: /* Override any GCC internal prototype to avoid an error.
                   20882:    Use char because int might match the return type of a GCC
                   20883:    builtin and then its argument prototype would still apply.  */
                   20884: #ifdef __cplusplus
                   20885: extern "C"
                   20886: #endif
                   20887: char ldap_init ();
1.1       misho    20888: int
                   20889: main ()
                   20890: {
1.1.1.4   misho    20891: return ldap_init ();
1.1       misho    20892:   ;
                   20893:   return 0;
                   20894: }
                   20895: _ACEOF
1.1.1.6 ! misho    20896: for ac_lib in '' "ibmldap${IBMLDAP_EXTRA}" "ibmldap -lidsldif${IBMLDAP_EXTRA}" "ldap" "ldap -llber" "ldap -llber -lssl -lcrypto" "ibmldap${IBMLDAP_EXTRA}"; do
1.1.1.4   misho    20897:   if test -z "$ac_lib"; then
                   20898:     ac_res="none required"
                   20899:   else
                   20900:     ac_res=-l$ac_lib
                   20901:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   20902:   fi
                   20903:   if ac_fn_c_try_link "$LINENO"; then :
                   20904:   ac_cv_search_ldap_init=$ac_res
1.1       misho    20905: fi
                   20906: rm -f core conftest.err conftest.$ac_objext \
1.1.1.4   misho    20907:     conftest$ac_exeext
                   20908:   if ${ac_cv_search_ldap_init+:} false; then :
                   20909:   break
                   20910: fi
                   20911: done
                   20912: if ${ac_cv_search_ldap_init+:} false; then :
                   20913: 
                   20914: else
                   20915:   ac_cv_search_ldap_init=no
                   20916: fi
                   20917: rm conftest.$ac_ext
                   20918: LIBS=$ac_func_search_save_LIBS
                   20919: fi
                   20920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
                   20921: $as_echo "$ac_cv_search_ldap_init" >&6; }
                   20922: ac_res=$ac_cv_search_ldap_init
                   20923: if test "$ac_res" != no; then :
                   20924:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   20925: 
                   20926:        test "$ac_res" != "none required" && LDAP_LIBS="$ac_res"
                   20927:        found=yes
                   20928: 
                   20929: fi
                   20930: 
                   20931:     # If nothing linked, try -lldap and hope for the best
                   20932:     if test "$found" = "no"; then
1.1       misho    20933:        LDAP_LIBS="-lldap"
                   20934:     fi
1.1.1.4   misho    20935:     LIBS="${_LIBS} ${LDAP_LIBS}"
1.1       misho    20936:         OLIBS="$LIBS"
1.1.1.6 ! misho    20937:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h defines LBER_OPT_DEBUG_LEVEL" >&5
        !          20938: $as_echo_n "checking whether lber.h defines LBER_OPT_DEBUG_LEVEL... " >&6; }
        !          20939:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          20940: /* end confdefs.h.  */
        !          20941: #include <sys/types.h>
        !          20942: #   include <lber.h>
        !          20943: int
        !          20944: main ()
        !          20945: {
        !          20946: int opt=LBER_OPT_DEBUG_LEVEL;
        !          20947:   ;
        !          20948:   return 0;
        !          20949: }
        !          20950: _ACEOF
        !          20951: if ac_fn_c_try_compile "$LINENO"; then :
        !          20952: 
        !          20953:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
        !          20954: $as_echo "yes" >&6; }
        !          20955:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
1.1       misho    20956: $as_echo_n "checking for library containing ber_set_option... " >&6; }
                   20957: if ${ac_cv_search_ber_set_option+:} false; then :
                   20958:   $as_echo_n "(cached) " >&6
                   20959: else
                   20960:   ac_func_search_save_LIBS=$LIBS
                   20961: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20962: /* end confdefs.h.  */
                   20963: 
                   20964: /* Override any GCC internal prototype to avoid an error.
                   20965:    Use char because int might match the return type of a GCC
                   20966:    builtin and then its argument prototype would still apply.  */
                   20967: #ifdef __cplusplus
                   20968: extern "C"
                   20969: #endif
                   20970: char ber_set_option ();
                   20971: int
                   20972: main ()
                   20973: {
                   20974: return ber_set_option ();
                   20975:   ;
                   20976:   return 0;
                   20977: }
                   20978: _ACEOF
                   20979: for ac_lib in '' lber; do
                   20980:   if test -z "$ac_lib"; then
                   20981:     ac_res="none required"
                   20982:   else
                   20983:     ac_res=-l$ac_lib
                   20984:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   20985:   fi
                   20986:   if ac_fn_c_try_link "$LINENO"; then :
                   20987:   ac_cv_search_ber_set_option=$ac_res
                   20988: fi
                   20989: rm -f core conftest.err conftest.$ac_objext \
                   20990:     conftest$ac_exeext
                   20991:   if ${ac_cv_search_ber_set_option+:} false; then :
                   20992:   break
                   20993: fi
                   20994: done
                   20995: if ${ac_cv_search_ber_set_option+:} false; then :
                   20996: 
                   20997: else
                   20998:   ac_cv_search_ber_set_option=no
                   20999: fi
                   21000: rm conftest.$ac_ext
                   21001: LIBS=$ac_func_search_save_LIBS
                   21002: fi
                   21003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
                   21004: $as_echo "$ac_cv_search_ber_set_option" >&6; }
                   21005: ac_res=$ac_cv_search_ber_set_option
                   21006: if test "$ac_res" != no; then :
                   21007:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   21008:   found=yes
                   21009: else
                   21010:   found=no
                   21011: fi
                   21012: 
1.1.1.6 ! misho    21013:        if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
        !          21014:            LDAP_LIBS="$LDAP_LIBS -llber"
        !          21015:        fi
        !          21016: 
        !          21017: else
        !          21018: 
        !          21019:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          21020: $as_echo "no" >&6; }
        !          21021: 
        !          21022: fi
        !          21023: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       misho    21024:         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
                   21025: $as_echo_n "checking whether lber.h is needed... " >&6; }
                   21026:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21027: /* end confdefs.h.  */
                   21028: #include <sys/types.h>
1.1.1.6 ! misho    21029: #   include <ldap.h>
1.1       misho    21030: int
                   21031: main ()
                   21032: {
                   21033: (void)ldap_init(0, 0)
                   21034:   ;
                   21035:   return 0;
                   21036: }
                   21037: _ACEOF
                   21038: if ac_fn_c_try_link "$LINENO"; then :
                   21039:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   21040: $as_echo "no" >&6; }
                   21041: else
                   21042: 
                   21043:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   21044: $as_echo "yes" >&6; }
                   21045:     $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
                   21046: 
                   21047: fi
                   21048: rm -f core conftest.err conftest.$ac_objext \
                   21049:     conftest$ac_exeext conftest.$ac_ext
                   21050: 
                   21051:     for ac_header in sasl/sasl.h sasl.h
                   21052: do :
                   21053:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   21054: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   21055: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   21056:   cat >>confdefs.h <<_ACEOF
                   21057: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   21058: _ACEOF
1.1.1.4   misho    21059: 
                   21060:        for ac_func in ldap_sasl_interactive_bind_s
1.1       misho    21061: do :
                   21062:   ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
                   21063: if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
                   21064:   cat >>confdefs.h <<_ACEOF
                   21065: #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
                   21066: _ACEOF
                   21067: 
                   21068: fi
                   21069: done
                   21070: 
1.1.1.4   misho    21071:        break
                   21072: 
1.1       misho    21073: fi
                   21074: 
                   21075: done
                   21076: 
                   21077:     for ac_header in ldap_ssl.h mps/ldap_ssl.h
                   21078: do :
                   21079:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   21080: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
                   21081: "
                   21082: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   21083:   cat >>confdefs.h <<_ACEOF
                   21084: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   21085: _ACEOF
                   21086:  break
                   21087: fi
                   21088: 
                   21089: done
                   21090: 
1.1.1.3   misho    21091:     for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_init ldap_ssl_client_init ldap_start_tls_s_np
1.1       misho    21092: do :
                   21093:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   21094: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   21095: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   21096:   cat >>confdefs.h <<_ACEOF
                   21097: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   21098: _ACEOF
                   21099: 
                   21100: fi
                   21101: done
                   21102: 
                   21103:     for ac_func in ldap_search_ext_s ldap_search_st
                   21104: do :
                   21105:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   21106: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   21107: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   21108:   cat >>confdefs.h <<_ACEOF
                   21109: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   21110: _ACEOF
                   21111:  break
                   21112: fi
                   21113: done
                   21114: 
                   21115: 
                   21116:     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
                   21117:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
                   21118: $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
                   21119: if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
                   21120:   $as_echo_n "(cached) " >&6
                   21121: else
                   21122:   ac_check_lib_save_LIBS=$LIBS
                   21123: LIBS="-lgssapi  $LIBS"
                   21124: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21125: /* end confdefs.h.  */
                   21126: 
                   21127: /* Override any GCC internal prototype to avoid an error.
                   21128:    Use char because int might match the return type of a GCC
                   21129:    builtin and then its argument prototype would still apply.  */
                   21130: #ifdef __cplusplus
                   21131: extern "C"
                   21132: #endif
                   21133: char gss_krb5_ccache_name ();
                   21134: int
                   21135: main ()
                   21136: {
                   21137: return gss_krb5_ccache_name ();
                   21138:   ;
                   21139:   return 0;
                   21140: }
                   21141: _ACEOF
                   21142: if ac_fn_c_try_link "$LINENO"; then :
                   21143:   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
                   21144: else
                   21145:   ac_cv_lib_gssapi_gss_krb5_ccache_name=no
                   21146: fi
                   21147: rm -f core conftest.err conftest.$ac_objext \
                   21148:     conftest$ac_exeext conftest.$ac_ext
                   21149: LIBS=$ac_check_lib_save_LIBS
                   21150: fi
                   21151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
                   21152: $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
                   21153: if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
                   21154:   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
                   21155: 
                   21156:            LDAP_LIBS="${LDAP_LIBS} -lgssapi"
                   21157: else
                   21158:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
                   21159: $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
                   21160: if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
                   21161:   $as_echo_n "(cached) " >&6
                   21162: else
                   21163:   ac_check_lib_save_LIBS=$LIBS
                   21164: LIBS="-lgssapi_krb5  $LIBS"
                   21165: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21166: /* end confdefs.h.  */
                   21167: 
                   21168: /* Override any GCC internal prototype to avoid an error.
                   21169:    Use char because int might match the return type of a GCC
                   21170:    builtin and then its argument prototype would still apply.  */
                   21171: #ifdef __cplusplus
                   21172: extern "C"
                   21173: #endif
                   21174: char gss_krb5_ccache_name ();
                   21175: int
                   21176: main ()
                   21177: {
                   21178: return gss_krb5_ccache_name ();
                   21179:   ;
                   21180:   return 0;
                   21181: }
                   21182: _ACEOF
                   21183: if ac_fn_c_try_link "$LINENO"; then :
                   21184:   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
                   21185: else
                   21186:   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
                   21187: fi
                   21188: rm -f core conftest.err conftest.$ac_objext \
                   21189:     conftest$ac_exeext conftest.$ac_ext
                   21190: LIBS=$ac_check_lib_save_LIBS
                   21191: fi
                   21192: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
                   21193: $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
                   21194: if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
                   21195:   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
                   21196: 
                   21197:                LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
                   21198: fi
                   21199: 
                   21200: 
                   21201: fi
                   21202: 
                   21203: 
                   21204:        # gssapi headers may be separate or part of Kerberos V
                   21205:        found=no
                   21206:        O_CPPFLAGS="$CPPFLAGS"
                   21207:        for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
                   21208:            test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
                   21209:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21210: /* end confdefs.h.  */
                   21211: #include <gssapi/gssapi.h>
                   21212: int
                   21213: main ()
                   21214: {
                   21215: 
                   21216:   ;
                   21217:   return 0;
                   21218: }
                   21219: _ACEOF
                   21220: if ac_fn_c_try_cpp "$LINENO"; then :
                   21221:   found="gssapi/gssapi.h"; break
                   21222: else
                   21223:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21224: /* end confdefs.h.  */
                   21225: #include <gssapi.h>
                   21226: int
                   21227: main ()
                   21228: {
                   21229: 
                   21230:   ;
                   21231:   return 0;
                   21232: }
                   21233: _ACEOF
                   21234: if ac_fn_c_try_cpp "$LINENO"; then :
                   21235:   found="gssapi.h"; break
                   21236: fi
                   21237: rm -f conftest.err conftest.i conftest.$ac_ext
                   21238: fi
                   21239: rm -f conftest.err conftest.i conftest.$ac_ext
                   21240:        done
                   21241:        if test X"$found" != X"no"; then
                   21242:            for ac_header in $found
                   21243: do :
                   21244:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   21245: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   21246: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   21247:   cat >>confdefs.h <<_ACEOF
                   21248: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   21249: _ACEOF
                   21250: 
                   21251: fi
                   21252: 
                   21253: done
                   21254: 
                   21255:            if test X"$found" = X"gssapi/gssapi.h"; then
                   21256:                for ac_header in gssapi/gssapi_krb5.h
                   21257: do :
                   21258:   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
                   21259: if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
                   21260:   cat >>confdefs.h <<_ACEOF
                   21261: #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
                   21262: _ACEOF
                   21263: 
                   21264: fi
                   21265: 
                   21266: done
                   21267: 
                   21268:            fi
                   21269:        else
                   21270:            CPPFLAGS="$O_CPPFLAGS"
                   21271:            { $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
                   21272: $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;}
                   21273:        fi
                   21274:     fi
                   21275: 
                   21276:     SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
                   21277:     LIBS="$_LIBS"
1.1.1.4   misho    21278:     LDFLAGS="$O_LDFLAGS"
1.1       misho    21279: fi
                   21280: 
                   21281: #
                   21282: # How to do dynamic object loading.
                   21283: # We support dlopen() and sh_load(), else fall back to static loading.
                   21284: #
                   21285: case "$lt_cv_dlopen" in
                   21286:     dlopen)
                   21287:        $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
                   21288: 
1.1.1.6 ! misho    21289:        if test "$enable_static_sudoers" = "yes"; then
        !          21290:            $as_echo "#define STATIC_SUDOERS_PLUGIN 1" >>confdefs.h
        !          21291: 
        !          21292:            SUDO_OBJS="${SUDO_OBJS} preload.o"
        !          21293:            STATIC_SUDOERS="\$(top_builddir)/plugins/sudoers/sudoers.la"
        !          21294:            SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} --tag=disable-shared -static"
        !          21295:            LT_STATIC=""
        !          21296:        else
        !          21297:            SUDO_OBJS="$SUDO_OBJS locale_stub.o"
        !          21298:            LT_STATIC="--tag=disable-static"
        !          21299:        fi
1.1       misho    21300:        ;;
                   21301:     shl_load)
                   21302:        $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
                   21303: 
1.1.1.6 ! misho    21304:        if test "$enable_static_sudoers" = "yes"; then
        !          21305:            $as_echo "#define STATIC_SUDOERS_PLUGIN 1" >>confdefs.h
1.1       misho    21306: 
1.1.1.6 ! misho    21307:            SUDO_OBJS="${SUDO_OBJS} preload.o"
        !          21308:            STATIC_SUDOERS="\$(top_builddir)/plugins/sudoers/sudoers.la"
        !          21309:            SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} --tag=disable-shared -static"
        !          21310:            LT_STATIC=""
        !          21311:        else
        !          21312:            SUDO_OBJS="$SUDO_OBJS locale_stub.o"
        !          21313:            LT_STATIC="--tag=disable-static"
        !          21314:        fi
1.1       misho    21315:        ;;
                   21316:     *)
                   21317:        if test X"${ac_cv_func_dlopen}" = X"yes"; then
                   21318:            as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
                   21319:        fi
                   21320:        # Preload sudoers module symbols
                   21321:        SUDO_OBJS="${SUDO_OBJS} preload.o"
1.1.1.6 ! misho    21322:        STATIC_SUDOERS="\$(top_builddir)/plugins/sudoers/sudoers.la"
1.1       misho    21323:        LT_STATIC=""
                   21324:        ;;
                   21325: esac
                   21326: 
1.1.1.3   misho    21327: # On HP-UX, you cannot dlopen() a shared object that uses pthreads unless
                   21328: # the main program is linked against -lpthread.  We have no knowledge of
                   21329: # what libraries a plugin may depend on (e.g. HP-UX LDAP which uses pthreads)
                   21330: # so always link against -lpthread on HP-UX if it is available.
1.1       misho    21331: # This check should go after all other libraries tests.
1.1.1.4   misho    21332: case "$host_os" in
                   21333:     hpux*)
1.1       misho    21334:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
                   21335: $as_echo_n "checking for main in -lpthread... " >&6; }
                   21336: if ${ac_cv_lib_pthread_main+:} false; then :
                   21337:   $as_echo_n "(cached) " >&6
                   21338: else
                   21339:   ac_check_lib_save_LIBS=$LIBS
                   21340: LIBS="-lpthread  $LIBS"
                   21341: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21342: /* end confdefs.h.  */
                   21343: 
                   21344: 
                   21345: int
                   21346: main ()
                   21347: {
                   21348: return main ();
                   21349:   ;
                   21350:   return 0;
                   21351: }
                   21352: _ACEOF
                   21353: if ac_fn_c_try_link "$LINENO"; then :
                   21354:   ac_cv_lib_pthread_main=yes
                   21355: else
                   21356:   ac_cv_lib_pthread_main=no
                   21357: fi
                   21358: rm -f core conftest.err conftest.$ac_objext \
                   21359:     conftest$ac_exeext conftest.$ac_ext
                   21360: LIBS=$ac_check_lib_save_LIBS
                   21361: fi
                   21362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   21363: $as_echo "$ac_cv_lib_pthread_main" >&6; }
                   21364: if test "x$ac_cv_lib_pthread_main" = xyes; then :
                   21365:   SUDO_LIBS="${SUDO_LIBS} -lpthread"
                   21366: fi
                   21367: 
1.1.1.4   misho    21368:        OSDEFS="${OSDEFS} -D_REENTRANT"
1.1       misho    21369:        ;;
                   21370: esac
                   21371: 
                   21372: if test "$utmp_style" = "LEGACY"; then
                   21373:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
                   21374: $as_echo_n "checking for utmp file path... " >&6; }
                   21375: found=no
                   21376: for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
                   21377:     if test -r "$p"; then
                   21378:        found=yes
                   21379:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
                   21380: $as_echo "$p" >&6; }
                   21381:        cat >>confdefs.h <<EOF
                   21382: #define _PATH_UTMP "$p"
                   21383: EOF
                   21384: 
                   21385:        break
                   21386:     fi
                   21387: done
                   21388: if test X"$found" != X"yes"; then
                   21389:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   21390: $as_echo "not found" >&6; }
                   21391: fi
                   21392: 
                   21393: fi
                   21394: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
                   21395: $as_echo_n "checking for log file location... " >&6; }
                   21396: if test -n "$with_logpath"; then
                   21397:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
                   21398: $as_echo "$with_logpath" >&6; }
                   21399:     cat >>confdefs.h <<EOF
                   21400: #define _PATH_SUDO_LOGFILE "$with_logpath"
                   21401: EOF
                   21402: 
                   21403: elif test -d "/var/log"; then
                   21404:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
                   21405: $as_echo "/var/log/sudo.log" >&6; }
                   21406:     cat >>confdefs.h <<\EOF
                   21407: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
                   21408: EOF
                   21409: 
                   21410: elif test -d "/var/adm"; then
                   21411:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
                   21412: $as_echo "/var/adm/sudo.log" >&6; }
                   21413:     cat >>confdefs.h <<\EOF
                   21414: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
                   21415: EOF
                   21416: 
                   21417: elif test -d "/usr/adm"; then
                   21418:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
                   21419: $as_echo "/usr/adm/sudo.log" >&6; }
                   21420:     cat >>confdefs.h <<\EOF
                   21421: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
                   21422: EOF
                   21423: 
                   21424: else
                   21425:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
                   21426: $as_echo "unknown" >&6; }
                   21427: fi
                   21428: 
1.1.1.6 ! misho    21429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sudo run dir location" >&5
        !          21430: $as_echo_n "checking for sudo run dir location... " >&6; }
        !          21431: rundir="$with_rundir"
        !          21432: if test -z "$rundir"; then
        !          21433:     for d in /var/run /var/db /var/lib /var/adm /usr/adm; do
        !          21434:        if test -d "$d"; then
        !          21435:            rundir="$d/sudo"
        !          21436:            break
        !          21437:        fi
        !          21438:     done
        !          21439: fi
        !          21440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rundir" >&5
        !          21441: $as_echo "$rundir" >&6; }
        !          21442: cat >>confdefs.h <<EOF
        !          21443: #define _PATH_SUDO_TIMEDIR "$rundir/ts"
        !          21444: EOF
        !          21445: 
        !          21446: 
        !          21447: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sudo var dir location" >&5
        !          21448: $as_echo_n "checking for sudo var dir location... " >&6; }
        !          21449: vardir="$with_vardir"
        !          21450: if test -z "$vardir"; then
1.1       misho    21451:     for d in /var/db /var/lib /var/adm /usr/adm; do
                   21452:        if test -d "$d"; then
1.1.1.6 ! misho    21453:            vardir="$d/sudo"
1.1       misho    21454:            break
                   21455:        fi
                   21456:     done
                   21457: fi
1.1.1.6 ! misho    21458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vardir" >&5
        !          21459: $as_echo "$vardir" >&6; }
1.1       misho    21460: cat >>confdefs.h <<EOF
1.1.1.6 ! misho    21461: #define _PATH_SUDO_LECTURE_DIR "$vardir/lectured"
1.1       misho    21462: EOF
                   21463: 
                   21464: 
                   21465: 
                   21466:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
                   21467: $as_echo_n "checking for I/O log dir location... " >&6; }
                   21468:     if test "${with_iologdir-yes}" != "yes"; then
                   21469:        iolog_dir="$with_iologdir"
                   21470:     elif test -d "/var/log"; then
                   21471:        iolog_dir="/var/log/sudo-io"
                   21472:     elif test -d "/var/adm"; then
                   21473:        iolog_dir="/var/adm/sudo-io"
                   21474:     else
                   21475:        iolog_dir="/usr/adm/sudo-io"
                   21476:     fi
                   21477:     if test "${with_iologdir}" != "no"; then
                   21478:        cat >>confdefs.h <<EOF
                   21479: #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
                   21480: EOF
                   21481: 
                   21482:     fi
                   21483:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
                   21484: $as_echo "$iolog_dir" >&6; }
                   21485: 
                   21486: 
1.1.1.3   misho    21487: 
                   21488: ac_c_werror_flag=yes
                   21489: 
                   21490: if test -n "$GCC" -a "$lt_cv_prog_gnu_ld" != "yes" -a -n "$GCC"; then
                   21491:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -static-libgcc" >&5
                   21492: $as_echo_n "checking whether C compiler accepts -static-libgcc... " >&6; }
                   21493: if ${ax_cv_check_cflags___static_libgcc+:} false; then :
                   21494:   $as_echo_n "(cached) " >&6
                   21495: else
                   21496: 
                   21497:   ax_check_save_flags=$CFLAGS
                   21498:   CFLAGS="$CFLAGS  -static-libgcc"
                   21499:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21500: /* end confdefs.h.  */
                   21501: 
                   21502: int
                   21503: main ()
                   21504: {
                   21505: 
                   21506:   ;
                   21507:   return 0;
                   21508: }
                   21509: _ACEOF
                   21510: if ac_fn_c_try_compile "$LINENO"; then :
                   21511:   ax_cv_check_cflags___static_libgcc=yes
                   21512: else
                   21513:   ax_cv_check_cflags___static_libgcc=no
                   21514: fi
                   21515: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   21516:   CFLAGS=$ax_check_save_flags
                   21517: fi
                   21518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___static_libgcc" >&5
                   21519: $as_echo "$ax_cv_check_cflags___static_libgcc" >&6; }
                   21520: if test x"$ax_cv_check_cflags___static_libgcc" = xyes; then :
                   21521:   LT_LDFLAGS="$LT_LDFLAGS -Wc,-static-libgcc"
                   21522: else
                   21523:   :
                   21524: fi
                   21525: 
                   21526: fi
                   21527: 
1.1.1.4   misho    21528: if test -n "$GCC"; then
1.1.1.6 ! misho    21529:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
1.1.1.3   misho    21530: $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
1.1.1.6 ! misho    21531: if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then :
1.1.1.3   misho    21532:   $as_echo_n "(cached) " >&6
                   21533: else
                   21534: 
                   21535:   ax_check_save_flags=$CFLAGS
                   21536:   CFLAGS="$CFLAGS  -fvisibility=hidden"
                   21537:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21538: /* end confdefs.h.  */
                   21539: 
                   21540: int
                   21541: main ()
                   21542: {
                   21543: 
                   21544:   ;
                   21545:   return 0;
                   21546: }
                   21547: _ACEOF
                   21548: if ac_fn_c_try_compile "$LINENO"; then :
1.1.1.6 ! misho    21549:   ax_cv_check_cflags___fvisibility_hidden=yes
1.1.1.3   misho    21550: else
1.1.1.6 ! misho    21551:   ax_cv_check_cflags___fvisibility_hidden=no
1.1.1.3   misho    21552: fi
                   21553: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   21554:   CFLAGS=$ax_check_save_flags
                   21555: fi
1.1.1.6 ! misho    21556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
        !          21557: $as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
        !          21558: if test x"$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
1.1.1.3   misho    21559: 
1.1.1.4   misho    21560:        $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
1.1.1.3   misho    21561: 
1.1.1.4   misho    21562:        CFLAGS="${CFLAGS} -fvisibility=hidden"
                   21563:        LT_LDEXPORTS=
                   21564:        LT_LDDEP=
                   21565:        NO_VIZ=
1.1.1.3   misho    21566: 
                   21567: else
1.1.1.4   misho    21568:   :
                   21569: fi
1.1.1.3   misho    21570: 
1.1.1.4   misho    21571: else
                   21572:     case "$host_os" in
                   21573:        hpux*)
                   21574:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Bhidden_def" >&5
1.1.1.3   misho    21575: $as_echo_n "checking whether C compiler accepts -Bhidden_def... " >&6; }
                   21576: if ${ax_cv_check_cflags___Bhidden_def+:} false; then :
                   21577:   $as_echo_n "(cached) " >&6
                   21578: else
                   21579: 
                   21580:   ax_check_save_flags=$CFLAGS
                   21581:   CFLAGS="$CFLAGS  -Bhidden_def"
                   21582:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21583: /* end confdefs.h.  */
                   21584: 
                   21585: int
                   21586: main ()
                   21587: {
                   21588: 
                   21589:   ;
                   21590:   return 0;
                   21591: }
                   21592: _ACEOF
                   21593: if ac_fn_c_try_compile "$LINENO"; then :
                   21594:   ax_cv_check_cflags___Bhidden_def=yes
                   21595: else
                   21596:   ax_cv_check_cflags___Bhidden_def=no
                   21597: fi
                   21598: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   21599:   CFLAGS=$ax_check_save_flags
                   21600: fi
                   21601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Bhidden_def" >&5
                   21602: $as_echo "$ax_cv_check_cflags___Bhidden_def" >&6; }
                   21603: if test x"$ax_cv_check_cflags___Bhidden_def" = xyes; then :
                   21604: 
1.1.1.4   misho    21605:                $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
1.1.1.3   misho    21606: 
1.1.1.4   misho    21607:                CFLAGS="${CFLAGS} -Bhidden_def"
                   21608:                LT_LDEXPORTS=
                   21609:                LT_LDDEP=
1.1.1.3   misho    21610: 
                   21611: else
                   21612:   :
                   21613: fi
                   21614: 
1.1.1.4   misho    21615:            ;;
                   21616:        solaris2*)
1.1.1.6 ! misho    21617:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -xldscope=hidden" >&5
1.1.1.3   misho    21618: $as_echo_n "checking whether C compiler accepts -xldscope=hidden... " >&6; }
1.1.1.6 ! misho    21619: if ${ax_cv_check_cflags___xldscope_hidden+:} false; then :
1.1.1.3   misho    21620:   $as_echo_n "(cached) " >&6
                   21621: else
                   21622: 
                   21623:   ax_check_save_flags=$CFLAGS
                   21624:   CFLAGS="$CFLAGS  -xldscope=hidden"
                   21625:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21626: /* end confdefs.h.  */
                   21627: 
                   21628: int
                   21629: main ()
                   21630: {
                   21631: 
                   21632:   ;
                   21633:   return 0;
                   21634: }
                   21635: _ACEOF
                   21636: if ac_fn_c_try_compile "$LINENO"; then :
1.1.1.6 ! misho    21637:   ax_cv_check_cflags___xldscope_hidden=yes
1.1.1.3   misho    21638: else
1.1.1.6 ! misho    21639:   ax_cv_check_cflags___xldscope_hidden=no
1.1.1.3   misho    21640: fi
                   21641: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   21642:   CFLAGS=$ax_check_save_flags
                   21643: fi
1.1.1.6 ! misho    21644: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___xldscope_hidden" >&5
        !          21645: $as_echo "$ax_cv_check_cflags___xldscope_hidden" >&6; }
        !          21646: if test x"$ax_cv_check_cflags___xldscope_hidden" = xyes; then :
1.1.1.3   misho    21647: 
1.1.1.4   misho    21648:                $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
1.1.1.3   misho    21649: 
1.1.1.4   misho    21650:                CFLAGS="${CFLAGS} -xldscope=hidden"
                   21651:                LT_LDEXPORTS=
                   21652:                LT_LDDEP=
1.1.1.3   misho    21653: 
                   21654: else
                   21655:   :
                   21656: fi
                   21657: 
1.1.1.4   misho    21658:            ;;
                   21659:     esac
1.1.1.3   misho    21660: fi
                   21661: 
                   21662: if test -n "$LT_LDEXPORTS"; then
                   21663:     if test "$lt_cv_prog_gnu_ld" = "yes"; then
                   21664:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
                   21665: $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
                   21666: if ${sudo_cv_var_gnu_ld_anon_map+:} false; then :
                   21667:   $as_echo_n "(cached) " >&6
                   21668: else
                   21669: 
1.1.1.4   misho    21670:                sudo_cv_var_gnu_ld_anon_map=no
1.1.1.3   misho    21671:                cat > conftest.map <<-EOF
                   21672:                {
                   21673:                    global: foo;
                   21674:                    local:  *;
                   21675:                };
                   21676: EOF
                   21677:                _CFLAGS="$CFLAGS"
                   21678:                CFLAGS="$CFLAGS $lt_prog_compiler_pic"
                   21679:                _LDFLAGS="$LDFLAGS"
                   21680:                LDFLAGS="$LDFLAGS -fpic -shared -Wl,--version-script,./conftest.map"
                   21681:                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21682: /* end confdefs.h.  */
                   21683: int foo;
                   21684: int
                   21685: main ()
                   21686: {
                   21687: 
                   21688:   ;
                   21689:   return 0;
                   21690: }
                   21691: _ACEOF
                   21692: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.4   misho    21693:   sudo_cv_var_gnu_ld_anon_map=yes
1.1.1.3   misho    21694: fi
                   21695: rm -f core conftest.err conftest.$ac_objext \
                   21696:     conftest$ac_exeext conftest.$ac_ext
                   21697:                CFLAGS="$_CFLAGS"
                   21698:                LDFLAGS="$_LDFLAGS"
                   21699: 
                   21700: 
                   21701: fi
                   21702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gnu_ld_anon_map" >&5
                   21703: $as_echo "$sudo_cv_var_gnu_ld_anon_map" >&6; }
                   21704:        if test "$sudo_cv_var_gnu_ld_anon_map" = "yes"; then
                   21705:            LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,--version-script,\$(shlib_map)"
                   21706:        fi
                   21707:     else
1.1.1.4   misho    21708:        case "$host_os" in
                   21709:            solaris2*)
1.1.1.3   misho    21710:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
                   21711: $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
                   21712: if ${sudo_cv_var_solaris_ld_anon_map+:} false; then :
                   21713:   $as_echo_n "(cached) " >&6
                   21714: else
                   21715: 
1.1.1.4   misho    21716:                        sudo_cv_var_solaris_ld_anon_map=no
1.1.1.3   misho    21717:                        cat > conftest.map <<-EOF
                   21718:                        {
                   21719:                            global: foo;
                   21720:                            local:  *;
                   21721:                        };
                   21722: EOF
                   21723:                        _CFLAGS="$CFLAGS"
                   21724:                        CFLAGS="$CFLAGS $lt_prog_compiler_pic"
                   21725:                        _LDFLAGS="$LDFLAGS"
                   21726:                        LDFLAGS="$LDFLAGS -shared -Wl,-M,./conftest.map"
                   21727:                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21728: /* end confdefs.h.  */
                   21729: int foo;
                   21730: int
                   21731: main ()
                   21732: {
                   21733: 
                   21734:   ;
                   21735:   return 0;
                   21736: }
                   21737: _ACEOF
                   21738: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.4   misho    21739:   sudo_cv_var_solaris_ld_anon_map=yes
1.1.1.3   misho    21740: fi
                   21741: rm -f core conftest.err conftest.$ac_objext \
                   21742:     conftest$ac_exeext conftest.$ac_ext
                   21743:                        CFLAGS="$_CFLAGS"
                   21744:                        LDFLAGS="$_LDFLAGS"
                   21745: 
                   21746: 
                   21747: fi
                   21748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_solaris_ld_anon_map" >&5
                   21749: $as_echo "$sudo_cv_var_solaris_ld_anon_map" >&6; }
                   21750:                if test "$sudo_cv_var_solaris_ld_anon_map" = "yes"; then
                   21751:                    LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,-M,\$(shlib_map)"
                   21752:                fi
                   21753:                ;;
1.1.1.4   misho    21754:            hpux*)
1.1.1.3   misho    21755:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports controlling exported symbols" >&5
                   21756: $as_echo_n "checking whether ld supports controlling exported symbols... " >&6; }
                   21757: if ${sudo_cv_var_hpux_ld_symbol_export+:} false; then :
                   21758:   $as_echo_n "(cached) " >&6
                   21759: else
                   21760: 
1.1.1.4   misho    21761:                        sudo_cv_var_hpux_ld_symbol_export=no
1.1.1.3   misho    21762:                        echo "+e foo" > conftest.opt
                   21763:                        _CFLAGS="$CFLAGS"
                   21764:                        CFLAGS="$CFLAGS $lt_prog_compiler_pic"
                   21765:                        _LDFLAGS="$LDFLAGS"
                   21766:                        if test -n "$GCC"; then
                   21767:                            LDFLAGS="$LDFLAGS -shared -Wl,-c,./conftest.opt"
                   21768:                        else
                   21769:                            LDFLAGS="$LDFLAGS -Wl,-b -Wl,-c,./conftest.opt"
                   21770:                        fi
                   21771:                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21772: /* end confdefs.h.  */
                   21773: int foo;
                   21774: int
                   21775: main ()
                   21776: {
                   21777: 
                   21778:   ;
                   21779:   return 0;
                   21780: }
                   21781: _ACEOF
                   21782: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.4   misho    21783:   sudo_cv_var_hpux_ld_symbol_export=yes
1.1.1.3   misho    21784: fi
                   21785: rm -f core conftest.err conftest.$ac_objext \
                   21786:     conftest$ac_exeext conftest.$ac_ext
                   21787:                        CFLAGS="$_CFLAGS"
                   21788:                        LDFLAGS="$_LDFLAGS"
1.1.1.4   misho    21789:                        rm -f conftest.opt
1.1.1.3   misho    21790: 
                   21791: 
                   21792: fi
                   21793: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpux_ld_symbol_export" >&5
                   21794: $as_echo "$sudo_cv_var_hpux_ld_symbol_export" >&6; }
                   21795:                if test "$sudo_cv_var_hpux_ld_symbol_export" = "yes"; then
                   21796:                    LT_LDEXPORTS=; LT_LDDEP="\$(shlib_opt)"; LT_LDOPT="-Wl,-c,\$(shlib_opt)"
                   21797:                fi
                   21798:                ;;
                   21799:        esac
                   21800:     fi
                   21801: fi
                   21802: 
1.1.1.4   misho    21803: if test -n "$GCC"; then
                   21804:     if test -z "$enable_pie"; then
                   21805:        case "$host_os" in
                   21806:            linux*)
                   21807:                # Attempt to build with PIE support
                   21808:                enable_pie="maybe"
                   21809:                ;;
                   21810:        esac
                   21811:     fi
                   21812:     if test -n "$enable_pie"; then
                   21813:        if test "$enable_pie" = "no"; then
                   21814:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-pie" >&5
                   21815: $as_echo_n "checking whether C compiler accepts -fno-pie... " >&6; }
                   21816: if ${ax_cv_check_cflags___fno_pie+:} false; then :
                   21817:   $as_echo_n "(cached) " >&6
                   21818: else
                   21819: 
                   21820:   ax_check_save_flags=$CFLAGS
                   21821:   CFLAGS="$CFLAGS  -fno-pie"
                   21822:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21823: /* end confdefs.h.  */
                   21824: 
                   21825: int
                   21826: main ()
                   21827: {
                   21828: 
                   21829:   ;
                   21830:   return 0;
                   21831: }
                   21832: _ACEOF
                   21833: if ac_fn_c_try_compile "$LINENO"; then :
                   21834:   ax_cv_check_cflags___fno_pie=yes
                   21835: else
                   21836:   ax_cv_check_cflags___fno_pie=no
                   21837: fi
                   21838: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   21839:   CFLAGS=$ax_check_save_flags
                   21840: fi
                   21841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_pie" >&5
                   21842: $as_echo "$ax_cv_check_cflags___fno_pie" >&6; }
                   21843: if test x"$ax_cv_check_cflags___fno_pie" = xyes; then :
                   21844: 
                   21845:                _CFLAGS="$CFLAGS"
                   21846:                CFLAGS="$CFLAGS -fno-pie"
                   21847:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -nopie" >&5
                   21848: $as_echo_n "checking whether the linker accepts -nopie... " >&6; }
                   21849: if ${ax_cv_check_ldflags___nopie+:} false; then :
                   21850:   $as_echo_n "(cached) " >&6
                   21851: else
                   21852: 
                   21853:   ax_check_save_flags=$LDFLAGS
                   21854:   LDFLAGS="$LDFLAGS  -nopie"
                   21855:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21856: /* end confdefs.h.  */
                   21857: 
                   21858: int
                   21859: main ()
                   21860: {
                   21861: 
                   21862:   ;
                   21863:   return 0;
                   21864: }
                   21865: _ACEOF
                   21866: if ac_fn_c_try_link "$LINENO"; then :
                   21867:   ax_cv_check_ldflags___nopie=yes
                   21868: else
                   21869:   ax_cv_check_ldflags___nopie=no
                   21870: fi
                   21871: rm -f core conftest.err conftest.$ac_objext \
                   21872:     conftest$ac_exeext conftest.$ac_ext
                   21873:   LDFLAGS=$ax_check_save_flags
                   21874: fi
                   21875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___nopie" >&5
                   21876: $as_echo "$ax_cv_check_ldflags___nopie" >&6; }
                   21877: if test x"$ax_cv_check_ldflags___nopie" = xyes; then :
                   21878: 
                   21879:                    PIE_CFLAGS="-fno-pie"
                   21880:                    PIE_LDFLAGS="-nopie"
                   21881: 
                   21882: else
                   21883:   :
                   21884: fi
                   21885: 
                   21886:                CFLAGS="$_CFLAGS"
                   21887: 
                   21888: else
                   21889:   :
                   21890: fi
                   21891: 
                   21892:        else
                   21893:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
1.1.1.3   misho    21894: $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
                   21895: if ${ax_cv_check_cflags___fPIE+:} false; then :
                   21896:   $as_echo_n "(cached) " >&6
                   21897: else
                   21898: 
                   21899:   ax_check_save_flags=$CFLAGS
                   21900:   CFLAGS="$CFLAGS  -fPIE"
                   21901:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21902: /* end confdefs.h.  */
                   21903: 
                   21904: int
                   21905: main ()
                   21906: {
                   21907: 
                   21908:   ;
                   21909:   return 0;
                   21910: }
                   21911: _ACEOF
                   21912: if ac_fn_c_try_compile "$LINENO"; then :
                   21913:   ax_cv_check_cflags___fPIE=yes
                   21914: else
                   21915:   ax_cv_check_cflags___fPIE=no
                   21916: fi
                   21917: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   21918:   CFLAGS=$ax_check_save_flags
                   21919: fi
                   21920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
                   21921: $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
                   21922: if test x"$ax_cv_check_cflags___fPIE" = xyes; then :
                   21923: 
1.1.1.4   misho    21924:                _CFLAGS="$CFLAGS"
                   21925:                CFLAGS="$CFLAGS -fPIE"
                   21926:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
1.1.1.3   misho    21927: $as_echo_n "checking whether the linker accepts -pie... " >&6; }
                   21928: if ${ax_cv_check_ldflags___pie+:} false; then :
                   21929:   $as_echo_n "(cached) " >&6
                   21930: else
                   21931: 
                   21932:   ax_check_save_flags=$LDFLAGS
                   21933:   LDFLAGS="$LDFLAGS  -pie"
                   21934:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21935: /* end confdefs.h.  */
                   21936: 
                   21937: int
                   21938: main ()
                   21939: {
                   21940: 
                   21941:   ;
                   21942:   return 0;
                   21943: }
                   21944: _ACEOF
                   21945: if ac_fn_c_try_link "$LINENO"; then :
                   21946:   ax_cv_check_ldflags___pie=yes
                   21947: else
                   21948:   ax_cv_check_ldflags___pie=no
                   21949: fi
                   21950: rm -f core conftest.err conftest.$ac_objext \
                   21951:     conftest$ac_exeext conftest.$ac_ext
                   21952:   LDFLAGS=$ax_check_save_flags
                   21953: fi
                   21954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
                   21955: $as_echo "$ax_cv_check_ldflags___pie" >&6; }
                   21956: if test x"$ax_cv_check_ldflags___pie" = xyes; then :
                   21957: 
1.1.1.4   misho    21958:                    if test "$enable_pie" = "maybe"; then
                   21959:                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PIE support" >&5
                   21960: $as_echo_n "checking for working PIE support... " >&6; }
                   21961: if ${sudo_cv_working_pie+:} false; then :
                   21962:   $as_echo_n "(cached) " >&6
                   21963: else
                   21964:   rm -f conftestdata; > conftestdata
                   21965: if test "$cross_compiling" = yes; then :
                   21966:   sudo_cv_working_pie=no
                   21967: else
                   21968:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21969: /* end confdefs.h.  */
                   21970: $ac_includes_default
                   21971: main() { char *p = malloc(1024); if (p == NULL) return 1; memset(p, 0, 1024); return 0; }
                   21972: _ACEOF
                   21973: if ac_fn_c_try_run "$LINENO"; then :
                   21974:   sudo_cv_working_pie=yes
                   21975: else
                   21976:   sudo_cv_working_pie=no
                   21977: fi
                   21978: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   21979:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   21980: fi
                   21981: 
                   21982: rm -f core core.* *.core
                   21983: fi
                   21984: 
                   21985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_working_pie" >&5
                   21986: $as_echo "$sudo_cv_working_pie" >&6; }
                   21987: if test $sudo_cv_working_pie = yes; then :
                   21988:   enable_pie=yes
                   21989: fi
                   21990:                    fi
                   21991:                    if test "$enable_pie" = "yes"; then
                   21992:                        PIE_CFLAGS="-fPIE"
                   21993:                        PIE_LDFLAGS="-Wc,-fPIE -pie"
                   21994:                    fi
                   21995: 
                   21996: else
                   21997:   :
                   21998: fi
                   21999: 
                   22000:                CFLAGS="$_CFLAGS"
1.1.1.3   misho    22001: 
                   22002: else
                   22003:   :
                   22004: fi
                   22005: 
1.1.1.4   misho    22006:        fi
                   22007:     fi
                   22008: fi
                   22009: if test "$enable_pie" != "yes"; then
                   22010:     # Solaris 11.1 and higher supports tagging binaries to use ASLR
                   22011:     case "$host_os" in
                   22012:        solaris2.1[1-9]|solaris2.[2-9][0-9])
                   22013:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,aslr" >&5
                   22014: $as_echo_n "checking whether the linker accepts -Wl,-z,aslr... " >&6; }
                   22015: if ${ax_cv_check_ldflags___Wl__z_aslr+:} false; then :
                   22016:   $as_echo_n "(cached) " >&6
                   22017: else
                   22018: 
                   22019:   ax_check_save_flags=$LDFLAGS
                   22020:   LDFLAGS="$LDFLAGS  -Wl,-z,aslr"
                   22021:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   22022: /* end confdefs.h.  */
                   22023: 
                   22024: int
                   22025: main ()
                   22026: {
1.1.1.3   misho    22027: 
1.1.1.4   misho    22028:   ;
                   22029:   return 0;
                   22030: }
                   22031: _ACEOF
                   22032: if ac_fn_c_try_link "$LINENO"; then :
                   22033:   ax_cv_check_ldflags___Wl__z_aslr=yes
                   22034: else
                   22035:   ax_cv_check_ldflags___Wl__z_aslr=no
                   22036: fi
                   22037: rm -f core conftest.err conftest.$ac_objext \
                   22038:     conftest$ac_exeext conftest.$ac_ext
                   22039:   LDFLAGS=$ax_check_save_flags
                   22040: fi
                   22041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_aslr" >&5
                   22042: $as_echo "$ax_cv_check_ldflags___Wl__z_aslr" >&6; }
                   22043: if test x"$ax_cv_check_ldflags___Wl__z_aslr" = xyes; then :
                   22044:   PIE_LDFLAGS="${PIE_LDFLAGS}${PIE_LDFLAGS+ }-Wl,-z,aslr"
1.1.1.3   misho    22045: else
                   22046:   :
                   22047: fi
                   22048: 
1.1.1.4   misho    22049:            ;;
                   22050:     esac
1.1.1.3   misho    22051: fi
                   22052: 
                   22053: if test "$enable_hardening" != "no"; then
1.1.1.4   misho    22054:     if test -n "$GCC"; then
1.1.1.6 ! misho    22055:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-strong" >&5
        !          22056: $as_echo_n "checking whether C compiler accepts -fstack-protector-strong... " >&6; }
        !          22057: if ${ax_cv_check_cflags___fstack_protector_strong+:} false; then :
        !          22058:   $as_echo_n "(cached) " >&6
        !          22059: else
        !          22060: 
        !          22061:   ax_check_save_flags=$CFLAGS
        !          22062:   CFLAGS="$CFLAGS  -fstack-protector-strong"
        !          22063:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          22064: /* end confdefs.h.  */
        !          22065: 
        !          22066: int
        !          22067: main ()
        !          22068: {
        !          22069: 
        !          22070:   ;
        !          22071:   return 0;
        !          22072: }
        !          22073: _ACEOF
        !          22074: if ac_fn_c_try_compile "$LINENO"; then :
        !          22075:   ax_cv_check_cflags___fstack_protector_strong=yes
        !          22076: else
        !          22077:   ax_cv_check_cflags___fstack_protector_strong=no
        !          22078: fi
        !          22079: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          22080:   CFLAGS=$ax_check_save_flags
        !          22081: fi
        !          22082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_strong" >&5
        !          22083: $as_echo "$ax_cv_check_cflags___fstack_protector_strong" >&6; }
        !          22084: if test x"$ax_cv_check_cflags___fstack_protector_strong" = xyes; then :
        !          22085: 
        !          22086:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-strong" >&5
        !          22087: $as_echo_n "checking whether the linker accepts -fstack-protector-strong... " >&6; }
        !          22088: if ${ax_cv_check_ldflags___fstack_protector_strong+:} false; then :
        !          22089:   $as_echo_n "(cached) " >&6
        !          22090: else
        !          22091: 
        !          22092:   ax_check_save_flags=$LDFLAGS
        !          22093:   LDFLAGS="$LDFLAGS  -fstack-protector-strong"
        !          22094:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          22095: /* end confdefs.h.  */
        !          22096: 
        !          22097: int
        !          22098: main ()
        !          22099: {
        !          22100: 
        !          22101:   ;
        !          22102:   return 0;
        !          22103: }
        !          22104: _ACEOF
        !          22105: if ac_fn_c_try_link "$LINENO"; then :
        !          22106:   ax_cv_check_ldflags___fstack_protector_strong=yes
        !          22107: else
        !          22108:   ax_cv_check_ldflags___fstack_protector_strong=no
        !          22109: fi
        !          22110: rm -f core conftest.err conftest.$ac_objext \
        !          22111:     conftest$ac_exeext conftest.$ac_ext
        !          22112:   LDFLAGS=$ax_check_save_flags
        !          22113: fi
        !          22114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_strong" >&5
        !          22115: $as_echo "$ax_cv_check_ldflags___fstack_protector_strong" >&6; }
        !          22116: if test x"$ax_cv_check_ldflags___fstack_protector_strong" = xyes; then :
        !          22117: 
        !          22118:                SSP_CFLAGS="-fstack-protector-strong"
        !          22119:                SSP_LDFLAGS="-Wc,-fstack-protector-strong"
        !          22120: 
        !          22121: else
        !          22122:   :
        !          22123: fi
        !          22124: 
        !          22125: 
        !          22126: else
        !          22127:   :
        !          22128: fi
        !          22129: 
        !          22130:        if test -z "$SSP_CFLAGS"; then
        !          22131:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
1.1.1.4   misho    22132: $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
                   22133: if ${ax_cv_check_cflags___fstack_protector_all+:} false; then :
                   22134:   $as_echo_n "(cached) " >&6
                   22135: else
                   22136: 
                   22137:   ax_check_save_flags=$CFLAGS
                   22138:   CFLAGS="$CFLAGS  -fstack-protector-all"
                   22139:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   22140: /* end confdefs.h.  */
                   22141: 
                   22142: int
                   22143: main ()
                   22144: {
                   22145: 
                   22146:   ;
                   22147:   return 0;
                   22148: }
                   22149: _ACEOF
                   22150: if ac_fn_c_try_compile "$LINENO"; then :
                   22151:   ax_cv_check_cflags___fstack_protector_all=yes
                   22152: else
                   22153:   ax_cv_check_cflags___fstack_protector_all=no
                   22154: fi
                   22155: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   22156:   CFLAGS=$ax_check_save_flags
                   22157: fi
                   22158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5
                   22159: $as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; }
                   22160: if test x"$ax_cv_check_cflags___fstack_protector_all" = xyes; then :
                   22161: 
1.1.1.6 ! misho    22162:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
1.1.1.4   misho    22163: $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
                   22164: if ${ax_cv_check_ldflags___fstack_protector_all+:} false; then :
                   22165:   $as_echo_n "(cached) " >&6
                   22166: else
                   22167: 
                   22168:   ax_check_save_flags=$LDFLAGS
                   22169:   LDFLAGS="$LDFLAGS  -fstack-protector-all"
                   22170:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   22171: /* end confdefs.h.  */
                   22172: 
                   22173: int
                   22174: main ()
                   22175: {
                   22176: 
                   22177:   ;
                   22178:   return 0;
                   22179: }
                   22180: _ACEOF
                   22181: if ac_fn_c_try_link "$LINENO"; then :
                   22182:   ax_cv_check_ldflags___fstack_protector_all=yes
                   22183: else
                   22184:   ax_cv_check_ldflags___fstack_protector_all=no
                   22185: fi
                   22186: rm -f core conftest.err conftest.$ac_objext \
                   22187:     conftest$ac_exeext conftest.$ac_ext
                   22188:   LDFLAGS=$ax_check_save_flags
                   22189: fi
                   22190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_all" >&5
                   22191: $as_echo "$ax_cv_check_ldflags___fstack_protector_all" >&6; }
                   22192: if test x"$ax_cv_check_ldflags___fstack_protector_all" = xyes; then :
                   22193: 
1.1.1.6 ! misho    22194:                    SSP_CFLAGS="-fstack-protector-all"
        !          22195:                    SSP_LDFLAGS="-Wc,-fstack-protector-all"
1.1.1.4   misho    22196: 
                   22197: else
                   22198:   :
                   22199: fi
                   22200: 
                   22201: 
                   22202: else
                   22203:   :
                   22204: fi
                   22205: 
1.1.1.6 ! misho    22206:            if test -z "$SSP_CFLAGS"; then
        !          22207:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
1.1.1.3   misho    22208: $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
                   22209: if ${ax_cv_check_cflags___fstack_protector+:} false; then :
                   22210:   $as_echo_n "(cached) " >&6
                   22211: else
                   22212: 
                   22213:   ax_check_save_flags=$CFLAGS
                   22214:   CFLAGS="$CFLAGS  -fstack-protector"
                   22215:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   22216: /* end confdefs.h.  */
                   22217: 
                   22218: int
                   22219: main ()
                   22220: {
                   22221: 
                   22222:   ;
                   22223:   return 0;
                   22224: }
                   22225: _ACEOF
                   22226: if ac_fn_c_try_compile "$LINENO"; then :
                   22227:   ax_cv_check_cflags___fstack_protector=yes
                   22228: else
                   22229:   ax_cv_check_cflags___fstack_protector=no
                   22230: fi
                   22231: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   22232:   CFLAGS=$ax_check_save_flags
                   22233: fi
                   22234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
                   22235: $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
                   22236: if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then :
                   22237: 
1.1.1.6 ! misho    22238:                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
1.1.1.3   misho    22239: $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
                   22240: if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
                   22241:   $as_echo_n "(cached) " >&6
                   22242: else
                   22243: 
                   22244:   ax_check_save_flags=$LDFLAGS
                   22245:   LDFLAGS="$LDFLAGS  -fstack-protector"
                   22246:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   22247: /* end confdefs.h.  */
                   22248: 
                   22249: int
                   22250: main ()
                   22251: {
                   22252: 
                   22253:   ;
                   22254:   return 0;
                   22255: }
                   22256: _ACEOF
                   22257: if ac_fn_c_try_link "$LINENO"; then :
                   22258:   ax_cv_check_ldflags___fstack_protector=yes
                   22259: else
                   22260:   ax_cv_check_ldflags___fstack_protector=no
                   22261: fi
                   22262: rm -f core conftest.err conftest.$ac_objext \
                   22263:     conftest$ac_exeext conftest.$ac_ext
                   22264:   LDFLAGS=$ax_check_save_flags
                   22265: fi
                   22266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
                   22267: $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
                   22268: if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
                   22269: 
1.1.1.6 ! misho    22270:                        SSP_CFLAGS="-fstack-protector"
        !          22271:                        SSP_LDFLAGS="-Wc,-fstack-protector"
1.1.1.3   misho    22272: 
                   22273: else
                   22274:   :
                   22275: fi
                   22276: 
                   22277: 
                   22278: else
                   22279:   :
                   22280: fi
                   22281: 
1.1.1.6 ! misho    22282:            fi
1.1.1.4   misho    22283:        fi
                   22284:     fi
1.1.1.3   misho    22285:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
                   22286: $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
                   22287: if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
                   22288:   $as_echo_n "(cached) " >&6
                   22289: else
                   22290: 
                   22291:   ax_check_save_flags=$LDFLAGS
                   22292:   LDFLAGS="$LDFLAGS  -Wl,-z,relro"
                   22293:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   22294: /* end confdefs.h.  */
                   22295: 
                   22296: int
                   22297: main ()
                   22298: {
                   22299: 
                   22300:   ;
                   22301:   return 0;
                   22302: }
                   22303: _ACEOF
                   22304: if ac_fn_c_try_link "$LINENO"; then :
                   22305:   ax_cv_check_ldflags___Wl__z_relro=yes
                   22306: else
                   22307:   ax_cv_check_ldflags___Wl__z_relro=no
                   22308: fi
                   22309: rm -f core conftest.err conftest.$ac_objext \
                   22310:     conftest$ac_exeext conftest.$ac_ext
                   22311:   LDFLAGS=$ax_check_save_flags
                   22312: fi
                   22313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
                   22314: $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
                   22315: if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
                   22316:   LDFLAGS="${LDFLAGS} -Wl,-z,relro"
                   22317: else
                   22318:   :
                   22319: fi
                   22320: 
                   22321: fi
                   22322: 
1.1       misho    22323: case "$with_passwd" in
                   22324: yes|maybe)
                   22325:     AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
                   22326:     ;;
                   22327: *)
                   22328:     $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
                   22329: 
                   22330:     if test -z "$AUTH_OBJS"; then
                   22331:        as_fn_error $? "no authentication methods defined." "$LINENO" 5
                   22332:     fi
                   22333:     ;;
                   22334: esac
                   22335: AUTH_OBJS=${AUTH_OBJS# }
                   22336: _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
                   22337: { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
                   22338: $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
                   22339: 
                   22340: if test -n "$LIBS"; then
                   22341:     L="$LIBS"
                   22342:     LIBS=
                   22343:     for l in ${L}; do
                   22344:        dupe=0
                   22345:        for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
                   22346:            test $l = $sl && dupe=1
                   22347:        done
                   22348:        test $dupe = 0 && LIBS="${LIBS} $l"
                   22349:     done
                   22350: fi
                   22351: 
1.1.1.4   misho    22352: 
                   22353: cat >>confdefs.h <<_ACEOF
                   22354: #define os_init $OS_INIT
                   22355: _ACEOF
                   22356: 
                   22357: 
1.1       misho    22358: if test -n "$GCC"; then
                   22359:     if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
1.1.1.6 ! misho    22360:        CFLAGS="${CFLAGS} -Wall -Wsign-compare -Wold-style-definition -Wpointer-arith"
1.1       misho    22361:     fi
                   22362:     if test X"$enable_werror" = X"yes"; then
                   22363:        CFLAGS="${CFLAGS} -Werror"
                   22364:     fi
                   22365: fi
                   22366: 
1.1.1.3   misho    22367: CROSS_COMPILING="$cross_compiling"
                   22368: 
1.1       misho    22369: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
                   22370: 
1.1.1.4   misho    22371: if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no" -o "$enabled_shared" != X"no"; then
1.1       misho    22372:     oexec_prefix="$exec_prefix"
                   22373:     if test "$exec_prefix" = '$(prefix)'; then
                   22374:        if test "$prefix" = "NONE"; then
                   22375:            exec_prefix="$ac_default_prefix"
                   22376:        else
                   22377:            exec_prefix="$prefix"
                   22378:        fi
                   22379:     fi
                   22380:     if test X"$with_noexec" != X"no"; then
                   22381:        PROGS="${PROGS} libsudo_noexec.la"
                   22382:        INSTALL_NOEXEC="install-noexec"
                   22383: 
1.1.1.2   misho    22384:        noexec_file="$with_noexec"
                   22385:        _noexec_file=
                   22386:        while test X"$noexec_file" != X"$_noexec_file"; do
                   22387:            _noexec_file="$noexec_file"
                   22388:            eval noexec_file="$_noexec_file"
                   22389:        done
1.1       misho    22390:        cat >>confdefs.h <<EOF
                   22391: #define _PATH_SUDO_NOEXEC "$noexec_file"
                   22392: EOF
                   22393: 
                   22394:     fi
                   22395:     if test X"$with_selinux" != X"no"; then
1.1.1.4   misho    22396:        sesh_file="$libexecdir/sudo/sesh"
1.1.1.2   misho    22397:        _sesh_file=
                   22398:        while test X"$sesh_file" != X"$_sesh_file"; do
                   22399:            _sesh_file="$sesh_file"
                   22400:            eval sesh_file="$_sesh_file"
                   22401:        done
1.1       misho    22402:        cat >>confdefs.h <<EOF
                   22403: #define _PATH_SUDO_SESH "$sesh_file"
                   22404: EOF
                   22405: 
                   22406:     fi
1.1.1.4   misho    22407:     if test X"$enable_shared" != X"no"; then
                   22408:        PLUGINDIR="$with_plugindir"
                   22409:        _PLUGINDIR=
                   22410:        while test X"$PLUGINDIR" != X"$_PLUGINDIR"; do
                   22411:            _PLUGINDIR="$PLUGINDIR"
                   22412:            eval PLUGINDIR="$_PLUGINDIR"
                   22413:        done
                   22414:        cat >>confdefs.h <<EOF
1.1       misho    22415: #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
                   22416: EOF
                   22417: 
1.1.1.4   misho    22418:     fi
1.1       misho    22419:     exec_prefix="$oexec_prefix"
                   22420: fi
1.1.1.4   misho    22421: if test X"$with_selinux" = X"no"; then
                   22422:     cat >>confdefs.h <<EOF
                   22423: #define _PATH_SUDO_SESH NULL
                   22424: EOF
                   22425: 
                   22426: fi
                   22427: 
                   22428: if test X"$LDFLAGS_R" != X""; then
                   22429:     LDFLAGS="$LDFLAGS $LDFLAGS_R"
                   22430: fi
                   22431: if test X"$SUDOERS_LDFLAGS_R" != X""; then
                   22432:     SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS $SUDOERS_LDFLAGS_R"
                   22433: fi
                   22434: if test X"$ZLIB_R" != X""; then
                   22435:     ZLIB="$ZLIB_R $ZLIB"
                   22436: fi
1.1       misho    22437: 
                   22438: if test X"$prefix" = X"NONE"; then
                   22439:     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
                   22440: else
                   22441:     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
                   22442: fi
                   22443: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
                   22444: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
                   22445: test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
                   22446: test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
                   22447: test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
                   22448: test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
1.1.1.3   misho    22449: test "$localedir" = '${datarootdir}/locale' && localedir='$(datarootdir)/locale'
                   22450: test "$localstatedir" = '${prefix}/var' && localstatedir='$(prefix)/var'
1.1       misho    22451: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
                   22452: 
1.1.1.6 ! misho    22453: ac_config_files="$ac_config_files Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile init.d/aix.sh init.d/hpux.sh src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/group_file/Makefile plugins/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
1.1       misho    22454: 
                   22455: cat >confcache <<\_ACEOF
                   22456: # This file is a shell script that caches the results of configure
                   22457: # tests run on this system so they can be shared between configure
                   22458: # scripts and configure runs, see configure's option --config-cache.
                   22459: # It is not useful on other systems.  If it contains results you don't
                   22460: # want to keep, you may remove or edit it.
                   22461: #
                   22462: # config.status only pays attention to the cache file if you give it
                   22463: # the --recheck option to rerun configure.
                   22464: #
                   22465: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   22466: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   22467: # following values.
                   22468: 
                   22469: _ACEOF
                   22470: 
                   22471: # The following way of writing the cache mishandles newlines in values,
                   22472: # but we know of no workaround that is simple, portable, and efficient.
                   22473: # So, we kill variables containing newlines.
                   22474: # Ultrix sh set writes to stderr and can't be redirected directly,
                   22475: # and sets the high bit in the cache file unless we assign to the vars.
                   22476: (
                   22477:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   22478:     eval ac_val=\$$ac_var
                   22479:     case $ac_val in #(
                   22480:     *${as_nl}*)
                   22481:       case $ac_var in #(
                   22482:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   22483: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   22484:       esac
                   22485:       case $ac_var in #(
                   22486:       _ | IFS | as_nl) ;; #(
                   22487:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   22488:       *) { eval $ac_var=; unset $ac_var;} ;;
                   22489:       esac ;;
                   22490:     esac
                   22491:   done
                   22492: 
                   22493:   (set) 2>&1 |
                   22494:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   22495:     *${as_nl}ac_space=\ *)
                   22496:       # `set' does not quote correctly, so add quotes: double-quote
                   22497:       # substitution turns \\\\ into \\, and sed turns \\ into \.
                   22498:       sed -n \
                   22499:        "s/'/'\\\\''/g;
                   22500:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   22501:       ;; #(
                   22502:     *)
                   22503:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   22504:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   22505:       ;;
                   22506:     esac |
                   22507:     sort
                   22508: ) |
                   22509:   sed '
                   22510:      /^ac_cv_env_/b end
                   22511:      t clear
                   22512:      :clear
                   22513:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   22514:      t end
                   22515:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   22516:      :end' >>confcache
                   22517: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   22518:   if test -w "$cache_file"; then
                   22519:     if test "x$cache_file" != "x/dev/null"; then
                   22520:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   22521: $as_echo "$as_me: updating cache $cache_file" >&6;}
                   22522:       if test ! -f "$cache_file" || test -h "$cache_file"; then
                   22523:        cat confcache >"$cache_file"
                   22524:       else
                   22525:         case $cache_file in #(
                   22526:         */* | ?:*)
                   22527:          mv -f confcache "$cache_file"$$ &&
                   22528:          mv -f "$cache_file"$$ "$cache_file" ;; #(
                   22529:         *)
                   22530:          mv -f confcache "$cache_file" ;;
                   22531:        esac
                   22532:       fi
                   22533:     fi
                   22534:   else
                   22535:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   22536: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
                   22537:   fi
                   22538: fi
                   22539: rm -f confcache
                   22540: 
                   22541: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   22542: # Let make expand exec_prefix.
                   22543: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   22544: 
                   22545: DEFS=-DHAVE_CONFIG_H
                   22546: 
                   22547: ac_libobjs=
                   22548: ac_ltlibobjs=
                   22549: U=
                   22550: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   22551:   # 1. Remove the extension, and $U if already installed.
                   22552:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
                   22553:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
                   22554:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   22555:   #    will be set to the directory where LIBOBJS objects are built.
                   22556:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   22557:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
                   22558: done
                   22559: LIBOBJS=$ac_libobjs
                   22560: 
                   22561: LTLIBOBJS=$ac_ltlibobjs
                   22562: 
                   22563: 
                   22564: 
                   22565: : "${CONFIG_STATUS=./config.status}"
                   22566: ac_write_fail=0
                   22567: ac_clean_files_save=$ac_clean_files
                   22568: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
                   22569: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   22570: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   22571: as_write_fail=0
                   22572: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
                   22573: #! $SHELL
                   22574: # Generated by $as_me.
                   22575: # Run this file to recreate the current configuration.
                   22576: # Compiler output produced by configure, useful for debugging
                   22577: # configure, is in config.log if it exists.
                   22578: 
                   22579: debug=false
                   22580: ac_cs_recheck=false
                   22581: ac_cs_silent=false
                   22582: 
                   22583: SHELL=\${CONFIG_SHELL-$SHELL}
                   22584: export SHELL
                   22585: _ASEOF
                   22586: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   22587: ## -------------------- ##
                   22588: ## M4sh Initialization. ##
                   22589: ## -------------------- ##
                   22590: 
                   22591: # Be more Bourne compatible
                   22592: DUALCASE=1; export DUALCASE # for MKS sh
                   22593: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
                   22594:   emulate sh
                   22595:   NULLCMD=:
                   22596:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
                   22597:   # is contrary to our usage.  Disable this feature.
                   22598:   alias -g '${1+"$@"}'='"$@"'
                   22599:   setopt NO_GLOB_SUBST
                   22600: else
                   22601:   case `(set -o) 2>/dev/null` in #(
                   22602:   *posix*) :
                   22603:     set -o posix ;; #(
                   22604:   *) :
                   22605:      ;;
                   22606: esac
                   22607: fi
                   22608: 
                   22609: 
                   22610: as_nl='
                   22611: '
                   22612: export as_nl
                   22613: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   22614: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   22615: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   22616: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   22617: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   22618: # but without wasting forks for bash or zsh.
                   22619: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   22620:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   22621:   as_echo='print -r --'
                   22622:   as_echo_n='print -rn --'
                   22623: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   22624:   as_echo='printf %s\n'
                   22625:   as_echo_n='printf %s'
                   22626: else
                   22627:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   22628:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   22629:     as_echo_n='/usr/ucb/echo -n'
                   22630:   else
                   22631:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   22632:     as_echo_n_body='eval
                   22633:       arg=$1;
                   22634:       case $arg in #(
                   22635:       *"$as_nl"*)
                   22636:        expr "X$arg" : "X\\(.*\\)$as_nl";
                   22637:        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   22638:       esac;
                   22639:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   22640:     '
                   22641:     export as_echo_n_body
                   22642:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   22643:   fi
                   22644:   export as_echo_body
                   22645:   as_echo='sh -c $as_echo_body as_echo'
                   22646: fi
                   22647: 
                   22648: # The user is always right.
                   22649: if test "${PATH_SEPARATOR+set}" != set; then
                   22650:   PATH_SEPARATOR=:
                   22651:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   22652:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   22653:       PATH_SEPARATOR=';'
                   22654:   }
                   22655: fi
                   22656: 
                   22657: 
                   22658: # IFS
                   22659: # We need space, tab and new line, in precisely that order.  Quoting is
                   22660: # there to prevent editors from complaining about space-tab.
                   22661: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   22662: # splitting by setting IFS to empty value.)
                   22663: IFS=" ""       $as_nl"
                   22664: 
                   22665: # Find who we are.  Look in the path if we contain no directory separator.
                   22666: as_myself=
                   22667: case $0 in #((
                   22668:   *[\\/]* ) as_myself=$0 ;;
                   22669:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   22670: for as_dir in $PATH
                   22671: do
                   22672:   IFS=$as_save_IFS
                   22673:   test -z "$as_dir" && as_dir=.
                   22674:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   22675:   done
                   22676: IFS=$as_save_IFS
                   22677: 
                   22678:      ;;
                   22679: esac
                   22680: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   22681: # in which case we are not to be found in the path.
                   22682: if test "x$as_myself" = x; then
                   22683:   as_myself=$0
                   22684: fi
                   22685: if test ! -f "$as_myself"; then
                   22686:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   22687:   exit 1
                   22688: fi
                   22689: 
                   22690: # Unset variables that we do not need and which cause bugs (e.g. in
                   22691: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   22692: # suppresses any "Segmentation fault" message there.  '((' could
                   22693: # trigger a bug in pdksh 5.2.14.
                   22694: for as_var in BASH_ENV ENV MAIL MAILPATH
                   22695: do eval test x\${$as_var+set} = xset \
                   22696:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
                   22697: done
                   22698: PS1='$ '
                   22699: PS2='> '
                   22700: PS4='+ '
                   22701: 
                   22702: # NLS nuisances.
                   22703: LC_ALL=C
                   22704: export LC_ALL
                   22705: LANGUAGE=C
                   22706: export LANGUAGE
                   22707: 
                   22708: # CDPATH.
                   22709: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   22710: 
                   22711: 
                   22712: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   22713: # ----------------------------------------
                   22714: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   22715: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
                   22716: # script with STATUS, using 1 if that was 0.
                   22717: as_fn_error ()
                   22718: {
                   22719:   as_status=$1; test $as_status -eq 0 && as_status=1
                   22720:   if test "$4"; then
                   22721:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   22722:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
                   22723:   fi
                   22724:   $as_echo "$as_me: error: $2" >&2
                   22725:   as_fn_exit $as_status
                   22726: } # as_fn_error
                   22727: 
                   22728: 
                   22729: # as_fn_set_status STATUS
                   22730: # -----------------------
                   22731: # Set $? to STATUS, without forking.
                   22732: as_fn_set_status ()
                   22733: {
                   22734:   return $1
                   22735: } # as_fn_set_status
                   22736: 
                   22737: # as_fn_exit STATUS
                   22738: # -----------------
                   22739: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   22740: as_fn_exit ()
                   22741: {
                   22742:   set +e
                   22743:   as_fn_set_status $1
                   22744:   exit $1
                   22745: } # as_fn_exit
                   22746: 
                   22747: # as_fn_unset VAR
                   22748: # ---------------
                   22749: # Portably unset VAR.
                   22750: as_fn_unset ()
                   22751: {
                   22752:   { eval $1=; unset $1;}
                   22753: }
                   22754: as_unset=as_fn_unset
                   22755: # as_fn_append VAR VALUE
                   22756: # ----------------------
                   22757: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   22758: # advantage of any shell optimizations that allow amortized linear growth over
                   22759: # repeated appends, instead of the typical quadratic growth present in naive
                   22760: # implementations.
                   22761: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   22762:   eval 'as_fn_append ()
                   22763:   {
                   22764:     eval $1+=\$2
                   22765:   }'
                   22766: else
                   22767:   as_fn_append ()
                   22768:   {
                   22769:     eval $1=\$$1\$2
                   22770:   }
                   22771: fi # as_fn_append
                   22772: 
                   22773: # as_fn_arith ARG...
                   22774: # ------------------
                   22775: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   22776: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   22777: # must be portable across $(()) and expr.
                   22778: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   22779:   eval 'as_fn_arith ()
                   22780:   {
                   22781:     as_val=$(( $* ))
                   22782:   }'
                   22783: else
                   22784:   as_fn_arith ()
                   22785:   {
                   22786:     as_val=`expr "$@" || test $? -eq 1`
                   22787:   }
                   22788: fi # as_fn_arith
                   22789: 
                   22790: 
                   22791: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   22792:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   22793:   as_expr=expr
                   22794: else
                   22795:   as_expr=false
                   22796: fi
                   22797: 
                   22798: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   22799:   as_basename=basename
                   22800: else
                   22801:   as_basename=false
                   22802: fi
                   22803: 
                   22804: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   22805:   as_dirname=dirname
                   22806: else
                   22807:   as_dirname=false
                   22808: fi
                   22809: 
                   22810: as_me=`$as_basename -- "$0" ||
                   22811: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   22812:         X"$0" : 'X\(//\)$' \| \
                   22813:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                   22814: $as_echo X/"$0" |
                   22815:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   22816:            s//\1/
                   22817:            q
                   22818:          }
                   22819:          /^X\/\(\/\/\)$/{
                   22820:            s//\1/
                   22821:            q
                   22822:          }
                   22823:          /^X\/\(\/\).*/{
                   22824:            s//\1/
                   22825:            q
                   22826:          }
                   22827:          s/.*/./; q'`
                   22828: 
                   22829: # Avoid depending upon Character Ranges.
                   22830: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   22831: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   22832: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   22833: as_cr_digits='0123456789'
                   22834: as_cr_alnum=$as_cr_Letters$as_cr_digits
                   22835: 
                   22836: ECHO_C= ECHO_N= ECHO_T=
                   22837: case `echo -n x` in #(((((
                   22838: -n*)
                   22839:   case `echo 'xy\c'` in
                   22840:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                   22841:   xy)  ECHO_C='\c';;
                   22842:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   22843:        ECHO_T='        ';;
                   22844:   esac;;
                   22845: *)
                   22846:   ECHO_N='-n';;
                   22847: esac
                   22848: 
                   22849: rm -f conf$$ conf$$.exe conf$$.file
                   22850: if test -d conf$$.dir; then
                   22851:   rm -f conf$$.dir/conf$$.file
                   22852: else
                   22853:   rm -f conf$$.dir
                   22854:   mkdir conf$$.dir 2>/dev/null
                   22855: fi
                   22856: if (echo >conf$$.file) 2>/dev/null; then
                   22857:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   22858:     as_ln_s='ln -s'
                   22859:     # ... but there are two gotchas:
                   22860:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   22861:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.6 ! misho    22862:     # In both cases, we have to default to `cp -pR'.
1.1       misho    22863:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.6 ! misho    22864:       as_ln_s='cp -pR'
1.1       misho    22865:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   22866:     as_ln_s=ln
                   22867:   else
1.1.1.6 ! misho    22868:     as_ln_s='cp -pR'
1.1       misho    22869:   fi
                   22870: else
1.1.1.6 ! misho    22871:   as_ln_s='cp -pR'
1.1       misho    22872: fi
                   22873: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   22874: rmdir conf$$.dir 2>/dev/null
                   22875: 
                   22876: 
                   22877: # as_fn_mkdir_p
                   22878: # -------------
                   22879: # Create "$as_dir" as a directory, including parents if necessary.
                   22880: as_fn_mkdir_p ()
                   22881: {
                   22882: 
                   22883:   case $as_dir in #(
                   22884:   -*) as_dir=./$as_dir;;
                   22885:   esac
                   22886:   test -d "$as_dir" || eval $as_mkdir_p || {
                   22887:     as_dirs=
                   22888:     while :; do
                   22889:       case $as_dir in #(
                   22890:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   22891:       *) as_qdir=$as_dir;;
                   22892:       esac
                   22893:       as_dirs="'$as_qdir' $as_dirs"
                   22894:       as_dir=`$as_dirname -- "$as_dir" ||
                   22895: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   22896:         X"$as_dir" : 'X\(//\)[^/]' \| \
                   22897:         X"$as_dir" : 'X\(//\)$' \| \
                   22898:         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   22899: $as_echo X"$as_dir" |
                   22900:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   22901:            s//\1/
                   22902:            q
                   22903:          }
                   22904:          /^X\(\/\/\)[^/].*/{
                   22905:            s//\1/
                   22906:            q
                   22907:          }
                   22908:          /^X\(\/\/\)$/{
                   22909:            s//\1/
                   22910:            q
                   22911:          }
                   22912:          /^X\(\/\).*/{
                   22913:            s//\1/
                   22914:            q
                   22915:          }
                   22916:          s/.*/./; q'`
                   22917:       test -d "$as_dir" && break
                   22918:     done
                   22919:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                   22920:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
                   22921: 
                   22922: 
                   22923: } # as_fn_mkdir_p
                   22924: if mkdir -p . 2>/dev/null; then
                   22925:   as_mkdir_p='mkdir -p "$as_dir"'
                   22926: else
                   22927:   test -d ./-p && rmdir ./-p
                   22928:   as_mkdir_p=false
                   22929: fi
                   22930: 
1.1.1.6 ! misho    22931: 
        !          22932: # as_fn_executable_p FILE
        !          22933: # -----------------------
        !          22934: # Test if FILE is an executable regular file.
        !          22935: as_fn_executable_p ()
        !          22936: {
        !          22937:   test -f "$1" && test -x "$1"
        !          22938: } # as_fn_executable_p
        !          22939: as_test_x='test -x'
        !          22940: as_executable_p=as_fn_executable_p
1.1       misho    22941: 
                   22942: # Sed expression to map a string onto a valid CPP name.
                   22943: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   22944: 
                   22945: # Sed expression to map a string onto a valid variable name.
                   22946: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   22947: 
                   22948: 
                   22949: exec 6>&1
                   22950: ## ----------------------------------- ##
                   22951: ## Main body of $CONFIG_STATUS script. ##
                   22952: ## ----------------------------------- ##
                   22953: _ASEOF
                   22954: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
                   22955: 
                   22956: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   22957: # Save the log message, to keep $0 and so on meaningful, and to
                   22958: # report actual input values of CONFIG_FILES etc. instead of their
                   22959: # values after options handling.
                   22960: ac_log="
1.1.1.6 ! misho    22961: This file was extended by sudo $as_me 1.8.10p3, which was
        !          22962: generated by GNU Autoconf 2.69.  Invocation command line was
1.1       misho    22963: 
                   22964:   CONFIG_FILES    = $CONFIG_FILES
                   22965:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   22966:   CONFIG_LINKS    = $CONFIG_LINKS
                   22967:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   22968:   $ $0 $@
                   22969: 
                   22970: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   22971: "
                   22972: 
                   22973: _ACEOF
                   22974: 
                   22975: case $ac_config_files in *"
                   22976: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   22977: esac
                   22978: 
                   22979: case $ac_config_headers in *"
                   22980: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   22981: esac
                   22982: 
                   22983: 
                   22984: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   22985: # Files that config.status was made for.
                   22986: config_files="$ac_config_files"
                   22987: config_headers="$ac_config_headers"
                   22988: config_commands="$ac_config_commands"
                   22989: 
                   22990: _ACEOF
                   22991: 
                   22992: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   22993: ac_cs_usage="\
                   22994: \`$as_me' instantiates files and other configuration actions
                   22995: from templates according to the current configuration.  Unless the files
                   22996: and actions are specified as TAGs, all are instantiated by default.
                   22997: 
                   22998: Usage: $0 [OPTION]... [TAG]...
                   22999: 
                   23000:   -h, --help       print this help, then exit
                   23001:   -V, --version    print version number and configuration settings, then exit
                   23002:       --config     print configuration, then exit
                   23003:   -q, --quiet, --silent
                   23004:                    do not print progress messages
                   23005:   -d, --debug      don't remove temporary files
                   23006:       --recheck    update $as_me by reconfiguring in the same conditions
                   23007:       --file=FILE[:TEMPLATE]
                   23008:                    instantiate the configuration file FILE
                   23009:       --header=FILE[:TEMPLATE]
                   23010:                    instantiate the configuration header FILE
                   23011: 
                   23012: Configuration files:
                   23013: $config_files
                   23014: 
                   23015: Configuration headers:
                   23016: $config_headers
                   23017: 
                   23018: Configuration commands:
                   23019: $config_commands
                   23020: 
                   23021: Report bugs to <http://www.sudo.ws/bugs/>."
                   23022: 
                   23023: _ACEOF
                   23024: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   23025: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
                   23026: ac_cs_version="\\
1.1.1.6 ! misho    23027: sudo config.status 1.8.10p3
        !          23028: configured by $0, generated by GNU Autoconf 2.69,
1.1       misho    23029:   with options \\"\$ac_cs_config\\"
                   23030: 
1.1.1.6 ! misho    23031: Copyright (C) 2012 Free Software Foundation, Inc.
1.1       misho    23032: This config.status script is free software; the Free Software Foundation
                   23033: gives unlimited permission to copy, distribute and modify it."
                   23034: 
                   23035: ac_pwd='$ac_pwd'
                   23036: srcdir='$srcdir'
                   23037: AWK='$AWK'
                   23038: test -n "\$AWK" || AWK=awk
                   23039: _ACEOF
                   23040: 
                   23041: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   23042: # The default lists apply if the user does not specify any file.
                   23043: ac_need_defaults=:
                   23044: while test $# != 0
                   23045: do
                   23046:   case $1 in
                   23047:   --*=?*)
                   23048:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   23049:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   23050:     ac_shift=:
                   23051:     ;;
                   23052:   --*=)
                   23053:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   23054:     ac_optarg=
                   23055:     ac_shift=:
                   23056:     ;;
                   23057:   *)
                   23058:     ac_option=$1
                   23059:     ac_optarg=$2
                   23060:     ac_shift=shift
                   23061:     ;;
                   23062:   esac
                   23063: 
                   23064:   case $ac_option in
                   23065:   # Handling of the options.
                   23066:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   23067:     ac_cs_recheck=: ;;
                   23068:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
                   23069:     $as_echo "$ac_cs_version"; exit ;;
                   23070:   --config | --confi | --conf | --con | --co | --c )
                   23071:     $as_echo "$ac_cs_config"; exit ;;
                   23072:   --debug | --debu | --deb | --de | --d | -d )
                   23073:     debug=: ;;
                   23074:   --file | --fil | --fi | --f )
                   23075:     $ac_shift
                   23076:     case $ac_optarg in
                   23077:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   23078:     '') as_fn_error $? "missing file argument" ;;
                   23079:     esac
                   23080:     as_fn_append CONFIG_FILES " '$ac_optarg'"
                   23081:     ac_need_defaults=false;;
                   23082:   --header | --heade | --head | --hea )
                   23083:     $ac_shift
                   23084:     case $ac_optarg in
                   23085:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   23086:     esac
                   23087:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
                   23088:     ac_need_defaults=false;;
                   23089:   --he | --h)
                   23090:     # Conflict between --help and --header
                   23091:     as_fn_error $? "ambiguous option: \`$1'
                   23092: Try \`$0 --help' for more information.";;
                   23093:   --help | --hel | -h )
                   23094:     $as_echo "$ac_cs_usage"; exit ;;
                   23095:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   23096:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   23097:     ac_cs_silent=: ;;
                   23098: 
                   23099:   # This is an error.
                   23100:   -*) as_fn_error $? "unrecognized option: \`$1'
                   23101: Try \`$0 --help' for more information." ;;
                   23102: 
                   23103:   *) as_fn_append ac_config_targets " $1"
                   23104:      ac_need_defaults=false ;;
                   23105: 
                   23106:   esac
                   23107:   shift
                   23108: done
                   23109: 
                   23110: ac_configure_extra_args=
                   23111: 
                   23112: if $ac_cs_silent; then
                   23113:   exec 6>/dev/null
                   23114:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   23115: fi
                   23116: 
                   23117: _ACEOF
                   23118: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   23119: if \$ac_cs_recheck; then
1.1.1.6 ! misho    23120:   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1       misho    23121:   shift
                   23122:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   23123:   CONFIG_SHELL='$SHELL'
                   23124:   export CONFIG_SHELL
                   23125:   exec "\$@"
                   23126: fi
                   23127: 
                   23128: _ACEOF
                   23129: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   23130: exec 5>>config.log
                   23131: {
                   23132:   echo
                   23133:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   23134: ## Running $as_me. ##
                   23135: _ASBOX
                   23136:   $as_echo "$ac_log"
                   23137: } >&5
                   23138: 
                   23139: _ACEOF
                   23140: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   23141: #
                   23142: # INIT-COMMANDS
                   23143: #
                   23144: 
                   23145: 
                   23146: # The HP-UX ksh and POSIX shell print the target directory to stdout
                   23147: # if CDPATH is set.
                   23148: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   23149: 
                   23150: sed_quote_subst='$sed_quote_subst'
                   23151: double_quote_subst='$double_quote_subst'
                   23152: delay_variable_subst='$delay_variable_subst'
                   23153: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
                   23154: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
                   23155: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
                   23156: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
                   23157: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
                   23158: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
                   23159: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
                   23160: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1.1.1.2   misho    23161: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1.1       misho    23162: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
                   23163: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
                   23164: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
                   23165: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
                   23166: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
                   23167: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
                   23168: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
                   23169: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
                   23170: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
                   23171: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
                   23172: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
                   23173: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
                   23174: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
                   23175: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
                   23176: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
                   23177: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
                   23178: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
                   23179: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
                   23180: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
                   23181: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
                   23182: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
                   23183: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
                   23184: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
                   23185: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
                   23186: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
                   23187: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
                   23188: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
                   23189: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
                   23190: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
                   23191: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
                   23192: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
                   23193: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
                   23194: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
                   23195: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
                   23196: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
                   23197: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
                   23198: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
                   23199: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
                   23200: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
                   23201: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
                   23202: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
                   23203: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
                   23204: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
                   23205: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
                   23206: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
                   23207: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1.1.1.6 ! misho    23208: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1.1       misho    23209: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
                   23210: 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"`'
1.1.1.6 ! misho    23211: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1.1       misho    23212: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
                   23213: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
                   23214: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
                   23215: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
                   23216: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
                   23217: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
                   23218: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
                   23219: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
                   23220: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
                   23221: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
                   23222: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
                   23223: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
                   23224: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
                   23225: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
                   23226: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
                   23227: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
                   23228: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
                   23229: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
                   23230: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
                   23231: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
                   23232: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
                   23233: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
                   23234: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
                   23235: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
                   23236: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
                   23237: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
                   23238: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
                   23239: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
                   23240: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
                   23241: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
                   23242: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
                   23243: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
                   23244: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
                   23245: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
                   23246: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
                   23247: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
                   23248: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
                   23249: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
                   23250: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
                   23251: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
                   23252: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
                   23253: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
                   23254: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
                   23255: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
                   23256: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
                   23257: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
                   23258: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
                   23259: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
                   23260: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
                   23261: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
                   23262: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
                   23263: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
                   23264: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
                   23265: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
                   23266: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
                   23267: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
                   23268: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
                   23269: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
                   23270: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
                   23271: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
                   23272: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
                   23273: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
                   23274: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
                   23275: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
                   23276: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
                   23277: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
                   23278: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
                   23279: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
                   23280: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
                   23281: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
                   23282: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
                   23283: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
                   23284: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
                   23285: 
                   23286: LTCC='$LTCC'
                   23287: LTCFLAGS='$LTCFLAGS'
                   23288: compiler='$compiler_DEFAULT'
                   23289: 
                   23290: # A function that is used when there is no print builtin or printf.
                   23291: func_fallback_echo ()
                   23292: {
                   23293:   eval 'cat <<_LTECHO_EOF
                   23294: \$1
                   23295: _LTECHO_EOF'
                   23296: }
                   23297: 
                   23298: # Quote evaled strings.
                   23299: for var in SHELL \
                   23300: ECHO \
1.1.1.2   misho    23301: PATH_SEPARATOR \
1.1       misho    23302: SED \
                   23303: GREP \
                   23304: EGREP \
                   23305: FGREP \
                   23306: LD \
                   23307: NM \
                   23308: LN_S \
                   23309: lt_SP2NL \
                   23310: lt_NL2SP \
                   23311: reload_flag \
                   23312: OBJDUMP \
                   23313: deplibs_check_method \
                   23314: file_magic_cmd \
                   23315: file_magic_glob \
                   23316: want_nocaseglob \
                   23317: DLLTOOL \
                   23318: sharedlib_from_linklib_cmd \
                   23319: AR \
                   23320: AR_FLAGS \
                   23321: archiver_list_spec \
                   23322: STRIP \
                   23323: RANLIB \
                   23324: CC \
                   23325: CFLAGS \
                   23326: compiler \
                   23327: lt_cv_sys_global_symbol_pipe \
                   23328: lt_cv_sys_global_symbol_to_cdecl \
1.1.1.6 ! misho    23329: lt_cv_sys_global_symbol_to_import \
1.1       misho    23330: lt_cv_sys_global_symbol_to_c_name_address \
                   23331: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1.1.1.6 ! misho    23332: lt_cv_nm_interface \
1.1       misho    23333: nm_file_list_spec \
                   23334: lt_prog_compiler_no_builtin_flag \
                   23335: lt_prog_compiler_pic \
                   23336: lt_prog_compiler_wl \
                   23337: lt_prog_compiler_static \
                   23338: lt_cv_prog_compiler_c_o \
                   23339: need_locks \
                   23340: MANIFEST_TOOL \
                   23341: DSYMUTIL \
                   23342: NMEDIT \
                   23343: LIPO \
                   23344: OTOOL \
                   23345: OTOOL64 \
                   23346: shrext_cmds \
                   23347: export_dynamic_flag_spec \
                   23348: whole_archive_flag_spec \
                   23349: compiler_needs_object \
                   23350: with_gnu_ld \
                   23351: allow_undefined_flag \
                   23352: no_undefined_flag \
                   23353: hardcode_libdir_flag_spec \
                   23354: hardcode_libdir_separator \
                   23355: exclude_expsyms \
                   23356: include_expsyms \
                   23357: file_list_spec \
                   23358: variables_saved_for_relink \
                   23359: libname_spec \
                   23360: library_names_spec \
                   23361: soname_spec \
                   23362: install_override_mode \
                   23363: finish_eval \
                   23364: old_striplib \
                   23365: striplib; do
                   23366:     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
                   23367:     *[\\\\\\\`\\"\\\$]*)
1.1.1.6 ! misho    23368:       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1.1       misho    23369:       ;;
                   23370:     *)
                   23371:       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
                   23372:       ;;
                   23373:     esac
                   23374: done
                   23375: 
                   23376: # Double-quote double-evaled strings.
                   23377: for var in reload_cmds \
                   23378: old_postinstall_cmds \
                   23379: old_postuninstall_cmds \
                   23380: old_archive_cmds \
                   23381: extract_expsyms_cmds \
                   23382: old_archive_from_new_cmds \
                   23383: old_archive_from_expsyms_cmds \
                   23384: archive_cmds \
                   23385: archive_expsym_cmds \
                   23386: module_cmds \
                   23387: module_expsym_cmds \
                   23388: export_symbols_cmds \
                   23389: prelink_cmds \
                   23390: postlink_cmds \
                   23391: postinstall_cmds \
                   23392: postuninstall_cmds \
                   23393: finish_cmds \
                   23394: sys_lib_search_path_spec \
                   23395: sys_lib_dlsearch_path_spec; do
                   23396:     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
                   23397:     *[\\\\\\\`\\"\\\$]*)
1.1.1.6 ! misho    23398:       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1.1       misho    23399:       ;;
                   23400:     *)
                   23401:       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
                   23402:       ;;
                   23403:     esac
                   23404: done
                   23405: 
                   23406: ac_aux_dir='$ac_aux_dir'
                   23407: 
1.1.1.6 ! misho    23408: # See if we are running on zsh, and set the options that allow our
1.1       misho    23409: # commands through without removal of \ escapes INIT.
1.1.1.6 ! misho    23410: if test -n "\${ZSH_VERSION+set}"; then
1.1       misho    23411:    setopt NO_GLOB_SUBST
                   23412: fi
                   23413: 
                   23414: 
                   23415:     PACKAGE='$PACKAGE'
                   23416:     VERSION='$VERSION'
                   23417:     RM='$RM'
                   23418:     ofile='$ofile'
                   23419: 
                   23420: 
                   23421: 
                   23422: 
                   23423: _ACEOF
                   23424: 
                   23425: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   23426: 
                   23427: # Handling of arguments.
                   23428: for ac_config_target in $ac_config_targets
                   23429: do
                   23430:   case $ac_config_target in
                   23431:     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
                   23432:     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
                   23433:     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
                   23434:     "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
                   23435:     "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
                   23436:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   23437:     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
                   23438:     "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
                   23439:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   23440:     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
1.1.1.6 ! misho    23441:     "init.d/aix.sh") CONFIG_FILES="$CONFIG_FILES init.d/aix.sh" ;;
        !          23442:     "init.d/hpux.sh") CONFIG_FILES="$CONFIG_FILES init.d/hpux.sh" ;;
1.1       misho    23443:     "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
                   23444:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   23445:     "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
1.1.1.4   misho    23446:     "plugins/group_file/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/group_file/Makefile" ;;
1.1.1.2   misho    23447:     "plugins/system_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/system_group/Makefile" ;;
1.1       misho    23448:     "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
                   23449:     "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
                   23450: 
                   23451:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
                   23452:   esac
                   23453: done
                   23454: 
                   23455: 
                   23456: # If the user did not use the arguments to specify the items to instantiate,
                   23457: # then the envvar interface is used.  Set only those that are not.
                   23458: # We use the long form for the default assignment because of an extremely
                   23459: # bizarre bug on SunOS 4.1.3.
                   23460: if $ac_need_defaults; then
                   23461:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   23462:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   23463:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   23464: fi
                   23465: 
                   23466: # Have a temporary directory for convenience.  Make it in the build tree
                   23467: # simply because there is no reason against having it here, and in addition,
                   23468: # creating and moving files from /tmp can sometimes cause problems.
                   23469: # Hook for its removal unless debugging.
                   23470: # Note that there is a small window in which the directory will not be cleaned:
                   23471: # after its creation but before its name has been assigned to `$tmp'.
                   23472: $debug ||
                   23473: {
                   23474:   tmp= ac_tmp=
                   23475:   trap 'exit_status=$?
                   23476:   : "${ac_tmp:=$tmp}"
                   23477:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
                   23478: ' 0
                   23479:   trap 'as_fn_exit 1' 1 2 13 15
                   23480: }
                   23481: # Create a (secure) tmp directory for tmp files.
                   23482: 
                   23483: {
                   23484:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   23485:   test -d "$tmp"
                   23486: }  ||
                   23487: {
                   23488:   tmp=./conf$$-$RANDOM
                   23489:   (umask 077 && mkdir "$tmp")
                   23490: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
                   23491: ac_tmp=$tmp
                   23492: 
                   23493: # Set up the scripts for CONFIG_FILES section.
                   23494: # No need to generate them if there are no CONFIG_FILES.
                   23495: # This happens for instance with `./config.status config.h'.
                   23496: if test -n "$CONFIG_FILES"; then
                   23497: 
                   23498: 
                   23499: ac_cr=`echo X | tr X '\015'`
                   23500: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   23501: # But we know of no other shell where ac_cr would be empty at this
                   23502: # point, so we can use a bashism as a fallback.
                   23503: if test "x$ac_cr" = x; then
                   23504:   eval ac_cr=\$\'\\r\'
                   23505: fi
                   23506: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   23507: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
                   23508:   ac_cs_awk_cr='\\r'
                   23509: else
                   23510:   ac_cs_awk_cr=$ac_cr
                   23511: fi
                   23512: 
                   23513: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
                   23514: _ACEOF
                   23515: 
                   23516: 
                   23517: {
                   23518:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   23519:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   23520:   echo "_ACEOF"
                   23521: } >conf$$subs.sh ||
                   23522:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   23523: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
                   23524: ac_delim='%!_!# '
                   23525: for ac_last_try in false false false false false :; do
                   23526:   . ./conf$$subs.sh ||
                   23527:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   23528: 
                   23529:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   23530:   if test $ac_delim_n = $ac_delim_num; then
                   23531:     break
                   23532:   elif $ac_last_try; then
                   23533:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   23534:   else
                   23535:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   23536:   fi
                   23537: done
                   23538: rm -f conf$$subs.sh
                   23539: 
                   23540: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   23541: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
                   23542: _ACEOF
                   23543: sed -n '
                   23544: h
                   23545: s/^/S["/; s/!.*/"]=/
                   23546: p
                   23547: g
                   23548: s/^[^!]*!//
                   23549: :repl
                   23550: t repl
                   23551: s/'"$ac_delim"'$//
                   23552: t delim
                   23553: :nl
                   23554: h
                   23555: s/\(.\{148\}\)..*/\1/
                   23556: t more1
                   23557: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   23558: p
                   23559: n
                   23560: b repl
                   23561: :more1
                   23562: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   23563: p
                   23564: g
                   23565: s/.\{148\}//
                   23566: t nl
                   23567: :delim
                   23568: h
                   23569: s/\(.\{148\}\)..*/\1/
                   23570: t more2
                   23571: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   23572: p
                   23573: b
                   23574: :more2
                   23575: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   23576: p
                   23577: g
                   23578: s/.\{148\}//
                   23579: t delim
                   23580: ' <conf$$subs.awk | sed '
                   23581: /^[^""]/{
                   23582:   N
                   23583:   s/\n//
                   23584: }
                   23585: ' >>$CONFIG_STATUS || ac_write_fail=1
                   23586: rm -f conf$$subs.awk
                   23587: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   23588: _ACAWK
                   23589: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
                   23590:   for (key in S) S_is_set[key] = 1
                   23591:   FS = ""
                   23592: 
                   23593: }
                   23594: {
                   23595:   line = $ 0
                   23596:   nfields = split(line, field, "@")
                   23597:   substed = 0
                   23598:   len = length(field[1])
                   23599:   for (i = 2; i < nfields; i++) {
                   23600:     key = field[i]
                   23601:     keylen = length(key)
                   23602:     if (S_is_set[key]) {
                   23603:       value = S[key]
                   23604:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   23605:       len += length(value) + length(field[++i])
                   23606:       substed = 1
                   23607:     } else
                   23608:       len += 1 + keylen
                   23609:   }
                   23610: 
                   23611:   print line
                   23612: }
                   23613: 
                   23614: _ACAWK
                   23615: _ACEOF
                   23616: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   23617: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   23618:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   23619: else
                   23620:   cat
                   23621: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
                   23622:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
                   23623: _ACEOF
                   23624: 
                   23625: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   23626: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
                   23627: # trailing colons and then remove the whole line if VPATH becomes empty
                   23628: # (actually we leave an empty line to preserve line numbers).
                   23629: if test "x$srcdir" = x.; then
                   23630:   ac_vpsub='/^[         ]*VPATH[        ]*=[    ]*/{
                   23631: h
                   23632: s///
                   23633: s/^/:/
                   23634: s/[     ]*$/:/
                   23635: s/:\$(srcdir):/:/g
                   23636: s/:\${srcdir}:/:/g
                   23637: s/:@srcdir@:/:/g
                   23638: s/^:*//
                   23639: s/:*$//
                   23640: x
                   23641: s/\(=[  ]*\).*/\1/
                   23642: G
                   23643: s/\n//
                   23644: s/^[^=]*=[      ]*$//
                   23645: }'
                   23646: fi
                   23647: 
                   23648: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   23649: fi # test -n "$CONFIG_FILES"
                   23650: 
                   23651: # Set up the scripts for CONFIG_HEADERS section.
                   23652: # No need to generate them if there are no CONFIG_HEADERS.
                   23653: # This happens for instance with `./config.status Makefile'.
                   23654: if test -n "$CONFIG_HEADERS"; then
                   23655: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
                   23656: BEGIN {
                   23657: _ACEOF
                   23658: 
                   23659: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   23660: # here-document in config.status, that substitutes the proper values into
                   23661: # config.h.in to produce config.h.
                   23662: 
                   23663: # Create a delimiter string that does not exist in confdefs.h, to ease
                   23664: # handling of long lines.
                   23665: ac_delim='%!_!# '
                   23666: for ac_last_try in false false :; do
                   23667:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
                   23668:   if test -z "$ac_tt"; then
                   23669:     break
                   23670:   elif $ac_last_try; then
                   23671:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
                   23672:   else
                   23673:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   23674:   fi
                   23675: done
                   23676: 
                   23677: # For the awk script, D is an array of macro values keyed by name,
                   23678: # likewise P contains macro parameters if any.  Preserve backslash
                   23679: # newline sequences.
                   23680: 
                   23681: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   23682: sed -n '
                   23683: s/.\{148\}/&'"$ac_delim"'/g
                   23684: t rset
                   23685: :rset
                   23686: s/^[    ]*#[    ]*define[       ][      ]*/ /
                   23687: t def
                   23688: d
                   23689: :def
                   23690: s/\\$//
                   23691: t bsnl
                   23692: s/["\\]/\\&/g
                   23693: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   23694: D["\1"]=" \3"/p
                   23695: s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2"/p
                   23696: d
                   23697: :bsnl
                   23698: s/["\\]/\\&/g
                   23699: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   23700: D["\1"]=" \3\\\\\\n"\\/p
                   23701: t cont
                   23702: s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   23703: t cont
                   23704: d
                   23705: :cont
                   23706: n
                   23707: s/.\{148\}/&'"$ac_delim"'/g
                   23708: t clear
                   23709: :clear
                   23710: s/\\$//
                   23711: t bsnlc
                   23712: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   23713: d
                   23714: :bsnlc
                   23715: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   23716: b cont
                   23717: ' <confdefs.h | sed '
                   23718: s/'"$ac_delim"'/"\\\
                   23719: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   23720: 
                   23721: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   23722:   for (key in D) D_is_set[key] = 1
                   23723:   FS = ""
                   23724: }
                   23725: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   23726:   line = \$ 0
                   23727:   split(line, arg, " ")
                   23728:   if (arg[1] == "#") {
                   23729:     defundef = arg[2]
                   23730:     mac1 = arg[3]
                   23731:   } else {
                   23732:     defundef = substr(arg[1], 2)
                   23733:     mac1 = arg[2]
                   23734:   }
                   23735:   split(mac1, mac2, "(") #)
                   23736:   macro = mac2[1]
                   23737:   prefix = substr(line, 1, index(line, defundef) - 1)
                   23738:   if (D_is_set[macro]) {
                   23739:     # Preserve the white space surrounding the "#".
                   23740:     print prefix "define", macro P[macro] D[macro]
                   23741:     next
                   23742:   } else {
                   23743:     # Replace #undef with comments.  This is necessary, for example,
                   23744:     # in the case of _POSIX_SOURCE, which is predefined and required
                   23745:     # on some systems where configure will not decide to define it.
                   23746:     if (defundef == "undef") {
                   23747:       print "/*", prefix defundef, macro, "*/"
                   23748:       next
                   23749:     }
                   23750:   }
                   23751: }
                   23752: { print }
                   23753: _ACAWK
                   23754: _ACEOF
                   23755: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   23756:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
                   23757: fi # test -n "$CONFIG_HEADERS"
                   23758: 
                   23759: 
                   23760: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   23761: shift
                   23762: for ac_tag
                   23763: do
                   23764:   case $ac_tag in
                   23765:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   23766:   esac
                   23767:   case $ac_mode$ac_tag in
                   23768:   :[FHL]*:*);;
                   23769:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
                   23770:   :[FH]-) ac_tag=-:-;;
                   23771:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   23772:   esac
                   23773:   ac_save_IFS=$IFS
                   23774:   IFS=:
                   23775:   set x $ac_tag
                   23776:   IFS=$ac_save_IFS
                   23777:   shift
                   23778:   ac_file=$1
                   23779:   shift
                   23780: 
                   23781:   case $ac_mode in
                   23782:   :L) ac_source=$1;;
                   23783:   :[FH])
                   23784:     ac_file_inputs=
                   23785:     for ac_f
                   23786:     do
                   23787:       case $ac_f in
                   23788:       -) ac_f="$ac_tmp/stdin";;
                   23789:       *) # Look for the file first in the build tree, then in the source tree
                   23790:         # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   23791:         # because $ac_f cannot contain `:'.
                   23792:         test -f "$ac_f" ||
                   23793:           case $ac_f in
                   23794:           [\\/$]*) false;;
                   23795:           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   23796:           esac ||
                   23797:           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
                   23798:       esac
                   23799:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   23800:       as_fn_append ac_file_inputs " '$ac_f'"
                   23801:     done
                   23802: 
                   23803:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   23804:     # use $as_me), people would be surprised to read:
                   23805:     #    /* config.h.  Generated by config.status.  */
                   23806:     configure_input='Generated from '`
                   23807:          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   23808:        `' by configure.'
                   23809:     if test x"$ac_file" != x-; then
                   23810:       configure_input="$ac_file.  $configure_input"
                   23811:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   23812: $as_echo "$as_me: creating $ac_file" >&6;}
                   23813:     fi
                   23814:     # Neutralize special characters interpreted by sed in replacement strings.
                   23815:     case $configure_input in #(
                   23816:     *\&* | *\|* | *\\* )
                   23817:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   23818:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   23819:     *) ac_sed_conf_input=$configure_input;;
                   23820:     esac
                   23821: 
                   23822:     case $ac_tag in
                   23823:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
                   23824:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
                   23825:     esac
                   23826:     ;;
                   23827:   esac
                   23828: 
                   23829:   ac_dir=`$as_dirname -- "$ac_file" ||
                   23830: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23831:         X"$ac_file" : 'X\(//\)[^/]' \| \
                   23832:         X"$ac_file" : 'X\(//\)$' \| \
                   23833:         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
                   23834: $as_echo X"$ac_file" |
                   23835:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   23836:            s//\1/
                   23837:            q
                   23838:          }
                   23839:          /^X\(\/\/\)[^/].*/{
                   23840:            s//\1/
                   23841:            q
                   23842:          }
                   23843:          /^X\(\/\/\)$/{
                   23844:            s//\1/
                   23845:            q
                   23846:          }
                   23847:          /^X\(\/\).*/{
                   23848:            s//\1/
                   23849:            q
                   23850:          }
                   23851:          s/.*/./; q'`
                   23852:   as_dir="$ac_dir"; as_fn_mkdir_p
                   23853:   ac_builddir=.
                   23854: 
                   23855: case "$ac_dir" in
                   23856: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   23857: *)
                   23858:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
                   23859:   # A ".." for each directory in $ac_dir_suffix.
                   23860:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
                   23861:   case $ac_top_builddir_sub in
                   23862:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   23863:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   23864:   esac ;;
                   23865: esac
                   23866: ac_abs_top_builddir=$ac_pwd
                   23867: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   23868: # for backward compatibility:
                   23869: ac_top_builddir=$ac_top_build_prefix
                   23870: 
                   23871: case $srcdir in
                   23872:   .)  # We are building in place.
                   23873:     ac_srcdir=.
                   23874:     ac_top_srcdir=$ac_top_builddir_sub
                   23875:     ac_abs_top_srcdir=$ac_pwd ;;
                   23876:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   23877:     ac_srcdir=$srcdir$ac_dir_suffix;
                   23878:     ac_top_srcdir=$srcdir
                   23879:     ac_abs_top_srcdir=$srcdir ;;
                   23880:   *) # Relative name.
                   23881:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   23882:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   23883:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   23884: esac
                   23885: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   23886: 
                   23887: 
                   23888:   case $ac_mode in
                   23889:   :F)
                   23890:   #
                   23891:   # CONFIG_FILE
                   23892:   #
                   23893: 
                   23894: _ACEOF
                   23895: 
                   23896: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   23897: # If the template does not know about datarootdir, expand it.
                   23898: # FIXME: This hack should be removed a few years after 2.60.
                   23899: ac_datarootdir_hack=; ac_datarootdir_seen=
                   23900: ac_sed_dataroot='
                   23901: /datarootdir/ {
                   23902:   p
                   23903:   q
                   23904: }
                   23905: /@datadir@/p
                   23906: /@docdir@/p
                   23907: /@infodir@/p
                   23908: /@localedir@/p
                   23909: /@mandir@/p'
                   23910: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
                   23911: *datarootdir*) ac_datarootdir_seen=yes;;
                   23912: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
                   23913:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   23914: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
                   23915: _ACEOF
                   23916: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   23917:   ac_datarootdir_hack='
                   23918:   s&@datadir@&$datadir&g
                   23919:   s&@docdir@&$docdir&g
                   23920:   s&@infodir@&$infodir&g
                   23921:   s&@localedir@&$localedir&g
                   23922:   s&@mandir@&$mandir&g
                   23923:   s&\\\${datarootdir}&$datarootdir&g' ;;
                   23924: esac
                   23925: _ACEOF
                   23926: 
                   23927: # Neutralize VPATH when `$srcdir' = `.'.
                   23928: # Shell code in configure.ac might set extrasub.
                   23929: # FIXME: do we really want to maintain this feature?
                   23930: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   23931: ac_sed_extra="$ac_vpsub
                   23932: $extrasub
                   23933: _ACEOF
                   23934: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   23935: :t
                   23936: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   23937: s|@configure_input@|$ac_sed_conf_input|;t t
                   23938: s&@top_builddir@&$ac_top_builddir_sub&;t t
                   23939: s&@top_build_prefix@&$ac_top_build_prefix&;t t
                   23940: s&@srcdir@&$ac_srcdir&;t t
                   23941: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   23942: s&@top_srcdir@&$ac_top_srcdir&;t t
                   23943: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   23944: s&@builddir@&$ac_builddir&;t t
                   23945: s&@abs_builddir@&$ac_abs_builddir&;t t
                   23946: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   23947: $ac_datarootdir_hack
                   23948: "
                   23949: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
                   23950:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   23951: 
                   23952: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   23953:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
                   23954:   { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' \
                   23955:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
                   23956:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   23957: which seems to be undefined.  Please make sure it is defined" >&5
                   23958: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   23959: which seems to be undefined.  Please make sure it is defined" >&2;}
                   23960: 
                   23961:   rm -f "$ac_tmp/stdin"
                   23962:   case $ac_file in
                   23963:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
                   23964:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
                   23965:   esac \
                   23966:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   23967:  ;;
                   23968:   :H)
                   23969:   #
                   23970:   # CONFIG_HEADER
                   23971:   #
                   23972:   if test x"$ac_file" != x-; then
                   23973:     {
                   23974:       $as_echo "/* $configure_input  */" \
                   23975:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
                   23976:     } >"$ac_tmp/config.h" \
                   23977:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   23978:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
                   23979:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   23980: $as_echo "$as_me: $ac_file is unchanged" >&6;}
                   23981:     else
                   23982:       rm -f "$ac_file"
                   23983:       mv "$ac_tmp/config.h" "$ac_file" \
                   23984:        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   23985:     fi
                   23986:   else
                   23987:     $as_echo "/* $configure_input  */" \
                   23988:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
                   23989:       || as_fn_error $? "could not create -" "$LINENO" 5
                   23990:   fi
                   23991:  ;;
                   23992: 
                   23993:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   23994: $as_echo "$as_me: executing $ac_file commands" >&6;}
                   23995:  ;;
                   23996:   esac
                   23997: 
                   23998: 
                   23999:   case $ac_file$ac_mode in
                   24000:     "libtool":C)
                   24001: 
1.1.1.6 ! misho    24002:     # See if we are running on zsh, and set the options that allow our
1.1       misho    24003:     # commands through without removal of \ escapes.
1.1.1.6 ! misho    24004:     if test -n "${ZSH_VERSION+set}"; then
1.1       misho    24005:       setopt NO_GLOB_SUBST
                   24006:     fi
                   24007: 
1.1.1.6 ! misho    24008:     cfgfile=${ofile}T
1.1       misho    24009:     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
                   24010:     $RM "$cfgfile"
                   24011: 
                   24012:     cat <<_LT_EOF >> "$cfgfile"
                   24013: #! $SHELL
                   24014: 
                   24015: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1.1.1.6 ! misho    24016: # Generated automatically by $as_me ($PACKAGE) $VERSION
1.1       misho    24017: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   24018: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
                   24019: #
                   24020: #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1.1.1.2   misho    24021: #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
                   24022: #                 Foundation, Inc.
1.1       misho    24023: #   Written by Gordon Matzigkeit, 1996
                   24024: #
                   24025: #   This file is part of GNU Libtool.
                   24026: #
                   24027: # GNU Libtool is free software; you can redistribute it and/or
                   24028: # modify it under the terms of the GNU General Public License as
                   24029: # published by the Free Software Foundation; either version 2 of
                   24030: # the License, or (at your option) any later version.
                   24031: #
                   24032: # As a special exception to the GNU General Public License,
                   24033: # if you distribute this file as part of a program or library that
                   24034: # is built using GNU Libtool, you may include this file under the
                   24035: # same distribution terms that you use for the rest of that program.
                   24036: #
                   24037: # GNU Libtool is distributed in the hope that it will be useful,
                   24038: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                   24039: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                   24040: # GNU General Public License for more details.
                   24041: #
                   24042: # You should have received a copy of the GNU General Public License
                   24043: # along with GNU Libtool; see the file COPYING.  If not, a copy
                   24044: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
                   24045: # obtained by writing to the Free Software Foundation, Inc.,
                   24046: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
                   24047: 
                   24048: 
                   24049: # The names of the tagged configurations supported by this script.
1.1.1.6 ! misho    24050: available_tags=''
1.1       misho    24051: 
                   24052: # ### BEGIN LIBTOOL CONFIG
                   24053: 
                   24054: # Which release of libtool.m4 was used?
                   24055: macro_version=$macro_version
                   24056: macro_revision=$macro_revision
                   24057: 
                   24058: # Whether or not to build shared libraries.
                   24059: build_libtool_libs=$enable_shared
                   24060: 
                   24061: # Whether or not to build static libraries.
                   24062: build_old_libs=$enable_static
                   24063: 
                   24064: # What type of objects to build.
                   24065: pic_mode=$pic_mode
                   24066: 
                   24067: # Whether or not to optimize for fast installation.
                   24068: fast_install=$enable_fast_install
                   24069: 
                   24070: # Shell to use when invoking shell scripts.
                   24071: SHELL=$lt_SHELL
                   24072: 
                   24073: # An echo program that protects backslashes.
                   24074: ECHO=$lt_ECHO
                   24075: 
1.1.1.2   misho    24076: # The PATH separator for the build system.
                   24077: PATH_SEPARATOR=$lt_PATH_SEPARATOR
                   24078: 
1.1       misho    24079: # The host system.
                   24080: host_alias=$host_alias
                   24081: host=$host
                   24082: host_os=$host_os
                   24083: 
                   24084: # The build system.
                   24085: build_alias=$build_alias
                   24086: build=$build
                   24087: build_os=$build_os
                   24088: 
                   24089: # A sed program that does not truncate output.
                   24090: SED=$lt_SED
                   24091: 
                   24092: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
                   24093: Xsed="\$SED -e 1s/^X//"
                   24094: 
                   24095: # A grep program that handles long lines.
                   24096: GREP=$lt_GREP
                   24097: 
                   24098: # An ERE matcher.
                   24099: EGREP=$lt_EGREP
                   24100: 
                   24101: # A literal string matcher.
                   24102: FGREP=$lt_FGREP
                   24103: 
                   24104: # A BSD- or MS-compatible name lister.
                   24105: NM=$lt_NM
                   24106: 
                   24107: # Whether we need soft or hard links.
                   24108: LN_S=$lt_LN_S
                   24109: 
                   24110: # What is the maximum length of a command?
                   24111: max_cmd_len=$max_cmd_len
                   24112: 
                   24113: # Object file suffix (normally "o").
                   24114: objext=$ac_objext
                   24115: 
                   24116: # Executable file suffix (normally "").
                   24117: exeext=$exeext
                   24118: 
                   24119: # whether the shell understands "unset".
                   24120: lt_unset=$lt_unset
                   24121: 
                   24122: # turn spaces into newlines.
                   24123: SP2NL=$lt_lt_SP2NL
                   24124: 
                   24125: # turn newlines into spaces.
                   24126: NL2SP=$lt_lt_NL2SP
                   24127: 
                   24128: # convert \$build file names to \$host format.
                   24129: to_host_file_cmd=$lt_cv_to_host_file_cmd
                   24130: 
                   24131: # convert \$build files to toolchain format.
                   24132: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
                   24133: 
                   24134: # An object symbol dumper.
                   24135: OBJDUMP=$lt_OBJDUMP
                   24136: 
                   24137: # Method to check whether dependent libraries are shared objects.
                   24138: deplibs_check_method=$lt_deplibs_check_method
                   24139: 
                   24140: # Command to use when deplibs_check_method = "file_magic".
                   24141: file_magic_cmd=$lt_file_magic_cmd
                   24142: 
                   24143: # How to find potential files when deplibs_check_method = "file_magic".
                   24144: file_magic_glob=$lt_file_magic_glob
                   24145: 
                   24146: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
                   24147: want_nocaseglob=$lt_want_nocaseglob
                   24148: 
                   24149: # DLL creation program.
                   24150: DLLTOOL=$lt_DLLTOOL
                   24151: 
                   24152: # Command to associate shared and link libraries.
                   24153: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
                   24154: 
                   24155: # The archiver.
                   24156: AR=$lt_AR
                   24157: 
                   24158: # Flags to create an archive.
                   24159: AR_FLAGS=$lt_AR_FLAGS
                   24160: 
                   24161: # How to feed a file listing to the archiver.
                   24162: archiver_list_spec=$lt_archiver_list_spec
                   24163: 
                   24164: # A symbol stripping program.
                   24165: STRIP=$lt_STRIP
                   24166: 
                   24167: # Commands used to install an old-style archive.
                   24168: RANLIB=$lt_RANLIB
                   24169: old_postinstall_cmds=$lt_old_postinstall_cmds
                   24170: old_postuninstall_cmds=$lt_old_postuninstall_cmds
                   24171: 
                   24172: # Whether to use a lock for old archive extraction.
                   24173: lock_old_archive_extraction=$lock_old_archive_extraction
                   24174: 
                   24175: # A C compiler.
                   24176: LTCC=$lt_CC
                   24177: 
                   24178: # LTCC compiler flags.
                   24179: LTCFLAGS=$lt_CFLAGS
                   24180: 
                   24181: # Take the output of nm and produce a listing of raw symbols and C names.
                   24182: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
                   24183: 
                   24184: # Transform the output of nm in a proper C declaration.
                   24185: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
                   24186: 
1.1.1.6 ! misho    24187: # Transform the output of nm into a list of symbols to manually relocate.
        !          24188: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
        !          24189: 
1.1       misho    24190: # Transform the output of nm in a C name address pair.
                   24191: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
                   24192: 
                   24193: # Transform the output of nm in a C name address pair when lib prefix is needed.
                   24194: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
                   24195: 
1.1.1.6 ! misho    24196: # The name lister interface.
        !          24197: nm_interface=$lt_lt_cv_nm_interface
        !          24198: 
1.1       misho    24199: # Specify filename containing input files for \$NM.
                   24200: nm_file_list_spec=$lt_nm_file_list_spec
                   24201: 
1.1.1.6 ! misho    24202: # The root where to search for dependent libraries,and where our libraries should be installed.
1.1       misho    24203: lt_sysroot=$lt_sysroot
                   24204: 
                   24205: # The name of the directory that contains temporary libtool files.
                   24206: objdir=$objdir
                   24207: 
                   24208: # Used to examine libraries when file_magic_cmd begins with "file".
                   24209: MAGIC_CMD=$MAGIC_CMD
                   24210: 
                   24211: # Must we lock files when doing compilation?
                   24212: need_locks=$lt_need_locks
                   24213: 
                   24214: # Manifest tool.
                   24215: MANIFEST_TOOL=$lt_MANIFEST_TOOL
                   24216: 
                   24217: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
                   24218: DSYMUTIL=$lt_DSYMUTIL
                   24219: 
                   24220: # Tool to change global to local symbols on Mac OS X.
                   24221: NMEDIT=$lt_NMEDIT
                   24222: 
                   24223: # Tool to manipulate fat objects and archives on Mac OS X.
                   24224: LIPO=$lt_LIPO
                   24225: 
                   24226: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
                   24227: OTOOL=$lt_OTOOL
                   24228: 
                   24229: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
                   24230: OTOOL64=$lt_OTOOL64
                   24231: 
                   24232: # Old archive suffix (normally "a").
                   24233: libext=$libext
                   24234: 
                   24235: # Shared library suffix (normally ".so").
                   24236: shrext_cmds=$lt_shrext_cmds
                   24237: 
                   24238: # The commands to extract the exported symbol list from a shared archive.
                   24239: extract_expsyms_cmds=$lt_extract_expsyms_cmds
                   24240: 
                   24241: # Variables whose values should be saved in libtool wrapper scripts and
                   24242: # restored at link time.
                   24243: variables_saved_for_relink=$lt_variables_saved_for_relink
                   24244: 
                   24245: # Do we need the "lib" prefix for modules?
                   24246: need_lib_prefix=$need_lib_prefix
                   24247: 
                   24248: # Do we need a version for libraries?
                   24249: need_version=$need_version
                   24250: 
                   24251: # Library versioning type.
                   24252: version_type=$version_type
                   24253: 
                   24254: # Shared library runtime path variable.
                   24255: runpath_var=$runpath_var
                   24256: 
                   24257: # Shared library path variable.
                   24258: shlibpath_var=$shlibpath_var
                   24259: 
                   24260: # Is shlibpath searched before the hard-coded library search path?
                   24261: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
                   24262: 
                   24263: # Format of library name prefix.
                   24264: libname_spec=$lt_libname_spec
                   24265: 
                   24266: # List of archive names.  First name is the real one, the rest are links.
                   24267: # The last name is the one that the linker finds with -lNAME
                   24268: library_names_spec=$lt_library_names_spec
                   24269: 
                   24270: # The coded name of the library, if different from the real name.
                   24271: soname_spec=$lt_soname_spec
                   24272: 
                   24273: # Permission mode override for installation of shared libraries.
                   24274: install_override_mode=$lt_install_override_mode
                   24275: 
                   24276: # Command to use after installation of a shared archive.
                   24277: postinstall_cmds=$lt_postinstall_cmds
                   24278: 
                   24279: # Command to use after uninstallation of a shared archive.
                   24280: postuninstall_cmds=$lt_postuninstall_cmds
                   24281: 
                   24282: # Commands used to finish a libtool library installation in a directory.
                   24283: finish_cmds=$lt_finish_cmds
                   24284: 
                   24285: # As "finish_cmds", except a single script fragment to be evaled but
                   24286: # not shown.
                   24287: finish_eval=$lt_finish_eval
                   24288: 
                   24289: # Whether we should hardcode library paths into libraries.
                   24290: hardcode_into_libs=$hardcode_into_libs
                   24291: 
                   24292: # Compile-time system search path for libraries.
                   24293: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
                   24294: 
                   24295: # Run-time system search path for libraries.
                   24296: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
                   24297: 
                   24298: # Whether dlopen is supported.
                   24299: dlopen_support=$enable_dlopen
                   24300: 
                   24301: # Whether dlopen of programs is supported.
                   24302: dlopen_self=$enable_dlopen_self
                   24303: 
                   24304: # Whether dlopen of statically linked programs is supported.
                   24305: dlopen_self_static=$enable_dlopen_self_static
                   24306: 
                   24307: # Commands to strip libraries.
                   24308: old_striplib=$lt_old_striplib
                   24309: striplib=$lt_striplib
                   24310: 
                   24311: 
                   24312: # The linker used to build libraries.
                   24313: LD=$lt_LD
                   24314: 
                   24315: # How to create reloadable object files.
                   24316: reload_flag=$lt_reload_flag
                   24317: reload_cmds=$lt_reload_cmds
                   24318: 
                   24319: # Commands used to build an old-style archive.
                   24320: old_archive_cmds=$lt_old_archive_cmds
                   24321: 
                   24322: # A language specific compiler.
                   24323: CC=$lt_compiler
                   24324: 
                   24325: # Is the compiler the GNU compiler?
                   24326: with_gcc=$GCC
                   24327: 
                   24328: # Compiler flag to turn off builtin functions.
                   24329: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
                   24330: 
                   24331: # Additional compiler flags for building library objects.
                   24332: pic_flag=$lt_lt_prog_compiler_pic
                   24333: 
                   24334: # How to pass a linker flag through the compiler.
                   24335: wl=$lt_lt_prog_compiler_wl
                   24336: 
                   24337: # Compiler flag to prevent dynamic linking.
                   24338: link_static_flag=$lt_lt_prog_compiler_static
                   24339: 
                   24340: # Does compiler simultaneously support -c and -o options?
                   24341: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
                   24342: 
                   24343: # Whether or not to add -lc for building shared libraries.
                   24344: build_libtool_need_lc=$archive_cmds_need_lc
                   24345: 
                   24346: # Whether or not to disallow shared libs when runtime libs are static.
                   24347: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
                   24348: 
                   24349: # Compiler flag to allow reflexive dlopens.
                   24350: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
                   24351: 
                   24352: # Compiler flag to generate shared objects directly from archives.
                   24353: whole_archive_flag_spec=$lt_whole_archive_flag_spec
                   24354: 
                   24355: # Whether the compiler copes with passing no objects directly.
                   24356: compiler_needs_object=$lt_compiler_needs_object
                   24357: 
                   24358: # Create an old-style archive from a shared archive.
                   24359: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
                   24360: 
                   24361: # Create a temporary old-style archive to link instead of a shared archive.
                   24362: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
                   24363: 
                   24364: # Commands used to build a shared archive.
                   24365: archive_cmds=$lt_archive_cmds
                   24366: archive_expsym_cmds=$lt_archive_expsym_cmds
                   24367: 
                   24368: # Commands used to build a loadable module if different from building
                   24369: # a shared archive.
                   24370: module_cmds=$lt_module_cmds
                   24371: module_expsym_cmds=$lt_module_expsym_cmds
                   24372: 
                   24373: # Whether we are building with GNU ld or not.
                   24374: with_gnu_ld=$lt_with_gnu_ld
                   24375: 
                   24376: # Flag that allows shared libraries with undefined symbols to be built.
                   24377: allow_undefined_flag=$lt_allow_undefined_flag
                   24378: 
                   24379: # Flag that enforces no undefined symbols.
                   24380: no_undefined_flag=$lt_no_undefined_flag
                   24381: 
                   24382: # Flag to hardcode \$libdir into a binary during linking.
                   24383: # This must work even if \$libdir does not exist
                   24384: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
                   24385: 
                   24386: # Whether we need a single "-rpath" flag with a separated argument.
                   24387: hardcode_libdir_separator=$lt_hardcode_libdir_separator
                   24388: 
1.1.1.6 ! misho    24389: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.1       misho    24390: # DIR into the resulting binary.
                   24391: hardcode_direct=$hardcode_direct
                   24392: 
1.1.1.6 ! misho    24393: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.1       misho    24394: # DIR into the resulting binary and the resulting library dependency is
1.1.1.6 ! misho    24395: # "absolute",i.e impossible to change by setting \$shlibpath_var if the
1.1       misho    24396: # library is relocated.
                   24397: hardcode_direct_absolute=$hardcode_direct_absolute
                   24398: 
                   24399: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
                   24400: # into the resulting binary.
                   24401: hardcode_minus_L=$hardcode_minus_L
                   24402: 
                   24403: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
                   24404: # into the resulting binary.
                   24405: hardcode_shlibpath_var=$hardcode_shlibpath_var
                   24406: 
                   24407: # Set to "yes" if building a shared library automatically hardcodes DIR
                   24408: # into the library and all subsequent libraries and executables linked
                   24409: # against it.
                   24410: hardcode_automatic=$hardcode_automatic
                   24411: 
                   24412: # Set to yes if linker adds runtime paths of dependent libraries
                   24413: # to runtime path list.
                   24414: inherit_rpath=$inherit_rpath
                   24415: 
                   24416: # Whether libtool must link a program against all its dependency libraries.
                   24417: link_all_deplibs=$link_all_deplibs
                   24418: 
                   24419: # Set to "yes" if exported symbols are required.
                   24420: always_export_symbols=$always_export_symbols
                   24421: 
                   24422: # The commands to list exported symbols.
                   24423: export_symbols_cmds=$lt_export_symbols_cmds
                   24424: 
                   24425: # Symbols that should not be listed in the preloaded symbols.
                   24426: exclude_expsyms=$lt_exclude_expsyms
                   24427: 
                   24428: # Symbols that must always be exported.
                   24429: include_expsyms=$lt_include_expsyms
                   24430: 
                   24431: # Commands necessary for linking programs (against libraries) with templates.
                   24432: prelink_cmds=$lt_prelink_cmds
                   24433: 
                   24434: # Commands necessary for finishing linking programs.
                   24435: postlink_cmds=$lt_postlink_cmds
                   24436: 
                   24437: # Specify filename containing input files.
                   24438: file_list_spec=$lt_file_list_spec
                   24439: 
                   24440: # How to hardcode a shared library path into an executable.
                   24441: hardcode_action=$hardcode_action
                   24442: 
                   24443: # ### END LIBTOOL CONFIG
                   24444: 
                   24445: _LT_EOF
                   24446: 
                   24447:   case $host_os in
                   24448:   aix3*)
                   24449:     cat <<\_LT_EOF >> "$cfgfile"
                   24450: # AIX sometimes has problems with the GCC collect2 program.  For some
                   24451: # reason, if we set the COLLECT_NAMES environment variable, the problems
                   24452: # vanish in a puff of smoke.
1.1.1.6 ! misho    24453: if test set != "${COLLECT_NAMES+set}"; then
1.1       misho    24454:   COLLECT_NAMES=
                   24455:   export COLLECT_NAMES
                   24456: fi
                   24457: _LT_EOF
                   24458:     ;;
                   24459:   esac
                   24460: 
                   24461: 
1.1.1.6 ! misho    24462: ltmain=$ac_aux_dir/ltmain.sh
1.1       misho    24463: 
                   24464: 
                   24465:   # We use sed instead of cat because bash on DJGPP gets confused if
                   24466:   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
                   24467:   # text mode, it properly converts lines to CR/LF.  This bash problem
                   24468:   # is reportedly fixed, but why not run on old versions too?
                   24469:   sed '$q' "$ltmain" >> "$cfgfile" \
                   24470:      || (rm -f "$cfgfile"; exit 1)
                   24471: 
                   24472:    mv -f "$cfgfile" "$ofile" ||
                   24473:     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
                   24474:   chmod +x "$ofile"
                   24475: 
                   24476:  ;;
                   24477: 
                   24478:   esac
                   24479: done # for ac_tag
                   24480: 
                   24481: 
                   24482: as_fn_exit 0
                   24483: _ACEOF
                   24484: ac_clean_files=$ac_clean_files_save
                   24485: 
                   24486: test $ac_write_fail = 0 ||
                   24487:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
                   24488: 
                   24489: 
                   24490: # configure is writing to config.log, and then calls config.status.
                   24491: # config.status does its own redirection, appending to config.log.
                   24492: # Unfortunately, on DOS this fails, as config.log is still kept open
                   24493: # by configure, so config.status won't be able to write to it; its
                   24494: # output is simply discarded.  So we exec the FD to /dev/null,
                   24495: # effectively closing config.log, so it can be properly (re)opened and
                   24496: # appended to by config.status.  When coming back to configure, we
                   24497: # need to make the FD available again.
                   24498: if test "$no_create" != yes; then
                   24499:   ac_cs_success=:
                   24500:   ac_config_status_args=
                   24501:   test "$silent" = yes &&
                   24502:     ac_config_status_args="$ac_config_status_args --quiet"
                   24503:   exec 5>/dev/null
                   24504:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   24505:   exec 5>>config.log
                   24506:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   24507:   # would make configure fail if this is the last instruction.
                   24508:   $ac_cs_success || as_fn_exit 1
                   24509: fi
                   24510: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   24511:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   24512: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   24513: fi
                   24514: 
                   24515: 
                   24516: if test "$with_pam" = "yes"; then
1.1.1.4   misho    24517:     case $host_os in
                   24518:        hpux*)
1.1.1.2   misho    24519:            if test -f /usr/lib/security/libpam_hpsec.so.1; then
                   24520:                { $as_echo "$as_me:${as_lineno-$LINENO}: You may wish to add the following line to /etc/pam.conf" >&5
                   24521: $as_echo "$as_me: You may wish to add the following line to /etc/pam.conf" >&6;}
                   24522:                { $as_echo "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5
                   24523: $as_echo "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;}
                   24524:            fi
                   24525:            ;;
1.1.1.4   misho    24526:        linux*)
1.1       misho    24527:            { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
                   24528: $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
                   24529:            ;;
                   24530:     esac
                   24531: fi
1.1.1.6 ! misho    24532: case "$rundir" in
        !          24533:     /var/run*)
        !          24534:        clear_rundir=0
        !          24535:        ;;
        !          24536:     *)
        !          24537:        clear_rundir=1
        !          24538:        ;;
        !          24539: esac
        !          24540: if test $clear_rundir -eq 1; then
        !          24541:     { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: the $rundir/ts directory must be cleared at boot time." >&5
        !          24542: $as_echo "$as_me: Warning: the $rundir/ts directory must be cleared at boot time." >&6;}
        !          24543:     { $as_echo "$as_me:${as_lineno-$LINENO}:          You may need to create a startup item to do this." >&5
        !          24544: $as_echo "$as_me:          You may need to create a startup item to do this." >&6;}
        !          24545: fi
        !          24546: 
1.1       misho    24547: 
                   24548: 
                   24549: 
                   24550: 
                   24551: 
                   24552: 
                   24553: 
                   24554: 
                   24555: 
                   24556: 
                   24557: 
                   24558: 
                   24559: 
                   24560: 
                   24561: 
                   24562: 
                   24563: 
                   24564: 
                   24565: 
                   24566: 
                   24567: 
                   24568: 
                   24569: 
                   24570: 
                   24571: 
                   24572: 
                   24573: 
                   24574: 
                   24575: 
                   24576: 
                   24577: 
                   24578: 
                   24579: 
                   24580: 
                   24581: 
                   24582: 
                   24583: 
                   24584: 
                   24585: 
                   24586: 
                   24587: 
                   24588: 
                   24589: 
                   24590: 
                   24591: 
                   24592: 
                   24593: 
                   24594: 
                   24595: 
                   24596: 
                   24597: 
                   24598: 
                   24599: 
                   24600: 
                   24601: 
                   24602: 
                   24603: 
                   24604: 
                   24605: 
                   24606: 
                   24607: 
                   24608: 
                   24609: 
                   24610: 
                   24611: 
                   24612: 
                   24613: 
                   24614: 
                   24615: 
                   24616: 
                   24617: 
                   24618: 
                   24619: 
                   24620: 
                   24621: 
                   24622: 
                   24623: 
                   24624: 
                   24625: 
                   24626: 
                   24627: 
                   24628: 
                   24629: 
                   24630: 
                   24631: 
                   24632: 
                   24633: 
                   24634: 
                   24635: 
                   24636: 
                   24637: 
                   24638: 
                   24639: 
1.1.1.2   misho    24640: 
                   24641: 
1.1.1.3   misho    24642: 
                   24643: 
                   24644: 
1.1.1.4   misho    24645: 
                   24646: 
                   24647: 
                   24648: 
                   24649: 
1.1.1.5   misho    24650: 
                   24651: 

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