[BACK]Return to configure CVS log [TXT][DIR] Up to [local] / src / usr.bin / sudo

Annotation of src/usr.bin/sudo/configure, Revision 1.48

1.1       millert     1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.48    ! millert     3: # Generated by GNU Autoconf 2.61 for sudo 1.7.2p8.
1.40      millert     4: #
                      5: # Report bugs to <http://www.sudo.ws/bugs/>.
1.1       millert     6: #
1.27      millert     7: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
                      8: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1       millert     9: # This configure script is free software; the Free Software Foundation
                     10: # gives unlimited permission to copy, distribute and modify it.
1.16      millert    11: ## --------------------- ##
                     12: ## M4sh Initialization.  ##
                     13: ## --------------------- ##
1.1       millert    14:
1.27      millert    15: # Be more Bourne compatible
                     16: DUALCASE=1; export DUALCASE # for MKS sh
1.16      millert    17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                     18:   emulate sh
                     19:   NULLCMD=:
                     20:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                     21:   # is contrary to our usage.  Disable this feature.
                     22:   alias -g '${1+"$@"}'='"$@"'
1.27      millert    23:   setopt NO_GLOB_SUBST
                     24: else
                     25:   case `(set -o) 2>/dev/null` in
                     26:   *posix*) set -o posix ;;
                     27: esac
                     28:
                     29: fi
                     30:
                     31:
                     32:
                     33:
                     34: # PATH needs CR
                     35: # Avoid depending upon Character Ranges.
                     36: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                     37: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                     38: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                     39: as_cr_digits='0123456789'
                     40: as_cr_alnum=$as_cr_Letters$as_cr_digits
                     41:
                     42: # The user is always right.
                     43: if test "${PATH_SEPARATOR+set}" != set; then
                     44:   echo "#! /bin/sh" >conf$$.sh
                     45:   echo  "exit 0"   >>conf$$.sh
                     46:   chmod +x conf$$.sh
                     47:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
                     48:     PATH_SEPARATOR=';'
                     49:   else
                     50:     PATH_SEPARATOR=:
                     51:   fi
                     52:   rm -f conf$$.sh
1.16      millert    53: fi
                     54:
                     55: # Support unset when possible.
1.25      millert    56: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.16      millert    57:   as_unset=unset
                     58: else
                     59:   as_unset=false
                     60: fi
                     61:
                     62:
1.27      millert    63: # IFS
                     64: # We need space, tab and new line, in precisely that order.  Quoting is
                     65: # there to prevent editors from complaining about space-tab.
                     66: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     67: # splitting by setting IFS to empty value.)
                     68: as_nl='
                     69: '
                     70: IFS=" ""       $as_nl"
                     71:
                     72: # Find who we are.  Look in the path if we contain no directory separator.
                     73: case $0 in
                     74:   *[\\/]* ) as_myself=$0 ;;
                     75:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     76: for as_dir in $PATH
                     77: do
                     78:   IFS=$as_save_IFS
                     79:   test -z "$as_dir" && as_dir=.
                     80:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                     81: done
                     82: IFS=$as_save_IFS
                     83:
                     84:      ;;
                     85: esac
                     86: # We did not find ourselves, most probably we were run as `sh COMMAND'
                     87: # in which case we are not to be found in the path.
                     88: if test "x$as_myself" = x; then
                     89:   as_myself=$0
                     90: fi
                     91: if test ! -f "$as_myself"; then
                     92:   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                     93:   { (exit 1); exit 1; }
                     94: fi
                     95:
1.16      millert    96: # Work around bugs in pre-3.0 UWIN ksh.
1.27      millert    97: for as_var in ENV MAIL MAILPATH
                     98: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                     99: done
1.16      millert   100: PS1='$ '
                    101: PS2='> '
                    102: PS4='+ '
                    103:
                    104: # NLS nuisances.
                    105: for as_var in \
                    106:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
                    107:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
                    108:   LC_TELEPHONE LC_TIME
                    109: do
1.25      millert   110:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.16      millert   111:     eval $as_var=C; export $as_var
                    112:   else
1.27      millert   113:     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.16      millert   114:   fi
                    115: done
                    116:
                    117: # Required to use basename.
1.27      millert   118: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    119:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.16      millert   120:   as_expr=expr
                    121: else
                    122:   as_expr=false
                    123: fi
                    124:
1.27      millert   125: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.16      millert   126:   as_basename=basename
                    127: else
                    128:   as_basename=false
                    129: fi
                    130:
                    131:
                    132: # Name of the executable.
1.27      millert   133: as_me=`$as_basename -- "$0" ||
1.16      millert   134: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    135:         X"$0" : 'X\(//\)$' \| \
1.27      millert   136:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.16      millert   137: echo X/"$0" |
1.27      millert   138:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    139:            s//\1/
                    140:            q
                    141:          }
                    142:          /^X\/\(\/\/\)$/{
                    143:            s//\1/
                    144:            q
                    145:          }
                    146:          /^X\/\(\/\).*/{
                    147:            s//\1/
                    148:            q
                    149:          }
                    150:          s/.*/./; q'`
                    151:
                    152: # CDPATH.
                    153: $as_unset CDPATH
                    154:
1.16      millert   155:
1.27      millert   156: if test "x$CONFIG_SHELL" = x; then
                    157:   if (eval ":") 2>/dev/null; then
                    158:   as_have_required=yes
                    159: else
                    160:   as_have_required=no
                    161: fi
                    162:
                    163:   if test $as_have_required = yes &&    (eval ":
                    164: (as_func_return () {
                    165:   (exit \$1)
                    166: }
                    167: as_func_success () {
                    168:   as_func_return 0
                    169: }
                    170: as_func_failure () {
                    171:   as_func_return 1
                    172: }
                    173: as_func_ret_success () {
                    174:   return 0
                    175: }
                    176: as_func_ret_failure () {
                    177:   return 1
                    178: }
1.16      millert   179:
1.27      millert   180: exitcode=0
                    181: if as_func_success; then
                    182:   :
                    183: else
                    184:   exitcode=1
                    185:   echo as_func_success failed.
                    186: fi
                    187:
                    188: if as_func_failure; then
                    189:   exitcode=1
                    190:   echo as_func_failure succeeded.
                    191: fi
                    192:
                    193: if as_func_ret_success; then
                    194:   :
                    195: else
                    196:   exitcode=1
                    197:   echo as_func_ret_success failed.
                    198: fi
1.9       millert   199:
1.27      millert   200: if as_func_ret_failure; then
                    201:   exitcode=1
                    202:   echo as_func_ret_failure succeeded.
1.16      millert   203: fi
                    204:
1.27      millert   205: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
                    206:   :
                    207: else
                    208:   exitcode=1
                    209:   echo positional parameters were not saved.
                    210: fi
1.16      millert   211:
1.27      millert   212: test \$exitcode = 0) || { (exit 1); exit 1; }
1.16      millert   213:
1.27      millert   214: (
                    215:   as_lineno_1=\$LINENO
                    216:   as_lineno_2=\$LINENO
                    217:   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
                    218:   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
                    219: ") 2> /dev/null; then
                    220:   :
                    221: else
                    222:   as_candidate_shells=
1.16      millert   223:     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    224: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    225: do
                    226:   IFS=$as_save_IFS
                    227:   test -z "$as_dir" && as_dir=.
1.27      millert   228:   case $as_dir in
1.16      millert   229:         /*)
1.27      millert   230:           for as_base in sh bash ksh sh5; do
                    231:             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
                    232:           done;;
                    233:        esac
                    234: done
                    235: IFS=$as_save_IFS
                    236:
                    237:
                    238:       for as_shell in $as_candidate_shells $SHELL; do
                    239:         # Try only shells that exist, to save several forks.
                    240:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    241:                { ("$as_shell") 2> /dev/null <<\_ASEOF
                    242: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                    243:   emulate sh
                    244:   NULLCMD=:
                    245:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                    246:   # is contrary to our usage.  Disable this feature.
                    247:   alias -g '${1+"$@"}'='"$@"'
                    248:   setopt NO_GLOB_SUBST
                    249: else
                    250:   case `(set -o) 2>/dev/null` in
                    251:   *posix*) set -o posix ;;
                    252: esac
                    253:
                    254: fi
                    255:
                    256:
                    257: :
                    258: _ASEOF
                    259: }; then
                    260:   CONFIG_SHELL=$as_shell
                    261:               as_have_required=yes
                    262:               if { "$as_shell" 2> /dev/null <<\_ASEOF
                    263: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                    264:   emulate sh
                    265:   NULLCMD=:
                    266:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                    267:   # is contrary to our usage.  Disable this feature.
                    268:   alias -g '${1+"$@"}'='"$@"'
                    269:   setopt NO_GLOB_SUBST
                    270: else
                    271:   case `(set -o) 2>/dev/null` in
                    272:   *posix*) set -o posix ;;
                    273: esac
                    274:
                    275: fi
                    276:
                    277:
                    278: :
                    279: (as_func_return () {
                    280:   (exit $1)
                    281: }
                    282: as_func_success () {
                    283:   as_func_return 0
                    284: }
                    285: as_func_failure () {
                    286:   as_func_return 1
                    287: }
                    288: as_func_ret_success () {
                    289:   return 0
                    290: }
                    291: as_func_ret_failure () {
                    292:   return 1
                    293: }
                    294:
                    295: exitcode=0
                    296: if as_func_success; then
                    297:   :
                    298: else
                    299:   exitcode=1
                    300:   echo as_func_success failed.
                    301: fi
                    302:
                    303: if as_func_failure; then
                    304:   exitcode=1
                    305:   echo as_func_failure succeeded.
                    306: fi
                    307:
                    308: if as_func_ret_success; then
                    309:   :
                    310: else
                    311:   exitcode=1
                    312:   echo as_func_ret_success failed.
                    313: fi
                    314:
                    315: if as_func_ret_failure; then
                    316:   exitcode=1
                    317:   echo as_func_ret_failure succeeded.
                    318: fi
                    319:
                    320: if ( set x; as_func_ret_success y && test x = "$1" ); then
                    321:   :
                    322: else
                    323:   exitcode=1
                    324:   echo positional parameters were not saved.
                    325: fi
                    326:
                    327: test $exitcode = 0) || { (exit 1); exit 1; }
                    328:
                    329: (
                    330:   as_lineno_1=$LINENO
                    331:   as_lineno_2=$LINENO
                    332:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                    333:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
                    334:
                    335: _ASEOF
                    336: }; then
                    337:   break
                    338: fi
                    339:
                    340: fi
                    341:
                    342:       done
                    343:
                    344:       if test "x$CONFIG_SHELL" != x; then
                    345:   for as_var in BASH_ENV ENV
                    346:         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                    347:         done
                    348:         export CONFIG_SHELL
                    349:         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
                    350: fi
                    351:
                    352:
                    353:     if test $as_have_required = no; then
                    354:   echo This script requires a shell more modern than all the
                    355:       echo shells that I found on your system.  Please install a
                    356:       echo modern shell, or manually run the script under such a
                    357:       echo shell if you do have one.
                    358:       { (exit 1); exit 1; }
                    359: fi
                    360:
                    361:
                    362: fi
                    363:
                    364: fi
                    365:
                    366:
                    367:
                    368: (eval "as_func_return () {
                    369:   (exit \$1)
                    370: }
                    371: as_func_success () {
                    372:   as_func_return 0
                    373: }
                    374: as_func_failure () {
                    375:   as_func_return 1
                    376: }
                    377: as_func_ret_success () {
                    378:   return 0
                    379: }
                    380: as_func_ret_failure () {
                    381:   return 1
                    382: }
                    383:
                    384: exitcode=0
                    385: if as_func_success; then
                    386:   :
                    387: else
                    388:   exitcode=1
                    389:   echo as_func_success failed.
                    390: fi
                    391:
                    392: if as_func_failure; then
                    393:   exitcode=1
                    394:   echo as_func_failure succeeded.
                    395: fi
                    396:
                    397: if as_func_ret_success; then
                    398:   :
                    399: else
                    400:   exitcode=1
                    401:   echo as_func_ret_success failed.
                    402: fi
                    403:
                    404: if as_func_ret_failure; then
                    405:   exitcode=1
                    406:   echo as_func_ret_failure succeeded.
                    407: fi
                    408:
                    409: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
                    410:   :
                    411: else
                    412:   exitcode=1
                    413:   echo positional parameters were not saved.
                    414: fi
                    415:
                    416: test \$exitcode = 0") || {
                    417:   echo No shell found that supports shell functions.
                    418:   echo Please tell autoconf@gnu.org about your system,
                    419:   echo including any error possibly output before this
                    420:   echo message
                    421: }
                    422:
                    423:
                    424:
1.16      millert   425:   as_lineno_1=$LINENO
                    426:   as_lineno_2=$LINENO
                    427:   test "x$as_lineno_1" != "x$as_lineno_2" &&
1.27      millert   428:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.9       millert   429:
1.16      millert   430:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                    431:   # uniformly replaced by the line number.  The first 'sed' inserts a
1.27      millert   432:   # line-number line after each line using $LINENO; the second 'sed'
                    433:   # does the real work.  The second script uses 'N' to pair each
                    434:   # line-number line with the line containing $LINENO, and appends
                    435:   # trailing '-' during substitution so that $LINENO is not a special
                    436:   # case at line end.
1.16      millert   437:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.27      millert   438:   # scripts with optimization help from Paolo Bonzini.  Blame Lee
                    439:   # E. McMahon (1931-1989) for sed's syntax.  :-)
                    440:   sed -n '
                    441:     p
                    442:     /[$]LINENO/=
                    443:   ' <$as_myself |
1.16      millert   444:     sed '
1.27      millert   445:       s/[$]LINENO.*/&-/
                    446:       t lineno
                    447:       b
                    448:       :lineno
1.16      millert   449:       N
1.27      millert   450:       :loop
                    451:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.16      millert   452:       t loop
1.27      millert   453:       s/-\n.*//
1.16      millert   454:     ' >$as_me.lineno &&
1.27      millert   455:   chmod +x "$as_me.lineno" ||
1.16      millert   456:     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
                    457:    { (exit 1); exit 1; }; }
                    458:
                    459:   # Don't try to exec as it changes $[0], causing all sort of problems
                    460:   # (the dirname of $[0] is not the place where we might find the
1.27      millert   461:   # original and so on.  Autoconf is especially sensitive to this).
                    462:   . "./$as_me.lineno"
1.16      millert   463:   # Exit status is that of the last command.
                    464:   exit
                    465: }
1.9       millert   466:
                    467:
1.27      millert   468: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    469:   as_dirname=dirname
                    470: else
                    471:   as_dirname=false
                    472: fi
                    473:
                    474: ECHO_C= ECHO_N= ECHO_T=
                    475: case `echo -n x` in
                    476: -n*)
                    477:   case `echo 'x\c'` in
                    478:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                    479:   *)   ECHO_C='\c';;
                    480:   esac;;
                    481: *)
                    482:   ECHO_N='-n';;
1.16      millert   483: esac
1.9       millert   484:
1.27      millert   485: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    486:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.9       millert   487:   as_expr=expr
                    488: else
                    489:   as_expr=false
                    490: fi
                    491:
                    492: rm -f conf$$ conf$$.exe conf$$.file
1.27      millert   493: if test -d conf$$.dir; then
                    494:   rm -f conf$$.dir/conf$$.file
                    495: else
                    496:   rm -f conf$$.dir
                    497:   mkdir conf$$.dir
                    498: fi
1.9       millert   499: echo >conf$$.file
                    500: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.27      millert   501:   as_ln_s='ln -s'
                    502:   # ... but there are two gotchas:
                    503:   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    504:   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    505:   # In both cases, we have to default to `cp -p'.
                    506:   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.9       millert   507:     as_ln_s='cp -p'
                    508: elif ln conf$$.file conf$$ 2>/dev/null; then
                    509:   as_ln_s=ln
                    510: else
                    511:   as_ln_s='cp -p'
                    512: fi
1.27      millert   513: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    514: rmdir conf$$.dir 2>/dev/null
1.9       millert   515:
1.16      millert   516: if mkdir -p . 2>/dev/null; then
                    517:   as_mkdir_p=:
                    518: else
1.25      millert   519:   test -d ./-p && rmdir ./-p
1.16      millert   520:   as_mkdir_p=false
                    521: fi
                    522:
1.27      millert   523: if test -x / >/dev/null 2>&1; then
                    524:   as_test_x='test -x'
                    525: else
                    526:   if ls -dL / >/dev/null 2>&1; then
                    527:     as_ls_L_option=L
                    528:   else
                    529:     as_ls_L_option=
                    530:   fi
                    531:   as_test_x='
                    532:     eval sh -c '\''
                    533:       if test -d "$1"; then
                    534:         test -d "$1/.";
                    535:       else
                    536:        case $1 in
                    537:         -*)set "./$1";;
                    538:        esac;
                    539:        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
                    540:        ???[sx]*):;;*)false;;esac;fi
                    541:     '\'' sh
                    542:   '
                    543: fi
                    544: as_executable_p=$as_test_x
1.9       millert   545:
1.16      millert   546: # Sed expression to map a string onto a valid CPP name.
1.25      millert   547: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.16      millert   548:
                    549: # Sed expression to map a string onto a valid variable name.
1.25      millert   550: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.9       millert   551:
                    552:
                    553:
1.23      millert   554:
                    555: # Check that we are running under the correct shell.
                    556: SHELL=${CONFIG_SHELL-/bin/sh}
                    557:
1.27      millert   558: case X$ECHO in
1.23      millert   559: X*--fallback-echo)
                    560:   # Remove one level of quotation (which was required for Make).
1.27      millert   561:   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
1.23      millert   562:   ;;
                    563: esac
                    564:
1.27      millert   565: echo=${ECHO-echo}
1.23      millert   566: if test "X$1" = X--no-reexec; then
                    567:   # Discard the --no-reexec flag, and continue.
                    568:   shift
                    569: elif test "X$1" = X--fallback-echo; then
                    570:   # Avoid inline document here, it may be left over
                    571:   :
1.27      millert   572: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
                    573:   # Yippee, $echo works!
1.23      millert   574:   :
                    575: else
                    576:   # Restart under the correct shell.
                    577:   exec $SHELL "$0" --no-reexec ${1+"$@"}
                    578: fi
                    579:
                    580: if test "X$1" = X--fallback-echo; then
                    581:   # used as fallback echo
                    582:   shift
1.27      millert   583:   cat <<EOF
1.23      millert   584: $*
1.27      millert   585: EOF
1.23      millert   586:   exit 0
                    587: fi
                    588:
                    589: # The HP-UX ksh and POSIX shell print the target directory to stdout
                    590: # if CDPATH is set.
1.25      millert   591: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.23      millert   592:
1.27      millert   593: if test -z "$ECHO"; then
                    594: if test "X${echo_test_string+set}" != Xset; then
                    595: # find a string as large as possible, as long as the shell can cope with it
                    596:   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
                    597:     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
                    598:     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
                    599:        echo_test_string=`eval $cmd` &&
                    600:        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
                    601:     then
                    602:       break
                    603:     fi
                    604:   done
                    605: fi
1.23      millert   606:
1.27      millert   607: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
                    608:    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
                    609:    test "X$echo_testing_string" = "X$echo_test_string"; then
                    610:   :
                    611: else
                    612:   # The Solaris, AIX, and Digital Unix default echo programs unquote
                    613:   # backslashes.  This makes it impossible to quote backslashes using
                    614:   #   echo "$something" | sed 's/\\/\\\\/g'
                    615:   #
                    616:   # So, first we look for a working echo in the user's PATH.
1.23      millert   617:
1.27      millert   618:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                    619:   for dir in $PATH /usr/ucb; do
1.23      millert   620:     IFS="$lt_save_ifs"
1.27      millert   621:     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
                    622:        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
                    623:        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
                    624:        test "X$echo_testing_string" = "X$echo_test_string"; then
                    625:       echo="$dir/echo"
                    626:       break
                    627:     fi
                    628:   done
                    629:   IFS="$lt_save_ifs"
1.23      millert   630:
1.27      millert   631:   if test "X$echo" = Xecho; then
                    632:     # We didn't find a better echo, so look for alternatives.
                    633:     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
                    634:        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
                    635:        test "X$echo_testing_string" = "X$echo_test_string"; then
                    636:       # This shell has a builtin print -r that does the trick.
                    637:       echo='print -r'
                    638:     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
                    639:         test "X$CONFIG_SHELL" != X/bin/ksh; then
                    640:       # If we have ksh, try running configure again with it.
                    641:       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
                    642:       export ORIGINAL_CONFIG_SHELL
                    643:       CONFIG_SHELL=/bin/ksh
                    644:       export CONFIG_SHELL
                    645:       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
                    646:     else
                    647:       # Try using printf.
                    648:       echo='printf %s\n'
                    649:       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
                    650:         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
                    651:         test "X$echo_testing_string" = "X$echo_test_string"; then
                    652:        # Cool, printf works
                    653:        :
                    654:       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
                    655:           test "X$echo_testing_string" = 'X\t' &&
                    656:           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
                    657:           test "X$echo_testing_string" = "X$echo_test_string"; then
                    658:        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
                    659:        export CONFIG_SHELL
                    660:        SHELL="$CONFIG_SHELL"
                    661:        export SHELL
                    662:        echo="$CONFIG_SHELL $0 --fallback-echo"
                    663:       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
                    664:           test "X$echo_testing_string" = 'X\t' &&
                    665:           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
                    666:           test "X$echo_testing_string" = "X$echo_test_string"; then
                    667:        echo="$CONFIG_SHELL $0 --fallback-echo"
1.25      millert   668:       else
1.27      millert   669:        # maybe with a smaller string...
                    670:        prev=:
                    671:
                    672:        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
                    673:          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
                    674:          then
                    675:            break
                    676:          fi
                    677:          prev="$cmd"
                    678:        done
1.25      millert   679:
1.27      millert   680:        if test "$prev" != 'sed 50q "$0"'; then
                    681:          echo_test_string=`eval $prev`
                    682:          export echo_test_string
                    683:          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
                    684:        else
                    685:          # Oops.  We lost completely, so just stick with echo.
                    686:          echo=echo
                    687:        fi
1.23      millert   688:       fi
                    689:     fi
                    690:   fi
                    691: fi
1.27      millert   692: fi
1.23      millert   693:
                    694: # Copy echo and quote the copy suitably for passing to libtool from
                    695: # the Makefile, instead of quoting the original, which is used later.
1.27      millert   696: ECHO=$echo
                    697: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
                    698:    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
1.23      millert   699: fi
                    700:
                    701:
                    702:
                    703:
1.27      millert   704: exec 7<&0 </dev/null 6>&1
                    705:
1.9       millert   706: # Name of the host.
                    707: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
                    708: # so uname gets run too.
                    709: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    710:
                    711: #
                    712: # Initializations.
                    713: #
1.1       millert   714: ac_default_prefix=/usr/local
1.27      millert   715: ac_clean_files=
1.16      millert   716: ac_config_libobj_dir=.
1.27      millert   717: LIBOBJS=
1.9       millert   718: cross_compiling=no
                    719: subdirs=
1.16      millert   720: MFLAGS=
                    721: MAKEFLAGS=
1.9       millert   722: SHELL=${CONFIG_SHELL-/bin/sh}
                    723:
1.16      millert   724: # Identity of this package.
                    725: PACKAGE_NAME='sudo'
                    726: PACKAGE_TARNAME='sudo'
1.48    ! millert   727: PACKAGE_VERSION='1.7.2p8'
        !           728: PACKAGE_STRING='sudo 1.7.2p8'
1.40      millert   729: PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
1.16      millert   730:
1.9       millert   731: # Factoring default headers for most tests.
                    732: ac_includes_default="\
                    733: #include <stdio.h>
1.27      millert   734: #ifdef HAVE_SYS_TYPES_H
1.9       millert   735: # include <sys/types.h>
                    736: #endif
1.27      millert   737: #ifdef HAVE_SYS_STAT_H
1.9       millert   738: # include <sys/stat.h>
                    739: #endif
1.27      millert   740: #ifdef STDC_HEADERS
1.9       millert   741: # include <stdlib.h>
                    742: # include <stddef.h>
                    743: #else
1.27      millert   744: # ifdef HAVE_STDLIB_H
1.9       millert   745: #  include <stdlib.h>
                    746: # endif
                    747: #endif
1.27      millert   748: #ifdef HAVE_STRING_H
                    749: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.9       millert   750: #  include <memory.h>
                    751: # endif
                    752: # include <string.h>
                    753: #endif
1.27      millert   754: #ifdef HAVE_STRINGS_H
1.9       millert   755: # include <strings.h>
                    756: #endif
1.27      millert   757: #ifdef HAVE_INTTYPES_H
1.9       millert   758: # include <inttypes.h>
                    759: #endif
1.27      millert   760: #ifdef HAVE_STDINT_H
                    761: # include <stdint.h>
                    762: #endif
                    763: #ifdef HAVE_UNISTD_H
1.9       millert   764: # include <unistd.h>
                    765: #endif"
1.1       millert   766:
1.27      millert   767: ac_subst_vars='SHELL
                    768: PATH_SEPARATOR
                    769: PACKAGE_NAME
                    770: PACKAGE_TARNAME
                    771: PACKAGE_VERSION
                    772: PACKAGE_STRING
                    773: PACKAGE_BUGREPORT
                    774: exec_prefix
                    775: prefix
                    776: program_transform_name
                    777: bindir
                    778: sbindir
                    779: libexecdir
                    780: datarootdir
                    781: datadir
                    782: sysconfdir
                    783: sharedstatedir
                    784: localstatedir
                    785: includedir
                    786: oldincludedir
                    787: docdir
                    788: infodir
                    789: htmldir
                    790: dvidir
                    791: pdfdir
                    792: psdir
                    793: libdir
                    794: localedir
                    795: mandir
                    796: DEFS
                    797: ECHO_C
                    798: ECHO_N
                    799: ECHO_T
                    800: LIBS
                    801: build_alias
                    802: host_alias
                    803: target_alias
1.39      millert   804: HAVE_BSM_AUDIT
1.27      millert   805: LIBTOOL
                    806: CFLAGS
                    807: PROGS
                    808: CPPFLAGS
                    809: LDFLAGS
                    810: SUDO_LDFLAGS
                    811: SUDO_OBJS
                    812: SUDO_LIBS
                    813: NET_LIBS
                    814: AFS_LIBS
1.32      millert   815: GETGROUPS_LIB
1.27      millert   816: OSDEFS
                    817: AUTH_OBJS
                    818: MANTYPE
                    819: MAN_POSTINSTALL
                    820: SUDOERS_MODE
                    821: SUDOERS_UID
                    822: SUDOERS_GID
                    823: DEV
1.36      millert   824: SELINUX
                    825: BAMAN
                    826: LCMAN
                    827: SEMAN
1.37      millert   828: devdir
1.27      millert   829: mansectsu
                    830: mansectform
                    831: mansrcdir
1.36      millert   832: NOEXECFILE
1.27      millert   833: NOEXECDIR
                    834: noexec_file
                    835: INSTALL_NOEXEC
                    836: DONT_LEAK_PATH_INFO
1.37      millert   837: BSDAUTH_USAGE
                    838: SELINUX_USAGE
                    839: LDAP
                    840: LOGINCAP_USAGE
1.40      millert   841: NONUNIX_GROUPS_IMPL
1.27      millert   842: timedir
                    843: timeout
                    844: password_timeout
                    845: sudo_umask
                    846: passprompt
                    847: long_otp_prompt
                    848: lecture
                    849: logfac
                    850: goodpri
                    851: badpri
                    852: loglen
                    853: ignore_dot
                    854: mail_no_user
                    855: mail_no_host
                    856: mail_no_perms
                    857: mailto
                    858: mailsub
                    859: badpass_message
                    860: fqdn
                    861: runas_default
                    862: env_editor
                    863: passwd_tries
                    864: tty_tickets
                    865: insults
                    866: root_sudo
                    867: path_info
1.37      millert   868: ldap_conf
                    869: ldap_secret
                    870: nsswitch_conf
1.39      millert   871: netsvc_conf
1.41      millert   872: secure_path
1.27      millert   873: CC
                    874: ac_ct_CC
                    875: EXEEXT
                    876: OBJEXT
1.47      millert   877: EGREPPROG
1.27      millert   878: CPP
                    879: build
                    880: build_cpu
                    881: build_vendor
                    882: build_os
                    883: host
                    884: host_cpu
                    885: host_vendor
                    886: host_os
                    887: SED
                    888: GREP
                    889: EGREP
                    890: LN_S
                    891: ECHO
                    892: AR
                    893: RANLIB
                    894: STRIP
1.36      millert   895: DSYMUTIL
                    896: NMEDIT
1.27      millert   897: UNAMEPROG
                    898: TRPROG
                    899: NROFFPROG
                    900: YACC
                    901: YFLAGS
1.40      millert   902: FLEX
1.27      millert   903: LIBOBJS
                    904: KRB5CONFIG
                    905: LTLIBOBJS'
1.16      millert   906: ac_subst_files=''
1.27      millert   907:       ac_precious_vars='build_alias
                    908: host_alias
                    909: target_alias
                    910: CC
                    911: CFLAGS
                    912: LDFLAGS
                    913: LIBS
                    914: CPPFLAGS
                    915: CPP
                    916: YACC
                    917: YFLAGS'
                    918:
1.16      millert   919:
1.1       millert   920: # Initialize some variables set by options.
1.9       millert   921: ac_init_help=
                    922: ac_init_version=false
1.1       millert   923: # The variables have the same names as the options, with
                    924: # dashes changed to underlines.
1.9       millert   925: cache_file=/dev/null
1.1       millert   926: exec_prefix=NONE
                    927: no_create=
                    928: no_recursion=
                    929: prefix=NONE
                    930: program_prefix=NONE
                    931: program_suffix=NONE
                    932: program_transform_name=s,x,x,
                    933: silent=
                    934: site=
                    935: srcdir=
                    936: verbose=
                    937: x_includes=NONE
                    938: x_libraries=NONE
1.9       millert   939:
                    940: # Installation directory options.
                    941: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    942: # and all the variables that are supposed to be based on exec_prefix
                    943: # by default will actually change.
                    944: # Use braces instead of parens because sh, perl, etc. also accept them.
1.27      millert   945: # (The list follows the same order as the GNU Coding Standards.)
1.1       millert   946: bindir='${exec_prefix}/bin'
                    947: sbindir='${exec_prefix}/sbin'
                    948: libexecdir='${exec_prefix}/libexec'
1.27      millert   949: datarootdir='${prefix}/share'
                    950: datadir='${datarootdir}'
1.1       millert   951: sysconfdir='${prefix}/etc'
                    952: sharedstatedir='${prefix}/com'
                    953: localstatedir='${prefix}/var'
                    954: includedir='${prefix}/include'
                    955: oldincludedir='/usr/include'
1.27      millert   956: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    957: infodir='${datarootdir}/info'
                    958: htmldir='${docdir}'
                    959: dvidir='${docdir}'
                    960: pdfdir='${docdir}'
                    961: psdir='${docdir}'
                    962: libdir='${exec_prefix}/lib'
                    963: localedir='${datarootdir}/locale'
                    964: mandir='${datarootdir}/man'
1.1       millert   965:
                    966: ac_prev=
1.27      millert   967: ac_dashdash=
1.1       millert   968: for ac_option
                    969: do
                    970:   # If the previous option needs an argument, assign it.
                    971:   if test -n "$ac_prev"; then
1.27      millert   972:     eval $ac_prev=\$ac_option
1.1       millert   973:     ac_prev=
                    974:     continue
                    975:   fi
                    976:
1.27      millert   977:   case $ac_option in
                    978:   *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    979:   *)   ac_optarg=yes ;;
                    980:   esac
1.1       millert   981:
                    982:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    983:
1.27      millert   984:   case $ac_dashdash$ac_option in
                    985:   --)
                    986:     ac_dashdash=yes ;;
1.1       millert   987:
                    988:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    989:     ac_prev=bindir ;;
                    990:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.9       millert   991:     bindir=$ac_optarg ;;
1.1       millert   992:
                    993:   -build | --build | --buil | --bui | --bu)
1.9       millert   994:     ac_prev=build_alias ;;
1.1       millert   995:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.9       millert   996:     build_alias=$ac_optarg ;;
1.1       millert   997:
                    998:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    999:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   1000:     ac_prev=cache_file ;;
                   1001:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   1002:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.9       millert  1003:     cache_file=$ac_optarg ;;
                   1004:
                   1005:   --config-cache | -C)
                   1006:     cache_file=config.cache ;;
1.1       millert  1007:
1.27      millert  1008:   -datadir | --datadir | --datadi | --datad)
1.1       millert  1009:     ac_prev=datadir ;;
1.27      millert  1010:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.9       millert  1011:     datadir=$ac_optarg ;;
1.1       millert  1012:
1.27      millert  1013:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                   1014:   | --dataroo | --dataro | --datar)
                   1015:     ac_prev=datarootdir ;;
                   1016:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                   1017:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                   1018:     datarootdir=$ac_optarg ;;
                   1019:
1.1       millert  1020:   -disable-* | --disable-*)
1.9       millert  1021:     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       millert  1022:     # Reject names that are not valid shell variable names.
1.27      millert  1023:     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1024:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                   1025:    { (exit 1); exit 1; }; }
1.27      millert  1026:     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
                   1027:     eval enable_$ac_feature=no ;;
                   1028:
                   1029:   -docdir | --docdir | --docdi | --doc | --do)
                   1030:     ac_prev=docdir ;;
                   1031:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                   1032:     docdir=$ac_optarg ;;
                   1033:
                   1034:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                   1035:     ac_prev=dvidir ;;
                   1036:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                   1037:     dvidir=$ac_optarg ;;
1.1       millert  1038:
                   1039:   -enable-* | --enable-*)
1.9       millert  1040:     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       millert  1041:     # Reject names that are not valid shell variable names.
1.27      millert  1042:     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1043:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                   1044:    { (exit 1); exit 1; }; }
1.27      millert  1045:     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
                   1046:     eval enable_$ac_feature=\$ac_optarg ;;
1.1       millert  1047:
                   1048:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                   1049:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                   1050:   | --exec | --exe | --ex)
                   1051:     ac_prev=exec_prefix ;;
                   1052:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                   1053:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                   1054:   | --exec=* | --exe=* | --ex=*)
1.9       millert  1055:     exec_prefix=$ac_optarg ;;
1.1       millert  1056:
                   1057:   -gas | --gas | --ga | --g)
                   1058:     # Obsolete; use --with-gas.
                   1059:     with_gas=yes ;;
                   1060:
1.9       millert  1061:   -help | --help | --hel | --he | -h)
                   1062:     ac_init_help=long ;;
                   1063:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                   1064:     ac_init_help=recursive ;;
                   1065:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                   1066:     ac_init_help=short ;;
1.1       millert  1067:
                   1068:   -host | --host | --hos | --ho)
1.9       millert  1069:     ac_prev=host_alias ;;
1.1       millert  1070:   -host=* | --host=* | --hos=* | --ho=*)
1.9       millert  1071:     host_alias=$ac_optarg ;;
1.1       millert  1072:
1.27      millert  1073:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1074:     ac_prev=htmldir ;;
                   1075:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1076:   | --ht=*)
                   1077:     htmldir=$ac_optarg ;;
                   1078:
1.1       millert  1079:   -includedir | --includedir | --includedi | --included | --include \
                   1080:   | --includ | --inclu | --incl | --inc)
                   1081:     ac_prev=includedir ;;
                   1082:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1083:   | --includ=* | --inclu=* | --incl=* | --inc=*)
1.9       millert  1084:     includedir=$ac_optarg ;;
1.1       millert  1085:
                   1086:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1087:     ac_prev=infodir ;;
                   1088:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.9       millert  1089:     infodir=$ac_optarg ;;
1.1       millert  1090:
                   1091:   -libdir | --libdir | --libdi | --libd)
                   1092:     ac_prev=libdir ;;
                   1093:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.9       millert  1094:     libdir=$ac_optarg ;;
1.1       millert  1095:
                   1096:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1097:   | --libexe | --libex | --libe)
                   1098:     ac_prev=libexecdir ;;
                   1099:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1100:   | --libexe=* | --libex=* | --libe=*)
1.9       millert  1101:     libexecdir=$ac_optarg ;;
1.1       millert  1102:
1.27      millert  1103:   -localedir | --localedir | --localedi | --localed | --locale)
                   1104:     ac_prev=localedir ;;
                   1105:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1106:     localedir=$ac_optarg ;;
                   1107:
1.1       millert  1108:   -localstatedir | --localstatedir | --localstatedi | --localstated \
1.27      millert  1109:   | --localstate | --localstat | --localsta | --localst | --locals)
1.1       millert  1110:     ac_prev=localstatedir ;;
                   1111:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.27      millert  1112:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.9       millert  1113:     localstatedir=$ac_optarg ;;
1.1       millert  1114:
                   1115:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1116:     ac_prev=mandir ;;
                   1117:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.9       millert  1118:     mandir=$ac_optarg ;;
1.1       millert  1119:
                   1120:   -nfp | --nfp | --nf)
                   1121:     # Obsolete; use --without-fp.
                   1122:     with_fp=no ;;
                   1123:
                   1124:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.16      millert  1125:   | --no-cr | --no-c | -n)
1.1       millert  1126:     no_create=yes ;;
                   1127:
                   1128:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1129:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1130:     no_recursion=yes ;;
                   1131:
                   1132:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1133:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1134:   | --oldin | --oldi | --old | --ol | --o)
                   1135:     ac_prev=oldincludedir ;;
                   1136:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1137:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1138:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.9       millert  1139:     oldincludedir=$ac_optarg ;;
1.1       millert  1140:
                   1141:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1142:     ac_prev=prefix ;;
                   1143:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.9       millert  1144:     prefix=$ac_optarg ;;
1.1       millert  1145:
                   1146:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1147:   | --program-pre | --program-pr | --program-p)
                   1148:     ac_prev=program_prefix ;;
                   1149:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1150:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.9       millert  1151:     program_prefix=$ac_optarg ;;
1.1       millert  1152:
                   1153:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1154:   | --program-suf | --program-su | --program-s)
                   1155:     ac_prev=program_suffix ;;
                   1156:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1157:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.9       millert  1158:     program_suffix=$ac_optarg ;;
1.1       millert  1159:
                   1160:   -program-transform-name | --program-transform-name \
                   1161:   | --program-transform-nam | --program-transform-na \
                   1162:   | --program-transform-n | --program-transform- \
                   1163:   | --program-transform | --program-transfor \
                   1164:   | --program-transfo | --program-transf \
                   1165:   | --program-trans | --program-tran \
                   1166:   | --progr-tra | --program-tr | --program-t)
                   1167:     ac_prev=program_transform_name ;;
                   1168:   -program-transform-name=* | --program-transform-name=* \
                   1169:   | --program-transform-nam=* | --program-transform-na=* \
                   1170:   | --program-transform-n=* | --program-transform-=* \
                   1171:   | --program-transform=* | --program-transfor=* \
                   1172:   | --program-transfo=* | --program-transf=* \
                   1173:   | --program-trans=* | --program-tran=* \
                   1174:   | --progr-tra=* | --program-tr=* | --program-t=*)
1.9       millert  1175:     program_transform_name=$ac_optarg ;;
1.1       millert  1176:
1.27      millert  1177:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1178:     ac_prev=pdfdir ;;
                   1179:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1180:     pdfdir=$ac_optarg ;;
                   1181:
                   1182:   -psdir | --psdir | --psdi | --psd | --ps)
                   1183:     ac_prev=psdir ;;
                   1184:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1185:     psdir=$ac_optarg ;;
                   1186:
1.1       millert  1187:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1188:   | -silent | --silent | --silen | --sile | --sil)
                   1189:     silent=yes ;;
                   1190:
                   1191:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1192:     ac_prev=sbindir ;;
                   1193:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1194:   | --sbi=* | --sb=*)
1.9       millert  1195:     sbindir=$ac_optarg ;;
1.1       millert  1196:
                   1197:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1198:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1199:   | --sharedst | --shareds | --shared | --share | --shar \
                   1200:   | --sha | --sh)
                   1201:     ac_prev=sharedstatedir ;;
                   1202:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1203:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1204:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1205:   | --sha=* | --sh=*)
1.9       millert  1206:     sharedstatedir=$ac_optarg ;;
1.1       millert  1207:
                   1208:   -site | --site | --sit)
                   1209:     ac_prev=site ;;
                   1210:   -site=* | --site=* | --sit=*)
1.9       millert  1211:     site=$ac_optarg ;;
1.1       millert  1212:
                   1213:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1214:     ac_prev=srcdir ;;
                   1215:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.9       millert  1216:     srcdir=$ac_optarg ;;
1.1       millert  1217:
                   1218:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1219:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1220:     ac_prev=sysconfdir ;;
                   1221:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1222:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.9       millert  1223:     sysconfdir=$ac_optarg ;;
1.1       millert  1224:
                   1225:   -target | --target | --targe | --targ | --tar | --ta | --t)
1.9       millert  1226:     ac_prev=target_alias ;;
1.1       millert  1227:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.9       millert  1228:     target_alias=$ac_optarg ;;
1.1       millert  1229:
                   1230:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1231:     verbose=yes ;;
                   1232:
1.9       millert  1233:   -version | --version | --versio | --versi | --vers | -V)
                   1234:     ac_init_version=: ;;
1.1       millert  1235:
                   1236:   -with-* | --with-*)
1.9       millert  1237:     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       millert  1238:     # Reject names that are not valid shell variable names.
1.27      millert  1239:     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1240:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                   1241:    { (exit 1); exit 1; }; }
1.27      millert  1242:     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
                   1243:     eval with_$ac_package=\$ac_optarg ;;
1.1       millert  1244:
                   1245:   -without-* | --without-*)
1.9       millert  1246:     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       millert  1247:     # Reject names that are not valid shell variable names.
1.27      millert  1248:     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1249:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                   1250:    { (exit 1); exit 1; }; }
1.27      millert  1251:     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
                   1252:     eval with_$ac_package=no ;;
1.1       millert  1253:
                   1254:   --x)
                   1255:     # Obsolete; use --with-x.
                   1256:     with_x=yes ;;
                   1257:
                   1258:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1259:   | --x-incl | --x-inc | --x-in | --x-i)
                   1260:     ac_prev=x_includes ;;
                   1261:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1262:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.9       millert  1263:     x_includes=$ac_optarg ;;
1.1       millert  1264:
                   1265:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1266:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1267:     ac_prev=x_libraries ;;
                   1268:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1269:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.9       millert  1270:     x_libraries=$ac_optarg ;;
1.1       millert  1271:
1.9       millert  1272:   -*) { echo "$as_me: error: unrecognized option: $ac_option
                   1273: Try \`$0 --help' for more information." >&2
                   1274:    { (exit 1); exit 1; }; }
1.1       millert  1275:     ;;
                   1276:
1.9       millert  1277:   *=*)
                   1278:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1279:     # Reject names that are not valid shell variable names.
                   1280:     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
                   1281:       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
                   1282:    { (exit 1); exit 1; }; }
1.27      millert  1283:     eval $ac_envvar=\$ac_optarg
1.9       millert  1284:     export $ac_envvar ;;
                   1285:
1.1       millert  1286:   *)
1.9       millert  1287:     # FIXME: should be removed in autoconf 3.0.
                   1288:     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
                   1289:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
                   1290:       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
                   1291:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1       millert  1292:     ;;
                   1293:
                   1294:   esac
                   1295: done
                   1296:
                   1297: if test -n "$ac_prev"; then
1.9       millert  1298:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
                   1299:   { echo "$as_me: error: missing argument to $ac_option" >&2
                   1300:    { (exit 1); exit 1; }; }
1.1       millert  1301: fi
                   1302:
1.27      millert  1303: # Be sure to have absolute directory names.
                   1304: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1305:                datadir sysconfdir sharedstatedir localstatedir includedir \
                   1306:                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1307:                libdir localedir mandir
1.9       millert  1308: do
1.27      millert  1309:   eval ac_val=\$$ac_var
1.9       millert  1310:   case $ac_val in
1.27      millert  1311:     [\\/$]* | ?:[\\/]* )  continue;;
                   1312:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1       millert  1313:   esac
1.27      millert  1314:   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
                   1315:    { (exit 1); exit 1; }; }
1.1       millert  1316: done
                   1317:
1.9       millert  1318: # There might be people who depend on the old broken behavior: `$host'
                   1319: # used to hold the argument of --host etc.
1.16      millert  1320: # FIXME: To remove some day.
1.9       millert  1321: build=$build_alias
                   1322: host=$host_alias
                   1323: target=$target_alias
                   1324:
1.16      millert  1325: # FIXME: To remove some day.
1.9       millert  1326: if test "x$host_alias" != x; then
                   1327:   if test "x$build_alias" = x; then
                   1328:     cross_compiling=maybe
                   1329:     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
                   1330:     If a cross compiler is detected then cross compile mode will be used." >&2
                   1331:   elif test "x$build_alias" != "x$host_alias"; then
                   1332:     cross_compiling=yes
                   1333:   fi
                   1334: fi
1.1       millert  1335:
1.9       millert  1336: ac_tool_prefix=
                   1337: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1       millert  1338:
1.9       millert  1339: test "$silent" = yes && exec 6>/dev/null
1.1       millert  1340:
1.16      millert  1341:
1.27      millert  1342: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1343: ac_ls_di=`ls -di .` &&
                   1344: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
                   1345:   { echo "$as_me: error: Working directory cannot be determined" >&2
                   1346:    { (exit 1); exit 1; }; }
                   1347: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
                   1348:   { echo "$as_me: error: pwd does not report name of working directory" >&2
                   1349:    { (exit 1); exit 1; }; }
                   1350:
                   1351:
1.1       millert  1352: # Find the source files, if location was not specified.
                   1353: if test -z "$srcdir"; then
                   1354:   ac_srcdir_defaulted=yes
1.27      millert  1355:   # Try the directory containing this script, then the parent directory.
                   1356:   ac_confdir=`$as_dirname -- "$0" ||
1.16      millert  1357: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25      millert  1358:         X"$0" : 'X\(//\)[^/]' \| \
                   1359:         X"$0" : 'X\(//\)$' \| \
1.27      millert  1360:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.16      millert  1361: echo X"$0" |
1.27      millert  1362:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1363:            s//\1/
                   1364:            q
                   1365:          }
                   1366:          /^X\(\/\/\)[^/].*/{
                   1367:            s//\1/
                   1368:            q
                   1369:          }
                   1370:          /^X\(\/\/\)$/{
                   1371:            s//\1/
                   1372:            q
                   1373:          }
                   1374:          /^X\(\/\).*/{
                   1375:            s//\1/
                   1376:            q
                   1377:          }
                   1378:          s/.*/./; q'`
1.1       millert  1379:   srcdir=$ac_confdir
1.27      millert  1380:   if test ! -r "$srcdir/$ac_unique_file"; then
1.1       millert  1381:     srcdir=..
                   1382:   fi
                   1383: else
                   1384:   ac_srcdir_defaulted=no
                   1385: fi
1.27      millert  1386: if test ! -r "$srcdir/$ac_unique_file"; then
                   1387:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
                   1388:   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
                   1389:    { (exit 1); exit 1; }; }
                   1390: fi
                   1391: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1392: ac_abs_confdir=`(
                   1393:        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
                   1394:    { (exit 1); exit 1; }; }
                   1395:        pwd)`
                   1396: # When building in place, set srcdir=.
                   1397: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1398:   srcdir=.
                   1399: fi
                   1400: # Remove unnecessary trailing slashes from srcdir.
                   1401: # Double slashes in file names in object file debugging info
                   1402: # mess up M-x gdb in Emacs.
                   1403: case $srcdir in
                   1404: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1405: esac
                   1406: for ac_var in $ac_precious_vars; do
                   1407:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1408:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1409:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1410:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1411: done
1.9       millert  1412:
                   1413: #
                   1414: # Report the --help message.
                   1415: #
                   1416: if test "$ac_init_help" = "long"; then
                   1417:   # Omit some internal or obsolete options to make the list less imposing.
                   1418:   # This message is too long to be a string in the A/UX 3.1 sh.
1.16      millert  1419:   cat <<_ACEOF
1.48    ! millert  1420: \`configure' configures sudo 1.7.2p8 to adapt to many kinds of systems.
1.9       millert  1421:
                   1422: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1423:
                   1424: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1425: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1426:
                   1427: Defaults for the options are specified in brackets.
                   1428:
                   1429: Configuration:
                   1430:   -h, --help              display this help and exit
                   1431:       --help=short        display options specific to this package
                   1432:       --help=recursive    display the short help of all the included packages
                   1433:   -V, --version           display version information and exit
                   1434:   -q, --quiet, --silent   do not print \`checking...' messages
                   1435:       --cache-file=FILE   cache test results in FILE [disabled]
                   1436:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1437:   -n, --no-create         do not create output files
                   1438:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1439:
                   1440: Installation directories:
                   1441:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.25      millert  1442:                          [$ac_default_prefix]
1.9       millert  1443:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.25      millert  1444:                          [PREFIX]
1.9       millert  1445:
                   1446: By default, \`make install' will install all the files in
                   1447: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1448: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1449: for instance \`--prefix=\$HOME'.
                   1450:
                   1451: For better control, use the options below.
                   1452:
                   1453: Fine tuning of the installation directories:
                   1454:   --bindir=DIR           user executables [EPREFIX/bin]
                   1455:   --sbindir=DIR          system admin executables [EPREFIX/sbin]
                   1456:   --libexecdir=DIR       program executables [EPREFIX/libexec]
1.27      millert  1457:   --sysconfdir=DIR       read-only single-machine data [etc]
1.9       millert  1458:   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
                   1459:   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
                   1460:   --libdir=DIR           object code libraries [EPREFIX/lib]
                   1461:   --includedir=DIR       C header files [PREFIX/include]
                   1462:   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1.27      millert  1463:   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
                   1464:   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
                   1465:   --infodir=DIR          info documentation [DATAROOTDIR/info]
                   1466:   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
                   1467:   --mandir=DIR           man documentation [DATAROOTDIR/man]
                   1468:   --docdir=DIR           documentation root [DATAROOTDIR/doc/sudo]
                   1469:   --htmldir=DIR          html documentation [DOCDIR]
                   1470:   --dvidir=DIR           dvi documentation [DOCDIR]
                   1471:   --pdfdir=DIR           pdf documentation [DOCDIR]
                   1472:   --psdir=DIR            ps documentation [DOCDIR]
1.16      millert  1473: _ACEOF
1.9       millert  1474:
1.16      millert  1475:   cat <<\_ACEOF
1.9       millert  1476:
                   1477: System types:
                   1478:   --build=BUILD     configure for building on BUILD [guessed]
1.16      millert  1479:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1480: _ACEOF
1.9       millert  1481: fi
                   1482:
                   1483: if test -n "$ac_init_help"; then
                   1484:   case $ac_init_help in
1.48    ! millert  1485:      short | recursive ) echo "Configuration of sudo 1.7.2p8:";;
1.9       millert  1486:    esac
1.16      millert  1487:   cat <<\_ACEOF
1.9       millert  1488:
                   1489: Optional Features:
                   1490:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1491:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1492:   --disable-authentication
                   1493:                           Do not require authentication by default
1.12      millert  1494:   --disable-root-mailer   Don't run the mailer as root, run as the user
1.13      millert  1495:   --disable-setreuid      Don't try to use the setreuid() function
1.25      millert  1496:   --disable-setresuid     Don't try to use the setresuid() function
1.9       millert  1497:   --disable-shadow        Never use shadow passwords
1.12      millert  1498:   --disable-root-sudo     Don't allow root to run sudo
1.9       millert  1499:   --enable-log-host       Log the hostname in the log file
                   1500:   --enable-noargs-shell   If sudo is given no arguments run a shell
                   1501:   --enable-shell-sets-home
1.37      millert  1502:                           Set $HOME to target user in shell mode
1.9       millert  1503:   --disable-path-info     Print 'command not allowed' not 'command not found'
1.39      millert  1504:   --enable-env-debug      Whether to enable environment debugging.
1.37      millert  1505:   --enable-gss-krb5-ccache-name
                   1506:                           Use GSS-API to set the Kerberos V cred cache name
1.27      millert  1507:   --enable-static[=PKGS]  build static libraries [default=no]
                   1508:   --enable-shared[=PKGS]  build shared libraries [default=yes]
1.23      millert  1509:   --enable-fast-install[=PKGS]
                   1510:                           optimize for fast installation [default=yes]
                   1511:   --disable-libtool-lock  avoid locking (might break parallel builds)
1.27      millert  1512:   --disable-sia           Disable SIA on Digital UNIX
1.30      millert  1513:   --disable-pam-session   Disable PAM session support
1.9       millert  1514:
                   1515: Optional Packages:
                   1516:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1517:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1518:   --with-otp-only         deprecated
                   1519:   --with-alertmail        deprecated
                   1520:   --with-CC               C compiler to use
1.17      millert  1521:   --with-rpath            pass -R flag in addition to -L for lib paths
1.25      millert  1522:   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1.39      millert  1523:   --with-bsm-audit        enable BSM audit support
1.9       millert  1524:   --with-incpath          additional places to look for include files
                   1525:   --with-libpath          additional places to look for libraries
                   1526:   --with-libraries        additional libraries to link with
1.15      david    1527:   --with-devel            add development options
1.11      millert  1528:   --with-efence           link with -lefence for malloc() debugging
1.9       millert  1529:   --with-csops            add CSOps standard options
                   1530:   --without-passwd        don't use passwd/shadow file for authentication
1.25      millert  1531:   --with-skey=DIR         enable S/Key support
                   1532:   --with-opie=DIR         enable OPIE support
1.9       millert  1533:   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1.40      millert  1534:   --with-SecurID=DIR      enable SecurID support
                   1535:   --with-fwtk=DIR         enable FWTK AuthSRV support
                   1536:   --with-kerb4=DIR        enable Kerberos IV support
                   1537:   --with-kerb5=DIR        enable Kerberos V support
1.25      millert  1538:   --with-aixauth          enable AIX general authentication support
1.9       millert  1539:   --with-pam              enable PAM support
                   1540:   --with-AFS              enable AFS support
                   1541:   --with-DCE              enable DCE support
                   1542:   --with-logincap         enable BSD login class support
                   1543:   --with-bsdauth          enable BSD authentication support
1.25      millert  1544:   --with-project          enable Solaris project support
1.9       millert  1545:   --without-lecture       don't print lecture for first-time sudoer
                   1546:   --with-logging          log via syslog, file, or both
                   1547:   --with-logfac           syslog facility to log with (default is "local2")
                   1548:   --with-goodpri          syslog priority for commands (def is "notice")
                   1549:   --with-badpri           syslog priority for failures (def is "alert")
                   1550:   --with-logpath          path to the sudo log file
                   1551:   --with-loglen           maximum length of a log file line (default is 80)
                   1552:   --with-ignore-dot       ignore '.' in the PATH
1.40      millert  1553:   --without-mail-if-no-user
                   1554:                           do not send mail if user not in sudoers
1.9       millert  1555:   --with-mail-if-no-host  send mail if user in sudoers but not for this host
                   1556:   --with-mail-if-noperms  send mail if user not allowed to run command
                   1557:   --with-mailto           who should get sudo mail (default is "root")
                   1558:   --with-mailsubject      subject of sudo mail
                   1559:   --with-passprompt       default password prompt
                   1560:   --with-badpass-message  message the user sees when the password is wrong
                   1561:   --with-fqdn             expect fully qualified hosts in sudoers
                   1562:   --with-timedir          path to the sudo timestamp dir
1.40      millert  1563:   --with-sendmail         set path to sendmail
1.9       millert  1564:   --without-sendmail      do not send mail at all
                   1565:   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
                   1566:   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
                   1567:   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1.40      millert  1568:   --with-umask            umask with which the prog should run (default is
                   1569:                           022)
1.9       millert  1570:   --without-umask         Preserves the umask of the user invoking sudo.
                   1571:   --with-runas-default    User to run commands as (default is "root")
                   1572:   --with-exempt=group     no passwd needed for users in this group
                   1573:   --with-editor=path      Default editor for visudo (defaults to vi)
                   1574:   --with-env-editor       Use the environment variable EDITOR for visudo
                   1575:   --with-passwd-tries     number of tries to enter password (default is 3)
1.40      millert  1576:   --with-timeout          minutes before sudo asks for passwd again (def is 5
                   1577:                           minutes)
                   1578:   --with-password-timeout passwd prompt timeout in minutes (default is 5
                   1579:                           minutes)
1.9       millert  1580:   --with-tty-tickets      use a different ticket file for each tty
                   1581:   --with-insults          insult the user for entering an incorrect password
                   1582:   --with-all-insults      include all the sudo insult sets
                   1583:   --with-classic-insults  include the insults from the "classic" sudo
                   1584:   --with-csops-insults    include CSOps insults
                   1585:   --with-hal-insults      include 2001-like insults
                   1586:   --with-goons-insults    include the insults from the "Goon Show"
1.40      millert  1587:   --with-nsswitch=PATH    path to nsswitch.conf
                   1588:   --with-ldap=DIR         enable LDAP support
1.23      millert  1589:   --with-ldap-conf-file   path to LDAP configuration file
1.33      millert  1590:   --with-ldap-secret-file path to LDAP secret password file
1.40      millert  1591:   --with-pc-insults       replace politically incorrect insults with less
                   1592:                           offensive ones
1.20      millert  1593:   --with-secure-path      override the user's path with a built-in one
1.9       millert  1594:   --without-interfaces    don't try to read the ip addr of ether interfaces
1.16      millert  1595:   --with-stow             properly handle GNU stow packaging
1.37      millert  1596:   --with-askpass=PATH     Fully qualified pathname of askpass helper
1.40      millert  1597:   --with-libvas=NAME      Name of the libvas shared library
                   1598:                           (default=libvas.so)
                   1599:   --with-libvas-rpath=PATH
                   1600:                           Path to look for libvas in [default=/opt/quest/lib]
1.36      millert  1601:   --with-selinux          enable SELinux support
1.27      millert  1602:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1.23      millert  1603:   --with-pic              try to use only PIC/non-PIC objects [default=use
                   1604:                           both]
1.25      millert  1605:   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1.40      millert  1606:   --with-netsvc=PATH      path to netsvc.conf
1.9       millert  1607:
                   1608: Some influential environment variables:
                   1609:   CC          C compiler command
                   1610:   CFLAGS      C compiler flags
                   1611:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1612:               nonstandard directory <lib dir>
1.27      millert  1613:   LIBS        libraries to pass to the linker, e.g. -l<library>
                   1614:   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
                   1615:               you have headers in a nonstandard directory <include dir>
1.9       millert  1616:   CPP         C preprocessor
1.27      millert  1617:   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
                   1618:               the first program found out of: `bison -y', `byacc', `yacc'.
                   1619:   YFLAGS      The list of arguments that will be passed by default to $YACC.
                   1620:               This script will default YFLAGS to the empty string to avoid a
                   1621:               default value of `-d' given by some make applications.
1.9       millert  1622:
                   1623: Use these variables to override the choices made by `configure' or to help
                   1624: it to find libraries and programs with nonstandard names/locations.
                   1625:
1.40      millert  1626: Report bugs to <http://www.sudo.ws/bugs/>.
1.16      millert  1627: _ACEOF
1.27      millert  1628: ac_status=$?
1.9       millert  1629: fi
                   1630:
                   1631: if test "$ac_init_help" = "recursive"; then
                   1632:   # If there are subdirs, report their specific --help.
1.16      millert  1633:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.27      millert  1634:     test -d "$ac_dir" || continue
1.16      millert  1635:     ac_builddir=.
                   1636:
1.27      millert  1637: case "$ac_dir" in
                   1638: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1639: *)
1.16      millert  1640:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.27      millert  1641:   # A ".." for each directory in $ac_dir_suffix.
                   1642:   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
                   1643:   case $ac_top_builddir_sub in
                   1644:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1645:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1646:   esac ;;
                   1647: esac
                   1648: ac_abs_top_builddir=$ac_pwd
                   1649: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1650: # for backward compatibility:
                   1651: ac_top_builddir=$ac_top_build_prefix
1.16      millert  1652:
                   1653: case $srcdir in
1.27      millert  1654:   .)  # We are building in place.
1.16      millert  1655:     ac_srcdir=.
1.27      millert  1656:     ac_top_srcdir=$ac_top_builddir_sub
                   1657:     ac_abs_top_srcdir=$ac_pwd ;;
                   1658:   [\\/]* | ?:[\\/]* )  # Absolute name.
1.16      millert  1659:     ac_srcdir=$srcdir$ac_dir_suffix;
1.27      millert  1660:     ac_top_srcdir=$srcdir
                   1661:     ac_abs_top_srcdir=$srcdir ;;
                   1662:   *) # Relative name.
                   1663:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1664:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1665:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1666: esac
                   1667: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1668:
                   1669:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1670:     # Check for guested configure.
                   1671:     if test -f "$ac_srcdir/configure.gnu"; then
                   1672:       echo &&
                   1673:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1674:     elif test -f "$ac_srcdir/configure"; then
                   1675:       echo &&
                   1676:       $SHELL "$ac_srcdir/configure" --help=recursive
1.9       millert  1677:     else
1.16      millert  1678:       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.27      millert  1679:     fi || ac_status=$?
                   1680:     cd "$ac_pwd" || { ac_status=$?; break; }
1.9       millert  1681:   done
                   1682: fi
                   1683:
1.27      millert  1684: test -n "$ac_init_help" && exit $ac_status
1.9       millert  1685: if $ac_init_version; then
1.16      millert  1686:   cat <<\_ACEOF
1.48    ! millert  1687: sudo configure 1.7.2p8
1.27      millert  1688: generated by GNU Autoconf 2.61
1.9       millert  1689:
1.27      millert  1690: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
                   1691: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.9       millert  1692: This configure script is free software; the Free Software Foundation
                   1693: gives unlimited permission to copy, distribute and modify it.
1.16      millert  1694: _ACEOF
1.27      millert  1695:   exit
1.9       millert  1696: fi
1.27      millert  1697: cat >config.log <<_ACEOF
1.9       millert  1698: This file contains any messages produced by compilers while
                   1699: running configure, to aid debugging if configure makes a mistake.
                   1700:
1.48    ! millert  1701: It was created by sudo $as_me 1.7.2p8, which was
1.27      millert  1702: generated by GNU Autoconf 2.61.  Invocation command line was
1.9       millert  1703:
                   1704:   $ $0 $@
                   1705:
1.16      millert  1706: _ACEOF
1.27      millert  1707: exec 5>>config.log
1.9       millert  1708: {
                   1709: cat <<_ASUNAME
1.16      millert  1710: ## --------- ##
                   1711: ## Platform. ##
                   1712: ## --------- ##
1.9       millert  1713:
                   1714: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   1715: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   1716: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   1717: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   1718: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                   1719:
                   1720: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   1721: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                   1722:
                   1723: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   1724: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   1725: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.27      millert  1726: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1.9       millert  1727: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   1728: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   1729: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                   1730:
1.16      millert  1731: _ASUNAME
                   1732:
                   1733: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1734: for as_dir in $PATH
                   1735: do
                   1736:   IFS=$as_save_IFS
                   1737:   test -z "$as_dir" && as_dir=.
                   1738:   echo "PATH: $as_dir"
                   1739: done
1.27      millert  1740: IFS=$as_save_IFS
1.9       millert  1741:
                   1742: } >&5
                   1743:
1.16      millert  1744: cat >&5 <<_ACEOF
                   1745:
                   1746:
                   1747: ## ----------- ##
                   1748: ## Core tests. ##
                   1749: ## ----------- ##
                   1750:
                   1751: _ACEOF
1.9       millert  1752:
                   1753:
                   1754: # Keep a trace of the command line.
                   1755: # Strip out --no-create and --no-recursion so they do not pile up.
1.16      millert  1756: # Strip out --silent because we don't want to record it for future runs.
1.9       millert  1757: # Also quote any args containing shell meta-characters.
1.16      millert  1758: # Make two passes to allow for proper duplicate-argument suppression.
1.9       millert  1759: ac_configure_args=
1.16      millert  1760: ac_configure_args0=
                   1761: ac_configure_args1=
                   1762: ac_must_keep_next=false
                   1763: for ac_pass in 1 2
1.9       millert  1764: do
1.16      millert  1765:   for ac_arg
                   1766:   do
                   1767:     case $ac_arg in
                   1768:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   1769:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1770:     | -silent | --silent | --silen | --sile | --sil)
                   1771:       continue ;;
1.27      millert  1772:     *\'*)
1.16      millert  1773:       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   1774:     esac
                   1775:     case $ac_pass in
                   1776:     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
                   1777:     2)
                   1778:       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
                   1779:       if test $ac_must_keep_next = true; then
1.25      millert  1780:        ac_must_keep_next=false # Got value, back to normal.
1.16      millert  1781:       else
1.25      millert  1782:        case $ac_arg in
                   1783:          *=* | --config-cache | -C | -disable-* | --disable-* \
                   1784:          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   1785:          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   1786:          | -with-* | --with-* | -without-* | --without-* | --x)
                   1787:            case "$ac_configure_args0 " in
                   1788:              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   1789:            esac
                   1790:            ;;
                   1791:          -* ) ac_must_keep_next=true ;;
                   1792:        esac
1.16      millert  1793:       fi
1.27      millert  1794:       ac_configure_args="$ac_configure_args '$ac_arg'"
1.16      millert  1795:       ;;
                   1796:     esac
                   1797:   done
1.9       millert  1798: done
1.16      millert  1799: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
                   1800: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.9       millert  1801:
                   1802: # When interrupted or exit'd, cleanup temporary files, and complete
                   1803: # config.log.  We remove comments because anyway the quotes in there
                   1804: # would cause problems or look ugly.
1.27      millert  1805: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   1806: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.9       millert  1807: trap 'exit_status=$?
                   1808:   # Save into config.log some information that might help in debugging.
1.16      millert  1809:   {
                   1810:     echo
                   1811:
                   1812:     cat <<\_ASBOX
                   1813: ## ---------------- ##
                   1814: ## Cache variables. ##
                   1815: ## ---------------- ##
                   1816: _ASBOX
                   1817:     echo
                   1818:     # The following way of writing the cache mishandles newlines in values,
1.27      millert  1819: (
                   1820:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   1821:     eval ac_val=\$$ac_var
                   1822:     case $ac_val in #(
                   1823:     *${as_nl}*)
                   1824:       case $ac_var in #(
                   1825:       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
                   1826: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
                   1827:       esac
                   1828:       case $ac_var in #(
                   1829:       _ | IFS | as_nl) ;; #(
                   1830:       *) $as_unset $ac_var ;;
                   1831:       esac ;;
                   1832:     esac
                   1833:   done
1.9       millert  1834:   (set) 2>&1 |
1.27      millert  1835:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   1836:     *${as_nl}ac_space=\ *)
1.9       millert  1837:       sed -n \
1.27      millert  1838:        "s/'\''/'\''\\\\'\'''\''/g;
                   1839:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   1840:       ;; #(
1.9       millert  1841:     *)
1.27      millert  1842:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.9       millert  1843:       ;;
1.27      millert  1844:     esac |
                   1845:     sort
                   1846: )
1.16      millert  1847:     echo
                   1848:
                   1849:     cat <<\_ASBOX
                   1850: ## ----------------- ##
                   1851: ## Output variables. ##
                   1852: ## ----------------- ##
                   1853: _ASBOX
                   1854:     echo
                   1855:     for ac_var in $ac_subst_vars
                   1856:     do
1.27      millert  1857:       eval ac_val=\$$ac_var
                   1858:       case $ac_val in
                   1859:       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   1860:       esac
                   1861:       echo "$ac_var='\''$ac_val'\''"
1.16      millert  1862:     done | sort
                   1863:     echo
                   1864:
                   1865:     if test -n "$ac_subst_files"; then
                   1866:       cat <<\_ASBOX
1.27      millert  1867: ## ------------------- ##
                   1868: ## File substitutions. ##
                   1869: ## ------------------- ##
1.16      millert  1870: _ASBOX
                   1871:       echo
                   1872:       for ac_var in $ac_subst_files
                   1873:       do
1.27      millert  1874:        eval ac_val=\$$ac_var
                   1875:        case $ac_val in
                   1876:        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   1877:        esac
                   1878:        echo "$ac_var='\''$ac_val'\''"
1.16      millert  1879:       done | sort
                   1880:       echo
                   1881:     fi
                   1882:
                   1883:     if test -s confdefs.h; then
                   1884:       cat <<\_ASBOX
                   1885: ## ----------- ##
                   1886: ## confdefs.h. ##
                   1887: ## ----------- ##
                   1888: _ASBOX
                   1889:       echo
1.27      millert  1890:       cat confdefs.h
1.16      millert  1891:       echo
                   1892:     fi
                   1893:     test "$ac_signal" != 0 &&
                   1894:       echo "$as_me: caught signal $ac_signal"
                   1895:     echo "$as_me: exit $exit_status"
                   1896:   } >&5
1.27      millert  1897:   rm -f core *.core core.conftest.* &&
                   1898:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.9       millert  1899:     exit $exit_status
1.27      millert  1900: ' 0
1.9       millert  1901: for ac_signal in 1 2 13 15; do
                   1902:   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
                   1903: done
                   1904: ac_signal=0
1.1       millert  1905:
1.9       millert  1906: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.27      millert  1907: rm -f -r conftest* confdefs.h
1.9       millert  1908:
1.16      millert  1909: # Predefined preprocessor variables.
                   1910:
                   1911: cat >>confdefs.h <<_ACEOF
                   1912: #define PACKAGE_NAME "$PACKAGE_NAME"
                   1913: _ACEOF
                   1914:
                   1915:
                   1916: cat >>confdefs.h <<_ACEOF
                   1917: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
                   1918: _ACEOF
                   1919:
                   1920:
                   1921: cat >>confdefs.h <<_ACEOF
                   1922: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   1923: _ACEOF
                   1924:
                   1925:
                   1926: cat >>confdefs.h <<_ACEOF
                   1927: #define PACKAGE_STRING "$PACKAGE_STRING"
                   1928: _ACEOF
                   1929:
                   1930:
                   1931: cat >>confdefs.h <<_ACEOF
                   1932: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   1933: _ACEOF
                   1934:
                   1935:
1.9       millert  1936: # Let the site file select an alternate cache file if it wants to.
1.1       millert  1937: # Prefer explicitly selected file to automatically selected ones.
1.27      millert  1938: if test -n "$CONFIG_SITE"; then
                   1939:   set x "$CONFIG_SITE"
                   1940: elif test "x$prefix" != xNONE; then
                   1941:   set x "$prefix/share/config.site" "$prefix/etc/config.site"
                   1942: else
                   1943:   set x "$ac_default_prefix/share/config.site" \
                   1944:        "$ac_default_prefix/etc/config.site"
1.1       millert  1945: fi
1.27      millert  1946: shift
                   1947: for ac_site_file
                   1948: do
1.1       millert  1949:   if test -r "$ac_site_file"; then
1.16      millert  1950:     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1.9       millert  1951: echo "$as_me: loading site script $ac_site_file" >&6;}
1.16      millert  1952:     sed 's/^/| /' "$ac_site_file" >&5
1.1       millert  1953:     . "$ac_site_file"
                   1954:   fi
                   1955: done
                   1956:
                   1957: if test -r "$cache_file"; then
1.9       millert  1958:   # Some versions of bash will fail to source /dev/null (special
                   1959:   # files actually), so we avoid doing that.
                   1960:   if test -f "$cache_file"; then
1.16      millert  1961:     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1.9       millert  1962: echo "$as_me: loading cache $cache_file" >&6;}
                   1963:     case $cache_file in
1.27      millert  1964:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   1965:       *)                      . "./$cache_file";;
1.9       millert  1966:     esac
                   1967:   fi
1.1       millert  1968: else
1.16      millert  1969:   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1.9       millert  1970: echo "$as_me: creating cache $cache_file" >&6;}
                   1971:   >$cache_file
                   1972: fi
                   1973:
                   1974: # Check that the precious variables saved in the cache have kept the same
                   1975: # value.
                   1976: ac_cache_corrupted=false
1.27      millert  1977: for ac_var in $ac_precious_vars; do
1.9       millert  1978:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   1979:   eval ac_new_set=\$ac_env_${ac_var}_set
1.27      millert  1980:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   1981:   eval ac_new_val=\$ac_env_${ac_var}_value
1.9       millert  1982:   case $ac_old_set,$ac_new_set in
                   1983:     set,)
1.16      millert  1984:       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.9       millert  1985: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   1986:       ac_cache_corrupted=: ;;
                   1987:     ,set)
1.16      millert  1988:       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1.9       millert  1989: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   1990:       ac_cache_corrupted=: ;;
                   1991:     ,);;
                   1992:     *)
                   1993:       if test "x$ac_old_val" != "x$ac_new_val"; then
1.25      millert  1994:        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.9       millert  1995: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.25      millert  1996:        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1.9       millert  1997: echo "$as_me:   former value:  $ac_old_val" >&2;}
1.25      millert  1998:        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1.9       millert  1999: echo "$as_me:   current value: $ac_new_val" >&2;}
1.25      millert  2000:        ac_cache_corrupted=:
1.9       millert  2001:       fi;;
                   2002:   esac
1.16      millert  2003:   # Pass precious variables to config.status.
1.9       millert  2004:   if test "$ac_new_set" = set; then
                   2005:     case $ac_new_val in
1.27      millert  2006:     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.16      millert  2007:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2008:     esac
                   2009:     case " $ac_configure_args " in
                   2010:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2011:       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.9       millert  2012:     esac
                   2013:   fi
                   2014: done
                   2015: if $ac_cache_corrupted; then
1.16      millert  2016:   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1.9       millert  2017: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.16      millert  2018:   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.9       millert  2019: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
                   2020:    { (exit 1); exit 1; }; }
1.1       millert  2021: fi
                   2022:
1.9       millert  2023:
                   2024:
1.16      millert  2025:
                   2026:
                   2027:
                   2028:
                   2029:
                   2030:
                   2031:
                   2032:
                   2033:
                   2034:
                   2035:
                   2036:
                   2037:
                   2038:
                   2039:
                   2040:
                   2041:
                   2042:
                   2043:
                   2044:
                   2045:
                   2046:
1.27      millert  2047: ac_ext=c
                   2048: ac_cpp='$CPP $CPPFLAGS'
                   2049: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2050: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2051: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16      millert  2052:
                   2053:
1.27      millert  2054: ac_config_headers="$ac_config_headers config.h pathnames.h"
1.16      millert  2055:
1.40      millert  2056: { echo "$as_me:$LINENO: Configuring Sudo version $PACKAGE_VERSION" >&5
                   2057: echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
                   2058:
1.37      millert  2059:
                   2060:
                   2061:
                   2062:
                   2063:
                   2064:
                   2065:
                   2066:
1.25      millert  2067:
                   2068:
                   2069:
                   2070:
                   2071:
                   2072:
                   2073:
                   2074:
                   2075:
                   2076:
                   2077:
                   2078:
                   2079:
                   2080:
                   2081:
                   2082:
                   2083:
                   2084:
                   2085:
1.23      millert  2086:
                   2087:
                   2088:
                   2089:
                   2090:
1.16      millert  2091:
                   2092:
                   2093:
                   2094:
                   2095:
                   2096:
                   2097:
                   2098:
                   2099:
                   2100:
                   2101:
                   2102:
                   2103:
                   2104:
                   2105:
                   2106:
                   2107:
                   2108:
                   2109:
                   2110:
                   2111:
                   2112:
                   2113:
                   2114:
                   2115:
                   2116:
1.9       millert  2117:
1.32      millert  2118:
1.36      millert  2119:
                   2120:
                   2121:
                   2122:
                   2123:
1.39      millert  2124:
                   2125:
1.41      millert  2126:
1.47      millert  2127:
1.9       millert  2128: timeout=5
                   2129: password_timeout=5
                   2130: sudo_umask=0022
                   2131: passprompt="Password:"
                   2132: long_otp_prompt=off
1.23      millert  2133: lecture=once
1.9       millert  2134: logfac=local2
                   2135: goodpri=notice
                   2136: badpri=alert
                   2137: loglen=80
                   2138: ignore_dot=off
                   2139: mail_no_user=on
                   2140: mail_no_host=off
                   2141: mail_no_perms=off
                   2142: mailto=root
                   2143: mailsub='*** SECURITY information for %h ***'
                   2144: badpass_message='Sorry, try again.'
                   2145: fqdn=off
                   2146: runas_default=root
                   2147: env_editor=off
                   2148: passwd_tries=3
                   2149: tty_tickets=off
                   2150: insults=off
1.23      millert  2151: root_sudo=on
1.25      millert  2152: path_info=on
1.41      millert  2153: secure_path="not set"
1.23      millert  2154: INSTALL_NOEXEC=
1.37      millert  2155: devdir='$(srcdir)'
1.1       millert  2156: PROGS="sudo visudo"
1.25      millert  2157: : ${MANTYPE='man'}
                   2158: : ${mansrcdir='.'}
                   2159: : ${SUDOERS_MODE='0440'}
                   2160: : ${SUDOERS_UID='0'}
                   2161: : ${SUDOERS_GID='0'}
1.1       millert  2162: DEV="#"
1.37      millert  2163: LDAP="#"
1.36      millert  2164: SELINUX="#"
                   2165: BAMAN='.\" '
                   2166: LCMAN='.\" '
                   2167: SEMAN='.\" '
1.27      millert  2168: AUTH_OBJS=
                   2169: AUTH_REG=
                   2170: AUTH_EXCL=
                   2171: AUTH_EXCL_DEF=
                   2172: AUTH_DEF=passwd
1.1       millert  2173:
                   2174: CHECKSHADOW=true
1.25      millert  2175: shadow_defs=
                   2176: shadow_funcs=
                   2177: shadow_libs=
                   2178: shadow_libs_optional=
1.1       millert  2179:
1.36      millert  2180: if test X"$prefix" = X"NONE"; then
                   2181:     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
                   2182: else
                   2183:     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
                   2184: fi
1.1       millert  2185: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
                   2186: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1.16      millert  2187: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
                   2188:
                   2189:
1.1       millert  2190:
1.27      millert  2191: # Check whether --with-otp-only was given.
1.1       millert  2192: if test "${with_otp_only+set}" = set; then
1.27      millert  2193:   withval=$with_otp_only; case $with_otp_only in
                   2194:     yes)       with_passwd="no"
1.17      millert  2195:                { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
                   2196: echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
1.1       millert  2197:                ;;
                   2198: esac
1.27      millert  2199: fi
                   2200:
1.1       millert  2201:
1.16      millert  2202:
1.27      millert  2203: # Check whether --with-alertmail was given.
1.1       millert  2204: if test "${with_alertmail+set}" = set; then
1.27      millert  2205:   withval=$with_alertmail; case $with_alertmail in
1.1       millert  2206:     *)         with_mailto="$with_alertmail"
1.17      millert  2207:                { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
                   2208: echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
1.1       millert  2209:                ;;
                   2210: esac
1.27      millert  2211: fi
                   2212:
1.1       millert  2213:
1.16      millert  2214:
                   2215:
1.27      millert  2216: # Check whether --with-CC was given.
1.1       millert  2217: if test "${with_CC+set}" = set; then
1.27      millert  2218:   withval=$with_CC; case $with_CC in
1.16      millert  2219:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
1.9       millert  2220: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
                   2221:    { (exit 1); exit 1; }; }
                   2222:                ;;
1.16      millert  2223:     no)                { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
1.9       millert  2224: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
                   2225:    { (exit 1); exit 1; }; }
1.1       millert  2226:                ;;
                   2227:     *)         CC=$with_CC
                   2228:                ;;
                   2229: esac
1.27      millert  2230: fi
                   2231:
1.1       millert  2232:
1.16      millert  2233:
1.27      millert  2234: # Check whether --with-rpath was given.
1.17      millert  2235: if test "${with_rpath+set}" = set; then
1.27      millert  2236:   withval=$with_rpath; case $with_rpath in
1.25      millert  2237:     yes|no)    ;;
1.17      millert  2238:     *)         { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
                   2239: echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
                   2240:    { (exit 1); exit 1; }; }
                   2241:                ;;
                   2242: esac
1.27      millert  2243: fi
                   2244:
1.17      millert  2245:
                   2246:
1.27      millert  2247: # Check whether --with-blibpath was given.
1.17      millert  2248: if test "${with_blibpath+set}" = set; then
1.27      millert  2249:   withval=$with_blibpath; case $with_blibpath in
1.25      millert  2250:     yes|no)    ;;
1.17      millert  2251:     *)         { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
                   2252: echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
                   2253:                ;;
                   2254: esac
1.27      millert  2255: fi
                   2256:
1.17      millert  2257:
                   2258:
1.39      millert  2259: # Check whether --with-bsm-audit was given.
                   2260: if test "${with_bsm_audit+set}" = set; then
                   2261:   withval=$with_bsm_audit; case $with_bsm_audit in
                   2262:     yes)       cat >>confdefs.h <<\_ACEOF
                   2263: #define HAVE_BSM_AUDIT 1
                   2264: _ACEOF
                   2265:
                   2266:                SUDO_LIBS="${SUDO_LIBS} -lbsm"
                   2267:                SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
                   2268:                ;;
                   2269:     no)                ;;
                   2270:     *)         { { echo "$as_me:$LINENO: error: \"--with-bsm-audit does not take an argument.\"" >&5
                   2271: echo "$as_me: error: \"--with-bsm-audit does not take an argument.\"" >&2;}
                   2272:    { (exit 1); exit 1; }; }
                   2273:                ;;
                   2274: esac
                   2275: fi
                   2276:
                   2277:
                   2278:
1.27      millert  2279: # Check whether --with-incpath was given.
1.1       millert  2280: if test "${with_incpath+set}" = set; then
1.27      millert  2281:   withval=$with_incpath; case $with_incpath in
1.16      millert  2282:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
1.9       millert  2283: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
                   2284:    { (exit 1); exit 1; }; }
                   2285:                ;;
1.16      millert  2286:     no)                { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
1.9       millert  2287: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
                   2288:    { (exit 1); exit 1; }; }
1.1       millert  2289:                ;;
1.17      millert  2290:     *)         { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
                   2291: echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
1.1       millert  2292:                for i in ${with_incpath}; do
                   2293:                    CPPFLAGS="${CPPFLAGS} -I${i}"
                   2294:                done
                   2295:                ;;
                   2296: esac
1.27      millert  2297: fi
                   2298:
1.1       millert  2299:
1.16      millert  2300:
1.27      millert  2301: # Check whether --with-libpath was given.
1.1       millert  2302: if test "${with_libpath+set}" = set; then
1.27      millert  2303:   withval=$with_libpath; case $with_libpath in
1.16      millert  2304:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
1.9       millert  2305: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
                   2306:    { (exit 1); exit 1; }; }
                   2307:                ;;
1.16      millert  2308:     no)                { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
1.9       millert  2309: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
                   2310:    { (exit 1); exit 1; }; }
1.1       millert  2311:                ;;
1.17      millert  2312:     *)         { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
                   2313: echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
1.1       millert  2314:                ;;
                   2315: esac
1.27      millert  2316: fi
                   2317:
1.1       millert  2318:
1.16      millert  2319:
1.27      millert  2320: # Check whether --with-libraries was given.
1.1       millert  2321: if test "${with_libraries+set}" = set; then
1.27      millert  2322:   withval=$with_libraries; case $with_libraries in
1.16      millert  2323:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
1.9       millert  2324: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
                   2325:    { (exit 1); exit 1; }; }
                   2326:                ;;
1.16      millert  2327:     no)                { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
1.9       millert  2328: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
                   2329:    { (exit 1); exit 1; }; }
1.1       millert  2330:                ;;
1.17      millert  2331:     *)         { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
                   2332: echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
1.1       millert  2333:                ;;
                   2334: esac
1.27      millert  2335: fi
                   2336:
1.1       millert  2337:
1.16      millert  2338:
1.27      millert  2339: # Check whether --with-devel was given.
1.1       millert  2340: if test "${with_devel+set}" = set; then
1.27      millert  2341:   withval=$with_devel; case $with_devel in
1.17      millert  2342:     yes)       { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
                   2343: echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
1.1       millert  2344:                PROGS="${PROGS} testsudoers"
                   2345:                OSDEFS="${OSDEFS} -DSUDO_DEVEL"
                   2346:                DEV=""
1.37      millert  2347:                devdir=.
1.1       millert  2348:                ;;
                   2349:     no)                ;;
1.17      millert  2350:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
                   2351: echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
1.1       millert  2352:                ;;
                   2353: esac
1.27      millert  2354: fi
                   2355:
1.1       millert  2356:
1.16      millert  2357:
1.27      millert  2358: # Check whether --with-efence was given.
1.11      millert  2359: if test "${with_efence+set}" = set; then
1.27      millert  2360:   withval=$with_efence; case $with_efence in
1.17      millert  2361:     yes)       { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
                   2362: echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
1.11      millert  2363:                LIBS="${LIBS} -lefence"
                   2364:                if test -f /usr/local/lib/libefence.a; then
1.17      millert  2365:                    with_libpath="${with_libpath} /usr/local/lib"
1.11      millert  2366:                fi
                   2367:                ;;
                   2368:     no)                ;;
1.17      millert  2369:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
                   2370: echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
1.11      millert  2371:                ;;
                   2372: esac
1.27      millert  2373: fi
                   2374:
1.11      millert  2375:
1.16      millert  2376:
1.27      millert  2377: # Check whether --with-csops was given.
1.1       millert  2378: if test "${with_csops+set}" = set; then
1.27      millert  2379:   withval=$with_csops; case $with_csops in
1.17      millert  2380:     yes)       { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
                   2381: echo "$as_me: Adding CSOps standard options" >&6;}
1.1       millert  2382:                CHECKSIA=false
                   2383:                with_ignore_dot=yes
1.9       millert  2384:                insults=on
1.1       millert  2385:                with_classic_insults=yes
                   2386:                with_csops_insults=yes
                   2387:                with_env_editor=yes
1.25      millert  2388:                : ${mansectsu='8'}
                   2389:                : ${mansectform='5'}
1.1       millert  2390:                ;;
                   2391:     no)                ;;
1.17      millert  2392:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
                   2393: echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
1.1       millert  2394:                ;;
                   2395: esac
1.27      millert  2396: fi
                   2397:
1.1       millert  2398:
1.16      millert  2399:
1.27      millert  2400: # Check whether --with-passwd was given.
1.1       millert  2401: if test "${with_passwd+set}" = set; then
1.27      millert  2402:   withval=$with_passwd; case $with_passwd in
                   2403:     yes|no)    { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
                   2404: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
                   2405:                { echo "$as_me:$LINENO: result: $with_passwd" >&5
                   2406: echo "${ECHO_T}$with_passwd" >&6; }
                   2407:                AUTH_DEF=""
                   2408:                test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
1.1       millert  2409:                ;;
1.16      millert  2410:     *)         { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1.9       millert  2411: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
                   2412:    { (exit 1); exit 1; }; }
1.1       millert  2413:                ;;
                   2414: esac
1.27      millert  2415: fi
1.1       millert  2416:
1.16      millert  2417:
1.27      millert  2418:
                   2419: # Check whether --with-skey was given.
1.1       millert  2420: if test "${with_skey+set}" = set; then
1.27      millert  2421:   withval=$with_skey; case $with_skey in
1.25      millert  2422:     no)                with_skey=""
                   2423:                ;;
1.27      millert  2424:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2425: #define HAVE_SKEY 1
1.16      millert  2426: _ACEOF
1.1       millert  2427:
1.27      millert  2428:                { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
                   2429: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
                   2430:                { echo "$as_me:$LINENO: result: yes" >&5
                   2431: echo "${ECHO_T}yes" >&6; }
                   2432:                AUTH_REG="$AUTH_REG S/Key"
                   2433:                ;;
                   2434: esac
1.25      millert  2435: fi
                   2436:
1.1       millert  2437:
1.16      millert  2438:
1.27      millert  2439: # Check whether --with-opie was given.
1.1       millert  2440: if test "${with_opie+set}" = set; then
1.27      millert  2441:   withval=$with_opie; case $with_opie in
1.25      millert  2442:     no)                with_opie=""
                   2443:                ;;
1.27      millert  2444:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2445: #define HAVE_OPIE 1
1.16      millert  2446: _ACEOF
1.1       millert  2447:
1.27      millert  2448:                { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
                   2449: echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
                   2450:                { echo "$as_me:$LINENO: result: yes" >&5
                   2451: echo "${ECHO_T}yes" >&6; }
                   2452:                AUTH_REG="$AUTH_REG NRL_OPIE"
                   2453:                ;;
                   2454: esac
1.25      millert  2455: fi
                   2456:
1.1       millert  2457:
1.16      millert  2458:
1.27      millert  2459: # Check whether --with-long-otp-prompt was given.
1.1       millert  2460: if test "${with_long_otp_prompt+set}" = set; then
1.27      millert  2461:   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
1.23      millert  2462:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2463: #define LONG_OTP_PROMPT 1
1.16      millert  2464: _ACEOF
1.1       millert  2465:
1.27      millert  2466:                { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
                   2467: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
                   2468:                { echo "$as_me:$LINENO: result: yes" >&5
                   2469: echo "${ECHO_T}yes" >&6; }
1.9       millert  2470:                long_otp_prompt=on
1.1       millert  2471:                ;;
1.9       millert  2472:     no)                long_otp_prompt=off
                   2473:                ;;
1.16      millert  2474:     *)         { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1.9       millert  2475: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
                   2476:    { (exit 1); exit 1; }; }
1.1       millert  2477:                ;;
                   2478: esac
1.27      millert  2479: fi
                   2480:
1.1       millert  2481:
1.16      millert  2482:
1.27      millert  2483: # Check whether --with-SecurID was given.
1.1       millert  2484: if test "${with_SecurID+set}" = set; then
1.27      millert  2485:   withval=$with_SecurID; case $with_SecurID in
1.17      millert  2486:     no)                with_SecurID="";;
1.23      millert  2487:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2488: #define HAVE_SECURID 1
1.16      millert  2489: _ACEOF
1.1       millert  2490:
1.27      millert  2491:                { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
                   2492: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
                   2493:                { echo "$as_me:$LINENO: result: yes" >&5
                   2494: echo "${ECHO_T}yes" >&6; }
                   2495:                AUTH_EXCL="$AUTH_EXCL SecurID"
1.1       millert  2496:                ;;
                   2497: esac
1.27      millert  2498: fi
                   2499:
1.1       millert  2500:
1.16      millert  2501:
1.27      millert  2502: # Check whether --with-fwtk was given.
1.1       millert  2503: if test "${with_fwtk+set}" = set; then
1.27      millert  2504:   withval=$with_fwtk; case $with_fwtk in
1.17      millert  2505:     no)                with_fwtk="";;
1.23      millert  2506:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2507: #define HAVE_FWTK 1
1.16      millert  2508: _ACEOF
1.1       millert  2509:
1.27      millert  2510:                { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
                   2511: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
                   2512:                { echo "$as_me:$LINENO: result: yes" >&5
                   2513: echo "${ECHO_T}yes" >&6; }
                   2514:                AUTH_EXCL="$AUTH_EXCL FWTK"
                   2515:                ;;
                   2516: esac
1.25      millert  2517: fi
                   2518:
1.1       millert  2519:
1.16      millert  2520:
1.27      millert  2521: # Check whether --with-kerb4 was given.
1.1       millert  2522: if test "${with_kerb4+set}" = set; then
1.27      millert  2523:   withval=$with_kerb4; case $with_kerb4 in
1.17      millert  2524:     no)                with_kerb4="";;
1.27      millert  2525:     *)         { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
                   2526: echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
                   2527:                { echo "$as_me:$LINENO: result: yes" >&5
                   2528: echo "${ECHO_T}yes" >&6; }
                   2529:                AUTH_REG="$AUTH_REG kerb4"
1.1       millert  2530:                ;;
                   2531: esac
1.27      millert  2532: fi
                   2533:
1.1       millert  2534:
1.16      millert  2535:
1.27      millert  2536: # Check whether --with-kerb5 was given.
1.1       millert  2537: if test "${with_kerb5+set}" = set; then
1.27      millert  2538:   withval=$with_kerb5; case $with_kerb5 in
1.17      millert  2539:     no)                with_kerb5="";;
1.27      millert  2540:     *)         { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
                   2541: echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
                   2542:                { echo "$as_me:$LINENO: result: yes" >&5
                   2543: echo "${ECHO_T}yes" >&6; }
                   2544:                AUTH_REG="$AUTH_REG kerb5"
1.1       millert  2545:                ;;
                   2546: esac
1.27      millert  2547: fi
                   2548:
1.1       millert  2549:
1.16      millert  2550:
1.27      millert  2551: # Check whether --with-aixauth was given.
1.25      millert  2552: if test "${with_aixauth+set}" = set; then
1.27      millert  2553:   withval=$with_aixauth; case $with_aixauth in
                   2554:     yes)       AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
                   2555:     no)                ;;
1.25      millert  2556:     *)         { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
                   2557: echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
1.9       millert  2558:    { (exit 1); exit 1; }; }
1.1       millert  2559:                ;;
                   2560: esac
1.27      millert  2561: fi
                   2562:
1.1       millert  2563:
1.16      millert  2564:
1.27      millert  2565: # Check whether --with-pam was given.
1.1       millert  2566: if test "${with_pam+set}" = set; then
1.27      millert  2567:   withval=$with_pam; case $with_pam in
                   2568:     yes)       AUTH_EXCL="$AUTH_EXCL PAM";;
                   2569:     no)                ;;
1.16      millert  2570:     *)         { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
1.9       millert  2571: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
                   2572:    { (exit 1); exit 1; }; }
1.1       millert  2573:                ;;
                   2574: esac
1.27      millert  2575: fi
                   2576:
1.1       millert  2577:
1.16      millert  2578:
1.27      millert  2579: # Check whether --with-AFS was given.
1.1       millert  2580: if test "${with_AFS+set}" = set; then
1.27      millert  2581:   withval=$with_AFS; case $with_AFS in
1.23      millert  2582:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2583: #define HAVE_AFS 1
1.16      millert  2584: _ACEOF
1.1       millert  2585:
1.27      millert  2586:                { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
                   2587: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
                   2588:                { echo "$as_me:$LINENO: result: yes" >&5
                   2589: echo "${ECHO_T}yes" >&6; }
                   2590:                AUTH_REG="$AUTH_REG AFS"
1.1       millert  2591:                ;;
                   2592:     no)                ;;
1.16      millert  2593:     *)         { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
1.9       millert  2594: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
                   2595:    { (exit 1); exit 1; }; }
1.1       millert  2596:                ;;
                   2597: esac
1.27      millert  2598: fi
                   2599:
1.1       millert  2600:
1.16      millert  2601:
1.27      millert  2602: # Check whether --with-DCE was given.
1.1       millert  2603: if test "${with_DCE+set}" = set; then
1.27      millert  2604:   withval=$with_DCE; case $with_DCE in
1.23      millert  2605:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2606: #define HAVE_DCE 1
1.16      millert  2607: _ACEOF
1.1       millert  2608:
1.27      millert  2609:                { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
                   2610: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
                   2611:                { echo "$as_me:$LINENO: result: yes" >&5
                   2612: echo "${ECHO_T}yes" >&6; }
                   2613:                AUTH_REG="$AUTH_REG DCE"
1.1       millert  2614:                ;;
                   2615:     no)                ;;
1.16      millert  2616:     *)         { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
1.9       millert  2617: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
                   2618:    { (exit 1); exit 1; }; }
1.1       millert  2619:                ;;
                   2620: esac
1.27      millert  2621: fi
                   2622:
1.1       millert  2623:
1.16      millert  2624:
1.27      millert  2625: # Check whether --with-logincap was given.
1.6       millert  2626: if test "${with_logincap+set}" = set; then
1.27      millert  2627:   withval=$with_logincap; case $with_logincap in
1.7       millert  2628:     yes|no)    ;;
1.16      millert  2629:     *)         { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
1.9       millert  2630: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
                   2631:    { (exit 1); exit 1; }; }
1.7       millert  2632:                ;;
                   2633: esac
1.27      millert  2634: fi
                   2635:
1.6       millert  2636:
1.16      millert  2637:
1.27      millert  2638: # Check whether --with-bsdauth was given.
1.7       millert  2639: if test "${with_bsdauth+set}" = set; then
1.27      millert  2640:   withval=$with_bsdauth; case $with_bsdauth in
                   2641:     yes)       AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
                   2642:     no)                ;;
1.16      millert  2643:     *)         { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
1.9       millert  2644: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
                   2645:    { (exit 1); exit 1; }; }
1.6       millert  2646:                ;;
                   2647: esac
1.27      millert  2648: fi
                   2649:
1.6       millert  2650:
1.25      millert  2651:
1.27      millert  2652: # Check whether --with-project was given.
1.25      millert  2653: if test "${with_project+set}" = set; then
1.27      millert  2654:   withval=$with_project; case $with_project in
1.25      millert  2655:     yes|no)    ;;
                   2656:     no)        ;;
                   2657:     *)         { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
                   2658: echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
                   2659:    { (exit 1); exit 1; }; }
                   2660:                ;;
                   2661: esac
1.27      millert  2662: fi
                   2663:
1.25      millert  2664:
1.27      millert  2665: { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
                   2666: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
1.6       millert  2667:
1.27      millert  2668: # Check whether --with-lecture was given.
1.1       millert  2669: if test "${with_lecture+set}" = set; then
1.27      millert  2670:   withval=$with_lecture; case $with_lecture in
1.23      millert  2671:     yes|short|always)  lecture=once
1.1       millert  2672:                ;;
1.23      millert  2673:     no|none|never)     lecture=never
1.1       millert  2674:                ;;
1.16      millert  2675:     *)         { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
1.9       millert  2676: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
                   2677:    { (exit 1); exit 1; }; }
1.1       millert  2678:                ;;
                   2679: esac
1.27      millert  2680: fi
                   2681:
1.23      millert  2682: if test "$lecture" = "once"; then
1.27      millert  2683:     { echo "$as_me:$LINENO: result: yes" >&5
                   2684: echo "${ECHO_T}yes" >&6; }
1.1       millert  2685: else
1.23      millert  2686:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2687: #define NO_LECTURE 1
1.16      millert  2688: _ACEOF
1.9       millert  2689:
1.27      millert  2690:     { echo "$as_me:$LINENO: result: no" >&5
                   2691: echo "${ECHO_T}no" >&6; }
1.1       millert  2692: fi
                   2693:
1.27      millert  2694: { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
                   2695: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
1.1       millert  2696:
1.27      millert  2697: # Check whether --with-logging was given.
1.1       millert  2698: if test "${with_logging+set}" = set; then
1.27      millert  2699:   withval=$with_logging; case $with_logging in
1.16      millert  2700:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
1.9       millert  2701: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
                   2702:    { (exit 1); exit 1; }; }
                   2703:                ;;
1.16      millert  2704:     no)                { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
1.9       millert  2705: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
                   2706:    { (exit 1); exit 1; }; }
1.1       millert  2707:                ;;
1.23      millert  2708:     syslog)    cat >>confdefs.h <<\_ACEOF
1.1       millert  2709: #define LOGGING SLOG_SYSLOG
1.16      millert  2710: _ACEOF
1.1       millert  2711:
1.27      millert  2712:                { echo "$as_me:$LINENO: result: syslog" >&5
                   2713: echo "${ECHO_T}syslog" >&6; }
1.1       millert  2714:                ;;
1.16      millert  2715:     file)      cat >>confdefs.h <<\_ACEOF
1.1       millert  2716: #define LOGGING SLOG_FILE
1.16      millert  2717: _ACEOF
1.1       millert  2718:
1.27      millert  2719:                { echo "$as_me:$LINENO: result: file" >&5
                   2720: echo "${ECHO_T}file" >&6; }
1.1       millert  2721:                ;;
1.16      millert  2722:     both)      cat >>confdefs.h <<\_ACEOF
1.1       millert  2723: #define LOGGING SLOG_BOTH
1.16      millert  2724: _ACEOF
1.1       millert  2725:
1.27      millert  2726:                { echo "$as_me:$LINENO: result: both" >&5
                   2727: echo "${ECHO_T}both" >&6; }
1.1       millert  2728:                ;;
1.16      millert  2729:     *)         { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
1.9       millert  2730: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
                   2731:    { (exit 1); exit 1; }; }
1.1       millert  2732:                ;;
                   2733: esac
                   2734: else
1.16      millert  2735:   cat >>confdefs.h <<\_ACEOF
1.1       millert  2736: #define LOGGING SLOG_SYSLOG
1.16      millert  2737: _ACEOF
1.27      millert  2738:  { echo "$as_me:$LINENO: result: syslog" >&5
                   2739: echo "${ECHO_T}syslog" >&6; }
                   2740: fi
                   2741:
1.1       millert  2742:
1.27      millert  2743: { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
                   2744: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
1.1       millert  2745:
1.27      millert  2746: # Check whether --with-logfac was given.
1.1       millert  2747: if test "${with_logfac+set}" = set; then
1.27      millert  2748:   withval=$with_logfac; case $with_logfac in
1.16      millert  2749:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
1.9       millert  2750: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
                   2751:    { (exit 1); exit 1; }; }
                   2752:                ;;
1.16      millert  2753:     no)                { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
1.9       millert  2754: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
                   2755:    { (exit 1); exit 1; }; }
1.1       millert  2756:                ;;
1.9       millert  2757:     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)         logfac=$with_logfac
1.1       millert  2758:                ;;
1.16      millert  2759:     *)         { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
1.9       millert  2760: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
                   2761:    { (exit 1); exit 1; }; }
1.1       millert  2762:                ;;
                   2763: esac
1.27      millert  2764: fi
                   2765:
1.9       millert  2766:
1.16      millert  2767: cat >>confdefs.h <<_ACEOF
1.9       millert  2768: #define LOGFAC "$logfac"
1.16      millert  2769: _ACEOF
1.1       millert  2770:
1.27      millert  2771: { echo "$as_me:$LINENO: result: $logfac" >&5
                   2772: echo "${ECHO_T}$logfac" >&6; }
1.9       millert  2773:
1.27      millert  2774: { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
                   2775: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
1.1       millert  2776:
1.27      millert  2777: # Check whether --with-goodpri was given.
1.1       millert  2778: if test "${with_goodpri+set}" = set; then
1.27      millert  2779:   withval=$with_goodpri; case $with_goodpri in
1.16      millert  2780:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
1.9       millert  2781: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
                   2782:    { (exit 1); exit 1; }; }
1.1       millert  2783:                ;;
1.16      millert  2784:     no)                { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
1.9       millert  2785: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
                   2786:    { (exit 1); exit 1; }; }
1.1       millert  2787:                ;;
1.9       millert  2788:     alert|crit|debug|emerg|err|info|notice|warning)
                   2789:                goodpri=$with_goodpri
1.1       millert  2790:                ;;
1.16      millert  2791:     *)         { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
1.9       millert  2792: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
                   2793:    { (exit 1); exit 1; }; }
1.1       millert  2794:                ;;
                   2795: esac
1.27      millert  2796: fi
                   2797:
1.9       millert  2798:
1.16      millert  2799: cat >>confdefs.h <<_ACEOF
1.9       millert  2800: #define PRI_SUCCESS "$goodpri"
1.16      millert  2801: _ACEOF
1.1       millert  2802:
1.27      millert  2803: { echo "$as_me:$LINENO: result: $goodpri" >&5
                   2804: echo "${ECHO_T}$goodpri" >&6; }
1.9       millert  2805:
1.27      millert  2806: { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
                   2807: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
1.1       millert  2808:
1.27      millert  2809: # Check whether --with-badpri was given.
1.1       millert  2810: if test "${with_badpri+set}" = set; then
1.27      millert  2811:   withval=$with_badpri; case $with_badpri in
1.16      millert  2812:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
1.9       millert  2813: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
                   2814:    { (exit 1); exit 1; }; }
1.1       millert  2815:                ;;
1.16      millert  2816:     no)                { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
1.9       millert  2817: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
                   2818:    { (exit 1); exit 1; }; }
1.1       millert  2819:                ;;
1.9       millert  2820:     alert|crit|debug|emerg|err|info|notice|warning)
                   2821:                badpri=$with_badpri
1.1       millert  2822:                ;;
1.16      millert  2823:     *)         { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
1.9       millert  2824: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
                   2825:    { (exit 1); exit 1; }; }
1.1       millert  2826:                ;;
                   2827: esac
1.27      millert  2828: fi
                   2829:
1.9       millert  2830:
1.16      millert  2831: cat >>confdefs.h <<_ACEOF
1.9       millert  2832: #define PRI_FAILURE "$badpri"
1.16      millert  2833: _ACEOF
                   2834:
1.27      millert  2835: { echo "$as_me:$LINENO: result: $badpri" >&5
                   2836: echo "${ECHO_T}$badpri" >&6; }
1.1       millert  2837:
                   2838:
1.27      millert  2839: # Check whether --with-logpath was given.
1.1       millert  2840: if test "${with_logpath+set}" = set; then
1.27      millert  2841:   withval=$with_logpath; case $with_logpath in
1.16      millert  2842:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
1.9       millert  2843: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
                   2844:    { (exit 1); exit 1; }; }
1.1       millert  2845:                ;;
1.16      millert  2846:     no)                { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
1.9       millert  2847: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
                   2848:    { (exit 1); exit 1; }; }
1.1       millert  2849:                ;;
                   2850: esac
1.27      millert  2851: fi
                   2852:
1.1       millert  2853:
1.27      millert  2854: { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
                   2855: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
1.1       millert  2856:
1.27      millert  2857: # Check whether --with-loglen was given.
1.1       millert  2858: if test "${with_loglen+set}" = set; then
1.27      millert  2859:   withval=$with_loglen; case $with_loglen in
1.16      millert  2860:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
1.9       millert  2861: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
                   2862:    { (exit 1); exit 1; }; }
1.1       millert  2863:                ;;
1.16      millert  2864:     no)                { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
1.9       millert  2865: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
                   2866:    { (exit 1); exit 1; }; }
1.1       millert  2867:                ;;
1.9       millert  2868:     [0-9]*)    loglen=$with_loglen
1.1       millert  2869:                ;;
1.16      millert  2870:     *)         { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
1.9       millert  2871: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
                   2872:    { (exit 1); exit 1; }; }
1.1       millert  2873:                ;;
                   2874: esac
1.27      millert  2875: fi
                   2876:
1.9       millert  2877:
1.16      millert  2878: cat >>confdefs.h <<_ACEOF
1.9       millert  2879: #define MAXLOGFILELEN $loglen
1.16      millert  2880: _ACEOF
1.1       millert  2881:
1.27      millert  2882: { echo "$as_me:$LINENO: result: $loglen" >&5
                   2883: echo "${ECHO_T}$loglen" >&6; }
1.9       millert  2884:
1.27      millert  2885: { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
                   2886: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
1.1       millert  2887:
1.27      millert  2888: # Check whether --with-ignore-dot was given.
1.1       millert  2889: if test "${with_ignore_dot+set}" = set; then
1.27      millert  2890:   withval=$with_ignore_dot; case $with_ignore_dot in
1.9       millert  2891:     yes)       ignore_dot=on
1.1       millert  2892:                ;;
1.9       millert  2893:     no)                ignore_dot=off
1.1       millert  2894:                ;;
1.16      millert  2895:     *)         { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
1.9       millert  2896: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
                   2897:    { (exit 1); exit 1; }; }
1.1       millert  2898:                ;;
                   2899: esac
1.27      millert  2900: fi
                   2901:
1.9       millert  2902: if test "$ignore_dot" = "on"; then
1.23      millert  2903:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2904: #define IGNORE_DOT_PATH 1
1.16      millert  2905: _ACEOF
1.9       millert  2906:
1.27      millert  2907:     { echo "$as_me:$LINENO: result: yes" >&5
                   2908: echo "${ECHO_T}yes" >&6; }
1.1       millert  2909: else
1.27      millert  2910:     { echo "$as_me:$LINENO: result: no" >&5
                   2911: echo "${ECHO_T}no" >&6; }
1.1       millert  2912: fi
                   2913:
1.27      millert  2914: { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
                   2915: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
1.1       millert  2916:
1.27      millert  2917: # Check whether --with-mail-if-no-user was given.
1.9       millert  2918: if test "${with_mail_if_no_user+set}" = set; then
1.27      millert  2919:   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
1.9       millert  2920:     yes)       mail_no_user=on
                   2921:                ;;
                   2922:     no)                mail_no_user=off
1.1       millert  2923:                ;;
1.16      millert  2924:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
1.9       millert  2925: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
                   2926:    { (exit 1); exit 1; }; }
1.1       millert  2927:                ;;
1.9       millert  2928: esac
1.27      millert  2929: fi
                   2930:
1.9       millert  2931: if test "$mail_no_user" = "on"; then
1.23      millert  2932:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2933: #define SEND_MAIL_WHEN_NO_USER 1
1.16      millert  2934: _ACEOF
1.1       millert  2935:
1.27      millert  2936:     { echo "$as_me:$LINENO: result: yes" >&5
                   2937: echo "${ECHO_T}yes" >&6; }
1.1       millert  2938: else
1.27      millert  2939:     { echo "$as_me:$LINENO: result: no" >&5
                   2940: echo "${ECHO_T}no" >&6; }
1.1       millert  2941: fi
                   2942:
1.27      millert  2943: { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
                   2944: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
1.1       millert  2945:
1.27      millert  2946: # Check whether --with-mail-if-no-host was given.
1.9       millert  2947: if test "${with_mail_if_no_host+set}" = set; then
1.27      millert  2948:   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
1.9       millert  2949:     yes)       mail_no_host=on
1.1       millert  2950:                ;;
1.9       millert  2951:     no)                mail_no_host=off
1.1       millert  2952:                ;;
1.16      millert  2953:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
1.9       millert  2954: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
                   2955:    { (exit 1); exit 1; }; }
1.1       millert  2956:                ;;
                   2957: esac
1.27      millert  2958: fi
                   2959:
1.9       millert  2960: if test "$mail_no_host" = "on"; then
1.23      millert  2961:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2962: #define SEND_MAIL_WHEN_NO_HOST 1
1.16      millert  2963: _ACEOF
1.1       millert  2964:
1.27      millert  2965:     { echo "$as_me:$LINENO: result: yes" >&5
                   2966: echo "${ECHO_T}yes" >&6; }
1.9       millert  2967: else
1.27      millert  2968:     { echo "$as_me:$LINENO: result: no" >&5
                   2969: echo "${ECHO_T}no" >&6; }
1.1       millert  2970: fi
                   2971:
1.27      millert  2972: { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
                   2973: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
1.1       millert  2974:
1.27      millert  2975: # Check whether --with-mail-if-noperms was given.
1.9       millert  2976: if test "${with_mail_if_noperms+set}" = set; then
1.27      millert  2977:   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
1.9       millert  2978:     yes)       mail_noperms=on
1.1       millert  2979:                ;;
1.9       millert  2980:     no)                mail_noperms=off
1.1       millert  2981:                ;;
1.16      millert  2982:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
1.9       millert  2983: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
                   2984:    { (exit 1); exit 1; }; }
1.1       millert  2985:                ;;
                   2986: esac
1.27      millert  2987: fi
                   2988:
1.9       millert  2989: if test "$mail_noperms" = "on"; then
1.23      millert  2990:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2991: #define SEND_MAIL_WHEN_NOT_OK 1
1.16      millert  2992: _ACEOF
1.9       millert  2993:
1.27      millert  2994:     { echo "$as_me:$LINENO: result: yes" >&5
                   2995: echo "${ECHO_T}yes" >&6; }
1.1       millert  2996: else
1.27      millert  2997:     { echo "$as_me:$LINENO: result: no" >&5
                   2998: echo "${ECHO_T}no" >&6; }
1.1       millert  2999: fi
                   3000:
1.27      millert  3001: { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
                   3002: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
1.1       millert  3003:
1.27      millert  3004: # Check whether --with-mailto was given.
1.9       millert  3005: if test "${with_mailto+set}" = set; then
1.27      millert  3006:   withval=$with_mailto; case $with_mailto in
1.16      millert  3007:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
1.9       millert  3008: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
                   3009:    { (exit 1); exit 1; }; }
1.1       millert  3010:                ;;
1.16      millert  3011:     no)                { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
1.9       millert  3012: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
                   3013:    { (exit 1); exit 1; }; }
1.1       millert  3014:                ;;
1.9       millert  3015:     *)         mailto=$with_mailto
1.1       millert  3016:                ;;
                   3017: esac
1.27      millert  3018: fi
                   3019:
1.1       millert  3020:
1.16      millert  3021: cat >>confdefs.h <<_ACEOF
1.9       millert  3022: #define MAILTO "$mailto"
1.16      millert  3023: _ACEOF
1.1       millert  3024:
1.27      millert  3025: { echo "$as_me:$LINENO: result: $mailto" >&5
                   3026: echo "${ECHO_T}$mailto" >&6; }
1.1       millert  3027:
1.16      millert  3028:
1.27      millert  3029: # Check whether --with-mailsubject was given.
1.9       millert  3030: if test "${with_mailsubject+set}" = set; then
1.27      millert  3031:   withval=$with_mailsubject; case $with_mailsubject in
1.16      millert  3032:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
1.9       millert  3033: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
                   3034:    { (exit 1); exit 1; }; }
1.1       millert  3035:                ;;
1.17      millert  3036:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
                   3037: echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
1.1       millert  3038:                ;;
1.9       millert  3039:     *)         mailsub="$with_mailsubject"
1.27      millert  3040:                { echo "$as_me:$LINENO: checking sudo mail subject" >&5
                   3041: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
                   3042:                { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
                   3043: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
1.1       millert  3044:                ;;
                   3045: esac
1.27      millert  3046: fi
                   3047:
1.9       millert  3048:
1.16      millert  3049: cat >>confdefs.h <<_ACEOF
1.9       millert  3050: #define MAILSUBJECT "$mailsub"
1.16      millert  3051: _ACEOF
                   3052:
1.1       millert  3053:
1.27      millert  3054: { echo "$as_me:$LINENO: checking for bad password prompt" >&5
                   3055: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
1.1       millert  3056:
1.27      millert  3057: # Check whether --with-passprompt was given.
1.1       millert  3058: if test "${with_passprompt+set}" = set; then
1.27      millert  3059:   withval=$with_passprompt; case $with_passprompt in
1.16      millert  3060:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
1.9       millert  3061: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
                   3062:    { (exit 1); exit 1; }; }
1.1       millert  3063:                ;;
1.17      millert  3064:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
                   3065: echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
1.1       millert  3066:                ;;
1.9       millert  3067:     *)         passprompt="$with_passprompt"
                   3068: esac
1.27      millert  3069: fi
                   3070:
                   3071: { echo "$as_me:$LINENO: result: $passprompt" >&5
                   3072: echo "${ECHO_T}$passprompt" >&6; }
1.1       millert  3073:
1.16      millert  3074: cat >>confdefs.h <<_ACEOF
1.9       millert  3075: #define PASSPROMPT "$passprompt"
1.16      millert  3076: _ACEOF
                   3077:
1.1       millert  3078:
1.27      millert  3079: { echo "$as_me:$LINENO: checking for bad password message" >&5
                   3080: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
1.1       millert  3081:
1.27      millert  3082: # Check whether --with-badpass-message was given.
1.1       millert  3083: if test "${with_badpass_message+set}" = set; then
1.27      millert  3084:   withval=$with_badpass_message; case $with_badpass_message in
1.16      millert  3085:     yes)       { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
1.9       millert  3086: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
                   3087:    { (exit 1); exit 1; }; }
1.1       millert  3088:                ;;
1.17      millert  3089:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
                   3090: echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
1.1       millert  3091:                ;;
1.9       millert  3092:     *)         badpass_message="$with_badpass_message"
1.1       millert  3093:                ;;
                   3094: esac
1.27      millert  3095: fi
                   3096:
1.9       millert  3097:
1.16      millert  3098: cat >>confdefs.h <<_ACEOF
1.9       millert  3099: #define INCORRECT_PASSWORD "$badpass_message"
1.16      millert  3100: _ACEOF
1.1       millert  3101:
1.27      millert  3102: { echo "$as_me:$LINENO: result: $badpass_message" >&5
                   3103: echo "${ECHO_T}$badpass_message" >&6; }
1.9       millert  3104:
1.27      millert  3105: { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
                   3106: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
1.1       millert  3107:
1.27      millert  3108: # Check whether --with-fqdn was given.
1.1       millert  3109: if test "${with_fqdn+set}" = set; then
1.27      millert  3110:   withval=$with_fqdn; case $with_fqdn in
1.9       millert  3111:     yes)       fqdn=on
1.1       millert  3112:                ;;
1.9       millert  3113:     no)                fqdn=off
1.1       millert  3114:                ;;
1.16      millert  3115:     *)         { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
1.9       millert  3116: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
                   3117:    { (exit 1); exit 1; }; }
1.1       millert  3118:                ;;
                   3119: esac
1.27      millert  3120: fi
                   3121:
1.9       millert  3122: if test "$fqdn" = "on"; then
1.23      millert  3123:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3124: #define FQDN 1
1.16      millert  3125: _ACEOF
1.9       millert  3126:
1.27      millert  3127:     { echo "$as_me:$LINENO: result: yes" >&5
                   3128: echo "${ECHO_T}yes" >&6; }
1.1       millert  3129: else
1.27      millert  3130:     { echo "$as_me:$LINENO: result: no" >&5
                   3131: echo "${ECHO_T}no" >&6; }
1.1       millert  3132: fi
                   3133:
1.16      millert  3134:
1.27      millert  3135: # Check whether --with-timedir was given.
1.1       millert  3136: if test "${with_timedir+set}" = set; then
1.27      millert  3137:   withval=$with_timedir; case $with_timedir in
1.16      millert  3138:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
1.9       millert  3139: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
                   3140:    { (exit 1); exit 1; }; }
1.1       millert  3141:                ;;
1.16      millert  3142:     no)                { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
1.9       millert  3143: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
                   3144:    { (exit 1); exit 1; }; }
1.1       millert  3145:                ;;
                   3146: esac
1.27      millert  3147: fi
                   3148:
1.1       millert  3149:
1.16      millert  3150:
1.27      millert  3151: # Check whether --with-sendmail was given.
1.1       millert  3152: if test "${with_sendmail+set}" = set; then
1.27      millert  3153:   withval=$with_sendmail; case $with_sendmail in
1.1       millert  3154:     yes)       with_sendmail=""
                   3155:                ;;
                   3156:     no)                ;;
1.9       millert  3157:     *)         cat >>confdefs.h <<EOF
                   3158: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1       millert  3159: EOF
                   3160:
                   3161:                ;;
                   3162: esac
1.27      millert  3163: fi
                   3164:
1.1       millert  3165:
1.16      millert  3166:
1.27      millert  3167: # Check whether --with-sudoers-mode was given.
1.1       millert  3168: if test "${with_sudoers_mode+set}" = set; then
1.27      millert  3169:   withval=$with_sudoers_mode; case $with_sudoers_mode in
1.16      millert  3170:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
1.9       millert  3171: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
                   3172:    { (exit 1); exit 1; }; }
                   3173:                ;;
1.16      millert  3174:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
1.9       millert  3175: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
                   3176:    { (exit 1); exit 1; }; }
1.1       millert  3177:                ;;
                   3178:     [1-9]*)    SUDOERS_MODE=0${with_sudoers_mode}
                   3179:                ;;
                   3180:     0*)                SUDOERS_MODE=$with_sudoers_mode
                   3181:                ;;
1.16      millert  3182:     *)         { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
                   3183: echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
1.9       millert  3184:    { (exit 1); exit 1; }; }
1.1       millert  3185:                ;;
                   3186: esac
1.27      millert  3187: fi
                   3188:
1.1       millert  3189:
1.16      millert  3190:
1.27      millert  3191: # Check whether --with-sudoers-uid was given.
1.1       millert  3192: if test "${with_sudoers_uid+set}" = set; then
1.27      millert  3193:   withval=$with_sudoers_uid; case $with_sudoers_uid in
1.16      millert  3194:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
1.9       millert  3195: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
                   3196:    { (exit 1); exit 1; }; }
                   3197:                ;;
1.16      millert  3198:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
1.9       millert  3199: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
                   3200:    { (exit 1); exit 1; }; }
1.1       millert  3201:                ;;
                   3202:     [0-9]*)    SUDOERS_UID=$with_sudoers_uid
                   3203:                ;;
1.16      millert  3204:     *)         { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
                   3205: echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
1.9       millert  3206:    { (exit 1); exit 1; }; }
1.1       millert  3207:                ;;
                   3208: esac
1.27      millert  3209: fi
                   3210:
1.1       millert  3211:
1.16      millert  3212:
1.27      millert  3213: # Check whether --with-sudoers-gid was given.
1.1       millert  3214: if test "${with_sudoers_gid+set}" = set; then
1.27      millert  3215:   withval=$with_sudoers_gid; case $with_sudoers_gid in
1.16      millert  3216:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
1.9       millert  3217: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
                   3218:    { (exit 1); exit 1; }; }
                   3219:                ;;
1.16      millert  3220:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
1.9       millert  3221: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
                   3222:    { (exit 1); exit 1; }; }
1.1       millert  3223:                ;;
                   3224:     [0-9]*)    SUDOERS_GID=$with_sudoers_gid
                   3225:                ;;
1.16      millert  3226:     *)         { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
                   3227: echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
1.9       millert  3228:    { (exit 1); exit 1; }; }
1.1       millert  3229:                ;;
                   3230: esac
1.27      millert  3231: fi
                   3232:
1.1       millert  3233:
1.27      millert  3234: { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
                   3235: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
1.1       millert  3236:
1.27      millert  3237: # Check whether --with-umask was given.
1.1       millert  3238: if test "${with_umask+set}" = set; then
1.27      millert  3239:   withval=$with_umask; case $with_umask in
1.16      millert  3240:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
1.9       millert  3241: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
                   3242:    { (exit 1); exit 1; }; }
1.1       millert  3243:                ;;
1.9       millert  3244:     no)                sudo_umask=0777
1.1       millert  3245:                ;;
1.9       millert  3246:     [0-9]*)    sudo_umask=$with_umask
1.1       millert  3247:                ;;
1.16      millert  3248:     *)         { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
1.9       millert  3249: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
                   3250:    { (exit 1); exit 1; }; }
1.1       millert  3251:                ;;
                   3252: esac
1.27      millert  3253: fi
                   3254:
1.9       millert  3255:
1.16      millert  3256: cat >>confdefs.h <<_ACEOF
1.9       millert  3257: #define SUDO_UMASK $sudo_umask
1.16      millert  3258: _ACEOF
1.9       millert  3259:
                   3260: if test "$sudo_umask" = "0777"; then
1.27      millert  3261:     { echo "$as_me:$LINENO: result: user" >&5
                   3262: echo "${ECHO_T}user" >&6; }
1.1       millert  3263: else
1.27      millert  3264:     { echo "$as_me:$LINENO: result: $sudo_umask" >&5
                   3265: echo "${ECHO_T}$sudo_umask" >&6; }
1.1       millert  3266: fi
                   3267:
1.27      millert  3268: { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
                   3269: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
1.1       millert  3270:
1.27      millert  3271: # Check whether --with-runas-default was given.
1.1       millert  3272: if test "${with_runas_default+set}" = set; then
1.27      millert  3273:   withval=$with_runas_default; case $with_runas_default in
1.16      millert  3274:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
1.9       millert  3275: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
                   3276:    { (exit 1); exit 1; }; }
1.1       millert  3277:                ;;
1.16      millert  3278:     no)                { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
1.9       millert  3279: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
                   3280:    { (exit 1); exit 1; }; }
1.1       millert  3281:                ;;
1.9       millert  3282:     *)         runas_default="$with_runas_default"
1.1       millert  3283:                ;;
                   3284: esac
1.27      millert  3285: fi
                   3286:
1.9       millert  3287:
1.16      millert  3288: cat >>confdefs.h <<_ACEOF
1.9       millert  3289: #define RUNAS_DEFAULT "$runas_default"
1.16      millert  3290: _ACEOF
1.1       millert  3291:
1.27      millert  3292: { echo "$as_me:$LINENO: result: $runas_default" >&5
                   3293: echo "${ECHO_T}$runas_default" >&6; }
1.1       millert  3294:
1.16      millert  3295:
1.27      millert  3296: # Check whether --with-exempt was given.
1.1       millert  3297: if test "${with_exempt+set}" = set; then
1.27      millert  3298:   withval=$with_exempt; case $with_exempt in
1.16      millert  3299:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
1.9       millert  3300: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
                   3301:    { (exit 1); exit 1; }; }
                   3302:                ;;
1.16      millert  3303:     no)                { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
1.9       millert  3304: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
                   3305:    { (exit 1); exit 1; }; }
1.1       millert  3306:                ;;
1.9       millert  3307:     *)
1.16      millert  3308: cat >>confdefs.h <<_ACEOF
1.1       millert  3309: #define EXEMPTGROUP "$with_exempt"
1.16      millert  3310: _ACEOF
1.1       millert  3311:
1.27      millert  3312:                { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
                   3313: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
                   3314:                { echo "$as_me:$LINENO: result: $with_exempt" >&5
                   3315: echo "${ECHO_T}$with_exempt" >&6; }
1.1       millert  3316:                ;;
                   3317: esac
1.27      millert  3318: fi
                   3319:
1.1       millert  3320:
1.27      millert  3321: { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
                   3322: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
1.1       millert  3323:
1.27      millert  3324: # Check whether --with-editor was given.
1.1       millert  3325: if test "${with_editor+set}" = set; then
1.27      millert  3326:   withval=$with_editor; case $with_editor in
1.16      millert  3327:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
1.9       millert  3328: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
                   3329:    { (exit 1); exit 1; }; }
                   3330:                ;;
1.16      millert  3331:     no)                { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9       millert  3332: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   3333:    { (exit 1); exit 1; }; }
1.1       millert  3334:                ;;
1.9       millert  3335:     *)
1.16      millert  3336: cat >>confdefs.h <<_ACEOF
1.1       millert  3337: #define EDITOR "$with_editor"
1.16      millert  3338: _ACEOF
1.1       millert  3339:
1.27      millert  3340:                { echo "$as_me:$LINENO: result: $with_editor" >&5
                   3341: echo "${ECHO_T}$with_editor" >&6; }
1.1       millert  3342:                ;;
                   3343: esac
                   3344: else
1.16      millert  3345:   cat >>confdefs.h <<\_ACEOF
1.1       millert  3346: #define EDITOR _PATH_VI
1.16      millert  3347: _ACEOF
1.27      millert  3348:  { echo "$as_me:$LINENO: result: vi" >&5
                   3349: echo "${ECHO_T}vi" >&6; }
                   3350: fi
                   3351:
1.1       millert  3352:
1.27      millert  3353: { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
                   3354: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
1.1       millert  3355:
1.27      millert  3356: # Check whether --with-env-editor was given.
1.1       millert  3357: if test "${with_env_editor+set}" = set; then
1.27      millert  3358:   withval=$with_env_editor; case $with_env_editor in
1.9       millert  3359:     yes)       env_editor=on
1.1       millert  3360:                ;;
1.9       millert  3361:     no)                env_editor=off
1.1       millert  3362:                ;;
1.16      millert  3363:     *)         { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
1.9       millert  3364: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
                   3365:    { (exit 1); exit 1; }; }
1.1       millert  3366:                ;;
                   3367: esac
1.27      millert  3368: fi
                   3369:
1.9       millert  3370: if test "$env_editor" = "on"; then
1.23      millert  3371:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3372: #define ENV_EDITOR 1
1.16      millert  3373: _ACEOF
1.9       millert  3374:
1.27      millert  3375:     { echo "$as_me:$LINENO: result: yes" >&5
                   3376: echo "${ECHO_T}yes" >&6; }
1.1       millert  3377: else
1.27      millert  3378:     { echo "$as_me:$LINENO: result: no" >&5
                   3379: echo "${ECHO_T}no" >&6; }
1.1       millert  3380: fi
                   3381:
1.27      millert  3382: { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
                   3383: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
1.1       millert  3384:
1.27      millert  3385: # Check whether --with-passwd-tries was given.
1.1       millert  3386: if test "${with_passwd_tries+set}" = set; then
1.27      millert  3387:   withval=$with_passwd_tries; case $with_passwd_tries in
1.9       millert  3388:     yes)       ;;
1.16      millert  3389:     no)                { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9       millert  3390: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   3391:    { (exit 1); exit 1; }; }
1.1       millert  3392:                ;;
1.9       millert  3393:     [1-9]*)    passwd_tries=$with_passwd_tries
1.1       millert  3394:                ;;
1.16      millert  3395:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
1.9       millert  3396: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
                   3397:    { (exit 1); exit 1; }; }
1.1       millert  3398:                ;;
                   3399: esac
1.27      millert  3400: fi
                   3401:
1.9       millert  3402:
1.16      millert  3403: cat >>confdefs.h <<_ACEOF
1.9       millert  3404: #define TRIES_FOR_PASSWORD $passwd_tries
1.16      millert  3405: _ACEOF
1.1       millert  3406:
1.27      millert  3407: { echo "$as_me:$LINENO: result: $passwd_tries" >&5
                   3408: echo "${ECHO_T}$passwd_tries" >&6; }
1.9       millert  3409:
1.27      millert  3410: { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
                   3411: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
1.1       millert  3412:
1.27      millert  3413: # Check whether --with-timeout was given.
1.1       millert  3414: if test "${with_timeout+set}" = set; then
1.27      millert  3415:   withval=$with_timeout; case $with_timeout in
1.9       millert  3416:     yes)       ;;
                   3417:     no)                timeout=0
1.1       millert  3418:                ;;
1.9       millert  3419:     [0-9]*)    timeout=$with_timeout
1.1       millert  3420:                ;;
1.16      millert  3421:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9       millert  3422: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   3423:    { (exit 1); exit 1; }; }
1.1       millert  3424:                ;;
                   3425: esac
1.27      millert  3426: fi
                   3427:
1.9       millert  3428:
1.16      millert  3429: cat >>confdefs.h <<_ACEOF
1.9       millert  3430: #define TIMEOUT $timeout
1.16      millert  3431: _ACEOF
1.1       millert  3432:
1.27      millert  3433: { echo "$as_me:$LINENO: result: $timeout" >&5
                   3434: echo "${ECHO_T}$timeout" >&6; }
1.9       millert  3435:
1.27      millert  3436: { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
                   3437: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
1.1       millert  3438:
1.27      millert  3439: # Check whether --with-password-timeout was given.
1.1       millert  3440: if test "${with_password_timeout+set}" = set; then
1.27      millert  3441:   withval=$with_password_timeout; case $with_password_timeout in
1.9       millert  3442:     yes)       ;;
                   3443:     no)                password_timeout=0
1.1       millert  3444:                ;;
1.9       millert  3445:     [0-9]*)    password_timeout=$with_password_timeout
1.1       millert  3446:                ;;
1.16      millert  3447:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9       millert  3448: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   3449:    { (exit 1); exit 1; }; }
1.1       millert  3450:                ;;
                   3451: esac
1.27      millert  3452: fi
                   3453:
1.9       millert  3454:
1.16      millert  3455: cat >>confdefs.h <<_ACEOF
1.9       millert  3456: #define PASSWORD_TIMEOUT $password_timeout
1.16      millert  3457: _ACEOF
1.1       millert  3458:
1.27      millert  3459: { echo "$as_me:$LINENO: result: $password_timeout" >&5
                   3460: echo "${ECHO_T}$password_timeout" >&6; }
1.1       millert  3461:
1.27      millert  3462: { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
                   3463: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
1.1       millert  3464:
1.27      millert  3465: # Check whether --with-tty-tickets was given.
1.1       millert  3466: if test "${with_tty_tickets+set}" = set; then
1.27      millert  3467:   withval=$with_tty_tickets; case $with_tty_tickets in
1.9       millert  3468:     yes)       tty_tickets=on
1.1       millert  3469:                ;;
1.9       millert  3470:     no)                tty_tickets=off
1.1       millert  3471:                ;;
1.16      millert  3472:     *)         { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
1.9       millert  3473: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
                   3474:    { (exit 1); exit 1; }; }
1.1       millert  3475:                ;;
                   3476: esac
1.27      millert  3477: fi
                   3478:
1.9       millert  3479: if test "$tty_tickets" = "on"; then
1.23      millert  3480:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3481: #define USE_TTY_TICKETS 1
1.16      millert  3482: _ACEOF
1.9       millert  3483:
1.27      millert  3484:     { echo "$as_me:$LINENO: result: yes" >&5
                   3485: echo "${ECHO_T}yes" >&6; }
1.1       millert  3486: else
1.27      millert  3487:     { echo "$as_me:$LINENO: result: no" >&5
                   3488: echo "${ECHO_T}no" >&6; }
1.1       millert  3489: fi
                   3490:
1.27      millert  3491: { echo "$as_me:$LINENO: checking whether to include insults" >&5
                   3492: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
1.1       millert  3493:
1.27      millert  3494: # Check whether --with-insults was given.
1.1       millert  3495: if test "${with_insults+set}" = set; then
1.27      millert  3496:   withval=$with_insults; case $with_insults in
1.9       millert  3497:     yes)       insults=on
1.1       millert  3498:                with_classic_insults=yes
                   3499:                with_csops_insults=yes
                   3500:                ;;
1.9       millert  3501:     no)                insults=off
1.1       millert  3502:                ;;
1.16      millert  3503:     *)         { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
1.9       millert  3504: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
                   3505:    { (exit 1); exit 1; }; }
1.1       millert  3506:                ;;
                   3507: esac
1.27      millert  3508: fi
                   3509:
1.9       millert  3510: if test "$insults" = "on"; then
1.23      millert  3511:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3512: #define USE_INSULTS 1
1.16      millert  3513: _ACEOF
1.9       millert  3514:
1.27      millert  3515:     { echo "$as_me:$LINENO: result: yes" >&5
                   3516: echo "${ECHO_T}yes" >&6; }
1.1       millert  3517: else
1.27      millert  3518:     { echo "$as_me:$LINENO: result: no" >&5
                   3519: echo "${ECHO_T}no" >&6; }
1.1       millert  3520: fi
                   3521:
1.16      millert  3522:
1.27      millert  3523: # Check whether --with-all-insults was given.
1.1       millert  3524: if test "${with_all_insults+set}" = set; then
1.27      millert  3525:   withval=$with_all_insults; case $with_all_insults in
1.1       millert  3526:     yes)       with_classic_insults=yes
                   3527:                with_csops_insults=yes
                   3528:                with_hal_insults=yes
                   3529:                with_goons_insults=yes
                   3530:                ;;
                   3531:     no)                ;;
1.16      millert  3532:     *)         { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
1.9       millert  3533: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
                   3534:    { (exit 1); exit 1; }; }
1.1       millert  3535:                ;;
                   3536: esac
1.27      millert  3537: fi
                   3538:
1.1       millert  3539:
1.16      millert  3540:
1.27      millert  3541: # Check whether --with-classic-insults was given.
1.1       millert  3542: if test "${with_classic_insults+set}" = set; then
1.27      millert  3543:   withval=$with_classic_insults; case $with_classic_insults in
1.23      millert  3544:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3545: #define CLASSIC_INSULTS 1
1.16      millert  3546: _ACEOF
1.1       millert  3547:
                   3548:                ;;
                   3549:     no)                ;;
1.16      millert  3550:     *)         { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
1.9       millert  3551: echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
                   3552:    { (exit 1); exit 1; }; }
1.1       millert  3553:                ;;
                   3554: esac
1.27      millert  3555: fi
                   3556:
1.1       millert  3557:
1.16      millert  3558:
1.27      millert  3559: # Check whether --with-csops-insults was given.
1.1       millert  3560: if test "${with_csops_insults+set}" = set; then
1.27      millert  3561:   withval=$with_csops_insults; case $with_csops_insults in
1.23      millert  3562:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3563: #define CSOPS_INSULTS 1
1.16      millert  3564: _ACEOF
1.1       millert  3565:
                   3566:                ;;
                   3567:     no)                ;;
1.16      millert  3568:     *)         { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
1.9       millert  3569: echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
                   3570:    { (exit 1); exit 1; }; }
1.1       millert  3571:                ;;
                   3572: esac
1.27      millert  3573: fi
                   3574:
1.1       millert  3575:
1.16      millert  3576:
1.27      millert  3577: # Check whether --with-hal-insults was given.
1.1       millert  3578: if test "${with_hal_insults+set}" = set; then
1.27      millert  3579:   withval=$with_hal_insults; case $with_hal_insults in
1.23      millert  3580:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3581: #define HAL_INSULTS 1
1.16      millert  3582: _ACEOF
1.1       millert  3583:
                   3584:                ;;
                   3585:     no)                ;;
1.16      millert  3586:     *)         { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
1.9       millert  3587: echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
                   3588:    { (exit 1); exit 1; }; }
1.1       millert  3589:                ;;
                   3590: esac
1.27      millert  3591: fi
                   3592:
1.1       millert  3593:
1.16      millert  3594:
1.27      millert  3595: # Check whether --with-goons-insults was given.
1.1       millert  3596: if test "${with_goons_insults+set}" = set; then
1.27      millert  3597:   withval=$with_goons_insults; case $with_goons_insults in
1.23      millert  3598:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3599: #define GOONS_INSULTS 1
1.16      millert  3600: _ACEOF
1.1       millert  3601:
                   3602:                ;;
                   3603:     no)                ;;
1.16      millert  3604:     *)         { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
1.9       millert  3605: echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
                   3606:    { (exit 1); exit 1; }; }
1.1       millert  3607:                ;;
                   3608: esac
1.27      millert  3609: fi
                   3610:
1.1       millert  3611:
1.23      millert  3612:
1.37      millert  3613: # Check whether --with-nsswitch was given.
                   3614: if test "${with_nsswitch+set}" = set; then
                   3615:   withval=$with_nsswitch; case $with_nsswitch in
                   3616:     no)                ;;
                   3617:     yes)       with_nsswitch="/etc/nsswitch.conf"
                   3618:                ;;
                   3619:     *)         ;;
                   3620: esac
                   3621: fi
                   3622:
                   3623:
                   3624:
1.27      millert  3625: # Check whether --with-ldap was given.
1.23      millert  3626: if test "${with_ldap+set}" = set; then
1.27      millert  3627:   withval=$with_ldap; case $with_ldap in
1.39      millert  3628:     no)                ;;
1.23      millert  3629:     *)         cat >>confdefs.h <<\_ACEOF
                   3630: #define HAVE_LDAP 1
                   3631: _ACEOF
                   3632:
1.27      millert  3633:                { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
                   3634: echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
                   3635:                { echo "$as_me:$LINENO: result: yes" >&5
                   3636: echo "${ECHO_T}yes" >&6; }
1.23      millert  3637:                ;;
                   3638: esac
1.27      millert  3639: fi
                   3640:
1.23      millert  3641:
1.37      millert  3642:
1.27      millert  3643: # Check whether --with-ldap-conf-file was given.
1.23      millert  3644: if test "${with_ldap_conf_file+set}" = set; then
1.27      millert  3645:   withval=$with_ldap_conf_file;
1.37      millert  3646: fi
                   3647:
                   3648: cat >>confdefs.h <<EOF
                   3649: #define _PATH_LDAP_CONF "${with_ldap_conf_file-/etc/ldap.conf}"
                   3650: EOF
1.23      millert  3651:
1.37      millert  3652: ldap_conf=${with_ldap_conf_file-'/etc/ldap.conf'}
1.27      millert  3653:
1.23      millert  3654:
1.27      millert  3655: # Check whether --with-ldap-secret-file was given.
1.25      millert  3656: if test "${with_ldap_secret_file+set}" = set; then
1.27      millert  3657:   withval=$with_ldap_secret_file;
1.37      millert  3658: fi
1.25      millert  3659:
1.37      millert  3660: cat >>confdefs.h <<EOF
                   3661: #define _PATH_LDAP_SECRET "${with_ldap_secret_file-/etc/ldap.secret}"
                   3662: EOF
1.27      millert  3663:
1.37      millert  3664: ldap_secret=${with_ldap_secret_file-'/etc/ldap.secret'}
1.25      millert  3665:
1.23      millert  3666:
1.27      millert  3667: # Check whether --with-pc-insults was given.
1.23      millert  3668: if test "${with_pc_insults+set}" = set; then
1.27      millert  3669:   withval=$with_pc_insults; case $with_pc_insults in
1.23      millert  3670:     yes)       cat >>confdefs.h <<\_ACEOF
                   3671: #define PC_INSULTS 1
                   3672: _ACEOF
                   3673:
                   3674:                ;;
                   3675:     no)                ;;
                   3676:     *)         { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
                   3677: echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
                   3678:    { (exit 1); exit 1; }; }
                   3679:                ;;
                   3680: esac
1.27      millert  3681: fi
                   3682:
1.23      millert  3683:
1.9       millert  3684: if test "$insults" = "on"; then
1.27      millert  3685:     { echo "$as_me:$LINENO: checking which insult sets to include" >&5
                   3686: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
1.1       millert  3687:     i=""
                   3688:     test "$with_goons_insults" = "yes" && i="goons ${i}"
                   3689:     test "$with_hal_insults" = "yes" && i="hal ${i}"
                   3690:     test "$with_csops_insults" = "yes" && i="csops ${i}"
                   3691:     test "$with_classic_insults" = "yes" && i="classic ${i}"
1.27      millert  3692:     { echo "$as_me:$LINENO: result: $i" >&5
                   3693: echo "${ECHO_T}$i" >&6; }
1.1       millert  3694: fi
                   3695:
1.27      millert  3696: { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
                   3697: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
1.9       millert  3698:
1.27      millert  3699: # Check whether --with-secure-path was given.
1.1       millert  3700: if test "${with_secure_path+set}" = set; then
1.27      millert  3701:   withval=$with_secure_path; case $with_secure_path in
1.41      millert  3702:     yes)       with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
                   3703:                cat >>confdefs.h <<_ACEOF
                   3704: #define SECURE_PATH "$with_secure_path"
1.16      millert  3705: _ACEOF
1.1       millert  3706:
1.41      millert  3707:                { echo "$as_me:$LINENO: result: $with_secure_path" >&5
                   3708: echo "${ECHO_T}$with_secure_path" >&6; }
                   3709:                secure_path="set to $with_secure_path"
1.1       millert  3710:                ;;
1.27      millert  3711:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3712: echo "${ECHO_T}no" >&6; }
1.1       millert  3713:                ;;
1.16      millert  3714:     *)         cat >>confdefs.h <<_ACEOF
1.1       millert  3715: #define SECURE_PATH "$with_secure_path"
1.16      millert  3716: _ACEOF
1.1       millert  3717:
1.27      millert  3718:                { echo "$as_me:$LINENO: result: $with_secure_path" >&5
                   3719: echo "${ECHO_T}$with_secure_path" >&6; }
1.41      millert  3720:                secure_path="set to F<$with_secure_path>"
1.1       millert  3721:                ;;
                   3722: esac
                   3723: else
1.27      millert  3724:   { echo "$as_me:$LINENO: result: no" >&5
                   3725: echo "${ECHO_T}no" >&6; }
                   3726: fi
                   3727:
1.1       millert  3728:
1.27      millert  3729: { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
                   3730: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
1.1       millert  3731:
1.27      millert  3732: # Check whether --with-interfaces was given.
1.1       millert  3733: if test "${with_interfaces+set}" = set; then
1.27      millert  3734:   withval=$with_interfaces; case $with_interfaces in
                   3735:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3736: echo "${ECHO_T}yes" >&6; }
1.1       millert  3737:                ;;
1.23      millert  3738:     no)                cat >>confdefs.h <<\_ACEOF
1.1       millert  3739: #define STUB_LOAD_INTERFACES 1
1.16      millert  3740: _ACEOF
1.1       millert  3741:
1.27      millert  3742:                { echo "$as_me:$LINENO: result: no" >&5
                   3743: echo "${ECHO_T}no" >&6; }
1.1       millert  3744:                ;;
1.16      millert  3745:     *)         { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
1.9       millert  3746: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
                   3747:    { (exit 1); exit 1; }; }
1.1       millert  3748:                ;;
                   3749: esac
                   3750: else
1.27      millert  3751:   { echo "$as_me:$LINENO: result: yes" >&5
                   3752: echo "${ECHO_T}yes" >&6; }
                   3753: fi
                   3754:
1.16      millert  3755:
1.27      millert  3756: { echo "$as_me:$LINENO: checking whether stow should be used" >&5
                   3757: echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
1.16      millert  3758:
1.27      millert  3759: # Check whether --with-stow was given.
1.16      millert  3760: if test "${with_stow+set}" = set; then
1.27      millert  3761:   withval=$with_stow; case $with_stow in
                   3762:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3763: echo "${ECHO_T}yes" >&6; }
1.23      millert  3764:                cat >>confdefs.h <<\_ACEOF
1.16      millert  3765: #define USE_STOW 1
                   3766: _ACEOF
                   3767:
                   3768:                ;;
1.27      millert  3769:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3770: echo "${ECHO_T}no" >&6; }
1.16      millert  3771:                ;;
                   3772:     *)         { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
                   3773: echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
                   3774:    { (exit 1); exit 1; }; }
                   3775:                ;;
                   3776: esac
                   3777: else
1.27      millert  3778:   { echo "$as_me:$LINENO: result: no" >&5
                   3779: echo "${ECHO_T}no" >&6; }
                   3780: fi
                   3781:
1.1       millert  3782:
1.37      millert  3783: { echo "$as_me:$LINENO: checking whether to use an askpass helper" >&5
                   3784: echo $ECHO_N "checking whether to use an askpass helper... $ECHO_C" >&6; }
                   3785:
                   3786: # Check whether --with-askpass was given.
                   3787: if test "${with_askpass+set}" = set; then
                   3788:   withval=$with_askpass; case $with_askpass in
                   3789:     yes)       { { echo "$as_me:$LINENO: error: \"--with-askpass takes a path as an argument.\"" >&5
                   3790: echo "$as_me: error: \"--with-askpass takes a path as an argument.\"" >&2;}
                   3791:    { (exit 1); exit 1; }; }
                   3792:                ;;
                   3793:     no)                ;;
                   3794:     *)
                   3795: cat >>confdefs.h <<_ACEOF
                   3796: #define _PATH_SUDO_ASKPASS "$with_askpass"
                   3797: _ACEOF
                   3798:
                   3799:                ;;
                   3800: esac
                   3801: else
                   3802:   { echo "$as_me:$LINENO: result: no" >&5
                   3803: echo "${ECHO_T}no" >&6; }
                   3804: fi
                   3805:
                   3806:
1.47      millert  3807: ac_ext=c
                   3808: ac_cpp='$CPP $CPPFLAGS'
                   3809: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3810: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3811: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3812: if test -n "$ac_tool_prefix"; then
                   3813:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
                   3814: set dummy ${ac_tool_prefix}gcc; ac_word=$2
                   3815: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   3816: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   3817: if test "${ac_cv_prog_CC+set}" = set; then
                   3818:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3819: else
                   3820:   if test -n "$CC"; then
                   3821:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.40      millert  3822: else
1.47      millert  3823: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3824: for as_dir in $PATH
                   3825: do
                   3826:   IFS=$as_save_IFS
                   3827:   test -z "$as_dir" && as_dir=.
                   3828:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3829:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   3830:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
                   3831:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3832:     break 2
                   3833:   fi
                   3834: done
                   3835: done
                   3836: IFS=$as_save_IFS
1.40      millert  3837:
                   3838: fi
                   3839: fi
1.47      millert  3840: CC=$ac_cv_prog_CC
                   3841: if test -n "$CC"; then
                   3842:   { echo "$as_me:$LINENO: result: $CC" >&5
                   3843: echo "${ECHO_T}$CC" >&6; }
                   3844: else
                   3845:   { echo "$as_me:$LINENO: result: no" >&5
1.27      millert  3846: echo "${ECHO_T}no" >&6; }
1.47      millert  3847: fi
1.1       millert  3848:
                   3849:
1.47      millert  3850: fi
                   3851: if test -z "$ac_cv_prog_CC"; then
                   3852:   ac_ct_CC=$CC
                   3853:   # Extract the first word of "gcc", so it can be a program name with args.
                   3854: set dummy gcc; ac_word=$2
                   3855: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   3856: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   3857: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   3858:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3859: else
                   3860:   if test -n "$ac_ct_CC"; then
                   3861:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       millert  3862: else
1.47      millert  3863: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3864: for as_dir in $PATH
                   3865: do
                   3866:   IFS=$as_save_IFS
                   3867:   test -z "$as_dir" && as_dir=.
                   3868:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3869:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   3870:     ac_cv_prog_ac_ct_CC="gcc"
                   3871:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3872:     break 2
                   3873:   fi
                   3874: done
                   3875: done
                   3876: IFS=$as_save_IFS
                   3877:
                   3878: fi
1.27      millert  3879: fi
1.47      millert  3880: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3881: if test -n "$ac_ct_CC"; then
                   3882:   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   3883: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.12      millert  3884: else
1.27      millert  3885:   { echo "$as_me:$LINENO: result: no" >&5
                   3886: echo "${ECHO_T}no" >&6; }
                   3887: fi
1.12      millert  3888:
1.47      millert  3889:   if test "x$ac_ct_CC" = x; then
                   3890:     CC=""
                   3891:   else
                   3892:     case $cross_compiling:$ac_tool_warned in
                   3893: yes:)
                   3894: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   3895: whose name does not start with the host triplet.  If you think this
                   3896: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   3897: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   3898: whose name does not start with the host triplet.  If you think this
                   3899: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   3900: ac_tool_warned=yes ;;
                   3901: esac
                   3902:     CC=$ac_ct_CC
                   3903:   fi
                   3904: else
                   3905:   CC="$ac_cv_prog_CC"
                   3906: fi
1.27      millert  3907:
1.47      millert  3908: if test -z "$CC"; then
                   3909:           if test -n "$ac_tool_prefix"; then
                   3910:     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
                   3911: set dummy ${ac_tool_prefix}cc; ac_word=$2
                   3912: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   3913: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   3914: if test "${ac_cv_prog_CC+set}" = set; then
                   3915:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3916: else
                   3917:   if test -n "$CC"; then
                   3918:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3919: else
                   3920: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3921: for as_dir in $PATH
                   3922: do
                   3923:   IFS=$as_save_IFS
                   3924:   test -z "$as_dir" && as_dir=.
                   3925:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3926:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   3927:     ac_cv_prog_CC="${ac_tool_prefix}cc"
                   3928:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3929:     break 2
                   3930:   fi
                   3931: done
                   3932: done
                   3933: IFS=$as_save_IFS
1.16      millert  3934:
1.27      millert  3935: fi
                   3936: fi
1.47      millert  3937: CC=$ac_cv_prog_CC
                   3938: if test -n "$CC"; then
                   3939:   { echo "$as_me:$LINENO: result: $CC" >&5
                   3940: echo "${ECHO_T}$CC" >&6; }
1.1       millert  3941: else
1.27      millert  3942:   { echo "$as_me:$LINENO: result: no" >&5
                   3943: echo "${ECHO_T}no" >&6; }
                   3944: fi
                   3945:
                   3946:
1.47      millert  3947:   fi
                   3948: fi
                   3949: if test -z "$CC"; then
                   3950:   # Extract the first word of "cc", so it can be a program name with args.
                   3951: set dummy cc; ac_word=$2
                   3952: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   3953: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   3954: if test "${ac_cv_prog_CC+set}" = set; then
                   3955:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3956: else
                   3957:   if test -n "$CC"; then
                   3958:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3959: else
                   3960:   ac_prog_rejected=no
                   3961: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3962: for as_dir in $PATH
                   3963: do
                   3964:   IFS=$as_save_IFS
                   3965:   test -z "$as_dir" && as_dir=.
                   3966:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3967:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   3968:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
                   3969:        ac_prog_rejected=yes
                   3970:        continue
                   3971:      fi
                   3972:     ac_cv_prog_CC="cc"
                   3973:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3974:     break 2
                   3975:   fi
                   3976: done
                   3977: done
                   3978: IFS=$as_save_IFS
1.1       millert  3979:
1.47      millert  3980: if test $ac_prog_rejected = yes; then
                   3981:   # We found a bogon in the path, so make sure we never use it.
                   3982:   set dummy $ac_cv_prog_CC
                   3983:   shift
                   3984:   if test $# != 0; then
                   3985:     # We chose a different compiler from the bogus one.
                   3986:     # However, it has the same basename, so the bogon will be chosen
                   3987:     # first if we set CC to just the basename; use the full file name.
                   3988:     shift
                   3989:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
                   3990:   fi
1.27      millert  3991: fi
                   3992: fi
                   3993: fi
1.47      millert  3994: CC=$ac_cv_prog_CC
                   3995: if test -n "$CC"; then
                   3996:   { echo "$as_me:$LINENO: result: $CC" >&5
                   3997: echo "${ECHO_T}$CC" >&6; }
1.1       millert  3998: else
1.27      millert  3999:   { echo "$as_me:$LINENO: result: no" >&5
                   4000: echo "${ECHO_T}no" >&6; }
                   4001: fi
                   4002:
                   4003:
                   4004: fi
1.47      millert  4005: if test -z "$CC"; then
                   4006:   if test -n "$ac_tool_prefix"; then
                   4007:   for ac_prog in cl.exe
                   4008:   do
                   4009:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4010: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.27      millert  4011: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4012: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.47      millert  4013: if test "${ac_cv_prog_CC+set}" = set; then
1.9       millert  4014:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4015: else
1.47      millert  4016:   if test -n "$CC"; then
                   4017:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       millert  4018: else
1.16      millert  4019: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4020: for as_dir in $PATH
                   4021: do
                   4022:   IFS=$as_save_IFS
                   4023:   test -z "$as_dir" && as_dir=.
                   4024:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4025:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.47      millert  4026:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.16      millert  4027:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4028:     break 2
                   4029:   fi
                   4030: done
1.9       millert  4031: done
1.27      millert  4032: IFS=$as_save_IFS
1.9       millert  4033:
1.1       millert  4034: fi
                   4035: fi
1.47      millert  4036: CC=$ac_cv_prog_CC
                   4037: if test -n "$CC"; then
                   4038:   { echo "$as_me:$LINENO: result: $CC" >&5
                   4039: echo "${ECHO_T}$CC" >&6; }
1.1       millert  4040: else
1.27      millert  4041:   { echo "$as_me:$LINENO: result: no" >&5
                   4042: echo "${ECHO_T}no" >&6; }
1.1       millert  4043: fi
                   4044:
1.27      millert  4045:
1.47      millert  4046:     test -n "$CC" && break
                   4047:   done
1.1       millert  4048: fi
1.47      millert  4049: if test -z "$CC"; then
                   4050:   ac_ct_CC=$CC
                   4051:   for ac_prog in cl.exe
                   4052: do
                   4053:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4054: set dummy $ac_prog; ac_word=$2
                   4055: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4056: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   4057: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.9       millert  4058:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4059: else
                   4060:   if test -n "$ac_ct_CC"; then
                   4061:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   4062: else
1.16      millert  4063: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4064: for as_dir in $PATH
                   4065: do
                   4066:   IFS=$as_save_IFS
                   4067:   test -z "$as_dir" && as_dir=.
                   4068:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4069:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4070:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   4071:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4072:     break 2
                   4073:   fi
                   4074: done
1.9       millert  4075: done
1.27      millert  4076: IFS=$as_save_IFS
1.9       millert  4077:
                   4078: fi
                   4079: fi
                   4080: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   4081: if test -n "$ac_ct_CC"; then
1.27      millert  4082:   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   4083: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1       millert  4084: else
1.27      millert  4085:   { echo "$as_me:$LINENO: result: no" >&5
                   4086: echo "${ECHO_T}no" >&6; }
1.9       millert  4087: fi
                   4088:
1.27      millert  4089:
1.9       millert  4090:   test -n "$ac_ct_CC" && break
                   4091: done
                   4092:
1.27      millert  4093:   if test "x$ac_ct_CC" = x; then
                   4094:     CC=""
                   4095:   else
                   4096:     case $cross_compiling:$ac_tool_warned in
                   4097: yes:)
                   4098: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   4099: whose name does not start with the host triplet.  If you think this
                   4100: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   4101: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   4102: whose name does not start with the host triplet.  If you think this
                   4103: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   4104: ac_tool_warned=yes ;;
                   4105: esac
                   4106:     CC=$ac_ct_CC
                   4107:   fi
1.1       millert  4108: fi
                   4109:
                   4110: fi
                   4111:
1.16      millert  4112:
                   4113: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
                   4114: See \`config.log' for more details." >&5
                   4115: echo "$as_me: error: no acceptable C compiler found in \$PATH
                   4116: See \`config.log' for more details." >&2;}
1.9       millert  4117:    { (exit 1); exit 1; }; }
                   4118:
                   4119: # Provide some information about the compiler.
1.27      millert  4120: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.9       millert  4121: ac_compiler=`set X $ac_compile; echo $2`
1.27      millert  4122: { (ac_try="$ac_compiler --version >&5"
                   4123: case "(($ac_try" in
                   4124:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4125:   *) ac_try_echo=$ac_try;;
                   4126: esac
                   4127: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4128:   (eval "$ac_compiler --version >&5") 2>&5
1.9       millert  4129:   ac_status=$?
1.16      millert  4130:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4131:   (exit $ac_status); }
1.27      millert  4132: { (ac_try="$ac_compiler -v >&5"
                   4133: case "(($ac_try" in
                   4134:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4135:   *) ac_try_echo=$ac_try;;
                   4136: esac
                   4137: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4138:   (eval "$ac_compiler -v >&5") 2>&5
1.9       millert  4139:   ac_status=$?
1.16      millert  4140:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4141:   (exit $ac_status); }
1.27      millert  4142: { (ac_try="$ac_compiler -V >&5"
                   4143: case "(($ac_try" in
                   4144:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4145:   *) ac_try_echo=$ac_try;;
                   4146: esac
                   4147: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4148:   (eval "$ac_compiler -V >&5") 2>&5
1.9       millert  4149:   ac_status=$?
1.16      millert  4150:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4151:   (exit $ac_status); }
                   4152:
                   4153: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4154: /* confdefs.h.  */
                   4155: _ACEOF
                   4156: cat confdefs.h >>conftest.$ac_ext
                   4157: cat >>conftest.$ac_ext <<_ACEOF
                   4158: /* end confdefs.h.  */
1.9       millert  4159:
                   4160: int
                   4161: main ()
                   4162: {
1.1       millert  4163:
1.9       millert  4164:   ;
                   4165:   return 0;
                   4166: }
                   4167: _ACEOF
                   4168: ac_clean_files_save=$ac_clean_files
1.16      millert  4169: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.9       millert  4170: # Try to create an executable without -o first, disregard a.out.
                   4171: # It will help us diagnose broken compilers, and finding out an intuition
                   4172: # of exeext.
1.27      millert  4173: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
                   4174: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.9       millert  4175: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.27      millert  4176: #
                   4177: # List of possible output files, starting from the most likely.
                   4178: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
                   4179: # only as a last resort.  b.out is created by i960 compilers.
                   4180: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
                   4181: #
                   4182: # The IRIX 6 linker writes into existing files which may not be
                   4183: # executable, retaining their permissions.  Remove them first so a
                   4184: # subsequent execution test works.
                   4185: ac_rmfiles=
                   4186: for ac_file in $ac_files
                   4187: do
                   4188:   case $ac_file in
                   4189:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
                   4190:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   4191:   esac
                   4192: done
                   4193: rm -f $ac_rmfiles
                   4194:
                   4195: if { (ac_try="$ac_link_default"
                   4196: case "(($ac_try" in
                   4197:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4198:   *) ac_try_echo=$ac_try;;
                   4199: esac
                   4200: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4201:   (eval "$ac_link_default") 2>&5
1.9       millert  4202:   ac_status=$?
1.16      millert  4203:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4204:   (exit $ac_status); }; then
1.27      millert  4205:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   4206: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   4207: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   4208: # so that the user can short-circuit this test for compilers unknown to
                   4209: # Autoconf.
                   4210: for ac_file in $ac_files ''
1.16      millert  4211: do
                   4212:   test -f "$ac_file" || continue
1.9       millert  4213:   case $ac_file in
1.27      millert  4214:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.25      millert  4215:        ;;
1.16      millert  4216:     [ab].out )
1.25      millert  4217:        # We found the default executable, but exeext='' is most
                   4218:        # certainly right.
                   4219:        break;;
1.16      millert  4220:     *.* )
1.27      millert  4221:         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   4222:        then :; else
                   4223:           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   4224:        fi
                   4225:        # We set ac_cv_exeext here because the later test for it is not
                   4226:        # safe: cross compilers may not add the suffix if given an `-o'
                   4227:        # argument, so we may need to know it at that point already.
                   4228:        # Even if this section looks crufty: it has the advantage of
                   4229:        # actually working.
1.25      millert  4230:        break;;
1.16      millert  4231:     * )
1.25      millert  4232:        break;;
1.9       millert  4233:   esac
                   4234: done
1.27      millert  4235: test "$ac_cv_exeext" = no && ac_cv_exeext=
                   4236:
1.9       millert  4237: else
1.27      millert  4238:   ac_file=''
                   4239: fi
                   4240:
                   4241: { echo "$as_me:$LINENO: result: $ac_file" >&5
                   4242: echo "${ECHO_T}$ac_file" >&6; }
                   4243: if test -z "$ac_file"; then
1.9       millert  4244:   echo "$as_me: failed program was:" >&5
1.16      millert  4245: sed 's/^/| /' conftest.$ac_ext >&5
                   4246:
                   4247: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
                   4248: See \`config.log' for more details." >&5
                   4249: echo "$as_me: error: C compiler cannot create executables
                   4250: See \`config.log' for more details." >&2;}
1.9       millert  4251:    { (exit 77); exit 77; }; }
                   4252: fi
                   4253:
                   4254: ac_exeext=$ac_cv_exeext
                   4255:
1.27      millert  4256: # Check that the compiler produces executables we can run.  If not, either
1.9       millert  4257: # the compiler is broken, or we cross compile.
1.27      millert  4258: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
                   4259: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.9       millert  4260: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
                   4261: # If not cross compiling, check that we can run a simple program.
                   4262: if test "$cross_compiling" != yes; then
                   4263:   if { ac_try='./$ac_file'
1.27      millert  4264:   { (case "(($ac_try" in
                   4265:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4266:   *) ac_try_echo=$ac_try;;
                   4267: esac
                   4268: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4269:   (eval "$ac_try") 2>&5
1.9       millert  4270:   ac_status=$?
1.16      millert  4271:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4272:   (exit $ac_status); }; }; then
                   4273:     cross_compiling=no
1.1       millert  4274:   else
1.9       millert  4275:     if test "$cross_compiling" = maybe; then
                   4276:        cross_compiling=yes
                   4277:     else
1.16      millert  4278:        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
                   4279: If you meant to cross compile, use \`--host'.
                   4280: See \`config.log' for more details." >&5
1.9       millert  4281: echo "$as_me: error: cannot run C compiled programs.
1.16      millert  4282: If you meant to cross compile, use \`--host'.
                   4283: See \`config.log' for more details." >&2;}
1.9       millert  4284:    { (exit 1); exit 1; }; }
                   4285:     fi
1.1       millert  4286:   fi
1.9       millert  4287: fi
1.27      millert  4288: { echo "$as_me:$LINENO: result: yes" >&5
                   4289: echo "${ECHO_T}yes" >&6; }
1.9       millert  4290:
1.16      millert  4291: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.9       millert  4292: ac_clean_files=$ac_clean_files_save
1.27      millert  4293: # Check that the compiler produces executables we can run.  If not, either
1.9       millert  4294: # the compiler is broken, or we cross compile.
1.27      millert  4295: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
                   4296: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
                   4297: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
                   4298: echo "${ECHO_T}$cross_compiling" >&6; }
                   4299:
                   4300: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
                   4301: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
                   4302: if { (ac_try="$ac_link"
                   4303: case "(($ac_try" in
                   4304:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4305:   *) ac_try_echo=$ac_try;;
                   4306: esac
                   4307: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4308:   (eval "$ac_link") 2>&5
1.9       millert  4309:   ac_status=$?
1.16      millert  4310:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4311:   (exit $ac_status); }; then
                   4312:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   4313: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   4314: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   4315: # `rm'.
1.16      millert  4316: for ac_file in conftest.exe conftest conftest.*; do
                   4317:   test -f "$ac_file" || continue
1.9       millert  4318:   case $ac_file in
1.27      millert  4319:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.9       millert  4320:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.25      millert  4321:          break;;
1.9       millert  4322:     * ) break;;
                   4323:   esac
                   4324: done
1.1       millert  4325: else
1.16      millert  4326:   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
                   4327: See \`config.log' for more details." >&5
                   4328: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
                   4329: See \`config.log' for more details." >&2;}
1.9       millert  4330:    { (exit 1); exit 1; }; }
1.1       millert  4331: fi
                   4332:
1.9       millert  4333: rm -f conftest$ac_cv_exeext
1.27      millert  4334: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
                   4335: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1       millert  4336:
1.9       millert  4337: rm -f conftest.$ac_ext
                   4338: EXEEXT=$ac_cv_exeext
                   4339: ac_exeext=$EXEEXT
1.27      millert  4340: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
                   4341: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.9       millert  4342: if test "${ac_cv_objext+set}" = set; then
                   4343:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4344: else
1.9       millert  4345:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4346: /* confdefs.h.  */
                   4347: _ACEOF
                   4348: cat confdefs.h >>conftest.$ac_ext
                   4349: cat >>conftest.$ac_ext <<_ACEOF
                   4350: /* end confdefs.h.  */
1.9       millert  4351:
                   4352: int
                   4353: main ()
                   4354: {
                   4355:
                   4356:   ;
                   4357:   return 0;
                   4358: }
                   4359: _ACEOF
                   4360: rm -f conftest.o conftest.obj
1.27      millert  4361: if { (ac_try="$ac_compile"
                   4362: case "(($ac_try" in
                   4363:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4364:   *) ac_try_echo=$ac_try;;
                   4365: esac
                   4366: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4367:   (eval "$ac_compile") 2>&5
1.9       millert  4368:   ac_status=$?
1.16      millert  4369:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4370:   (exit $ac_status); }; then
1.27      millert  4371:   for ac_file in conftest.o conftest.obj conftest.*; do
                   4372:   test -f "$ac_file" || continue;
1.9       millert  4373:   case $ac_file in
1.27      millert  4374:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.9       millert  4375:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   4376:        break;;
                   4377:   esac
                   4378: done
1.1       millert  4379: else
1.9       millert  4380:   echo "$as_me: failed program was:" >&5
1.16      millert  4381: sed 's/^/| /' conftest.$ac_ext >&5
                   4382:
                   4383: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
                   4384: See \`config.log' for more details." >&5
                   4385: echo "$as_me: error: cannot compute suffix of object files: cannot compile
                   4386: See \`config.log' for more details." >&2;}
1.9       millert  4387:    { (exit 1); exit 1; }; }
1.1       millert  4388: fi
1.9       millert  4389:
                   4390: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1       millert  4391: fi
1.27      millert  4392: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
                   4393: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.9       millert  4394: OBJEXT=$ac_cv_objext
                   4395: ac_objext=$OBJEXT
1.27      millert  4396: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
                   4397: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.9       millert  4398: if test "${ac_cv_c_compiler_gnu+set}" = set; then
                   4399:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4400: else
                   4401:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4402: /* confdefs.h.  */
                   4403: _ACEOF
                   4404: cat confdefs.h >>conftest.$ac_ext
                   4405: cat >>conftest.$ac_ext <<_ACEOF
                   4406: /* end confdefs.h.  */
1.1       millert  4407:
1.9       millert  4408: int
                   4409: main ()
                   4410: {
                   4411: #ifndef __GNUC__
                   4412:        choke me
                   4413: #endif
1.1       millert  4414:
1.9       millert  4415:   ;
                   4416:   return 0;
                   4417: }
                   4418: _ACEOF
                   4419: rm -f conftest.$ac_objext
1.27      millert  4420: if { (ac_try="$ac_compile"
                   4421: case "(($ac_try" in
                   4422:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4423:   *) ac_try_echo=$ac_try;;
                   4424: esac
                   4425: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4426:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  4427:   ac_status=$?
1.25      millert  4428:   grep -v '^ *+' conftest.er1 >conftest.err
                   4429:   rm -f conftest.er1
                   4430:   cat conftest.err >&5
1.16      millert  4431:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4432:   (exit $ac_status); } && {
                   4433:         test -z "$ac_c_werror_flag" ||
                   4434:         test ! -s conftest.err
                   4435:        } && test -s conftest.$ac_objext; then
1.9       millert  4436:   ac_compiler_gnu=yes
                   4437: else
                   4438:   echo "$as_me: failed program was:" >&5
1.16      millert  4439: sed 's/^/| /' conftest.$ac_ext >&5
                   4440:
1.27      millert  4441:        ac_compiler_gnu=no
1.9       millert  4442: fi
1.27      millert  4443:
                   4444: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  4445: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   4446:
                   4447: fi
1.27      millert  4448: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
                   4449: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.9       millert  4450: GCC=`test $ac_compiler_gnu = yes && echo yes`
                   4451: ac_test_CFLAGS=${CFLAGS+set}
                   4452: ac_save_CFLAGS=$CFLAGS
1.27      millert  4453: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
                   4454: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.9       millert  4455: if test "${ac_cv_prog_cc_g+set}" = set; then
                   4456:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4457: else
1.27      millert  4458:   ac_save_c_werror_flag=$ac_c_werror_flag
                   4459:    ac_c_werror_flag=yes
                   4460:    ac_cv_prog_cc_g=no
                   4461:    CFLAGS="-g"
                   4462:    cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4463: /* confdefs.h.  */
                   4464: _ACEOF
                   4465: cat confdefs.h >>conftest.$ac_ext
                   4466: cat >>conftest.$ac_ext <<_ACEOF
                   4467: /* end confdefs.h.  */
1.9       millert  4468:
                   4469: int
                   4470: main ()
                   4471: {
                   4472:
                   4473:   ;
                   4474:   return 0;
                   4475: }
                   4476: _ACEOF
                   4477: rm -f conftest.$ac_objext
1.27      millert  4478: if { (ac_try="$ac_compile"
                   4479: case "(($ac_try" in
                   4480:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4481:   *) ac_try_echo=$ac_try;;
                   4482: esac
                   4483: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4484:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  4485:   ac_status=$?
1.25      millert  4486:   grep -v '^ *+' conftest.er1 >conftest.err
                   4487:   rm -f conftest.er1
                   4488:   cat conftest.err >&5
1.16      millert  4489:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4490:   (exit $ac_status); } && {
                   4491:         test -z "$ac_c_werror_flag" ||
                   4492:         test ! -s conftest.err
                   4493:        } && test -s conftest.$ac_objext; then
                   4494:   ac_cv_prog_cc_g=yes
                   4495: else
                   4496:   echo "$as_me: failed program was:" >&5
                   4497: sed 's/^/| /' conftest.$ac_ext >&5
                   4498:
                   4499:        CFLAGS=""
                   4500:       cat >conftest.$ac_ext <<_ACEOF
                   4501: /* confdefs.h.  */
                   4502: _ACEOF
                   4503: cat confdefs.h >>conftest.$ac_ext
                   4504: cat >>conftest.$ac_ext <<_ACEOF
                   4505: /* end confdefs.h.  */
                   4506:
                   4507: int
                   4508: main ()
                   4509: {
                   4510:
                   4511:   ;
                   4512:   return 0;
                   4513: }
                   4514: _ACEOF
                   4515: rm -f conftest.$ac_objext
                   4516: if { (ac_try="$ac_compile"
                   4517: case "(($ac_try" in
                   4518:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4519:   *) ac_try_echo=$ac_try;;
                   4520: esac
                   4521: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4522:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  4523:   ac_status=$?
1.27      millert  4524:   grep -v '^ *+' conftest.er1 >conftest.err
                   4525:   rm -f conftest.er1
                   4526:   cat conftest.err >&5
1.25      millert  4527:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4528:   (exit $ac_status); } && {
                   4529:         test -z "$ac_c_werror_flag" ||
                   4530:         test ! -s conftest.err
                   4531:        } && test -s conftest.$ac_objext; then
                   4532:   :
                   4533: else
                   4534:   echo "$as_me: failed program was:" >&5
                   4535: sed 's/^/| /' conftest.$ac_ext >&5
                   4536:
                   4537:        ac_c_werror_flag=$ac_save_c_werror_flag
                   4538:         CFLAGS="-g"
                   4539:         cat >conftest.$ac_ext <<_ACEOF
                   4540: /* confdefs.h.  */
                   4541: _ACEOF
                   4542: cat confdefs.h >>conftest.$ac_ext
                   4543: cat >>conftest.$ac_ext <<_ACEOF
                   4544: /* end confdefs.h.  */
                   4545:
                   4546: int
                   4547: main ()
                   4548: {
                   4549:
                   4550:   ;
                   4551:   return 0;
                   4552: }
                   4553: _ACEOF
                   4554: rm -f conftest.$ac_objext
                   4555: if { (ac_try="$ac_compile"
                   4556: case "(($ac_try" in
                   4557:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4558:   *) ac_try_echo=$ac_try;;
                   4559: esac
                   4560: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4561:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  4562:   ac_status=$?
1.27      millert  4563:   grep -v '^ *+' conftest.er1 >conftest.err
                   4564:   rm -f conftest.er1
                   4565:   cat conftest.err >&5
1.16      millert  4566:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4567:   (exit $ac_status); } && {
                   4568:         test -z "$ac_c_werror_flag" ||
                   4569:         test ! -s conftest.err
                   4570:        } && test -s conftest.$ac_objext; then
1.1       millert  4571:   ac_cv_prog_cc_g=yes
                   4572: else
1.9       millert  4573:   echo "$as_me: failed program was:" >&5
1.16      millert  4574: sed 's/^/| /' conftest.$ac_ext >&5
                   4575:
1.27      millert  4576:
                   4577: fi
                   4578:
                   4579: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4580: fi
                   4581:
                   4582: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.47      millert  4583: fi
                   4584:
                   4585: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4586:    ac_c_werror_flag=$ac_save_c_werror_flag
                   4587: fi
                   4588: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
                   4589: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
                   4590: if test "$ac_test_CFLAGS" = set; then
                   4591:   CFLAGS=$ac_save_CFLAGS
                   4592: elif test $ac_cv_prog_cc_g = yes; then
                   4593:   if test "$GCC" = yes; then
                   4594:     CFLAGS="-g -O2"
                   4595:   else
                   4596:     CFLAGS="-g"
                   4597:   fi
                   4598: else
                   4599:   if test "$GCC" = yes; then
                   4600:     CFLAGS="-O2"
                   4601:   else
                   4602:     CFLAGS=
                   4603:   fi
                   4604: fi
                   4605: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
                   4606: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
                   4607: if test "${ac_cv_prog_cc_c89+set}" = set; then
                   4608:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4609: else
                   4610:   ac_cv_prog_cc_c89=no
                   4611: ac_save_CC=$CC
                   4612: cat >conftest.$ac_ext <<_ACEOF
                   4613: /* confdefs.h.  */
                   4614: _ACEOF
                   4615: cat confdefs.h >>conftest.$ac_ext
                   4616: cat >>conftest.$ac_ext <<_ACEOF
                   4617: /* end confdefs.h.  */
                   4618: #include <stdarg.h>
                   4619: #include <stdio.h>
                   4620: #include <sys/types.h>
                   4621: #include <sys/stat.h>
                   4622: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   4623: struct buf { int x; };
                   4624: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   4625: static char *e (p, i)
                   4626:      char **p;
                   4627:      int i;
                   4628: {
                   4629:   return p[i];
                   4630: }
                   4631: static char *f (char * (*g) (char **, int), char **p, ...)
                   4632: {
                   4633:   char *s;
                   4634:   va_list v;
                   4635:   va_start (v,p);
                   4636:   s = g (p, va_arg (v,int));
                   4637:   va_end (v);
                   4638:   return s;
                   4639: }
                   4640:
                   4641: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   4642:    function prototypes and stuff, but not '\xHH' hex character constants.
                   4643:    These don't provoke an error unfortunately, instead are silently treated
                   4644:    as 'x'.  The following induces an error, until -std is added to get
                   4645:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   4646:    array size at least.  It's necessary to write '\x00'==0 to get something
                   4647:    that's true only with -std.  */
                   4648: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
                   4649:
                   4650: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   4651:    inside strings and character constants.  */
                   4652: #define FOO(x) 'x'
                   4653: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
                   4654:
                   4655: int test (int i, double x);
                   4656: struct s1 {int (*f) (int a);};
                   4657: struct s2 {int (*f) (double a);};
                   4658: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   4659: int argc;
                   4660: char **argv;
                   4661: int
                   4662: main ()
                   4663: {
                   4664: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                   4665:   ;
                   4666:   return 0;
                   4667: }
                   4668: _ACEOF
                   4669: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   4670:        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   4671: do
                   4672:   CC="$ac_save_CC $ac_arg"
                   4673:   rm -f conftest.$ac_objext
                   4674: if { (ac_try="$ac_compile"
                   4675: case "(($ac_try" in
                   4676:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4677:   *) ac_try_echo=$ac_try;;
                   4678: esac
                   4679: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4680:   (eval "$ac_compile") 2>conftest.er1
                   4681:   ac_status=$?
                   4682:   grep -v '^ *+' conftest.er1 >conftest.err
                   4683:   rm -f conftest.er1
                   4684:   cat conftest.err >&5
                   4685:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4686:   (exit $ac_status); } && {
                   4687:         test -z "$ac_c_werror_flag" ||
                   4688:         test ! -s conftest.err
                   4689:        } && test -s conftest.$ac_objext; then
                   4690:   ac_cv_prog_cc_c89=$ac_arg
                   4691: else
                   4692:   echo "$as_me: failed program was:" >&5
                   4693: sed 's/^/| /' conftest.$ac_ext >&5
                   4694:
                   4695:
                   4696: fi
                   4697:
                   4698: rm -f core conftest.err conftest.$ac_objext
                   4699:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   4700: done
                   4701: rm -f conftest.$ac_ext
                   4702: CC=$ac_save_CC
                   4703:
                   4704: fi
                   4705: # AC_CACHE_VAL
                   4706: case "x$ac_cv_prog_cc_c89" in
                   4707:   x)
                   4708:     { echo "$as_me:$LINENO: result: none needed" >&5
                   4709: echo "${ECHO_T}none needed" >&6; } ;;
                   4710:   xno)
                   4711:     { echo "$as_me:$LINENO: result: unsupported" >&5
                   4712: echo "${ECHO_T}unsupported" >&6; } ;;
                   4713:   *)
                   4714:     CC="$CC $ac_cv_prog_cc_c89"
                   4715:     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
                   4716: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
                   4717: esac
                   4718:
                   4719:
                   4720: ac_ext=c
                   4721: ac_cpp='$CPP $CPPFLAGS'
                   4722: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4723: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4724: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4725:
                   4726:
                   4727:
                   4728: # Check whether --with-libvas was given.
                   4729: if test "${with_libvas+set}" = set; then
                   4730:   withval=$with_libvas; case $with_libvas in
                   4731:     yes)       with_libvas=libvas.so
                   4732:                ;;
                   4733:     no)                ;;
                   4734:     *)
                   4735: cat >>confdefs.h <<_ACEOF
                   4736: #define LIBVAS_SO "$with_libvas"
                   4737: _ACEOF
                   4738:
                   4739:                ;;
                   4740: esac
                   4741: if test X"$with_libvas" != X"no"; then
                   4742:
                   4743: cat >>confdefs.h <<_ACEOF
                   4744: #define LIBVAS_SO "$with_libvas"
                   4745: _ACEOF
                   4746:
                   4747:     cat >>confdefs.h <<\_ACEOF
                   4748: #define USING_NONUNIX_GROUPS 1
                   4749: _ACEOF
                   4750:
                   4751:     NONUNIX_GROUPS_IMPL="vasgroups.o"
                   4752:
                   4753: # Check whether --with-libvas-rpath was given.
                   4754: if test "${with_libvas_rpath+set}" = set; then
                   4755:   withval=$with_libvas_rpath; LIBVAS_RPATH=$withval
                   4756: else
                   4757:   LIBVAS_RPATH=/opt/quest/lib
                   4758: fi
                   4759:
                   4760:
                   4761: { echo "$as_me:$LINENO: checking for main in -ldl" >&5
                   4762: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
                   4763: if test "${ac_cv_lib_dl_main+set}" = set; then
                   4764:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4765: else
                   4766:   ac_check_lib_save_LIBS=$LIBS
                   4767: LIBS="-ldl  $LIBS"
                   4768: cat >conftest.$ac_ext <<_ACEOF
                   4769: /* confdefs.h.  */
                   4770: _ACEOF
                   4771: cat confdefs.h >>conftest.$ac_ext
                   4772: cat >>conftest.$ac_ext <<_ACEOF
                   4773: /* end confdefs.h.  */
                   4774:
                   4775:
                   4776: int
                   4777: main ()
                   4778: {
                   4779: return main ();
                   4780:   ;
                   4781:   return 0;
                   4782: }
                   4783: _ACEOF
                   4784: rm -f conftest.$ac_objext conftest$ac_exeext
                   4785: if { (ac_try="$ac_link"
                   4786: case "(($ac_try" in
                   4787:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4788:   *) ac_try_echo=$ac_try;;
                   4789: esac
                   4790: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4791:   (eval "$ac_link") 2>conftest.er1
                   4792:   ac_status=$?
                   4793:   grep -v '^ *+' conftest.er1 >conftest.err
                   4794:   rm -f conftest.er1
                   4795:   cat conftest.err >&5
                   4796:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4797:   (exit $ac_status); } && {
                   4798:         test -z "$ac_c_werror_flag" ||
                   4799:         test ! -s conftest.err
                   4800:        } && test -s conftest$ac_exeext &&
                   4801:        $as_test_x conftest$ac_exeext; then
                   4802:   ac_cv_lib_dl_main=yes
                   4803: else
                   4804:   echo "$as_me: failed program was:" >&5
                   4805: sed 's/^/| /' conftest.$ac_ext >&5
                   4806:
                   4807:        ac_cv_lib_dl_main=no
                   4808: fi
                   4809:
                   4810: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   4811:       conftest$ac_exeext conftest.$ac_ext
                   4812: LIBS=$ac_check_lib_save_LIBS
                   4813: fi
                   4814: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
                   4815: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
                   4816: if test $ac_cv_lib_dl_main = yes; then
                   4817:   cat >>confdefs.h <<_ACEOF
                   4818: #define HAVE_LIBDL 1
                   4819: _ACEOF
                   4820:
                   4821:   LIBS="-ldl $LIBS"
                   4822:
                   4823: fi
                   4824:
                   4825: fi
                   4826:
                   4827: fi
                   4828:
                   4829:
                   4830:
                   4831: { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
                   4832: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
                   4833: # Check whether --enable-authentication was given.
                   4834: if test "${enable_authentication+set}" = set; then
                   4835:   enableval=$enable_authentication;  case "$enableval" in
                   4836:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   4837: echo "${ECHO_T}yes" >&6; }
                   4838:                ;;
                   4839:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   4840: echo "${ECHO_T}no" >&6; }
                   4841:                cat >>confdefs.h <<\_ACEOF
                   4842: #define NO_AUTHENTICATION 1
                   4843: _ACEOF
                   4844:
                   4845:                ;;
                   4846:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   4847: echo "${ECHO_T}no" >&6; }
                   4848:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
                   4849: echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
                   4850:                ;;
                   4851:   esac
                   4852:
                   4853: else
                   4854:   { echo "$as_me:$LINENO: result: yes" >&5
                   4855: echo "${ECHO_T}yes" >&6; }
                   4856: fi
                   4857:
                   4858:
                   4859: { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
                   4860: echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
                   4861: # Check whether --enable-root-mailer was given.
                   4862: if test "${enable_root_mailer+set}" = set; then
                   4863:   enableval=$enable_root_mailer;  case "$enableval" in
                   4864:     yes)       { echo "$as_me:$LINENO: result: no" >&5
                   4865: echo "${ECHO_T}no" >&6; }
                   4866:                ;;
                   4867:     no)                { echo "$as_me:$LINENO: result: yes" >&5
                   4868: echo "${ECHO_T}yes" >&6; }
                   4869:                cat >>confdefs.h <<\_ACEOF
                   4870: #define NO_ROOT_MAILER 1
                   4871: _ACEOF
                   4872:
                   4873:                ;;
                   4874:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   4875: echo "${ECHO_T}no" >&6; }
                   4876:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
                   4877: echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
                   4878:                ;;
                   4879:   esac
                   4880:
                   4881: else
                   4882:   { echo "$as_me:$LINENO: result: no" >&5
                   4883: echo "${ECHO_T}no" >&6; }
                   4884: fi
                   4885:
                   4886:
                   4887: # Check whether --enable-setreuid was given.
                   4888: if test "${enable_setreuid+set}" = set; then
                   4889:   enableval=$enable_setreuid;  case "$enableval" in
                   4890:     no)                SKIP_SETREUID=yes
                   4891:                ;;
                   4892:     *)         ;;
                   4893:   esac
                   4894:
                   4895: fi
                   4896:
                   4897:
                   4898: # Check whether --enable-setresuid was given.
                   4899: if test "${enable_setresuid+set}" = set; then
                   4900:   enableval=$enable_setresuid;  case "$enableval" in
                   4901:     no)                SKIP_SETRESUID=yes
                   4902:                ;;
                   4903:     *)         ;;
                   4904:   esac
                   4905:
                   4906: fi
                   4907:
                   4908:
                   4909: { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
                   4910: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
                   4911: # Check whether --enable-shadow was given.
                   4912: if test "${enable_shadow+set}" = set; then
                   4913:   enableval=$enable_shadow;  case "$enableval" in
                   4914:     yes)       { echo "$as_me:$LINENO: result: no" >&5
                   4915: echo "${ECHO_T}no" >&6; }
                   4916:                ;;
                   4917:     no)                { echo "$as_me:$LINENO: result: yes" >&5
                   4918: echo "${ECHO_T}yes" >&6; }
                   4919:                CHECKSHADOW="false"
                   4920:                ;;
                   4921:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   4922: echo "${ECHO_T}no" >&6; }
                   4923:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
                   4924: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
                   4925:                ;;
                   4926:   esac
                   4927:
                   4928: else
                   4929:   { echo "$as_me:$LINENO: result: no" >&5
                   4930: echo "${ECHO_T}no" >&6; }
                   4931: fi
                   4932:
                   4933:
                   4934: { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
                   4935: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
                   4936: # Check whether --enable-root-sudo was given.
                   4937: if test "${enable_root_sudo+set}" = set; then
                   4938:   enableval=$enable_root_sudo;  case "$enableval" in
                   4939:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   4940: echo "${ECHO_T}yes" >&6; }
                   4941:                ;;
                   4942:     no)                cat >>confdefs.h <<\_ACEOF
                   4943: #define NO_ROOT_SUDO 1
                   4944: _ACEOF
                   4945:
                   4946:                { echo "$as_me:$LINENO: result: no" >&5
                   4947: echo "${ECHO_T}no" >&6; }
                   4948:                root_sudo=off
                   4949:                ;;
                   4950:     *)         { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
                   4951: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
                   4952:    { (exit 1); exit 1; }; }
                   4953:                ;;
                   4954:   esac
                   4955:
                   4956: else
                   4957:   { echo "$as_me:$LINENO: result: yes" >&5
                   4958: echo "${ECHO_T}yes" >&6; }
                   4959: fi
                   4960:
                   4961:
                   4962: { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
                   4963: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
                   4964: # Check whether --enable-log-host was given.
                   4965: if test "${enable_log_host+set}" = set; then
                   4966:   enableval=$enable_log_host;  case "$enableval" in
                   4967:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   4968: echo "${ECHO_T}yes" >&6; }
                   4969:                cat >>confdefs.h <<\_ACEOF
                   4970: #define HOST_IN_LOG 1
                   4971: _ACEOF
                   4972:
                   4973:                ;;
                   4974:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   4975: echo "${ECHO_T}no" >&6; }
                   4976:                ;;
                   4977:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   4978: echo "${ECHO_T}no" >&6; }
                   4979:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
                   4980: echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
                   4981:                ;;
                   4982:   esac
                   4983:
                   4984: else
                   4985:   { echo "$as_me:$LINENO: result: no" >&5
                   4986: echo "${ECHO_T}no" >&6; }
                   4987: fi
                   4988:
                   4989:
                   4990: { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
                   4991: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
                   4992: # Check whether --enable-noargs-shell was given.
                   4993: if test "${enable_noargs_shell+set}" = set; then
                   4994:   enableval=$enable_noargs_shell;  case "$enableval" in
                   4995:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   4996: echo "${ECHO_T}yes" >&6; }
                   4997:                cat >>confdefs.h <<\_ACEOF
                   4998: #define SHELL_IF_NO_ARGS 1
                   4999: _ACEOF
                   5000:
                   5001:                ;;
                   5002:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   5003: echo "${ECHO_T}no" >&6; }
                   5004:                ;;
                   5005:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   5006: echo "${ECHO_T}no" >&6; }
                   5007:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
                   5008: echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
                   5009:                ;;
                   5010:   esac
                   5011:
                   5012: else
                   5013:   { echo "$as_me:$LINENO: result: no" >&5
                   5014: echo "${ECHO_T}no" >&6; }
                   5015: fi
                   5016:
                   5017:
                   5018: { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
                   5019: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
                   5020: # Check whether --enable-shell-sets-home was given.
                   5021: if test "${enable_shell_sets_home+set}" = set; then
                   5022:   enableval=$enable_shell_sets_home;  case "$enableval" in
                   5023:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   5024: echo "${ECHO_T}yes" >&6; }
                   5025:                cat >>confdefs.h <<\_ACEOF
                   5026: #define SHELL_SETS_HOME 1
                   5027: _ACEOF
                   5028:
                   5029:                ;;
                   5030:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   5031: echo "${ECHO_T}no" >&6; }
                   5032:                ;;
                   5033:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   5034: echo "${ECHO_T}no" >&6; }
                   5035:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
                   5036: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
                   5037:                ;;
                   5038:   esac
                   5039:
                   5040: else
                   5041:   { echo "$as_me:$LINENO: result: no" >&5
                   5042: echo "${ECHO_T}no" >&6; }
                   5043: fi
                   5044:
                   5045:
                   5046: { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
                   5047: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
                   5048: # Check whether --enable-path_info was given.
                   5049: if test "${enable_path_info+set}" = set; then
                   5050:   enableval=$enable_path_info;  case "$enableval" in
                   5051:     yes)       { echo "$as_me:$LINENO: result: no" >&5
                   5052: echo "${ECHO_T}no" >&6; }
                   5053:                ;;
                   5054:     no)                { echo "$as_me:$LINENO: result: yes" >&5
                   5055: echo "${ECHO_T}yes" >&6; }
                   5056:                cat >>confdefs.h <<\_ACEOF
                   5057: #define DONT_LEAK_PATH_INFO 1
                   5058: _ACEOF
                   5059:
                   5060:                path_info=off
                   5061:                ;;
                   5062:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   5063: echo "${ECHO_T}no" >&6; }
                   5064:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
                   5065: echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
                   5066:                ;;
                   5067:   esac
                   5068:
                   5069: else
                   5070:   { echo "$as_me:$LINENO: result: no" >&5
                   5071: echo "${ECHO_T}no" >&6; }
                   5072: fi
                   5073:
                   5074:
                   5075: { echo "$as_me:$LINENO: checking whether to enable environment debugging" >&5
                   5076: echo $ECHO_N "checking whether to enable environment debugging... $ECHO_C" >&6; }
                   5077: # Check whether --enable-env_debug was given.
                   5078: if test "${enable_env_debug+set}" = set; then
                   5079:   enableval=$enable_env_debug;  case "$enableval" in
                   5080:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   5081: echo "${ECHO_T}yes" >&6; }
                   5082:                cat >>confdefs.h <<\_ACEOF
                   5083: #define ENV_DEBUG 1
                   5084: _ACEOF
                   5085:
                   5086:                ;;
                   5087:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   5088: echo "${ECHO_T}no" >&6; }
                   5089:                ;;
                   5090:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   5091: echo "${ECHO_T}no" >&6; }
                   5092:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
                   5093: echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
                   5094:                ;;
                   5095:   esac
1.27      millert  5096:
1.9       millert  5097: else
1.47      millert  5098:   { echo "$as_me:$LINENO: result: no" >&5
                   5099: echo "${ECHO_T}no" >&6; }
1.9       millert  5100: fi
1.25      millert  5101:
                   5102:
1.27      millert  5103:
1.47      millert  5104: # Check whether --with-selinux was given.
                   5105: if test "${with_selinux+set}" = set; then
                   5106:   withval=$with_selinux; case $with_selinux in
                   5107:     yes)       SELINUX_USAGE="[-r role] [-t type] "
                   5108:                cat >>confdefs.h <<\_ACEOF
                   5109: #define HAVE_SELINUX 1
1.16      millert  5110: _ACEOF
1.47      millert  5111:
                   5112:                SUDO_LIBS="${SUDO_LIBS} -lselinux"
                   5113:                SUDO_OBJS="${SUDO_OBJS} selinux.o"
                   5114:                PROGS="${PROGS} sesh"
                   5115:                SELINUX=""
                   5116:                SEMAN=""
                   5117:                ;;
                   5118:     no)                ;;
                   5119:     *)         { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
                   5120: echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
                   5121:    { (exit 1); exit 1; }; }
                   5122:                ;;
1.27      millert  5123: esac
1.47      millert  5124: fi
1.16      millert  5125:
1.27      millert  5126:
1.47      millert  5127: # Check whether --enable-gss_krb5_ccache_name was given.
                   5128: if test "${enable_gss_krb5_ccache_name+set}" = set; then
                   5129:   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
                   5130: else
                   5131:   check_gss_krb5_ccache_name=no
1.16      millert  5132: fi
1.27      millert  5133:
1.47      millert  5134:
                   5135: # Extract the first word of "egrep", so it can be a program name with args.
                   5136: set dummy egrep; ac_word=$2
                   5137: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   5138: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   5139: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
                   5140:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5141: else
                   5142:   if test -n "$EGREPPROG"; then
                   5143:   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
                   5144: else
                   5145: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5146: for as_dir in $PATH
                   5147: do
                   5148:   IFS=$as_save_IFS
                   5149:   test -z "$as_dir" && as_dir=.
                   5150:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5151:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   5152:     ac_cv_prog_EGREPPROG="egrep"
                   5153:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5154:     break 2
                   5155:   fi
                   5156: done
1.16      millert  5157: done
1.47      millert  5158: IFS=$as_save_IFS
1.16      millert  5159:
                   5160: fi
1.47      millert  5161: fi
                   5162: EGREPPROG=$ac_cv_prog_EGREPPROG
                   5163: if test -n "$EGREPPROG"; then
                   5164:   { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
                   5165: echo "${ECHO_T}$EGREPPROG" >&6; }
                   5166: else
                   5167:   { echo "$as_me:$LINENO: result: no" >&5
                   5168: echo "${ECHO_T}no" >&6; }
                   5169: fi
1.16      millert  5170:
1.27      millert  5171:
1.47      millert  5172: if test -z "$EGREPPROG"; then
                   5173:     { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
                   5174: echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
                   5175:    { (exit 1); exit 1; }; }
                   5176: fi
1.27      millert  5177:
1.47      millert  5178: if test "$with_devel" != "yes"; then
                   5179:     ac_cv_prog_cc_g=no
                   5180: fi
1.27      millert  5181:
                   5182: { echo "$as_me:$LINENO: checking for library containing strerror" >&5
                   5183: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
                   5184: if test "${ac_cv_search_strerror+set}" = set; then
                   5185:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5186: else
                   5187:   ac_func_search_save_LIBS=$LIBS
1.16      millert  5188: cat >conftest.$ac_ext <<_ACEOF
                   5189: /* confdefs.h.  */
                   5190: _ACEOF
                   5191: cat confdefs.h >>conftest.$ac_ext
                   5192: cat >>conftest.$ac_ext <<_ACEOF
                   5193: /* end confdefs.h.  */
1.27      millert  5194:
                   5195: /* Override any GCC internal prototype to avoid an error.
                   5196:    Use char because int might match the return type of a GCC
                   5197:    builtin and then its argument prototype would still apply.  */
                   5198: #ifdef __cplusplus
                   5199: extern "C"
                   5200: #endif
                   5201: char strerror ();
1.16      millert  5202: int
                   5203: main ()
                   5204: {
1.27      millert  5205: return strerror ();
1.16      millert  5206:   ;
                   5207:   return 0;
                   5208: }
                   5209: _ACEOF
1.27      millert  5210: for ac_lib in '' cposix; do
                   5211:   if test -z "$ac_lib"; then
                   5212:     ac_res="none required"
                   5213:   else
                   5214:     ac_res=-l$ac_lib
                   5215:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   5216:   fi
                   5217:   rm -f conftest.$ac_objext conftest$ac_exeext
                   5218: if { (ac_try="$ac_link"
                   5219: case "(($ac_try" in
                   5220:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5221:   *) ac_try_echo=$ac_try;;
                   5222: esac
                   5223: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5224:   (eval "$ac_link") 2>conftest.er1
1.16      millert  5225:   ac_status=$?
1.25      millert  5226:   grep -v '^ *+' conftest.er1 >conftest.err
                   5227:   rm -f conftest.er1
                   5228:   cat conftest.err >&5
1.16      millert  5229:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5230:   (exit $ac_status); } && {
                   5231:         test -z "$ac_c_werror_flag" ||
                   5232:         test ! -s conftest.err
                   5233:        } && test -s conftest$ac_exeext &&
                   5234:        $as_test_x conftest$ac_exeext; then
                   5235:   ac_cv_search_strerror=$ac_res
1.9       millert  5236: else
                   5237:   echo "$as_me: failed program was:" >&5
1.16      millert  5238: sed 's/^/| /' conftest.$ac_ext >&5
                   5239:
1.27      millert  5240:
                   5241: fi
                   5242:
                   5243: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   5244:       conftest$ac_exeext
                   5245:   if test "${ac_cv_search_strerror+set}" = set; then
                   5246:   break
1.9       millert  5247: fi
1.27      millert  5248: done
1.16      millert  5249: if test "${ac_cv_search_strerror+set}" = set; then
1.27      millert  5250:   :
1.9       millert  5251: else
1.27      millert  5252:   ac_cv_search_strerror=no
1.16      millert  5253: fi
1.27      millert  5254: rm conftest.$ac_ext
1.16      millert  5255: LIBS=$ac_func_search_save_LIBS
1.9       millert  5256: fi
1.27      millert  5257: { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
                   5258: echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
                   5259: ac_res=$ac_cv_search_strerror
                   5260: if test "$ac_res" != no; then
                   5261:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.9       millert  5262:
                   5263: fi
                   5264:
                   5265: ac_ext=c
                   5266: ac_cpp='$CPP $CPPFLAGS'
                   5267: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5268: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5269: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.27      millert  5270: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
                   5271: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.1       millert  5272: # On Suns, sometimes $CPP names a directory.
                   5273: if test -n "$CPP" && test -d "$CPP"; then
                   5274:   CPP=
                   5275: fi
                   5276: if test -z "$CPP"; then
1.9       millert  5277:   if test "${ac_cv_prog_CPP+set}" = set; then
                   5278:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5279: else
1.9       millert  5280:       # Double quotes because CPP needs to be expanded
                   5281:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5282:     do
                   5283:       ac_preproc_ok=false
                   5284: for ac_c_preproc_warn_flag in '' yes
                   5285: do
                   5286:   # Use a header file that comes with gcc, so configuring glibc
                   5287:   # with a fresh cross-compiler works.
1.16      millert  5288:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5289:   # <limits.h> exists even on freestanding compilers.
1.1       millert  5290:   # On the NeXT, cc -E runs the code through the compiler's parser,
1.9       millert  5291:   # not just through cpp. "Syntax error" is here to catch this case.
                   5292:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5293: /* confdefs.h.  */
                   5294: _ACEOF
                   5295: cat confdefs.h >>conftest.$ac_ext
                   5296: cat >>conftest.$ac_ext <<_ACEOF
                   5297: /* end confdefs.h.  */
                   5298: #ifdef __STDC__
                   5299: # include <limits.h>
                   5300: #else
                   5301: # include <assert.h>
                   5302: #endif
1.25      millert  5303:                     Syntax error
1.9       millert  5304: _ACEOF
1.27      millert  5305: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5306: case "(($ac_try" in
                   5307:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5308:   *) ac_try_echo=$ac_try;;
                   5309: esac
                   5310: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5311:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5312:   ac_status=$?
1.16      millert  5313:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5314:   rm -f conftest.er1
                   5315:   cat conftest.err >&5
1.16      millert  5316:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5317:   (exit $ac_status); } >/dev/null && {
                   5318:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5319:         test ! -s conftest.err
                   5320:        }; then
1.1       millert  5321:   :
                   5322: else
1.9       millert  5323:   echo "$as_me: failed program was:" >&5
1.16      millert  5324: sed 's/^/| /' conftest.$ac_ext >&5
                   5325:
1.9       millert  5326:   # Broken: fails on valid input.
                   5327: continue
                   5328: fi
1.27      millert  5329:
1.9       millert  5330: rm -f conftest.err conftest.$ac_ext
                   5331:
1.27      millert  5332:   # OK, works on sane cases.  Now check whether nonexistent headers
1.9       millert  5333:   # can be detected and how.
                   5334:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5335: /* confdefs.h.  */
                   5336: _ACEOF
                   5337: cat confdefs.h >>conftest.$ac_ext
                   5338: cat >>conftest.$ac_ext <<_ACEOF
                   5339: /* end confdefs.h.  */
1.9       millert  5340: #include <ac_nonexistent.h>
                   5341: _ACEOF
1.27      millert  5342: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5343: case "(($ac_try" in
                   5344:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5345:   *) ac_try_echo=$ac_try;;
                   5346: esac
                   5347: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5348:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5349:   ac_status=$?
1.16      millert  5350:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5351:   rm -f conftest.er1
                   5352:   cat conftest.err >&5
1.16      millert  5353:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5354:   (exit $ac_status); } >/dev/null && {
                   5355:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5356:         test ! -s conftest.err
                   5357:        }; then
1.9       millert  5358:   # Broken: success on invalid input.
                   5359: continue
                   5360: else
                   5361:   echo "$as_me: failed program was:" >&5
1.16      millert  5362: sed 's/^/| /' conftest.$ac_ext >&5
                   5363:
1.9       millert  5364:   # Passes both tests.
                   5365: ac_preproc_ok=:
                   5366: break
                   5367: fi
1.27      millert  5368:
1.9       millert  5369: rm -f conftest.err conftest.$ac_ext
                   5370:
                   5371: done
                   5372: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5373: rm -f conftest.err conftest.$ac_ext
                   5374: if $ac_preproc_ok; then
                   5375:   break
                   5376: fi
                   5377:
                   5378:     done
                   5379:     ac_cv_prog_CPP=$CPP
                   5380:
                   5381: fi
                   5382:   CPP=$ac_cv_prog_CPP
                   5383: else
                   5384:   ac_cv_prog_CPP=$CPP
                   5385: fi
1.27      millert  5386: { echo "$as_me:$LINENO: result: $CPP" >&5
                   5387: echo "${ECHO_T}$CPP" >&6; }
1.9       millert  5388: ac_preproc_ok=false
                   5389: for ac_c_preproc_warn_flag in '' yes
                   5390: do
                   5391:   # Use a header file that comes with gcc, so configuring glibc
                   5392:   # with a fresh cross-compiler works.
1.16      millert  5393:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5394:   # <limits.h> exists even on freestanding compilers.
1.9       millert  5395:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5396:   # not just through cpp. "Syntax error" is here to catch this case.
                   5397:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5398: /* confdefs.h.  */
                   5399: _ACEOF
                   5400: cat confdefs.h >>conftest.$ac_ext
                   5401: cat >>conftest.$ac_ext <<_ACEOF
                   5402: /* end confdefs.h.  */
                   5403: #ifdef __STDC__
                   5404: # include <limits.h>
                   5405: #else
                   5406: # include <assert.h>
                   5407: #endif
1.25      millert  5408:                     Syntax error
1.9       millert  5409: _ACEOF
1.27      millert  5410: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5411: case "(($ac_try" in
                   5412:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5413:   *) ac_try_echo=$ac_try;;
                   5414: esac
                   5415: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5416:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5417:   ac_status=$?
1.16      millert  5418:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5419:   rm -f conftest.er1
                   5420:   cat conftest.err >&5
1.16      millert  5421:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5422:   (exit $ac_status); } >/dev/null && {
                   5423:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5424:         test ! -s conftest.err
                   5425:        }; then
1.1       millert  5426:   :
                   5427: else
1.9       millert  5428:   echo "$as_me: failed program was:" >&5
1.16      millert  5429: sed 's/^/| /' conftest.$ac_ext >&5
                   5430:
1.9       millert  5431:   # Broken: fails on valid input.
                   5432: continue
1.1       millert  5433: fi
1.27      millert  5434:
1.9       millert  5435: rm -f conftest.err conftest.$ac_ext
                   5436:
1.27      millert  5437:   # OK, works on sane cases.  Now check whether nonexistent headers
1.9       millert  5438:   # can be detected and how.
                   5439:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5440: /* confdefs.h.  */
                   5441: _ACEOF
                   5442: cat confdefs.h >>conftest.$ac_ext
                   5443: cat >>conftest.$ac_ext <<_ACEOF
                   5444: /* end confdefs.h.  */
1.9       millert  5445: #include <ac_nonexistent.h>
                   5446: _ACEOF
1.27      millert  5447: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5448: case "(($ac_try" in
                   5449:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5450:   *) ac_try_echo=$ac_try;;
                   5451: esac
                   5452: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5453:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5454:   ac_status=$?
1.16      millert  5455:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5456:   rm -f conftest.er1
                   5457:   cat conftest.err >&5
1.16      millert  5458:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5459:   (exit $ac_status); } >/dev/null && {
                   5460:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5461:         test ! -s conftest.err
                   5462:        }; then
1.9       millert  5463:   # Broken: success on invalid input.
                   5464: continue
1.1       millert  5465: else
1.9       millert  5466:   echo "$as_me: failed program was:" >&5
1.16      millert  5467: sed 's/^/| /' conftest.$ac_ext >&5
                   5468:
1.9       millert  5469:   # Passes both tests.
                   5470: ac_preproc_ok=:
                   5471: break
1.1       millert  5472: fi
1.27      millert  5473:
1.9       millert  5474: rm -f conftest.err conftest.$ac_ext
1.1       millert  5475:
1.9       millert  5476: done
                   5477: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5478: rm -f conftest.err conftest.$ac_ext
                   5479: if $ac_preproc_ok; then
                   5480:   :
1.1       millert  5481: else
1.16      millert  5482:   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
                   5483: See \`config.log' for more details." >&5
                   5484: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
                   5485: See \`config.log' for more details." >&2;}
1.9       millert  5486:    { (exit 1); exit 1; }; }
1.1       millert  5487: fi
                   5488:
1.9       millert  5489: ac_ext=c
                   5490: ac_cpp='$CPP $CPPFLAGS'
                   5491: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5492: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5493: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       millert  5494:
1.16      millert  5495:
1.23      millert  5496: ac_aux_dir=
1.27      millert  5497: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
                   5498:   if test -f "$ac_dir/install-sh"; then
1.23      millert  5499:     ac_aux_dir=$ac_dir
                   5500:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   5501:     break
1.27      millert  5502:   elif test -f "$ac_dir/install.sh"; then
1.23      millert  5503:     ac_aux_dir=$ac_dir
                   5504:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   5505:     break
1.27      millert  5506:   elif test -f "$ac_dir/shtool"; then
1.23      millert  5507:     ac_aux_dir=$ac_dir
                   5508:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   5509:     break
                   5510:   fi
                   5511: done
                   5512: if test -z "$ac_aux_dir"; then
1.27      millert  5513:   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
                   5514: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.23      millert  5515:    { (exit 1); exit 1; }; }
1.1       millert  5516: fi
1.27      millert  5517:
                   5518: # These three variables are undocumented and unsupported,
                   5519: # and are intended to be withdrawn in a future Autoconf release.
                   5520: # They can cause serious problems if a builder's source tree is in a directory
                   5521: # whose full name contains unusual characters.
                   5522: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   5523: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   5524: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
                   5525:
1.23      millert  5526:
                   5527: # Make sure we can run config.sub.
1.27      millert  5528: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
                   5529:   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
                   5530: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.23      millert  5531:    { (exit 1); exit 1; }; }
1.1       millert  5532:
1.27      millert  5533: { echo "$as_me:$LINENO: checking build system type" >&5
                   5534: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.23      millert  5535: if test "${ac_cv_build+set}" = set; then
1.9       millert  5536:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5537: else
1.27      millert  5538:   ac_build_alias=$build_alias
                   5539: test "x$ac_build_alias" = x &&
                   5540:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   5541: test "x$ac_build_alias" = x &&
1.23      millert  5542:   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
                   5543: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
                   5544:    { (exit 1); exit 1; }; }
1.27      millert  5545: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
                   5546:   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
                   5547: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.23      millert  5548:    { (exit 1); exit 1; }; }
1.9       millert  5549:
1.1       millert  5550: fi
1.27      millert  5551: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
                   5552: echo "${ECHO_T}$ac_cv_build" >&6; }
                   5553: case $ac_cv_build in
                   5554: *-*-*) ;;
                   5555: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
                   5556: echo "$as_me: error: invalid value of canonical build" >&2;}
                   5557:    { (exit 1); exit 1; }; };;
                   5558: esac
1.23      millert  5559: build=$ac_cv_build
1.27      millert  5560: ac_save_IFS=$IFS; IFS='-'
                   5561: set x $ac_cv_build
                   5562: shift
                   5563: build_cpu=$1
                   5564: build_vendor=$2
                   5565: shift; shift
                   5566: # Remember, the first character of IFS is used to create $*,
                   5567: # except with old shells:
                   5568: build_os=$*
                   5569: IFS=$ac_save_IFS
                   5570: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.23      millert  5571:
                   5572:
1.27      millert  5573: { echo "$as_me:$LINENO: checking host system type" >&5
                   5574: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.23      millert  5575: if test "${ac_cv_host+set}" = set; then
                   5576:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5577: else
1.27      millert  5578:   if test "x$host_alias" = x; then
                   5579:   ac_cv_host=$ac_cv_build
                   5580: else
                   5581:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
                   5582:     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
                   5583: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.23      millert  5584:    { (exit 1); exit 1; }; }
1.27      millert  5585: fi
1.23      millert  5586:
1.1       millert  5587: fi
1.27      millert  5588: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
                   5589: echo "${ECHO_T}$ac_cv_host" >&6; }
                   5590: case $ac_cv_host in
                   5591: *-*-*) ;;
                   5592: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
                   5593: echo "$as_me: error: invalid value of canonical host" >&2;}
                   5594:    { (exit 1); exit 1; }; };;
                   5595: esac
1.23      millert  5596: host=$ac_cv_host
1.27      millert  5597: ac_save_IFS=$IFS; IFS='-'
                   5598: set x $ac_cv_host
                   5599: shift
                   5600: host_cpu=$1
                   5601: host_vendor=$2
                   5602: shift; shift
                   5603: # Remember, the first character of IFS is used to create $*,
                   5604: # except with old shells:
                   5605: host_os=$*
                   5606: IFS=$ac_save_IFS
                   5607: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1       millert  5608:
1.23      millert  5609:
1.27      millert  5610: # Check whether --enable-static was given.
                   5611: if test "${enable_static+set}" = set; then
                   5612:   enableval=$enable_static; p=${PACKAGE-default}
                   5613:     case $enableval in
                   5614:     yes) enable_static=yes ;;
                   5615:     no) enable_static=no ;;
                   5616:     *)
                   5617:      enable_static=no
                   5618:       # Look at the argument we got.  We use all the common list separators.
                   5619:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   5620:       for pkg in $enableval; do
                   5621:        IFS="$lt_save_ifs"
                   5622:        if test "X$pkg" = "X$p"; then
                   5623:          enable_static=yes
                   5624:        fi
                   5625:       done
                   5626:       IFS="$lt_save_ifs"
                   5627:       ;;
                   5628:     esac
                   5629: else
                   5630:   enable_static=no
                   5631: fi
1.23      millert  5632:
                   5633:
                   5634:
1.40      millert  5635:
                   5636:
1.27      millert  5637: # Check whether --enable-shared was given.
                   5638: if test "${enable_shared+set}" = set; then
                   5639:   enableval=$enable_shared; p=${PACKAGE-default}
                   5640:     case $enableval in
                   5641:     yes) enable_shared=yes ;;
                   5642:     no) enable_shared=no ;;
                   5643:     *)
                   5644:       enable_shared=no
                   5645:       # Look at the argument we got.  We use all the common list separators.
                   5646:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   5647:       for pkg in $enableval; do
                   5648:        IFS="$lt_save_ifs"
                   5649:        if test "X$pkg" = "X$p"; then
                   5650:          enable_shared=yes
                   5651:        fi
                   5652:       done
                   5653:       IFS="$lt_save_ifs"
                   5654:       ;;
                   5655:     esac
                   5656: else
                   5657:   enable_shared=yes
                   5658: fi
1.25      millert  5659:
                   5660:
1.27      millert  5661: # Check whether --enable-fast-install was given.
                   5662: if test "${enable_fast_install+set}" = set; then
                   5663:   enableval=$enable_fast_install; p=${PACKAGE-default}
                   5664:     case $enableval in
                   5665:     yes) enable_fast_install=yes ;;
                   5666:     no) enable_fast_install=no ;;
                   5667:     *)
                   5668:       enable_fast_install=no
                   5669:       # Look at the argument we got.  We use all the common list separators.
                   5670:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   5671:       for pkg in $enableval; do
                   5672:        IFS="$lt_save_ifs"
                   5673:        if test "X$pkg" = "X$p"; then
                   5674:          enable_fast_install=yes
                   5675:        fi
                   5676:       done
                   5677:       IFS="$lt_save_ifs"
                   5678:       ;;
                   5679:     esac
                   5680: else
                   5681:   enable_fast_install=yes
                   5682: fi
1.25      millert  5683:
                   5684:
1.27      millert  5685: { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
                   5686: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
1.23      millert  5687: if test "${lt_cv_path_SED+set}" = set; then
                   5688:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5689: else
                   5690:   # Loop through the user's path and test for sed and gsed.
                   5691: # Then use that list of sed's as ones to test for truncation.
                   5692: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5693: for as_dir in $PATH
                   5694: do
                   5695:   IFS=$as_save_IFS
                   5696:   test -z "$as_dir" && as_dir=.
                   5697:   for lt_ac_prog in sed gsed; do
                   5698:     for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  5699:       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
1.23      millert  5700:         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
                   5701:       fi
                   5702:     done
                   5703:   done
                   5704: done
1.27      millert  5705: IFS=$as_save_IFS
1.23      millert  5706: lt_ac_max=0
                   5707: lt_ac_count=0
                   5708: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
                   5709: # along with /bin/sed that truncates output.
                   5710: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
1.27      millert  5711:   test ! -f $lt_ac_sed && continue
1.23      millert  5712:   cat /dev/null > conftest.in
                   5713:   lt_ac_count=0
1.27      millert  5714:   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
1.23      millert  5715:   # Check for GNU sed and select it if it is found.
                   5716:   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
                   5717:     lt_cv_path_SED=$lt_ac_sed
                   5718:     break
                   5719:   fi
                   5720:   while true; do
                   5721:     cat conftest.in conftest.in >conftest.tmp
                   5722:     mv conftest.tmp conftest.in
                   5723:     cp conftest.in conftest.nl
1.27      millert  5724:     echo >>conftest.nl
1.23      millert  5725:     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
                   5726:     cmp -s conftest.out conftest.nl || break
                   5727:     # 10000 chars as input seems more than enough
                   5728:     test $lt_ac_count -gt 10 && break
                   5729:     lt_ac_count=`expr $lt_ac_count + 1`
                   5730:     if test $lt_ac_count -gt $lt_ac_max; then
                   5731:       lt_ac_max=$lt_ac_count
                   5732:       lt_cv_path_SED=$lt_ac_sed
                   5733:     fi
                   5734:   done
                   5735: done
                   5736:
                   5737: fi
                   5738:
1.25      millert  5739: SED=$lt_cv_path_SED
                   5740:
1.27      millert  5741: { echo "$as_me:$LINENO: result: $SED" >&5
                   5742: echo "${ECHO_T}$SED" >&6; }
1.23      millert  5743:
1.27      millert  5744: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
                   5745: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
                   5746: if test "${ac_cv_path_GREP+set}" = set; then
                   5747:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5748: else
                   5749:   # Extract the first word of "grep ggrep" to use in msg output
                   5750: if test -z "$GREP"; then
                   5751: set dummy grep ggrep; ac_prog_name=$2
                   5752: if test "${ac_cv_path_GREP+set}" = set; then
                   5753:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5754: else
                   5755:   ac_path_GREP_found=false
                   5756: # Loop through the user's path and test for each of PROGNAME-LIST
                   5757: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5758: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   5759: do
                   5760:   IFS=$as_save_IFS
                   5761:   test -z "$as_dir" && as_dir=.
                   5762:   for ac_prog in grep ggrep; do
                   5763:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5764:     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   5765:     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   5766:     # Check for GNU ac_path_GREP and select it if it is found.
                   5767:   # Check for GNU $ac_path_GREP
                   5768: case `"$ac_path_GREP" --version 2>&1` in
                   5769: *GNU*)
                   5770:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   5771: *)
                   5772:   ac_count=0
                   5773:   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
                   5774:   while :
                   5775:   do
                   5776:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   5777:     mv "conftest.tmp" "conftest.in"
                   5778:     cp "conftest.in" "conftest.nl"
                   5779:     echo 'GREP' >> "conftest.nl"
                   5780:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   5781:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   5782:     ac_count=`expr $ac_count + 1`
                   5783:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   5784:       # Best one so far, save it but keep looking for a better one
                   5785:       ac_cv_path_GREP="$ac_path_GREP"
                   5786:       ac_path_GREP_max=$ac_count
                   5787:     fi
                   5788:     # 10*(2^10) chars as input seems more than enough
                   5789:     test $ac_count -gt 10 && break
                   5790:   done
                   5791:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   5792: esac
1.25      millert  5793:
                   5794:
1.27      millert  5795:     $ac_path_GREP_found && break 3
                   5796:   done
                   5797: done
1.25      millert  5798:
1.27      millert  5799: done
                   5800: IFS=$as_save_IFS
1.25      millert  5801:
                   5802:
1.27      millert  5803: fi
1.25      millert  5804:
1.27      millert  5805: GREP="$ac_cv_path_GREP"
                   5806: if test -z "$GREP"; then
                   5807:   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
                   5808: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
                   5809:    { (exit 1); exit 1; }; }
                   5810: fi
1.25      millert  5811:
1.27      millert  5812: else
                   5813:   ac_cv_path_GREP=$GREP
                   5814: fi
1.25      millert  5815:
                   5816:
1.27      millert  5817: fi
                   5818: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
                   5819: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
                   5820:  GREP="$ac_cv_path_GREP"
1.25      millert  5821:
                   5822:
1.27      millert  5823: { echo "$as_me:$LINENO: checking for egrep" >&5
                   5824: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
                   5825: if test "${ac_cv_path_EGREP+set}" = set; then
                   5826:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5827: else
                   5828:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   5829:    then ac_cv_path_EGREP="$GREP -E"
                   5830:    else
                   5831:      # Extract the first word of "egrep" to use in msg output
                   5832: if test -z "$EGREP"; then
                   5833: set dummy egrep; ac_prog_name=$2
                   5834: if test "${ac_cv_path_EGREP+set}" = set; then
1.23      millert  5835:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5836: else
1.27      millert  5837:   ac_path_EGREP_found=false
                   5838: # Loop through the user's path and test for each of PROGNAME-LIST
                   5839: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5840: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   5841: do
                   5842:   IFS=$as_save_IFS
                   5843:   test -z "$as_dir" && as_dir=.
                   5844:   for ac_prog in egrep; do
                   5845:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5846:     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   5847:     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   5848:     # Check for GNU ac_path_EGREP and select it if it is found.
                   5849:   # Check for GNU $ac_path_EGREP
                   5850: case `"$ac_path_EGREP" --version 2>&1` in
                   5851: *GNU*)
                   5852:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   5853: *)
                   5854:   ac_count=0
                   5855:   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
                   5856:   while :
                   5857:   do
                   5858:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   5859:     mv "conftest.tmp" "conftest.in"
                   5860:     cp "conftest.in" "conftest.nl"
                   5861:     echo 'EGREP' >> "conftest.nl"
                   5862:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   5863:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   5864:     ac_count=`expr $ac_count + 1`
                   5865:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   5866:       # Best one so far, save it but keep looking for a better one
                   5867:       ac_cv_path_EGREP="$ac_path_EGREP"
                   5868:       ac_path_EGREP_max=$ac_count
1.23      millert  5869:     fi
1.27      millert  5870:     # 10*(2^10) chars as input seems more than enough
                   5871:     test $ac_count -gt 10 && break
                   5872:   done
                   5873:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   5874: esac
1.25      millert  5875:
                   5876:
1.27      millert  5877:     $ac_path_EGREP_found && break 3
                   5878:   done
                   5879: done
1.25      millert  5880:
1.27      millert  5881: done
                   5882: IFS=$as_save_IFS
1.25      millert  5883:
                   5884:
1.27      millert  5885: fi
1.25      millert  5886:
1.27      millert  5887: EGREP="$ac_cv_path_EGREP"
                   5888: if test -z "$EGREP"; then
                   5889:   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
                   5890: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
                   5891:    { (exit 1); exit 1; }; }
                   5892: fi
1.25      millert  5893:
1.27      millert  5894: else
                   5895:   ac_cv_path_EGREP=$EGREP
                   5896: fi
1.25      millert  5897:
                   5898:
1.27      millert  5899:    fi
                   5900: fi
                   5901: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
                   5902: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
                   5903:  EGREP="$ac_cv_path_EGREP"
1.25      millert  5904:
                   5905:
                   5906:
1.27      millert  5907: # Check whether --with-gnu-ld was given.
1.23      millert  5908: if test "${with_gnu_ld+set}" = set; then
1.27      millert  5909:   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.23      millert  5910: else
                   5911:   with_gnu_ld=no
1.27      millert  5912: fi
                   5913:
1.23      millert  5914: ac_prog=ld
                   5915: if test "$GCC" = yes; then
                   5916:   # Check if gcc -print-prog-name=ld gives a path.
1.27      millert  5917:   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
                   5918: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
1.23      millert  5919:   case $host in
                   5920:   *-*-mingw*)
                   5921:     # gcc leaves a trailing carriage return which upsets mingw
                   5922:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
                   5923:   *)
                   5924:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
                   5925:   esac
                   5926:   case $ac_prog in
                   5927:     # Accept absolute paths.
                   5928:     [\\/]* | ?:[\\/]*)
                   5929:       re_direlt='/[^/][^/]*/\.\./'
1.25      millert  5930:       # Canonicalize the pathname of ld
1.27      millert  5931:       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
                   5932:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
                   5933:        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1.23      millert  5934:       done
                   5935:       test -z "$LD" && LD="$ac_prog"
                   5936:       ;;
                   5937:   "")
                   5938:     # If it fails, then pretend we aren't using GCC.
                   5939:     ac_prog=ld
                   5940:     ;;
                   5941:   *)
                   5942:     # If it is relative, then search for the first ld in PATH.
                   5943:     with_gnu_ld=unknown
                   5944:     ;;
                   5945:   esac
                   5946: elif test "$with_gnu_ld" = yes; then
1.27      millert  5947:   { echo "$as_me:$LINENO: checking for GNU ld" >&5
                   5948: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
1.23      millert  5949: else
1.27      millert  5950:   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
                   5951: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
1.23      millert  5952: fi
                   5953: if test "${lt_cv_path_LD+set}" = set; then
                   5954:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5955: else
                   5956:   if test -z "$LD"; then
                   5957:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   5958:   for ac_dir in $PATH; do
                   5959:     IFS="$lt_save_ifs"
                   5960:     test -z "$ac_dir" && ac_dir=.
                   5961:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   5962:       lt_cv_path_LD="$ac_dir/$ac_prog"
                   5963:       # Check to see if the program is GNU ld.  I'd rather use --version,
1.27      millert  5964:       # but apparently some variants of GNU ld only accept -v.
1.23      millert  5965:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   5966:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
                   5967:       *GNU* | *'with BFD'*)
                   5968:        test "$with_gnu_ld" != no && break
                   5969:        ;;
                   5970:       *)
                   5971:        test "$with_gnu_ld" != yes && break
                   5972:        ;;
                   5973:       esac
                   5974:     fi
                   5975:   done
                   5976:   IFS="$lt_save_ifs"
                   5977: else
                   5978:   lt_cv_path_LD="$LD" # Let the user override the test with a path.
                   5979: fi
                   5980: fi
                   5981:
                   5982: LD="$lt_cv_path_LD"
                   5983: if test -n "$LD"; then
1.27      millert  5984:   { echo "$as_me:$LINENO: result: $LD" >&5
                   5985: echo "${ECHO_T}$LD" >&6; }
1.23      millert  5986: else
1.27      millert  5987:   { echo "$as_me:$LINENO: result: no" >&5
                   5988: echo "${ECHO_T}no" >&6; }
1.23      millert  5989: fi
                   5990: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
                   5991: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
                   5992:    { (exit 1); exit 1; }; }
1.27      millert  5993: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
                   5994: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
1.23      millert  5995: if test "${lt_cv_prog_gnu_ld+set}" = set; then
                   5996:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5997: else
1.27      millert  5998:   # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.25      millert  5999: case `$LD -v 2>&1 </dev/null` in
1.23      millert  6000: *GNU* | *'with BFD'*)
                   6001:   lt_cv_prog_gnu_ld=yes
                   6002:   ;;
                   6003: *)
                   6004:   lt_cv_prog_gnu_ld=no
                   6005:   ;;
                   6006: esac
                   6007: fi
1.27      millert  6008: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
                   6009: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
1.23      millert  6010: with_gnu_ld=$lt_cv_prog_gnu_ld
                   6011:
                   6012:
1.27      millert  6013: { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
                   6014: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
                   6015: if test "${lt_cv_ld_reload_flag+set}" = set; then
                   6016:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6017: else
                   6018:   lt_cv_ld_reload_flag='-r'
                   6019: fi
                   6020: { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
                   6021: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
                   6022: reload_flag=$lt_cv_ld_reload_flag
                   6023: case $reload_flag in
                   6024: "" | " "*) ;;
                   6025: *) reload_flag=" $reload_flag" ;;
                   6026: esac
                   6027: reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   6028: case $host_os in
                   6029:   darwin*)
                   6030:     if test "$GCC" = yes; then
                   6031:       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
                   6032:     else
                   6033:       reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   6034:     fi
                   6035:     ;;
                   6036: esac
1.25      millert  6037:
1.27      millert  6038: { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
                   6039: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
1.23      millert  6040: if test "${lt_cv_path_NM+set}" = set; then
                   6041:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6042: else
                   6043:   if test -n "$NM"; then
                   6044:   # Let the user override the test.
                   6045:   lt_cv_path_NM="$NM"
                   6046: else
1.27      millert  6047:   lt_nm_to_check="${ac_tool_prefix}nm"
                   6048:   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
                   6049:     lt_nm_to_check="$lt_nm_to_check nm"
                   6050:   fi
                   6051:   for lt_tmp_nm in $lt_nm_to_check; do
                   6052:     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   6053:     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
                   6054:       IFS="$lt_save_ifs"
                   6055:       test -z "$ac_dir" && ac_dir=.
                   6056:       tmp_nm="$ac_dir/$lt_tmp_nm"
                   6057:       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
                   6058:        # Check to see if the nm accepts a BSD-compat flag.
                   6059:        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
                   6060:        #   nm: unknown option "B" ignored
                   6061:        # Tru64's nm complains that /dev/null is an invalid object file
                   6062:        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
                   6063:        */dev/null* | *'Invalid file or object type'*)
                   6064:          lt_cv_path_NM="$tmp_nm -B"
1.23      millert  6065:          break
                   6066:          ;;
                   6067:        *)
1.27      millert  6068:          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
                   6069:          */dev/null*)
                   6070:            lt_cv_path_NM="$tmp_nm -p"
                   6071:            break
                   6072:            ;;
                   6073:          *)
                   6074:            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
                   6075:            continue # so that we can try to find one that supports BSD flags
                   6076:            ;;
                   6077:          esac
1.23      millert  6078:          ;;
                   6079:        esac
1.27      millert  6080:       fi
                   6081:     done
                   6082:     IFS="$lt_save_ifs"
1.23      millert  6083:   done
                   6084:   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
                   6085: fi
                   6086: fi
1.27      millert  6087: { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
                   6088: echo "${ECHO_T}$lt_cv_path_NM" >&6; }
1.23      millert  6089: NM="$lt_cv_path_NM"
1.25      millert  6090:
1.27      millert  6091: { echo "$as_me:$LINENO: checking whether ln -s works" >&5
                   6092: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1.23      millert  6093: LN_S=$as_ln_s
                   6094: if test "$LN_S" = "ln -s"; then
1.27      millert  6095:   { echo "$as_me:$LINENO: result: yes" >&5
                   6096: echo "${ECHO_T}yes" >&6; }
1.25      millert  6097: else
1.27      millert  6098:   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
                   6099: echo "${ECHO_T}no, using $LN_S" >&6; }
1.25      millert  6100: fi
                   6101:
1.27      millert  6102: { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
                   6103: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
1.23      millert  6104: if test "${lt_cv_deplibs_check_method+set}" = set; then
                   6105:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6106: else
                   6107:   lt_cv_file_magic_cmd='$MAGIC_CMD'
                   6108: lt_cv_file_magic_test_file=
                   6109: lt_cv_deplibs_check_method='unknown'
                   6110: # Need to set the preceding variable on all platforms that support
                   6111: # interlibrary dependencies.
                   6112: # 'none' -- dependencies not supported.
                   6113: # `unknown' -- same as none, but documents that we really don't know.
                   6114: # 'pass_all' -- all dependencies passed with no checks.
                   6115: # 'test_compile' -- check by making test program.
                   6116: # 'file_magic [[regex]]' -- check by looking for files in library path
                   6117: # which responds to the $file_magic_cmd with a given extended regex.
                   6118: # If you have `file' or equivalent on your system and you're not sure
                   6119: # whether `pass_all' will *always* work, you probably want this one.
                   6120:
                   6121: case $host_os in
1.36      millert  6122: aix[4-9]*)
1.23      millert  6123:   lt_cv_deplibs_check_method=pass_all
                   6124:   ;;
                   6125:
                   6126: beos*)
                   6127:   lt_cv_deplibs_check_method=pass_all
                   6128:   ;;
                   6129:
1.25      millert  6130: bsdi[45]*)
1.23      millert  6131:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
                   6132:   lt_cv_file_magic_cmd='/usr/bin/file -L'
                   6133:   lt_cv_file_magic_test_file=/shlib/libc.so
                   6134:   ;;
                   6135:
1.25      millert  6136: cygwin*)
                   6137:   # func_win32_libid is a shell function defined in ltmain.sh
1.23      millert  6138:   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1.25      millert  6139:   lt_cv_file_magic_cmd='func_win32_libid'
                   6140:   ;;
                   6141:
1.27      millert  6142: mingw* | pw32*)
1.25      millert  6143:   # Base MSYS/MinGW do not provide the 'file' command needed by
1.27      millert  6144:   # func_win32_libid shell function, so use a weaker test based on 'objdump',
                   6145:   # unless we find 'file', for example because we are cross-compiling.
                   6146:   if ( file / ) >/dev/null 2>&1; then
                   6147:     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
                   6148:     lt_cv_file_magic_cmd='func_win32_libid'
                   6149:   else
                   6150:     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
                   6151:     lt_cv_file_magic_cmd='$OBJDUMP -f'
                   6152:   fi
1.23      millert  6153:   ;;
                   6154:
                   6155: darwin* | rhapsody*)
1.25      millert  6156:   lt_cv_deplibs_check_method=pass_all
                   6157:   ;;
1.23      millert  6158:
1.27      millert  6159: freebsd* | dragonfly*)
                   6160:   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.23      millert  6161:     case $host_cpu in
                   6162:     i*86 )
                   6163:       # Not sure whether the presence of OpenBSD here was a mistake.
                   6164:       # Let's accept both of them until this is cleared up.
1.27      millert  6165:       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.23      millert  6166:       lt_cv_file_magic_cmd=/usr/bin/file
1.27      millert  6167:       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.23      millert  6168:       ;;
                   6169:     esac
                   6170:   else
                   6171:     lt_cv_deplibs_check_method=pass_all
                   6172:   fi
                   6173:   ;;
                   6174:
                   6175: gnu*)
                   6176:   lt_cv_deplibs_check_method=pass_all
                   6177:   ;;
                   6178:
                   6179: hpux10.20* | hpux11*)
                   6180:   lt_cv_file_magic_cmd=/usr/bin/file
1.27      millert  6181:   case $host_cpu in
1.23      millert  6182:   ia64*)
                   6183:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
                   6184:     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
                   6185:     ;;
                   6186:   hppa*64*)
                   6187:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
                   6188:     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
                   6189:     ;;
                   6190:   *)
                   6191:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
                   6192:     lt_cv_file_magic_test_file=/usr/lib/libc.sl
                   6193:     ;;
                   6194:   esac
                   6195:   ;;
                   6196:
1.27      millert  6197: interix[3-9]*)
                   6198:   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
                   6199:   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
                   6200:   ;;
                   6201:
1.23      millert  6202: irix5* | irix6* | nonstopux*)
1.25      millert  6203:   case $LD in
                   6204:   *-32|*"-32 ") libmagic=32-bit;;
                   6205:   *-n32|*"-n32 ") libmagic=N32;;
                   6206:   *-64|*"-64 ") libmagic=64-bit;;
                   6207:   *) libmagic=never-match;;
1.23      millert  6208:   esac
                   6209:   lt_cv_deplibs_check_method=pass_all
                   6210:   ;;
                   6211:
                   6212: # This must be Linux ELF.
1.27      millert  6213: linux* | k*bsd*-gnu)
1.25      millert  6214:   lt_cv_deplibs_check_method=pass_all
1.23      millert  6215:   ;;
                   6216:
1.27      millert  6217: netbsd*)
                   6218:   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.23      millert  6219:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
                   6220:   else
                   6221:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
                   6222:   fi
                   6223:   ;;
                   6224:
                   6225: newos6*)
                   6226:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
                   6227:   lt_cv_file_magic_cmd=/usr/bin/file
                   6228:   lt_cv_file_magic_test_file=/usr/lib/libnls.so
                   6229:   ;;
                   6230:
1.27      millert  6231: nto-qnx*)
                   6232:   lt_cv_deplibs_check_method=unknown
1.23      millert  6233:   ;;
                   6234:
                   6235: openbsd*)
1.27      millert  6236:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.25      millert  6237:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.23      millert  6238:   else
1.25      millert  6239:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.23      millert  6240:   fi
                   6241:   ;;
                   6242:
                   6243: osf3* | osf4* | osf5*)
                   6244:   lt_cv_deplibs_check_method=pass_all
                   6245:   ;;
                   6246:
1.27      millert  6247: rdos*)
1.23      millert  6248:   lt_cv_deplibs_check_method=pass_all
                   6249:   ;;
                   6250:
                   6251: solaris*)
                   6252:   lt_cv_deplibs_check_method=pass_all
                   6253:   ;;
                   6254:
1.27      millert  6255: sysv4 | sysv4.3*)
1.23      millert  6256:   case $host_vendor in
                   6257:   motorola)
                   6258:     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]'
1.27      millert  6259:     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1.23      millert  6260:     ;;
                   6261:   ncr)
                   6262:     lt_cv_deplibs_check_method=pass_all
                   6263:     ;;
                   6264:   sequent)
                   6265:     lt_cv_file_magic_cmd='/bin/file'
                   6266:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
                   6267:     ;;
                   6268:   sni)
                   6269:     lt_cv_file_magic_cmd='/bin/file'
                   6270:     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
                   6271:     lt_cv_file_magic_test_file=/lib/libc.so
                   6272:     ;;
                   6273:   siemens)
                   6274:     lt_cv_deplibs_check_method=pass_all
                   6275:     ;;
1.27      millert  6276:   pc)
                   6277:     lt_cv_deplibs_check_method=pass_all
                   6278:     ;;
1.23      millert  6279:   esac
                   6280:   ;;
                   6281:
1.27      millert  6282: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.25      millert  6283:   lt_cv_deplibs_check_method=pass_all
                   6284:   ;;
1.23      millert  6285: esac
                   6286:
                   6287: fi
1.27      millert  6288: { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
                   6289: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
1.23      millert  6290: file_magic_cmd=$lt_cv_file_magic_cmd
                   6291: deplibs_check_method=$lt_cv_deplibs_check_method
                   6292: test -z "$deplibs_check_method" && deplibs_check_method=unknown
                   6293:
                   6294:
                   6295:
                   6296:
1.27      millert  6297: # If no C compiler was specified, use CC.
                   6298: LTCC=${LTCC-"$CC"}
1.23      millert  6299:
1.27      millert  6300: # If no C compiler flags were specified, use CFLAGS.
                   6301: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23      millert  6302:
1.27      millert  6303: # Allow CC to be a program name with arguments.
                   6304: compiler=$CC
1.23      millert  6305:
1.27      millert  6306: # Check whether --enable-libtool-lock was given.
                   6307: if test "${enable_libtool_lock+set}" = set; then
                   6308:   enableval=$enable_libtool_lock;
                   6309: fi
1.23      millert  6310:
1.27      millert  6311: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.23      millert  6312:
1.27      millert  6313: # Some flags need to be propagated to the compiler or linker for good
                   6314: # libtool support.
                   6315: case $host in
                   6316: ia64-*-hpux*)
                   6317:   # Find out which ABI we are using.
                   6318:   echo 'int i;' > conftest.$ac_ext
                   6319:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6320:   (eval $ac_compile) 2>&5
                   6321:   ac_status=$?
                   6322:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6323:   (exit $ac_status); }; then
                   6324:     case `/usr/bin/file conftest.$ac_objext` in
                   6325:     *ELF-32*)
                   6326:       HPUX_IA64_MODE="32"
                   6327:       ;;
                   6328:     *ELF-64*)
                   6329:       HPUX_IA64_MODE="64"
                   6330:       ;;
                   6331:     esac
                   6332:   fi
                   6333:   rm -rf conftest*
                   6334:   ;;
                   6335: *-*-irix6*)
                   6336:   # Find out which ABI we are using.
1.47      millert  6337:   echo '#line 6337 "configure"' > conftest.$ac_ext
1.27      millert  6338:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6339:   (eval $ac_compile) 2>&5
                   6340:   ac_status=$?
                   6341:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6342:   (exit $ac_status); }; then
                   6343:    if test "$lt_cv_prog_gnu_ld" = yes; then
                   6344:     case `/usr/bin/file conftest.$ac_objext` in
                   6345:     *32-bit*)
                   6346:       LD="${LD-ld} -melf32bsmip"
                   6347:       ;;
                   6348:     *N32*)
                   6349:       LD="${LD-ld} -melf32bmipn32"
                   6350:       ;;
                   6351:     *64-bit*)
                   6352:       LD="${LD-ld} -melf64bmip"
                   6353:       ;;
                   6354:     esac
                   6355:    else
                   6356:     case `/usr/bin/file conftest.$ac_objext` in
                   6357:     *32-bit*)
                   6358:       LD="${LD-ld} -32"
                   6359:       ;;
                   6360:     *N32*)
                   6361:       LD="${LD-ld} -n32"
                   6362:       ;;
                   6363:     *64-bit*)
                   6364:       LD="${LD-ld} -64"
                   6365:       ;;
                   6366:     esac
                   6367:    fi
                   6368:   fi
                   6369:   rm -rf conftest*
                   6370:   ;;
1.23      millert  6371:
1.27      millert  6372: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
                   6373: s390*-*linux*|sparc*-*linux*)
                   6374:   # Find out which ABI we are using.
                   6375:   echo 'int i;' > conftest.$ac_ext
                   6376:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6377:   (eval $ac_compile) 2>&5
                   6378:   ac_status=$?
                   6379:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6380:   (exit $ac_status); }; then
                   6381:     case `/usr/bin/file conftest.o` in
                   6382:     *32-bit*)
                   6383:       case $host in
                   6384:         x86_64-*kfreebsd*-gnu)
                   6385:           LD="${LD-ld} -m elf_i386_fbsd"
                   6386:           ;;
                   6387:         x86_64-*linux*)
                   6388:           LD="${LD-ld} -m elf_i386"
                   6389:           ;;
                   6390:         ppc64-*linux*|powerpc64-*linux*)
                   6391:           LD="${LD-ld} -m elf32ppclinux"
                   6392:           ;;
                   6393:         s390x-*linux*)
                   6394:           LD="${LD-ld} -m elf_s390"
                   6395:           ;;
                   6396:         sparc64-*linux*)
                   6397:           LD="${LD-ld} -m elf32_sparc"
                   6398:           ;;
                   6399:       esac
                   6400:       ;;
                   6401:     *64-bit*)
                   6402:       case $host in
                   6403:         x86_64-*kfreebsd*-gnu)
                   6404:           LD="${LD-ld} -m elf_x86_64_fbsd"
                   6405:           ;;
                   6406:         x86_64-*linux*)
                   6407:           LD="${LD-ld} -m elf_x86_64"
                   6408:           ;;
                   6409:         ppc*-*linux*|powerpc*-*linux*)
                   6410:           LD="${LD-ld} -m elf64ppc"
                   6411:           ;;
                   6412:         s390*-*linux*)
                   6413:           LD="${LD-ld} -m elf64_s390"
                   6414:           ;;
                   6415:         sparc*-*linux*)
                   6416:           LD="${LD-ld} -m elf64_sparc"
                   6417:           ;;
                   6418:       esac
                   6419:       ;;
                   6420:     esac
                   6421:   fi
                   6422:   rm -rf conftest*
                   6423:   ;;
1.25      millert  6424:
1.27      millert  6425: *-*-sco3.2v5*)
                   6426:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
                   6427:   SAVE_CFLAGS="$CFLAGS"
                   6428:   CFLAGS="$CFLAGS -belf"
                   6429:   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
                   6430: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
                   6431: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.23      millert  6432:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6433: else
1.27      millert  6434:   ac_ext=c
                   6435: ac_cpp='$CPP $CPPFLAGS'
                   6436: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   6437: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   6438: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   6439:
                   6440:      cat >conftest.$ac_ext <<_ACEOF
                   6441: /* confdefs.h.  */
                   6442: _ACEOF
                   6443: cat confdefs.h >>conftest.$ac_ext
                   6444: cat >>conftest.$ac_ext <<_ACEOF
                   6445: /* end confdefs.h.  */
                   6446:
                   6447: int
                   6448: main ()
                   6449: {
1.23      millert  6450:
1.27      millert  6451:   ;
                   6452:   return 0;
                   6453: }
                   6454: _ACEOF
                   6455: rm -f conftest.$ac_objext conftest$ac_exeext
                   6456: if { (ac_try="$ac_link"
                   6457: case "(($ac_try" in
                   6458:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6459:   *) ac_try_echo=$ac_try;;
                   6460: esac
                   6461: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6462:   (eval "$ac_link") 2>conftest.er1
                   6463:   ac_status=$?
                   6464:   grep -v '^ *+' conftest.er1 >conftest.err
                   6465:   rm -f conftest.er1
                   6466:   cat conftest.err >&5
                   6467:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6468:   (exit $ac_status); } && {
                   6469:         test -z "$ac_c_werror_flag" ||
                   6470:         test ! -s conftest.err
                   6471:        } && test -s conftest$ac_exeext &&
                   6472:        $as_test_x conftest$ac_exeext; then
                   6473:   lt_cv_cc_needs_belf=yes
1.25      millert  6474: else
1.27      millert  6475:   echo "$as_me: failed program was:" >&5
                   6476: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6477:
1.27      millert  6478:        lt_cv_cc_needs_belf=no
1.25      millert  6479: fi
1.23      millert  6480:
1.27      millert  6481: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   6482:       conftest$ac_exeext conftest.$ac_ext
                   6483:      ac_ext=c
                   6484: ac_cpp='$CPP $CPPFLAGS'
                   6485: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   6486: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   6487: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  6488:
                   6489: fi
1.27      millert  6490: { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
                   6491: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
                   6492:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
                   6493:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
                   6494:     CFLAGS="$SAVE_CFLAGS"
                   6495:   fi
                   6496:   ;;
                   6497: sparc*-*solaris*)
                   6498:   # Find out which ABI we are using.
                   6499:   echo 'int i;' > conftest.$ac_ext
                   6500:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6501:   (eval $ac_compile) 2>&5
                   6502:   ac_status=$?
                   6503:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6504:   (exit $ac_status); }; then
                   6505:     case `/usr/bin/file conftest.o` in
                   6506:     *64-bit*)
                   6507:       case $lt_cv_prog_gnu_ld in
                   6508:       yes*) LD="${LD-ld} -m elf64_sparc" ;;
1.36      millert  6509:       *)
                   6510:         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
                   6511:          LD="${LD-ld} -64"
                   6512:        fi
                   6513:        ;;
1.27      millert  6514:       esac
                   6515:       ;;
                   6516:     esac
                   6517:   fi
                   6518:   rm -rf conftest*
                   6519:   ;;
1.25      millert  6520:
                   6521:
1.27      millert  6522: esac
1.25      millert  6523:
1.27      millert  6524: need_locks="$enable_libtool_lock"
1.25      millert  6525:
                   6526:
                   6527:
1.27      millert  6528: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
                   6529: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
                   6530: if test "${ac_cv_header_stdc+set}" = set; then
                   6531:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6532: else
                   6533:   cat >conftest.$ac_ext <<_ACEOF
                   6534: /* confdefs.h.  */
                   6535: _ACEOF
                   6536: cat confdefs.h >>conftest.$ac_ext
                   6537: cat >>conftest.$ac_ext <<_ACEOF
                   6538: /* end confdefs.h.  */
                   6539: #include <stdlib.h>
                   6540: #include <stdarg.h>
                   6541: #include <string.h>
                   6542: #include <float.h>
1.23      millert  6543:
1.27      millert  6544: int
                   6545: main ()
                   6546: {
1.23      millert  6547:
1.27      millert  6548:   ;
                   6549:   return 0;
                   6550: }
                   6551: _ACEOF
                   6552: rm -f conftest.$ac_objext
                   6553: if { (ac_try="$ac_compile"
                   6554: case "(($ac_try" in
                   6555:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6556:   *) ac_try_echo=$ac_try;;
                   6557: esac
                   6558: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6559:   (eval "$ac_compile") 2>conftest.er1
                   6560:   ac_status=$?
                   6561:   grep -v '^ *+' conftest.er1 >conftest.err
                   6562:   rm -f conftest.er1
                   6563:   cat conftest.err >&5
                   6564:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6565:   (exit $ac_status); } && {
                   6566:         test -z "$ac_c_werror_flag" ||
                   6567:         test ! -s conftest.err
                   6568:        } && test -s conftest.$ac_objext; then
                   6569:   ac_cv_header_stdc=yes
                   6570: else
                   6571:   echo "$as_me: failed program was:" >&5
                   6572: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6573:
1.27      millert  6574:        ac_cv_header_stdc=no
                   6575: fi
1.23      millert  6576:
1.27      millert  6577: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  6578:
1.27      millert  6579: if test $ac_cv_header_stdc = yes; then
                   6580:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   6581:   cat >conftest.$ac_ext <<_ACEOF
                   6582: /* confdefs.h.  */
                   6583: _ACEOF
                   6584: cat confdefs.h >>conftest.$ac_ext
                   6585: cat >>conftest.$ac_ext <<_ACEOF
                   6586: /* end confdefs.h.  */
                   6587: #include <string.h>
1.23      millert  6588:
1.27      millert  6589: _ACEOF
                   6590: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6591:   $EGREP "memchr" >/dev/null 2>&1; then
                   6592:   :
1.25      millert  6593: else
1.27      millert  6594:   ac_cv_header_stdc=no
1.25      millert  6595: fi
1.27      millert  6596: rm -f conftest*
1.23      millert  6597:
1.25      millert  6598: fi
1.23      millert  6599:
1.27      millert  6600: if test $ac_cv_header_stdc = yes; then
                   6601:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   6602:   cat >conftest.$ac_ext <<_ACEOF
                   6603: /* confdefs.h.  */
                   6604: _ACEOF
                   6605: cat confdefs.h >>conftest.$ac_ext
                   6606: cat >>conftest.$ac_ext <<_ACEOF
                   6607: /* end confdefs.h.  */
                   6608: #include <stdlib.h>
                   6609:
                   6610: _ACEOF
                   6611: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6612:   $EGREP "free" >/dev/null 2>&1; then
                   6613:   :
1.25      millert  6614: else
1.27      millert  6615:   ac_cv_header_stdc=no
1.23      millert  6616: fi
1.27      millert  6617: rm -f conftest*
1.23      millert  6618:
                   6619: fi
                   6620:
1.27      millert  6621: if test $ac_cv_header_stdc = yes; then
                   6622:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   6623:   if test "$cross_compiling" = yes; then
                   6624:   :
                   6625: else
                   6626:   cat >conftest.$ac_ext <<_ACEOF
                   6627: /* confdefs.h.  */
                   6628: _ACEOF
                   6629: cat confdefs.h >>conftest.$ac_ext
                   6630: cat >>conftest.$ac_ext <<_ACEOF
                   6631: /* end confdefs.h.  */
                   6632: #include <ctype.h>
                   6633: #include <stdlib.h>
                   6634: #if ((' ' & 0x0FF) == 0x020)
                   6635: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   6636: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   6637: #else
                   6638: # define ISLOWER(c) \
                   6639:                   (('a' <= (c) && (c) <= 'i') \
                   6640:                     || ('j' <= (c) && (c) <= 'r') \
                   6641:                     || ('s' <= (c) && (c) <= 'z'))
                   6642: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   6643: #endif
1.25      millert  6644:
1.27      millert  6645: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   6646: int
                   6647: main ()
                   6648: {
                   6649:   int i;
                   6650:   for (i = 0; i < 256; i++)
                   6651:     if (XOR (islower (i), ISLOWER (i))
                   6652:        || toupper (i) != TOUPPER (i))
                   6653:       return 2;
                   6654:   return 0;
                   6655: }
                   6656: _ACEOF
                   6657: rm -f conftest$ac_exeext
                   6658: if { (ac_try="$ac_link"
                   6659: case "(($ac_try" in
                   6660:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6661:   *) ac_try_echo=$ac_try;;
                   6662: esac
                   6663: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6664:   (eval "$ac_link") 2>&5
                   6665:   ac_status=$?
                   6666:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6667:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   6668:   { (case "(($ac_try" in
                   6669:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6670:   *) ac_try_echo=$ac_try;;
                   6671: esac
                   6672: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6673:   (eval "$ac_try") 2>&5
                   6674:   ac_status=$?
                   6675:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6676:   (exit $ac_status); }; }; then
                   6677:   :
1.25      millert  6678: else
1.27      millert  6679:   echo "$as_me: program exited with status $ac_status" >&5
                   6680: echo "$as_me: failed program was:" >&5
                   6681: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6682:
1.27      millert  6683: ( exit $ac_status )
                   6684: ac_cv_header_stdc=no
1.25      millert  6685: fi
1.27      millert  6686: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.23      millert  6687: fi
                   6688:
                   6689:
                   6690: fi
                   6691: fi
1.27      millert  6692: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
                   6693: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
                   6694: if test $ac_cv_header_stdc = yes; then
                   6695:
                   6696: cat >>confdefs.h <<\_ACEOF
                   6697: #define STDC_HEADERS 1
                   6698: _ACEOF
1.23      millert  6699:
                   6700: fi
                   6701:
1.27      millert  6702: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.23      millert  6703:
                   6704:
                   6705:
                   6706:
                   6707:
                   6708:
                   6709:
                   6710:
                   6711:
1.27      millert  6712: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   6713:                  inttypes.h stdint.h unistd.h
                   6714: do
                   6715: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   6716: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6717: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   6718: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   6719:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6720: else
                   6721:   cat >conftest.$ac_ext <<_ACEOF
                   6722: /* confdefs.h.  */
                   6723: _ACEOF
                   6724: cat confdefs.h >>conftest.$ac_ext
                   6725: cat >>conftest.$ac_ext <<_ACEOF
                   6726: /* end confdefs.h.  */
                   6727: $ac_includes_default
1.23      millert  6728:
1.27      millert  6729: #include <$ac_header>
                   6730: _ACEOF
                   6731: rm -f conftest.$ac_objext
                   6732: if { (ac_try="$ac_compile"
                   6733: case "(($ac_try" in
                   6734:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6735:   *) ac_try_echo=$ac_try;;
                   6736: esac
                   6737: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6738:   (eval "$ac_compile") 2>conftest.er1
                   6739:   ac_status=$?
                   6740:   grep -v '^ *+' conftest.er1 >conftest.err
                   6741:   rm -f conftest.er1
                   6742:   cat conftest.err >&5
                   6743:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6744:   (exit $ac_status); } && {
                   6745:         test -z "$ac_c_werror_flag" ||
                   6746:         test ! -s conftest.err
                   6747:        } && test -s conftest.$ac_objext; then
                   6748:   eval "$as_ac_Header=yes"
                   6749: else
                   6750:   echo "$as_me: failed program was:" >&5
                   6751: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6752:
1.27      millert  6753:        eval "$as_ac_Header=no"
                   6754: fi
1.23      millert  6755:
1.27      millert  6756: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6757: fi
                   6758: ac_res=`eval echo '${'$as_ac_Header'}'`
                   6759:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   6760: echo "${ECHO_T}$ac_res" >&6; }
                   6761: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   6762:   cat >>confdefs.h <<_ACEOF
                   6763: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   6764: _ACEOF
1.23      millert  6765:
1.27      millert  6766: fi
1.23      millert  6767:
1.27      millert  6768: done
1.23      millert  6769:
                   6770:
                   6771:
1.27      millert  6772: for ac_header in dlfcn.h
                   6773: do
                   6774: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   6775: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   6776:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6777: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   6778: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   6779:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6780: fi
                   6781: ac_res=`eval echo '${'$as_ac_Header'}'`
                   6782:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   6783: echo "${ECHO_T}$ac_res" >&6; }
                   6784: else
                   6785:   # Is the header compilable?
                   6786: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   6787: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   6788: cat >conftest.$ac_ext <<_ACEOF
                   6789: /* confdefs.h.  */
                   6790: _ACEOF
                   6791: cat confdefs.h >>conftest.$ac_ext
                   6792: cat >>conftest.$ac_ext <<_ACEOF
                   6793: /* end confdefs.h.  */
                   6794: $ac_includes_default
                   6795: #include <$ac_header>
                   6796: _ACEOF
                   6797: rm -f conftest.$ac_objext
                   6798: if { (ac_try="$ac_compile"
                   6799: case "(($ac_try" in
                   6800:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6801:   *) ac_try_echo=$ac_try;;
                   6802: esac
                   6803: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6804:   (eval "$ac_compile") 2>conftest.er1
                   6805:   ac_status=$?
                   6806:   grep -v '^ *+' conftest.er1 >conftest.err
                   6807:   rm -f conftest.er1
                   6808:   cat conftest.err >&5
                   6809:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6810:   (exit $ac_status); } && {
                   6811:         test -z "$ac_c_werror_flag" ||
                   6812:         test ! -s conftest.err
                   6813:        } && test -s conftest.$ac_objext; then
                   6814:   ac_header_compiler=yes
                   6815: else
                   6816:   echo "$as_me: failed program was:" >&5
                   6817: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6818:
1.27      millert  6819:        ac_header_compiler=no
                   6820: fi
1.23      millert  6821:
1.27      millert  6822: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6823: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   6824: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.23      millert  6825:
1.27      millert  6826: # Is the header present?
                   6827: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   6828: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   6829: cat >conftest.$ac_ext <<_ACEOF
                   6830: /* confdefs.h.  */
                   6831: _ACEOF
                   6832: cat confdefs.h >>conftest.$ac_ext
                   6833: cat >>conftest.$ac_ext <<_ACEOF
                   6834: /* end confdefs.h.  */
                   6835: #include <$ac_header>
                   6836: _ACEOF
                   6837: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   6838: case "(($ac_try" in
                   6839:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6840:   *) ac_try_echo=$ac_try;;
                   6841: esac
                   6842: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6843:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   6844:   ac_status=$?
                   6845:   grep -v '^ *+' conftest.er1 >conftest.err
                   6846:   rm -f conftest.er1
                   6847:   cat conftest.err >&5
                   6848:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6849:   (exit $ac_status); } >/dev/null && {
                   6850:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   6851:         test ! -s conftest.err
                   6852:        }; then
                   6853:   ac_header_preproc=yes
                   6854: else
                   6855:   echo "$as_me: failed program was:" >&5
                   6856: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6857:
1.27      millert  6858:   ac_header_preproc=no
                   6859: fi
1.23      millert  6860:
1.27      millert  6861: rm -f conftest.err conftest.$ac_ext
                   6862: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   6863: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.23      millert  6864:
1.27      millert  6865: # So?  What about this header?
                   6866: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   6867:   yes:no: )
                   6868:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   6869: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   6870:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   6871: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   6872:     ac_header_preproc=yes
                   6873:     ;;
                   6874:   no:yes:* )
                   6875:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   6876: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   6877:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   6878: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   6879:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   6880: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   6881:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   6882: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   6883:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   6884: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   6885:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   6886: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  6887:     ( cat <<\_ASBOX
                   6888: ## --------------------------------------- ##
                   6889: ## Report this to http://www.sudo.ws/bugs/ ##
                   6890: ## --------------------------------------- ##
                   6891: _ASBOX
                   6892:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.27      millert  6893:     ;;
                   6894: esac
                   6895: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6896: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   6897: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  6898:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6899: else
1.27      millert  6900:   eval "$as_ac_Header=\$ac_header_preproc"
                   6901: fi
                   6902: ac_res=`eval echo '${'$as_ac_Header'}'`
                   6903:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   6904: echo "${ECHO_T}$ac_res" >&6; }
                   6905:
                   6906: fi
                   6907: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   6908:   cat >>confdefs.h <<_ACEOF
                   6909: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   6910: _ACEOF
                   6911:
                   6912: fi
1.23      millert  6913:
1.27      millert  6914: done
1.23      millert  6915:
                   6916:
1.27      millert  6917: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
                   6918: # find the maximum length of command line arguments
                   6919: { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
                   6920: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
                   6921: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
                   6922:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6923: else
                   6924:     i=0
                   6925:   teststring="ABCD"
                   6926:
                   6927:   case $build_os in
                   6928:   msdosdjgpp*)
                   6929:     # On DJGPP, this test can blow up pretty badly due to problems in libc
                   6930:     # (any single argument exceeding 2000 bytes causes a buffer overrun
                   6931:     # during glob expansion).  Even if it were fixed, the result of this
                   6932:     # check would be larger than it should be.
                   6933:     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
                   6934:     ;;
                   6935:
                   6936:   gnu*)
                   6937:     # Under GNU Hurd, this test is not required because there is
                   6938:     # no limit to the length of command line arguments.
                   6939:     # Libtool will interpret -1 as no limit whatsoever
                   6940:     lt_cv_sys_max_cmd_len=-1;
                   6941:     ;;
                   6942:
                   6943:   cygwin* | mingw*)
                   6944:     # On Win9x/ME, this test blows up -- it succeeds, but takes
                   6945:     # about 5 minutes as the teststring grows exponentially.
                   6946:     # Worse, since 9x/ME are not pre-emptively multitasking,
                   6947:     # you end up with a "frozen" computer, even though with patience
                   6948:     # the test eventually succeeds (with a max line length of 256k).
                   6949:     # Instead, let's just punt: use the minimum linelength reported by
                   6950:     # all of the supported platforms: 8192 (on NT/2K/XP).
                   6951:     lt_cv_sys_max_cmd_len=8192;
                   6952:     ;;
                   6953:
                   6954:   amigaos*)
                   6955:     # On AmigaOS with pdksh, this test takes hours, literally.
                   6956:     # So we just punt and use a minimum line length of 8192.
                   6957:     lt_cv_sys_max_cmd_len=8192;
                   6958:     ;;
                   6959:
                   6960:   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
                   6961:     # This has been around since 386BSD, at least.  Likely further.
                   6962:     if test -x /sbin/sysctl; then
                   6963:       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
                   6964:     elif test -x /usr/sbin/sysctl; then
                   6965:       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
                   6966:     else
                   6967:       lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
                   6968:     fi
                   6969:     # And add a safety zone
                   6970:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   6971:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   6972:     ;;
                   6973:
                   6974:   interix*)
                   6975:     # We know the value 262144 and hardcode it with a safety zone (like BSD)
                   6976:     lt_cv_sys_max_cmd_len=196608
                   6977:     ;;
                   6978:
                   6979:   osf*)
                   6980:     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
                   6981:     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
                   6982:     # nice to cause kernel panics so lets avoid the loop below.
                   6983:     # First set a reasonable default.
                   6984:     lt_cv_sys_max_cmd_len=16384
                   6985:     #
                   6986:     if test -x /sbin/sysconfig; then
                   6987:       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
                   6988:         *1*) lt_cv_sys_max_cmd_len=-1 ;;
                   6989:       esac
                   6990:     fi
                   6991:     ;;
                   6992:   sco3.2v5*)
                   6993:     lt_cv_sys_max_cmd_len=102400
                   6994:     ;;
                   6995:   sysv5* | sco5v6* | sysv4.2uw2*)
                   6996:     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
                   6997:     if test -n "$kargmax"; then
                   6998:       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[        ]//'`
                   6999:     else
                   7000:       lt_cv_sys_max_cmd_len=32768
                   7001:     fi
                   7002:     ;;
                   7003:   *)
                   7004:     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
                   7005:     if test -n "$lt_cv_sys_max_cmd_len"; then
                   7006:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   7007:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   7008:     else
                   7009:       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
                   7010:       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
                   7011:               = "XX$teststring") >/dev/null 2>&1 &&
                   7012:              new_result=`expr "X$teststring" : ".*" 2>&1` &&
                   7013:              lt_cv_sys_max_cmd_len=$new_result &&
                   7014:              test $i != 17 # 1/2 MB should be enough
                   7015:       do
                   7016:         i=`expr $i + 1`
                   7017:         teststring=$teststring$teststring
                   7018:       done
                   7019:       teststring=
                   7020:       # Add a significant safety factor because C++ compilers can tack on massive
                   7021:       # amounts of additional arguments before passing them to the linker.
                   7022:       # It appears as though 1/2 is a usable value.
                   7023:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
                   7024:     fi
                   7025:     ;;
                   7026:   esac
                   7027:
                   7028: fi
                   7029:
                   7030: if test -n $lt_cv_sys_max_cmd_len ; then
                   7031:   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
                   7032: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
                   7033: else
                   7034:   { echo "$as_me:$LINENO: result: none" >&5
                   7035: echo "${ECHO_T}none" >&6; }
                   7036: fi
                   7037:
                   7038:
                   7039:
                   7040:
                   7041:
                   7042: # Check for command to grab the raw symbol name followed by C symbol from nm.
                   7043: { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
                   7044: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
                   7045: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
                   7046:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7047: else
                   7048:
                   7049: # These are sane defaults that work on at least a few old systems.
                   7050: # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
                   7051:
                   7052: # Character class describing NM global symbol codes.
                   7053: symcode='[BCDEGRST]'
                   7054:
                   7055: # Regexp to match symbols that can be accessed directly from C.
                   7056: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
                   7057:
                   7058: # Transform an extracted symbol line into a proper C declaration
                   7059: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
                   7060:
                   7061: # Transform an extracted symbol line into symbol name and symbol address
                   7062: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
1.23      millert  7063:
1.25      millert  7064: # Define system-specific variables.
                   7065: case $host_os in
                   7066: aix*)
                   7067:   symcode='[BCDT]'
                   7068:   ;;
                   7069: cygwin* | mingw* | pw32*)
                   7070:   symcode='[ABCDGISTW]'
                   7071:   ;;
1.27      millert  7072: hpux*) # Its linker distinguishes data from code symbols
1.25      millert  7073:   if test "$host_cpu" = ia64; then
                   7074:     symcode='[ABCDEGRST]'
                   7075:   fi
1.27      millert  7076:   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
                   7077:   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
                   7078:   ;;
                   7079: linux* | k*bsd*-gnu)
                   7080:   if test "$host_cpu" = ia64; then
                   7081:     symcode='[ABCDGIRSTW]'
                   7082:     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
                   7083:     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
                   7084:   fi
1.25      millert  7085:   ;;
                   7086: irix* | nonstopux*)
                   7087:   symcode='[BCDEGRST]'
                   7088:   ;;
                   7089: osf*)
                   7090:   symcode='[BCDEGQRST]'
                   7091:   ;;
1.27      millert  7092: solaris*)
1.25      millert  7093:   symcode='[BDRT]'
                   7094:   ;;
1.27      millert  7095: sco3.2v5*)
                   7096:   symcode='[DT]'
                   7097:   ;;
                   7098: sysv4.2uw2*)
                   7099:   symcode='[DT]'
                   7100:   ;;
                   7101: sysv5* | sco5v6* | unixware* | OpenUNIX*)
                   7102:   symcode='[ABDT]'
                   7103:   ;;
1.25      millert  7104: sysv4)
                   7105:   symcode='[DFNSTU]'
                   7106:   ;;
                   7107: esac
1.23      millert  7108:
1.25      millert  7109: # Handle CRLF in mingw tool chain
                   7110: opt_cr=
                   7111: case $build_os in
                   7112: mingw*)
1.27      millert  7113:   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1.25      millert  7114:   ;;
                   7115: esac
                   7116:
1.27      millert  7117: # If we're using GNU nm, then use its standard symbol codes.
                   7118: case `$NM -V 2>&1` in
                   7119: *GNU* | *'with BFD'*)
                   7120:   symcode='[ABCDGIRSTW]' ;;
                   7121: esac
                   7122:
                   7123: # Try without a prefix undercore, then with it.
1.25      millert  7124: for ac_symprfx in "" "_"; do
                   7125:
1.27      millert  7126:   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
                   7127:   symxfrm="\\1 $ac_symprfx\\2 \\2"
                   7128:
1.25      millert  7129:   # Write the raw and C identifiers.
1.27      millert  7130:   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.23      millert  7131:
1.25      millert  7132:   # Check to see that the pipe works correctly.
                   7133:   pipe_works=no
                   7134:
                   7135:   rm -f conftest*
1.27      millert  7136:   cat > conftest.$ac_ext <<EOF
1.25      millert  7137: #ifdef __cplusplus
                   7138: extern "C" {
                   7139: #endif
                   7140: char nm_test_var;
                   7141: void nm_test_func(){}
                   7142: #ifdef __cplusplus
                   7143: }
                   7144: #endif
                   7145: int main(){nm_test_var='a';nm_test_func();return(0);}
1.27      millert  7146: EOF
1.25      millert  7147:
                   7148:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   7149:   (eval $ac_compile) 2>&5
1.23      millert  7150:   ac_status=$?
                   7151:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  7152:   (exit $ac_status); }; then
                   7153:     # Now try to grab the symbols.
                   7154:     nlist=conftest.nm
                   7155:     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
                   7156:   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
1.23      millert  7157:   ac_status=$?
                   7158:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  7159:   (exit $ac_status); } && test -s "$nlist"; then
                   7160:       # Try sorting and uniquifying the output.
                   7161:       if sort "$nlist" | uniq > "$nlist"T; then
                   7162:        mv -f "$nlist"T "$nlist"
                   7163:       else
                   7164:        rm -f "$nlist"T
                   7165:       fi
                   7166:
                   7167:       # Make sure that we snagged all the symbols we need.
1.27      millert  7168:       if grep ' nm_test_var$' "$nlist" >/dev/null; then
                   7169:        if grep ' nm_test_func$' "$nlist" >/dev/null; then
                   7170:          cat <<EOF > conftest.$ac_ext
1.25      millert  7171: #ifdef __cplusplus
                   7172: extern "C" {
                   7173: #endif
                   7174:
1.27      millert  7175: EOF
1.25      millert  7176:          # Now generate the symbol file.
1.27      millert  7177:          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
1.23      millert  7178:
1.27      millert  7179:          cat <<EOF >> conftest.$ac_ext
                   7180: #if defined (__STDC__) && __STDC__
                   7181: # define lt_ptr_t void *
                   7182: #else
                   7183: # define lt_ptr_t char *
                   7184: # define const
                   7185: #endif
1.23      millert  7186:
1.27      millert  7187: /* The mapping between symbol names and symbols. */
1.25      millert  7188: const struct {
                   7189:   const char *name;
1.27      millert  7190:   lt_ptr_t address;
1.25      millert  7191: }
1.27      millert  7192: lt_preloaded_symbols[] =
1.23      millert  7193: {
1.27      millert  7194: EOF
                   7195:          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
                   7196:          cat <<\EOF >> conftest.$ac_ext
                   7197:   {0, (lt_ptr_t) 0}
1.25      millert  7198: };
                   7199:
                   7200: #ifdef __cplusplus
1.23      millert  7201: }
1.25      millert  7202: #endif
1.27      millert  7203: EOF
1.25      millert  7204:          # Now try linking the two files.
                   7205:          mv conftest.$ac_objext conftstm.$ac_objext
                   7206:          lt_save_LIBS="$LIBS"
                   7207:          lt_save_CFLAGS="$CFLAGS"
                   7208:          LIBS="conftstm.$ac_objext"
                   7209:          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
                   7210:          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   7211:   (eval $ac_link) 2>&5
1.23      millert  7212:   ac_status=$?
                   7213:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  7214:   (exit $ac_status); } && test -s conftest${ac_exeext}; then
                   7215:            pipe_works=yes
                   7216:          fi
                   7217:          LIBS="$lt_save_LIBS"
                   7218:          CFLAGS="$lt_save_CFLAGS"
                   7219:        else
                   7220:          echo "cannot find nm_test_func in $nlist" >&5
                   7221:        fi
                   7222:       else
                   7223:        echo "cannot find nm_test_var in $nlist" >&5
                   7224:       fi
                   7225:     else
                   7226:       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
                   7227:     fi
                   7228:   else
                   7229:     echo "$progname: failed program was:" >&5
                   7230:     cat conftest.$ac_ext >&5
                   7231:   fi
1.36      millert  7232:   rm -rf conftest* conftst*
1.25      millert  7233:
                   7234:   # Do not use the global_symbol_pipe unless it works.
                   7235:   if test "$pipe_works" = yes; then
                   7236:     break
                   7237:   else
                   7238:     lt_cv_sys_global_symbol_pipe=
                   7239:   fi
                   7240: done
1.23      millert  7241:
                   7242: fi
                   7243:
1.25      millert  7244: if test -z "$lt_cv_sys_global_symbol_pipe"; then
                   7245:   lt_cv_sys_global_symbol_to_cdecl=
                   7246: fi
                   7247: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.27      millert  7248:   { echo "$as_me:$LINENO: result: failed" >&5
                   7249: echo "${ECHO_T}failed" >&6; }
1.25      millert  7250: else
1.27      millert  7251:   { echo "$as_me:$LINENO: result: ok" >&5
                   7252: echo "${ECHO_T}ok" >&6; }
1.23      millert  7253: fi
1.25      millert  7254:
1.27      millert  7255: { echo "$as_me:$LINENO: checking for objdir" >&5
                   7256: echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
                   7257: if test "${lt_cv_objdir+set}" = set; then
                   7258:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7259: else
                   7260:   rm -f .libs 2>/dev/null
                   7261: mkdir .libs 2>/dev/null
                   7262: if test -d .libs; then
                   7263:   lt_cv_objdir=.libs
                   7264: else
                   7265:   # MS-DOS does not allow filenames that begin with a dot.
                   7266:   lt_cv_objdir=_libs
                   7267: fi
                   7268: rmdir .libs 2>/dev/null
                   7269: fi
                   7270: { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
                   7271: echo "${ECHO_T}$lt_cv_objdir" >&6; }
                   7272: objdir=$lt_cv_objdir
1.25      millert  7273:
                   7274:
                   7275:
                   7276:
                   7277:
1.27      millert  7278: case $host_os in
                   7279: aix3*)
                   7280:   # AIX sometimes has problems with the GCC collect2 program.  For some
                   7281:   # reason, if we set the COLLECT_NAMES environment variable, the problems
                   7282:   # vanish in a puff of smoke.
                   7283:   if test "X${COLLECT_NAMES+set}" != Xset; then
                   7284:     COLLECT_NAMES=
                   7285:     export COLLECT_NAMES
                   7286:   fi
                   7287:   ;;
                   7288: esac
1.25      millert  7289:
1.27      millert  7290: # Sed substitution that helps us do robust quoting.  It backslashifies
                   7291: # metacharacters that are still active within double-quoted strings.
                   7292: Xsed='sed -e 1s/^X//'
                   7293: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
1.25      millert  7294:
1.27      millert  7295: # Same as above, but do not quote variable references.
                   7296: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
1.25      millert  7297:
1.27      millert  7298: # Sed substitution to delay expansion of an escaped shell variable in a
                   7299: # double_quote_subst'ed string.
                   7300: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.25      millert  7301:
1.27      millert  7302: # Sed substitution to avoid accidental globbing in evaled expressions
                   7303: no_glob_subst='s/\*/\\\*/g'
1.25      millert  7304:
1.27      millert  7305: # Constants:
                   7306: rm="rm -f"
1.25      millert  7307:
1.27      millert  7308: # Global variables:
                   7309: default_ofile=libtool
                   7310: can_build_shared=yes
1.25      millert  7311:
1.27      millert  7312: # All known linkers require a `.a' archive for static linking (except MSVC,
                   7313: # which needs '.lib').
                   7314: libext=a
                   7315: ltmain="$ac_aux_dir/ltmain.sh"
                   7316: ofile="$default_ofile"
                   7317: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.25      millert  7318:
1.27      millert  7319: if test -n "$ac_tool_prefix"; then
                   7320:   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
                   7321: set dummy ${ac_tool_prefix}ar; ac_word=$2
                   7322: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7323: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7324: if test "${ac_cv_prog_AR+set}" = set; then
                   7325:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7326: else
                   7327:   if test -n "$AR"; then
                   7328:   ac_cv_prog_AR="$AR" # Let the user override the test.
                   7329: else
                   7330: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7331: for as_dir in $PATH
                   7332: do
                   7333:   IFS=$as_save_IFS
                   7334:   test -z "$as_dir" && as_dir=.
                   7335:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7336:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7337:     ac_cv_prog_AR="${ac_tool_prefix}ar"
                   7338:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7339:     break 2
                   7340:   fi
                   7341: done
                   7342: done
                   7343: IFS=$as_save_IFS
1.25      millert  7344:
1.27      millert  7345: fi
                   7346: fi
                   7347: AR=$ac_cv_prog_AR
                   7348: if test -n "$AR"; then
                   7349:   { echo "$as_me:$LINENO: result: $AR" >&5
                   7350: echo "${ECHO_T}$AR" >&6; }
                   7351: else
                   7352:   { echo "$as_me:$LINENO: result: no" >&5
                   7353: echo "${ECHO_T}no" >&6; }
                   7354: fi
1.25      millert  7355:
                   7356:
1.27      millert  7357: fi
                   7358: if test -z "$ac_cv_prog_AR"; then
                   7359:   ac_ct_AR=$AR
                   7360:   # Extract the first word of "ar", so it can be a program name with args.
                   7361: set dummy ar; ac_word=$2
                   7362: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7363: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7364: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
                   7365:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7366: else
                   7367:   if test -n "$ac_ct_AR"; then
                   7368:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
                   7369: else
                   7370: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7371: for as_dir in $PATH
                   7372: do
                   7373:   IFS=$as_save_IFS
                   7374:   test -z "$as_dir" && as_dir=.
                   7375:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7376:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7377:     ac_cv_prog_ac_ct_AR="ar"
                   7378:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7379:     break 2
                   7380:   fi
                   7381: done
                   7382: done
                   7383: IFS=$as_save_IFS
1.25      millert  7384:
1.27      millert  7385: fi
                   7386: fi
                   7387: ac_ct_AR=$ac_cv_prog_ac_ct_AR
                   7388: if test -n "$ac_ct_AR"; then
                   7389:   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
                   7390: echo "${ECHO_T}$ac_ct_AR" >&6; }
                   7391: else
                   7392:   { echo "$as_me:$LINENO: result: no" >&5
                   7393: echo "${ECHO_T}no" >&6; }
                   7394: fi
1.25      millert  7395:
1.27      millert  7396:   if test "x$ac_ct_AR" = x; then
                   7397:     AR="false"
                   7398:   else
                   7399:     case $cross_compiling:$ac_tool_warned in
                   7400: yes:)
                   7401: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7402: whose name does not start with the host triplet.  If you think this
                   7403: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7404: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7405: whose name does not start with the host triplet.  If you think this
                   7406: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7407: ac_tool_warned=yes ;;
                   7408: esac
                   7409:     AR=$ac_ct_AR
                   7410:   fi
                   7411: else
                   7412:   AR="$ac_cv_prog_AR"
                   7413: fi
1.25      millert  7414:
1.27      millert  7415: if test -n "$ac_tool_prefix"; then
                   7416:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   7417: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   7418: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7419: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7420: if test "${ac_cv_prog_RANLIB+set}" = set; then
                   7421:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7422: else
                   7423:   if test -n "$RANLIB"; then
                   7424:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   7425: else
                   7426: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7427: for as_dir in $PATH
                   7428: do
                   7429:   IFS=$as_save_IFS
                   7430:   test -z "$as_dir" && as_dir=.
                   7431:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7432:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7433:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   7434:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7435:     break 2
                   7436:   fi
                   7437: done
                   7438: done
                   7439: IFS=$as_save_IFS
1.25      millert  7440:
1.27      millert  7441: fi
                   7442: fi
                   7443: RANLIB=$ac_cv_prog_RANLIB
                   7444: if test -n "$RANLIB"; then
                   7445:   { echo "$as_me:$LINENO: result: $RANLIB" >&5
                   7446: echo "${ECHO_T}$RANLIB" >&6; }
                   7447: else
                   7448:   { echo "$as_me:$LINENO: result: no" >&5
                   7449: echo "${ECHO_T}no" >&6; }
                   7450: fi
1.25      millert  7451:
                   7452:
1.27      millert  7453: fi
                   7454: if test -z "$ac_cv_prog_RANLIB"; then
                   7455:   ac_ct_RANLIB=$RANLIB
                   7456:   # Extract the first word of "ranlib", so it can be a program name with args.
                   7457: set dummy ranlib; ac_word=$2
                   7458: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7459: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7460: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1.23      millert  7461:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7462: else
1.27      millert  7463:   if test -n "$ac_ct_RANLIB"; then
                   7464:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.23      millert  7465: else
1.27      millert  7466: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7467: for as_dir in $PATH
                   7468: do
                   7469:   IFS=$as_save_IFS
                   7470:   test -z "$as_dir" && as_dir=.
                   7471:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7472:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7473:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   7474:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7475:     break 2
                   7476:   fi
                   7477: done
                   7478: done
                   7479: IFS=$as_save_IFS
1.23      millert  7480:
                   7481: fi
1.27      millert  7482: fi
                   7483: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   7484: if test -n "$ac_ct_RANLIB"; then
                   7485:   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
                   7486: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
1.23      millert  7487: else
1.27      millert  7488:   { echo "$as_me:$LINENO: result: no" >&5
                   7489: echo "${ECHO_T}no" >&6; }
1.25      millert  7490: fi
1.23      millert  7491:
1.27      millert  7492:   if test "x$ac_ct_RANLIB" = x; then
                   7493:     RANLIB=":"
                   7494:   else
                   7495:     case $cross_compiling:$ac_tool_warned in
                   7496: yes:)
                   7497: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7498: whose name does not start with the host triplet.  If you think this
                   7499: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7500: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7501: whose name does not start with the host triplet.  If you think this
                   7502: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7503: ac_tool_warned=yes ;;
                   7504: esac
                   7505:     RANLIB=$ac_ct_RANLIB
                   7506:   fi
                   7507: else
                   7508:   RANLIB="$ac_cv_prog_RANLIB"
1.23      millert  7509: fi
1.25      millert  7510:
1.27      millert  7511: if test -n "$ac_tool_prefix"; then
                   7512:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   7513: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   7514: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7515: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7516: if test "${ac_cv_prog_STRIP+set}" = set; then
                   7517:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7518: else
                   7519:   if test -n "$STRIP"; then
                   7520:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
                   7521: else
                   7522: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7523: for as_dir in $PATH
                   7524: do
                   7525:   IFS=$as_save_IFS
                   7526:   test -z "$as_dir" && as_dir=.
                   7527:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7528:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7529:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   7530:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7531:     break 2
                   7532:   fi
                   7533: done
                   7534: done
                   7535: IFS=$as_save_IFS
1.25      millert  7536:
1.27      millert  7537: fi
                   7538: fi
                   7539: STRIP=$ac_cv_prog_STRIP
                   7540: if test -n "$STRIP"; then
                   7541:   { echo "$as_me:$LINENO: result: $STRIP" >&5
                   7542: echo "${ECHO_T}$STRIP" >&6; }
1.25      millert  7543: else
1.27      millert  7544:   { echo "$as_me:$LINENO: result: no" >&5
                   7545: echo "${ECHO_T}no" >&6; }
1.25      millert  7546: fi
1.27      millert  7547:
1.25      millert  7548:
                   7549: fi
1.27      millert  7550: if test -z "$ac_cv_prog_STRIP"; then
                   7551:   ac_ct_STRIP=$STRIP
                   7552:   # Extract the first word of "strip", so it can be a program name with args.
                   7553: set dummy strip; ac_word=$2
                   7554: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7555: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7556: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
                   7557:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  7558: else
1.27      millert  7559:   if test -n "$ac_ct_STRIP"; then
                   7560:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.23      millert  7561: else
1.27      millert  7562: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7563: for as_dir in $PATH
                   7564: do
                   7565:   IFS=$as_save_IFS
                   7566:   test -z "$as_dir" && as_dir=.
                   7567:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7568:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7569:     ac_cv_prog_ac_ct_STRIP="strip"
                   7570:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7571:     break 2
                   7572:   fi
                   7573: done
                   7574: done
                   7575: IFS=$as_save_IFS
1.23      millert  7576:
1.25      millert  7577: fi
                   7578: fi
1.27      millert  7579: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   7580: if test -n "$ac_ct_STRIP"; then
                   7581:   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
                   7582: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
                   7583: else
                   7584:   { echo "$as_me:$LINENO: result: no" >&5
                   7585: echo "${ECHO_T}no" >&6; }
1.23      millert  7586: fi
1.25      millert  7587:
1.27      millert  7588:   if test "x$ac_ct_STRIP" = x; then
                   7589:     STRIP=":"
                   7590:   else
                   7591:     case $cross_compiling:$ac_tool_warned in
                   7592: yes:)
                   7593: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7594: whose name does not start with the host triplet.  If you think this
                   7595: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7596: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7597: whose name does not start with the host triplet.  If you think this
                   7598: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7599: ac_tool_warned=yes ;;
                   7600: esac
                   7601:     STRIP=$ac_ct_STRIP
                   7602:   fi
                   7603: else
                   7604:   STRIP="$ac_cv_prog_STRIP"
1.23      millert  7605: fi
                   7606:
1.25      millert  7607:
1.27      millert  7608: old_CC="$CC"
                   7609: old_CFLAGS="$CFLAGS"
1.25      millert  7610:
1.27      millert  7611: # Set sane defaults for various variables
                   7612: test -z "$AR" && AR=ar
                   7613: test -z "$AR_FLAGS" && AR_FLAGS=cru
                   7614: test -z "$AS" && AS=as
                   7615: test -z "$CC" && CC=cc
                   7616: test -z "$LTCC" && LTCC=$CC
                   7617: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
                   7618: test -z "$DLLTOOL" && DLLTOOL=dlltool
                   7619: test -z "$LD" && LD=ld
                   7620: test -z "$LN_S" && LN_S="ln -s"
                   7621: test -z "$MAGIC_CMD" && MAGIC_CMD=file
                   7622: test -z "$NM" && NM=nm
                   7623: test -z "$SED" && SED=sed
                   7624: test -z "$OBJDUMP" && OBJDUMP=objdump
                   7625: test -z "$RANLIB" && RANLIB=:
                   7626: test -z "$STRIP" && STRIP=:
                   7627: test -z "$ac_objext" && ac_objext=o
1.25      millert  7628:
1.27      millert  7629: # Determine commands to create old-style static archives.
                   7630: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
                   7631: old_postinstall_cmds='chmod 644 $oldlib'
                   7632: old_postuninstall_cmds=
1.25      millert  7633:
1.27      millert  7634: if test -n "$RANLIB"; then
                   7635:   case $host_os in
                   7636:   openbsd*)
                   7637:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
                   7638:     ;;
                   7639:   *)
                   7640:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
                   7641:     ;;
                   7642:   esac
                   7643:   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
                   7644: fi
1.25      millert  7645:
1.27      millert  7646: for cc_temp in $compiler""; do
                   7647:   case $cc_temp in
                   7648:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
                   7649:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
                   7650:     \-*) ;;
                   7651:     *) break;;
                   7652:   esac
                   7653: done
                   7654: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.25      millert  7655:
                   7656:
1.27      millert  7657: # Only perform the check for file, if the check method requires it
                   7658: case $deplibs_check_method in
                   7659: file_magic*)
                   7660:   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
                   7661:     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
                   7662: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
                   7663: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.23      millert  7664:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7665: else
1.27      millert  7666:   case $MAGIC_CMD in
                   7667: [\\/*] |  ?:[\\/]*)
                   7668:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   7669:   ;;
                   7670: *)
                   7671:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   7672:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   7673:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   7674:   for ac_dir in $ac_dummy; do
                   7675:     IFS="$lt_save_ifs"
                   7676:     test -z "$ac_dir" && ac_dir=.
                   7677:     if test -f $ac_dir/${ac_tool_prefix}file; then
                   7678:       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
                   7679:       if test -n "$file_magic_test_file"; then
                   7680:        case $deplibs_check_method in
                   7681:        "file_magic "*)
                   7682:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   7683:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7684:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   7685:            $EGREP "$file_magic_regex" > /dev/null; then
                   7686:            :
                   7687:          else
                   7688:            cat <<EOF 1>&2
1.25      millert  7689:
1.27      millert  7690: *** Warning: the command libtool uses to detect shared libraries,
                   7691: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   7692: *** The result is that libtool may fail to recognize shared libraries
                   7693: *** as such.  This will affect the creation of libtool libraries that
                   7694: *** depend on shared libraries, but programs linked with such libtool
                   7695: *** libraries will work regardless of this problem.  Nevertheless, you
                   7696: *** may want to report the problem to your system manager and/or to
                   7697: *** bug-libtool@gnu.org
1.23      millert  7698:
1.27      millert  7699: EOF
                   7700:          fi ;;
                   7701:        esac
                   7702:       fi
                   7703:       break
                   7704:     fi
                   7705:   done
                   7706:   IFS="$lt_save_ifs"
                   7707:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   7708:   ;;
                   7709: esac
1.25      millert  7710: fi
                   7711:
1.27      millert  7712: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7713: if test -n "$MAGIC_CMD"; then
                   7714:   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
                   7715: echo "${ECHO_T}$MAGIC_CMD" >&6; }
                   7716: else
                   7717:   { echo "$as_me:$LINENO: result: no" >&5
                   7718: echo "${ECHO_T}no" >&6; }
1.23      millert  7719: fi
                   7720:
1.27      millert  7721: if test -z "$lt_cv_path_MAGIC_CMD"; then
                   7722:   if test -n "$ac_tool_prefix"; then
                   7723:     { echo "$as_me:$LINENO: checking for file" >&5
                   7724: echo $ECHO_N "checking for file... $ECHO_C" >&6; }
                   7725: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.25      millert  7726:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7727: else
1.27      millert  7728:   case $MAGIC_CMD in
                   7729: [\\/*] |  ?:[\\/]*)
                   7730:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   7731:   ;;
                   7732: *)
                   7733:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   7734:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   7735:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   7736:   for ac_dir in $ac_dummy; do
                   7737:     IFS="$lt_save_ifs"
                   7738:     test -z "$ac_dir" && ac_dir=.
                   7739:     if test -f $ac_dir/file; then
                   7740:       lt_cv_path_MAGIC_CMD="$ac_dir/file"
                   7741:       if test -n "$file_magic_test_file"; then
                   7742:        case $deplibs_check_method in
                   7743:        "file_magic "*)
                   7744:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   7745:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7746:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   7747:            $EGREP "$file_magic_regex" > /dev/null; then
                   7748:            :
                   7749:          else
                   7750:            cat <<EOF 1>&2
1.25      millert  7751:
1.27      millert  7752: *** Warning: the command libtool uses to detect shared libraries,
                   7753: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   7754: *** The result is that libtool may fail to recognize shared libraries
                   7755: *** as such.  This will affect the creation of libtool libraries that
                   7756: *** depend on shared libraries, but programs linked with such libtool
                   7757: *** libraries will work regardless of this problem.  Nevertheless, you
                   7758: *** may want to report the problem to your system manager and/or to
                   7759: *** bug-libtool@gnu.org
1.23      millert  7760:
1.27      millert  7761: EOF
                   7762:          fi ;;
                   7763:        esac
                   7764:       fi
                   7765:       break
                   7766:     fi
                   7767:   done
                   7768:   IFS="$lt_save_ifs"
                   7769:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   7770:   ;;
                   7771: esac
1.25      millert  7772: fi
1.27      millert  7773:
                   7774: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7775: if test -n "$MAGIC_CMD"; then
                   7776:   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
                   7777: echo "${ECHO_T}$MAGIC_CMD" >&6; }
                   7778: else
                   7779:   { echo "$as_me:$LINENO: result: no" >&5
                   7780: echo "${ECHO_T}no" >&6; }
1.25      millert  7781: fi
                   7782:
1.27      millert  7783:   else
                   7784:     MAGIC_CMD=:
                   7785:   fi
1.23      millert  7786: fi
                   7787:
1.27      millert  7788:   fi
                   7789:   ;;
                   7790: esac
1.23      millert  7791:
1.36      millert  7792:
                   7793:   case $host_os in
                   7794:     rhapsody* | darwin*)
                   7795:     if test -n "$ac_tool_prefix"; then
                   7796:   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
                   7797: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
                   7798: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7799: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7800: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
                   7801:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7802: else
                   7803:   if test -n "$DSYMUTIL"; then
                   7804:   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
                   7805: else
                   7806: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7807: for as_dir in $PATH
                   7808: do
                   7809:   IFS=$as_save_IFS
                   7810:   test -z "$as_dir" && as_dir=.
                   7811:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7812:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7813:     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
                   7814:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7815:     break 2
                   7816:   fi
                   7817: done
                   7818: done
                   7819: IFS=$as_save_IFS
                   7820:
                   7821: fi
                   7822: fi
                   7823: DSYMUTIL=$ac_cv_prog_DSYMUTIL
                   7824: if test -n "$DSYMUTIL"; then
                   7825:   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
                   7826: echo "${ECHO_T}$DSYMUTIL" >&6; }
                   7827: else
                   7828:   { echo "$as_me:$LINENO: result: no" >&5
                   7829: echo "${ECHO_T}no" >&6; }
                   7830: fi
                   7831:
                   7832:
                   7833: fi
                   7834: if test -z "$ac_cv_prog_DSYMUTIL"; then
                   7835:   ac_ct_DSYMUTIL=$DSYMUTIL
                   7836:   # Extract the first word of "dsymutil", so it can be a program name with args.
                   7837: set dummy dsymutil; ac_word=$2
                   7838: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7839: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7840: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
                   7841:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7842: else
                   7843:   if test -n "$ac_ct_DSYMUTIL"; then
                   7844:   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
                   7845: else
                   7846: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7847: for as_dir in $PATH
                   7848: do
                   7849:   IFS=$as_save_IFS
                   7850:   test -z "$as_dir" && as_dir=.
                   7851:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7852:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7853:     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
                   7854:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7855:     break 2
                   7856:   fi
                   7857: done
                   7858: done
                   7859: IFS=$as_save_IFS
                   7860:
                   7861: fi
                   7862: fi
                   7863: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
                   7864: if test -n "$ac_ct_DSYMUTIL"; then
                   7865:   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
                   7866: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
                   7867: else
                   7868:   { echo "$as_me:$LINENO: result: no" >&5
                   7869: echo "${ECHO_T}no" >&6; }
                   7870: fi
                   7871:
                   7872:   if test "x$ac_ct_DSYMUTIL" = x; then
                   7873:     DSYMUTIL=":"
                   7874:   else
                   7875:     case $cross_compiling:$ac_tool_warned in
                   7876: yes:)
                   7877: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7878: whose name does not start with the host triplet.  If you think this
                   7879: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7880: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7881: whose name does not start with the host triplet.  If you think this
                   7882: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7883: ac_tool_warned=yes ;;
                   7884: esac
                   7885:     DSYMUTIL=$ac_ct_DSYMUTIL
                   7886:   fi
                   7887: else
                   7888:   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
                   7889: fi
                   7890:
                   7891:     if test -n "$ac_tool_prefix"; then
                   7892:   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
                   7893: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
                   7894: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7895: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7896: if test "${ac_cv_prog_NMEDIT+set}" = set; then
                   7897:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7898: else
                   7899:   if test -n "$NMEDIT"; then
                   7900:   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
                   7901: else
                   7902: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7903: for as_dir in $PATH
                   7904: do
                   7905:   IFS=$as_save_IFS
                   7906:   test -z "$as_dir" && as_dir=.
                   7907:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7908:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7909:     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
                   7910:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7911:     break 2
                   7912:   fi
                   7913: done
                   7914: done
                   7915: IFS=$as_save_IFS
                   7916:
                   7917: fi
                   7918: fi
                   7919: NMEDIT=$ac_cv_prog_NMEDIT
                   7920: if test -n "$NMEDIT"; then
                   7921:   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
                   7922: echo "${ECHO_T}$NMEDIT" >&6; }
                   7923: else
                   7924:   { echo "$as_me:$LINENO: result: no" >&5
                   7925: echo "${ECHO_T}no" >&6; }
                   7926: fi
                   7927:
                   7928:
                   7929: fi
                   7930: if test -z "$ac_cv_prog_NMEDIT"; then
                   7931:   ac_ct_NMEDIT=$NMEDIT
                   7932:   # Extract the first word of "nmedit", so it can be a program name with args.
                   7933: set dummy nmedit; ac_word=$2
                   7934: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7935: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7936: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
                   7937:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7938: else
                   7939:   if test -n "$ac_ct_NMEDIT"; then
                   7940:   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
                   7941: else
                   7942: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7943: for as_dir in $PATH
                   7944: do
                   7945:   IFS=$as_save_IFS
                   7946:   test -z "$as_dir" && as_dir=.
                   7947:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7948:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7949:     ac_cv_prog_ac_ct_NMEDIT="nmedit"
                   7950:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7951:     break 2
                   7952:   fi
                   7953: done
                   7954: done
                   7955: IFS=$as_save_IFS
                   7956:
                   7957: fi
                   7958: fi
                   7959: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
                   7960: if test -n "$ac_ct_NMEDIT"; then
                   7961:   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
                   7962: echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
                   7963: else
                   7964:   { echo "$as_me:$LINENO: result: no" >&5
                   7965: echo "${ECHO_T}no" >&6; }
                   7966: fi
                   7967:
                   7968:   if test "x$ac_ct_NMEDIT" = x; then
                   7969:     NMEDIT=":"
                   7970:   else
                   7971:     case $cross_compiling:$ac_tool_warned in
                   7972: yes:)
                   7973: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7974: whose name does not start with the host triplet.  If you think this
                   7975: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7976: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7977: whose name does not start with the host triplet.  If you think this
                   7978: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7979: ac_tool_warned=yes ;;
                   7980: esac
                   7981:     NMEDIT=$ac_ct_NMEDIT
                   7982:   fi
                   7983: else
                   7984:   NMEDIT="$ac_cv_prog_NMEDIT"
                   7985: fi
                   7986:
                   7987:
                   7988:     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
                   7989: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
                   7990: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
                   7991:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7992: else
                   7993:   lt_cv_apple_cc_single_mod=no
                   7994:       if test -z "${LT_MULTI_MODULE}"; then
                   7995:    # By default we will add the -single_module flag. You can override
                   7996:    # by either setting the environment variable LT_MULTI_MODULE
                   7997:    # non-empty at configure time, or by adding -multi_module to the
                   7998:    # link flags.
                   7999:    echo "int foo(void){return 1;}" > conftest.c
                   8000:    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
                   8001:      -dynamiclib ${wl}-single_module conftest.c
                   8002:    if test -f libconftest.dylib; then
                   8003:      lt_cv_apple_cc_single_mod=yes
                   8004:      rm -rf libconftest.dylib*
                   8005:    fi
                   8006:    rm conftest.c
                   8007:       fi
                   8008: fi
                   8009: { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
                   8010: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
                   8011:     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
                   8012: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
                   8013: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
                   8014:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8015: else
                   8016:   lt_cv_ld_exported_symbols_list=no
                   8017:       save_LDFLAGS=$LDFLAGS
                   8018:       echo "_main" > conftest.sym
                   8019:       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
                   8020:       cat >conftest.$ac_ext <<_ACEOF
                   8021: /* confdefs.h.  */
                   8022: _ACEOF
                   8023: cat confdefs.h >>conftest.$ac_ext
                   8024: cat >>conftest.$ac_ext <<_ACEOF
                   8025: /* end confdefs.h.  */
                   8026:
                   8027: int
                   8028: main ()
                   8029: {
                   8030:
                   8031:   ;
                   8032:   return 0;
                   8033: }
                   8034: _ACEOF
                   8035: rm -f conftest.$ac_objext conftest$ac_exeext
                   8036: if { (ac_try="$ac_link"
                   8037: case "(($ac_try" in
                   8038:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8039:   *) ac_try_echo=$ac_try;;
                   8040: esac
                   8041: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8042:   (eval "$ac_link") 2>conftest.er1
                   8043:   ac_status=$?
                   8044:   grep -v '^ *+' conftest.er1 >conftest.err
                   8045:   rm -f conftest.er1
                   8046:   cat conftest.err >&5
                   8047:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8048:   (exit $ac_status); } && {
                   8049:         test -z "$ac_c_werror_flag" ||
                   8050:         test ! -s conftest.err
                   8051:        } && test -s conftest$ac_exeext &&
                   8052:        $as_test_x conftest$ac_exeext; then
                   8053:   lt_cv_ld_exported_symbols_list=yes
                   8054: else
                   8055:   echo "$as_me: failed program was:" >&5
                   8056: sed 's/^/| /' conftest.$ac_ext >&5
                   8057:
                   8058:        lt_cv_ld_exported_symbols_list=no
                   8059: fi
                   8060:
                   8061: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   8062:       conftest$ac_exeext conftest.$ac_ext
                   8063:    LDFLAGS="$save_LDFLAGS"
                   8064:
                   8065: fi
                   8066: { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
                   8067: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
                   8068:     case $host_os in
                   8069:     rhapsody* | darwin1.[0123])
                   8070:       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
                   8071:     darwin1.*)
                   8072:      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
                   8073:     darwin*)
                   8074:       # if running on 10.5 or later, the deployment target defaults
                   8075:       # to the OS version, if on x86, and 10.4, the deployment
                   8076:       # target defaults to 10.4. Don't you love it?
                   8077:       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
                   8078:    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
                   8079:      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
                   8080:    10.[012]*)
                   8081:      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
                   8082:    10.*)
                   8083:      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
                   8084:       esac
                   8085:     ;;
                   8086:   esac
                   8087:     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
                   8088:       _lt_dar_single_mod='$single_module'
                   8089:     fi
                   8090:     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
                   8091:       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
                   8092:     else
                   8093:       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
                   8094:     fi
                   8095:     if test "$DSYMUTIL" != ":"; then
                   8096:       _lt_dsymutil="~$DSYMUTIL \$lib || :"
                   8097:     else
                   8098:       _lt_dsymutil=
                   8099:     fi
                   8100:     ;;
                   8101:   esac
                   8102:
                   8103:
1.40      millert  8104: enable_dlopen=yes
1.27      millert  8105: enable_win32_dll=no
1.25      millert  8106:
1.27      millert  8107: # Check whether --enable-libtool-lock was given.
                   8108: if test "${enable_libtool_lock+set}" = set; then
                   8109:   enableval=$enable_libtool_lock;
                   8110: fi
1.25      millert  8111:
1.27      millert  8112: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.25      millert  8113:
1.23      millert  8114:
1.27      millert  8115: # Check whether --with-pic was given.
                   8116: if test "${with_pic+set}" = set; then
                   8117:   withval=$with_pic; pic_mode="$withval"
1.23      millert  8118: else
1.27      millert  8119:   pic_mode=default
                   8120: fi
1.25      millert  8121:
1.27      millert  8122: test -z "$pic_mode" && pic_mode=default
1.23      millert  8123:
1.27      millert  8124: # Use C for the default configuration in the libtool script
                   8125: tagname=
                   8126: lt_save_CC="$CC"
                   8127: ac_ext=c
                   8128: ac_cpp='$CPP $CPPFLAGS'
                   8129: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   8130: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   8131: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  8132:
                   8133:
1.27      millert  8134: # Source file extension for C test sources.
                   8135: ac_ext=c
1.23      millert  8136:
1.27      millert  8137: # Object file extension for compiled C test sources.
                   8138: objext=o
                   8139: objext=$objext
1.23      millert  8140:
1.27      millert  8141: # Code to be used in simple compile tests
                   8142: lt_simple_compile_test_code="int some_variable = 0;"
1.23      millert  8143:
1.27      millert  8144: # Code to be used in simple link tests
                   8145: lt_simple_link_test_code='int main(){return(0);}'
1.23      millert  8146:
                   8147:
1.27      millert  8148: # If no C compiler was specified, use CC.
                   8149: LTCC=${LTCC-"$CC"}
1.23      millert  8150:
1.27      millert  8151: # If no C compiler flags were specified, use CFLAGS.
                   8152: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23      millert  8153:
1.27      millert  8154: # Allow CC to be a program name with arguments.
                   8155: compiler=$CC
1.23      millert  8156:
                   8157:
1.27      millert  8158: # save warnings/boilerplate of simple test code
                   8159: ac_outfile=conftest.$ac_objext
                   8160: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
                   8161: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   8162: _lt_compiler_boilerplate=`cat conftest.err`
                   8163: $rm conftest*
                   8164:
                   8165: ac_outfile=conftest.$ac_objext
                   8166: echo "$lt_simple_link_test_code" >conftest.$ac_ext
                   8167: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   8168: _lt_linker_boilerplate=`cat conftest.err`
1.36      millert  8169: $rm -r conftest*
1.23      millert  8170:
                   8171:
1.27      millert  8172: ## CAVEAT EMPTOR:
                   8173: ## There is no encapsulation within the following macros, do not change
                   8174: ## the running order or otherwise move them around unless you know exactly
                   8175: ## what you are doing...
1.23      millert  8176:
1.27      millert  8177: lt_prog_compiler_no_builtin_flag=
1.23      millert  8178:
1.27      millert  8179: if test "$GCC" = yes; then
                   8180:   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
1.23      millert  8181:
                   8182:
1.27      millert  8183: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
                   8184: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
                   8185: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
                   8186:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  8187: else
1.27      millert  8188:   lt_cv_prog_compiler_rtti_exceptions=no
                   8189:   ac_outfile=conftest.$ac_objext
                   8190:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   8191:    lt_compiler_flag="-fno-rtti -fno-exceptions"
                   8192:    # Insert the option either (1) after the last *FLAGS variable, or
                   8193:    # (2) before a word containing "conftest.", or (3) at the end.
                   8194:    # Note that $ac_compile itself does not contain backslashes and begins
                   8195:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8196:    # The option is referenced via a variable to avoid confusing sed.
                   8197:    lt_compile=`echo "$ac_compile" | $SED \
                   8198:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   8199:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8200:    -e 's:$: $lt_compiler_flag:'`
1.47      millert  8201:    (eval echo "\"\$as_me:8201: $lt_compile\"" >&5)
1.27      millert  8202:    (eval "$lt_compile" 2>conftest.err)
                   8203:    ac_status=$?
                   8204:    cat conftest.err >&5
1.47      millert  8205:    echo "$as_me:8205: \$? = $ac_status" >&5
1.27      millert  8206:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   8207:      # The compiler can only warn and ignore the option if not recognized
                   8208:      # So say no if there are warnings other than the usual output.
                   8209:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
                   8210:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   8211:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
                   8212:        lt_cv_prog_compiler_rtti_exceptions=yes
                   8213:      fi
                   8214:    fi
                   8215:    $rm conftest*
1.23      millert  8216:
1.25      millert  8217: fi
1.27      millert  8218: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
                   8219: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.25      millert  8220:
1.27      millert  8221: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
                   8222:     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.25      millert  8223: else
1.27      millert  8224:     :
                   8225: fi
1.23      millert  8226:
1.25      millert  8227: fi
1.23      millert  8228:
1.27      millert  8229: lt_prog_compiler_wl=
                   8230: lt_prog_compiler_pic=
                   8231: lt_prog_compiler_static=
1.23      millert  8232:
1.27      millert  8233: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
                   8234: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.25      millert  8235:
1.27      millert  8236:   if test "$GCC" = yes; then
                   8237:     lt_prog_compiler_wl='-Wl,'
                   8238:     lt_prog_compiler_static='-static'
1.25      millert  8239:
1.27      millert  8240:     case $host_os in
                   8241:       aix*)
                   8242:       # All AIX code is PIC.
                   8243:       if test "$host_cpu" = ia64; then
                   8244:        # AIX 5 now supports IA64 processor
                   8245:        lt_prog_compiler_static='-Bstatic'
                   8246:       fi
                   8247:       ;;
1.25      millert  8248:
1.27      millert  8249:     amigaos*)
                   8250:       # FIXME: we need at least 68020 code to build shared libraries, but
                   8251:       # adding the `-m68020' flag to GCC prevents building anything better,
                   8252:       # like `-m68040'.
                   8253:       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
                   8254:       ;;
1.25      millert  8255:
1.27      millert  8256:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
                   8257:       # PIC is the default for these OSes.
                   8258:       ;;
1.23      millert  8259:
1.27      millert  8260:     mingw* | cygwin* | pw32* | os2*)
                   8261:       # This hack is so that the source file can tell whether it is being
                   8262:       # built for inclusion in a dll (and should export symbols for example).
                   8263:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
                   8264:       # (--disable-auto-import) libraries
                   8265:       lt_prog_compiler_pic='-DDLL_EXPORT'
                   8266:       ;;
1.23      millert  8267:
1.27      millert  8268:     darwin* | rhapsody*)
                   8269:       # PIC is the default on this platform
                   8270:       # Common symbols not allowed in MH_DYLIB files
                   8271:       lt_prog_compiler_pic='-fno-common'
                   8272:       ;;
1.23      millert  8273:
1.27      millert  8274:     interix[3-9]*)
                   8275:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
                   8276:       # Instead, we relocate shared libraries at runtime.
                   8277:       ;;
1.23      millert  8278:
1.27      millert  8279:     msdosdjgpp*)
                   8280:       # Just because we use GCC doesn't mean we suddenly get shared libraries
                   8281:       # on systems that don't support them.
                   8282:       lt_prog_compiler_can_build_shared=no
                   8283:       enable_shared=no
                   8284:       ;;
1.23      millert  8285:
1.27      millert  8286:     sysv4*MP*)
                   8287:       if test -d /usr/nec; then
                   8288:        lt_prog_compiler_pic=-Kconform_pic
                   8289:       fi
                   8290:       ;;
1.23      millert  8291:
1.27      millert  8292:     hpux*)
                   8293:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   8294:       # not for PA HP-UX.
                   8295:       case $host_cpu in
                   8296:       hppa*64*|ia64*)
                   8297:        # +Z the default
                   8298:        ;;
                   8299:       *)
                   8300:        lt_prog_compiler_pic='-fPIC'
                   8301:        ;;
                   8302:       esac
                   8303:       ;;
1.23      millert  8304:
1.27      millert  8305:     *)
                   8306:       lt_prog_compiler_pic='-fPIC'
                   8307:       ;;
                   8308:     esac
                   8309:   else
                   8310:     # PORTME Check for flag to pass linker flags through the system compiler.
                   8311:     case $host_os in
                   8312:     aix*)
                   8313:       lt_prog_compiler_wl='-Wl,'
                   8314:       if test "$host_cpu" = ia64; then
                   8315:        # AIX 5 now supports IA64 processor
                   8316:        lt_prog_compiler_static='-Bstatic'
                   8317:       else
                   8318:        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
                   8319:       fi
                   8320:       ;;
                   8321:       darwin*)
                   8322:         # PIC is the default on this platform
                   8323:         # Common symbols not allowed in MH_DYLIB files
                   8324:        case $cc_basename in
                   8325:          xlc*)
                   8326:          lt_prog_compiler_pic='-qnocommon'
                   8327:          lt_prog_compiler_wl='-Wl,'
                   8328:          ;;
                   8329:        esac
                   8330:        ;;
1.23      millert  8331:
1.27      millert  8332:     mingw* | cygwin* | pw32* | os2*)
                   8333:       # This hack is so that the source file can tell whether it is being
                   8334:       # built for inclusion in a dll (and should export symbols for example).
                   8335:       lt_prog_compiler_pic='-DDLL_EXPORT'
                   8336:       ;;
1.25      millert  8337:
1.27      millert  8338:     hpux9* | hpux10* | hpux11*)
                   8339:       lt_prog_compiler_wl='-Wl,'
                   8340:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   8341:       # not for PA HP-UX.
                   8342:       case $host_cpu in
                   8343:       hppa*64*|ia64*)
                   8344:        # +Z the default
                   8345:        ;;
                   8346:       *)
                   8347:        lt_prog_compiler_pic='+Z'
                   8348:        ;;
                   8349:       esac
                   8350:       # Is there a better lt_prog_compiler_static that works with the bundled CC?
                   8351:       lt_prog_compiler_static='${wl}-a ${wl}archive'
                   8352:       ;;
1.23      millert  8353:
1.27      millert  8354:     irix5* | irix6* | nonstopux*)
                   8355:       lt_prog_compiler_wl='-Wl,'
                   8356:       # PIC (with -KPIC) is the default.
                   8357:       lt_prog_compiler_static='-non_shared'
                   8358:       ;;
1.23      millert  8359:
1.27      millert  8360:     newsos6)
                   8361:       lt_prog_compiler_pic='-KPIC'
                   8362:       lt_prog_compiler_static='-Bstatic'
                   8363:       ;;
1.23      millert  8364:
1.27      millert  8365:     linux* | k*bsd*-gnu)
                   8366:       case $cc_basename in
                   8367:       icc* | ecc*)
                   8368:        lt_prog_compiler_wl='-Wl,'
                   8369:        lt_prog_compiler_pic='-KPIC'
                   8370:        lt_prog_compiler_static='-static'
                   8371:         ;;
                   8372:       pgcc* | pgf77* | pgf90* | pgf95*)
                   8373:         # Portland Group compilers (*not* the Pentium gcc compiler,
                   8374:        # which looks to be a dead project)
                   8375:        lt_prog_compiler_wl='-Wl,'
                   8376:        lt_prog_compiler_pic='-fpic'
                   8377:        lt_prog_compiler_static='-Bstatic'
                   8378:         ;;
                   8379:       ccc*)
                   8380:         lt_prog_compiler_wl='-Wl,'
                   8381:         # All Alpha code is PIC.
                   8382:         lt_prog_compiler_static='-non_shared'
                   8383:         ;;
                   8384:       *)
                   8385:         case `$CC -V 2>&1 | sed 5q` in
                   8386:        *Sun\ C*)
                   8387:          # Sun C 5.9
                   8388:          lt_prog_compiler_pic='-KPIC'
                   8389:          lt_prog_compiler_static='-Bstatic'
                   8390:          lt_prog_compiler_wl='-Wl,'
                   8391:          ;;
                   8392:        *Sun\ F*)
                   8393:          # Sun Fortran 8.3 passes all unrecognized flags to the linker
                   8394:          lt_prog_compiler_pic='-KPIC'
                   8395:          lt_prog_compiler_static='-Bstatic'
                   8396:          lt_prog_compiler_wl=''
                   8397:          ;;
                   8398:        esac
                   8399:        ;;
                   8400:       esac
                   8401:       ;;
1.23      millert  8402:
1.27      millert  8403:     osf3* | osf4* | osf5*)
                   8404:       lt_prog_compiler_wl='-Wl,'
                   8405:       # All OSF/1 code is PIC.
                   8406:       lt_prog_compiler_static='-non_shared'
                   8407:       ;;
1.23      millert  8408:
1.27      millert  8409:     rdos*)
                   8410:       lt_prog_compiler_static='-non_shared'
                   8411:       ;;
1.25      millert  8412:
1.27      millert  8413:     solaris*)
                   8414:       lt_prog_compiler_pic='-KPIC'
                   8415:       lt_prog_compiler_static='-Bstatic'
                   8416:       case $cc_basename in
                   8417:       f77* | f90* | f95*)
                   8418:        lt_prog_compiler_wl='-Qoption ld ';;
                   8419:       *)
                   8420:        lt_prog_compiler_wl='-Wl,';;
                   8421:       esac
                   8422:       ;;
1.25      millert  8423:
1.27      millert  8424:     sunos4*)
                   8425:       lt_prog_compiler_wl='-Qoption ld '
                   8426:       lt_prog_compiler_pic='-PIC'
                   8427:       lt_prog_compiler_static='-Bstatic'
                   8428:       ;;
1.25      millert  8429:
1.27      millert  8430:     sysv4 | sysv4.2uw2* | sysv4.3*)
                   8431:       lt_prog_compiler_wl='-Wl,'
                   8432:       lt_prog_compiler_pic='-KPIC'
                   8433:       lt_prog_compiler_static='-Bstatic'
                   8434:       ;;
1.25      millert  8435:
1.27      millert  8436:     sysv4*MP*)
                   8437:       if test -d /usr/nec ;then
                   8438:        lt_prog_compiler_pic='-Kconform_pic'
                   8439:        lt_prog_compiler_static='-Bstatic'
                   8440:       fi
                   8441:       ;;
1.25      millert  8442:
1.27      millert  8443:     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
                   8444:       lt_prog_compiler_wl='-Wl,'
                   8445:       lt_prog_compiler_pic='-KPIC'
                   8446:       lt_prog_compiler_static='-Bstatic'
                   8447:       ;;
1.25      millert  8448:
1.27      millert  8449:     unicos*)
                   8450:       lt_prog_compiler_wl='-Wl,'
                   8451:       lt_prog_compiler_can_build_shared=no
                   8452:       ;;
1.23      millert  8453:
1.27      millert  8454:     uts4*)
                   8455:       lt_prog_compiler_pic='-pic'
                   8456:       lt_prog_compiler_static='-Bstatic'
                   8457:       ;;
1.23      millert  8458:
1.27      millert  8459:     *)
                   8460:       lt_prog_compiler_can_build_shared=no
                   8461:       ;;
1.25      millert  8462:     esac
                   8463:   fi
1.23      millert  8464:
1.27      millert  8465: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
                   8466: echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
1.23      millert  8467:
1.27      millert  8468: #
                   8469: # Check to make sure the PIC flag actually works.
                   8470: #
                   8471: if test -n "$lt_prog_compiler_pic"; then
1.23      millert  8472:
1.27      millert  8473: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
                   8474: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
1.36      millert  8475: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1.23      millert  8476:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8477: else
1.36      millert  8478:   lt_cv_prog_compiler_pic_works=no
1.27      millert  8479:   ac_outfile=conftest.$ac_objext
                   8480:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   8481:    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
                   8482:    # Insert the option either (1) after the last *FLAGS variable, or
                   8483:    # (2) before a word containing "conftest.", or (3) at the end.
                   8484:    # Note that $ac_compile itself does not contain backslashes and begins
                   8485:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8486:    # The option is referenced via a variable to avoid confusing sed.
                   8487:    lt_compile=`echo "$ac_compile" | $SED \
                   8488:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   8489:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8490:    -e 's:$: $lt_compiler_flag:'`
1.47      millert  8491:    (eval echo "\"\$as_me:8491: $lt_compile\"" >&5)
1.27      millert  8492:    (eval "$lt_compile" 2>conftest.err)
                   8493:    ac_status=$?
                   8494:    cat conftest.err >&5
1.47      millert  8495:    echo "$as_me:8495: \$? = $ac_status" >&5
1.27      millert  8496:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   8497:      # The compiler can only warn and ignore the option if not recognized
                   8498:      # So say no if there are warnings other than the usual output.
                   8499:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
                   8500:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   8501:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.36      millert  8502:        lt_cv_prog_compiler_pic_works=yes
1.27      millert  8503:      fi
                   8504:    fi
                   8505:    $rm conftest*
1.23      millert  8506:
1.27      millert  8507: fi
1.36      millert  8508: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
                   8509: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
1.23      millert  8510:
1.36      millert  8511: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1.27      millert  8512:     case $lt_prog_compiler_pic in
                   8513:      "" | " "*) ;;
                   8514:      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
                   8515:      esac
                   8516: else
                   8517:     lt_prog_compiler_pic=
                   8518:      lt_prog_compiler_can_build_shared=no
1.23      millert  8519: fi
1.25      millert  8520:
1.23      millert  8521: fi
1.27      millert  8522: case $host_os in
                   8523:   # For platforms which do not support PIC, -DPIC is meaningless:
                   8524:   *djgpp*)
                   8525:     lt_prog_compiler_pic=
                   8526:     ;;
                   8527:   *)
                   8528:     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.25      millert  8529:     ;;
1.27      millert  8530: esac
1.25      millert  8531:
1.27      millert  8532: #
                   8533: # Check to make sure the static flag actually works.
                   8534: #
                   8535: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
                   8536: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
                   8537: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
1.36      millert  8538: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
1.27      millert  8539:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8540: else
1.36      millert  8541:   lt_cv_prog_compiler_static_works=no
1.27      millert  8542:    save_LDFLAGS="$LDFLAGS"
                   8543:    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
                   8544:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
                   8545:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
                   8546:      # The linker can only warn and ignore the option if not recognized
                   8547:      # So say no if there are warnings
                   8548:      if test -s conftest.err; then
                   8549:        # Append any errors to the config.log.
                   8550:        cat conftest.err 1>&5
                   8551:        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
                   8552:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   8553:        if diff conftest.exp conftest.er2 >/dev/null; then
1.36      millert  8554:          lt_cv_prog_compiler_static_works=yes
1.27      millert  8555:        fi
                   8556:      else
1.36      millert  8557:        lt_cv_prog_compiler_static_works=yes
1.27      millert  8558:      fi
                   8559:    fi
1.36      millert  8560:    $rm -r conftest*
1.27      millert  8561:    LDFLAGS="$save_LDFLAGS"
1.25      millert  8562:
1.23      millert  8563: fi
1.36      millert  8564: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
                   8565: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
1.23      millert  8566:
1.36      millert  8567: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1.27      millert  8568:     :
                   8569: else
                   8570:     lt_prog_compiler_static=
                   8571: fi
1.23      millert  8572:
                   8573:
1.27      millert  8574: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
                   8575: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
                   8576: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
                   8577:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8578: else
                   8579:   lt_cv_prog_compiler_c_o=no
                   8580:    $rm -r conftest 2>/dev/null
                   8581:    mkdir conftest
                   8582:    cd conftest
                   8583:    mkdir out
                   8584:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   8585:
                   8586:    lt_compiler_flag="-o out/conftest2.$ac_objext"
                   8587:    # Insert the option either (1) after the last *FLAGS variable, or
                   8588:    # (2) before a word containing "conftest.", or (3) at the end.
                   8589:    # Note that $ac_compile itself does not contain backslashes and begins
                   8590:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8591:    lt_compile=`echo "$ac_compile" | $SED \
                   8592:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   8593:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8594:    -e 's:$: $lt_compiler_flag:'`
1.47      millert  8595:    (eval echo "\"\$as_me:8595: $lt_compile\"" >&5)
1.27      millert  8596:    (eval "$lt_compile" 2>out/conftest.err)
                   8597:    ac_status=$?
                   8598:    cat out/conftest.err >&5
1.47      millert  8599:    echo "$as_me:8599: \$? = $ac_status" >&5
1.27      millert  8600:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
                   8601:    then
                   8602:      # The compiler can only warn and ignore the option if not recognized
                   8603:      # So say no if there are warnings
                   8604:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
                   8605:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
                   8606:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
                   8607:        lt_cv_prog_compiler_c_o=yes
                   8608:      fi
                   8609:    fi
                   8610:    chmod u+w . 2>&5
                   8611:    $rm conftest*
                   8612:    # SGI C++ compiler will create directory out/ii_files/ for
                   8613:    # template instantiation
                   8614:    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
                   8615:    $rm out/* && rmdir out
                   8616:    cd ..
                   8617:    rmdir conftest
                   8618:    $rm conftest*
1.23      millert  8619:
1.27      millert  8620: fi
                   8621: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
                   8622: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
                   8623:
                   8624:
                   8625: hard_links="nottested"
                   8626: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
                   8627:   # do not overwrite the value of need_locks provided by the user
                   8628:   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
                   8629: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
                   8630:   hard_links=yes
                   8631:   $rm conftest*
                   8632:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   8633:   touch conftest.a
                   8634:   ln conftest.a conftest.b 2>&5 || hard_links=no
                   8635:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   8636:   { echo "$as_me:$LINENO: result: $hard_links" >&5
                   8637: echo "${ECHO_T}$hard_links" >&6; }
                   8638:   if test "$hard_links" = no; then
                   8639:     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
                   8640: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
                   8641:     need_locks=warn
                   8642:   fi
                   8643: else
                   8644:   need_locks=no
                   8645: fi
1.23      millert  8646:
1.27      millert  8647: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
                   8648: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.23      millert  8649:
1.27      millert  8650:   runpath_var=
                   8651:   allow_undefined_flag=
                   8652:   enable_shared_with_static_runtimes=no
                   8653:   archive_cmds=
                   8654:   archive_expsym_cmds=
                   8655:   old_archive_From_new_cmds=
                   8656:   old_archive_from_expsyms_cmds=
                   8657:   export_dynamic_flag_spec=
                   8658:   whole_archive_flag_spec=
                   8659:   thread_safe_flag_spec=
                   8660:   hardcode_libdir_flag_spec=
                   8661:   hardcode_libdir_flag_spec_ld=
                   8662:   hardcode_libdir_separator=
                   8663:   hardcode_direct=no
                   8664:   hardcode_minus_L=no
                   8665:   hardcode_shlibpath_var=unsupported
                   8666:   link_all_deplibs=unknown
                   8667:   hardcode_automatic=no
                   8668:   module_cmds=
                   8669:   module_expsym_cmds=
                   8670:   always_export_symbols=no
                   8671:   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
                   8672:   # include_expsyms should be a list of space-separated symbols to be *always*
                   8673:   # included in the symbol list
                   8674:   include_expsyms=
                   8675:   # exclude_expsyms can be an extended regexp of symbols to exclude
                   8676:   # it will be wrapped by ` (' and `)$', so one must not match beginning or
                   8677:   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
                   8678:   # as well as any symbol that contains `d'.
1.36      millert  8679:   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1.27      millert  8680:   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
                   8681:   # platforms (ab)use it in PIC code, but their linkers get confused if
                   8682:   # the symbol is explicitly referenced.  Since portable code cannot
                   8683:   # rely on this symbol name, it's probably fine to never include it in
                   8684:   # preloaded symbol tables.
1.36      millert  8685:   # Exclude shared library initialization/finalization symbols.
1.27      millert  8686:   extract_expsyms_cmds=
                   8687:   # Just being paranoid about ensuring that cc_basename is set.
                   8688:   for cc_temp in $compiler""; do
                   8689:   case $cc_temp in
                   8690:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
                   8691:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
                   8692:     \-*) ;;
                   8693:     *) break;;
                   8694:   esac
                   8695: done
                   8696: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.23      millert  8697:
1.27      millert  8698:   case $host_os in
                   8699:   cygwin* | mingw* | pw32*)
                   8700:     # FIXME: the MSVC++ port hasn't been tested in a loooong time
                   8701:     # When not using gcc, we currently assume that we are using
                   8702:     # Microsoft Visual C++.
                   8703:     if test "$GCC" != yes; then
                   8704:       with_gnu_ld=no
                   8705:     fi
                   8706:     ;;
                   8707:   interix*)
                   8708:     # we just hope/assume this is gcc and not c89 (= MSVC++)
                   8709:     with_gnu_ld=yes
                   8710:     ;;
                   8711:   openbsd*)
                   8712:     with_gnu_ld=no
                   8713:     ;;
                   8714:   esac
1.23      millert  8715:
1.27      millert  8716:   ld_shlibs=yes
                   8717:   if test "$with_gnu_ld" = yes; then
                   8718:     # If archive_cmds runs LD, not CC, wlarc should be empty
                   8719:     wlarc='${wl}'
1.23      millert  8720:
1.27      millert  8721:     # Set some defaults for GNU ld with shared library support. These
                   8722:     # are reset later if shared libraries are not supported. Putting them
                   8723:     # here allows them to be overridden if necessary.
                   8724:     runpath_var=LD_RUN_PATH
                   8725:     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
                   8726:     export_dynamic_flag_spec='${wl}--export-dynamic'
                   8727:     # ancient GNU ld didn't support --whole-archive et. al.
                   8728:     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
                   8729:        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
                   8730:       else
                   8731:        whole_archive_flag_spec=
                   8732:     fi
                   8733:     supports_anon_versioning=no
                   8734:     case `$LD -v 2>/dev/null` in
                   8735:       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
                   8736:       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
                   8737:       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
                   8738:       *\ 2.11.*) ;; # other 2.11 versions
                   8739:       *) supports_anon_versioning=yes ;;
                   8740:     esac
1.23      millert  8741:
1.27      millert  8742:     # See if GNU ld supports shared libraries.
                   8743:     case $host_os in
1.36      millert  8744:     aix[3-9]*)
1.27      millert  8745:       # On AIX/PPC, the GNU linker is very broken
                   8746:       if test "$host_cpu" != ia64; then
                   8747:        ld_shlibs=no
                   8748:        cat <<EOF 1>&2
1.23      millert  8749:
1.27      millert  8750: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
                   8751: *** to be unable to reliably create shared libraries on AIX.
                   8752: *** Therefore, libtool is disabling shared libraries support.  If you
                   8753: *** really care for shared libraries, you may want to modify your PATH
                   8754: *** so that a non-GNU linker is found, and then restart.
1.23      millert  8755:
1.27      millert  8756: EOF
                   8757:       fi
                   8758:       ;;
1.23      millert  8759:
1.27      millert  8760:     amigaos*)
                   8761:       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)'
                   8762:       hardcode_libdir_flag_spec='-L$libdir'
                   8763:       hardcode_minus_L=yes
1.23      millert  8764:
1.27      millert  8765:       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
                   8766:       # that the semantics of dynamic libraries on AmigaOS, at least up
                   8767:       # to version 4, is to share data among multiple programs linked
                   8768:       # with the same dynamic library.  Since this doesn't match the
                   8769:       # behavior of shared libraries on other platforms, we can't use
                   8770:       # them.
                   8771:       ld_shlibs=no
                   8772:       ;;
1.23      millert  8773:
1.27      millert  8774:     beos*)
                   8775:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8776:        allow_undefined_flag=unsupported
                   8777:        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
                   8778:        # support --undefined.  This deserves some investigation.  FIXME
                   8779:        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8780:       else
                   8781:        ld_shlibs=no
                   8782:       fi
                   8783:       ;;
1.23      millert  8784:
1.27      millert  8785:     cygwin* | mingw* | pw32*)
                   8786:       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
                   8787:       # as there is no search path for DLLs.
                   8788:       hardcode_libdir_flag_spec='-L$libdir'
                   8789:       allow_undefined_flag=unsupported
                   8790:       always_export_symbols=no
                   8791:       enable_shared_with_static_runtimes=yes
                   8792:       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.25      millert  8793:
1.27      millert  8794:       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
                   8795:         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   8796:        # If the export-symbols file already is a .def file (1st line
                   8797:        # is EXPORTS), use it as is; otherwise, prepend...
                   8798:        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
                   8799:          cp $export_symbols $output_objdir/$soname.def;
                   8800:        else
                   8801:          echo EXPORTS > $output_objdir/$soname.def;
                   8802:          cat $export_symbols >> $output_objdir/$soname.def;
                   8803:        fi~
                   8804:        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   8805:       else
                   8806:        ld_shlibs=no
                   8807:       fi
                   8808:       ;;
1.25      millert  8809:
1.27      millert  8810:     interix[3-9]*)
                   8811:       hardcode_direct=no
                   8812:       hardcode_shlibpath_var=no
                   8813:       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   8814:       export_dynamic_flag_spec='${wl}-E'
                   8815:       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
                   8816:       # Instead, shared libraries are loaded at an image base (0x10000000 by
                   8817:       # default) and relocated if they conflict, which is a slow very memory
                   8818:       # consuming and fragmenting process.  To avoid this, we pick a random,
                   8819:       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
                   8820:       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
                   8821:       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
                   8822:       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'
                   8823:       ;;
                   8824:
                   8825:     gnu* | linux* | k*bsd*-gnu)
                   8826:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8827:        tmp_addflag=
                   8828:        case $cc_basename,$host_cpu in
                   8829:        pgcc*)                          # Portland Group C compiler
                   8830:          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
                   8831:          tmp_addflag=' $pic_flag'
1.25      millert  8832:          ;;
1.27      millert  8833:        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
                   8834:          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
                   8835:          tmp_addflag=' $pic_flag -Mnomain' ;;
                   8836:        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
                   8837:          tmp_addflag=' -i_dynamic' ;;
                   8838:        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
                   8839:          tmp_addflag=' -i_dynamic -nofor_main' ;;
                   8840:        ifc* | ifort*)                  # Intel Fortran compiler
                   8841:          tmp_addflag=' -nofor_main' ;;
1.25      millert  8842:        esac
1.27      millert  8843:        case `$CC -V 2>&1 | sed 5q` in
                   8844:        *Sun\ C*)                       # Sun C 5.9
                   8845:          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
                   8846:          tmp_sharedflag='-G' ;;
                   8847:        *Sun\ F*)                       # Sun Fortran 8.3
                   8848:          tmp_sharedflag='-G' ;;
                   8849:        *)
                   8850:          tmp_sharedflag='-shared' ;;
1.25      millert  8851:        esac
1.27      millert  8852:        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.25      millert  8853:
1.27      millert  8854:        if test $supports_anon_versioning = yes; then
                   8855:          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
                   8856:   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
                   8857:   $echo "local: *; };" >> $output_objdir/$libname.ver~
                   8858:          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
                   8859:        fi
                   8860:       else
                   8861:        ld_shlibs=no
                   8862:       fi
                   8863:       ;;
1.23      millert  8864:
1.27      millert  8865:     netbsd*)
                   8866:       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   8867:        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
                   8868:        wlarc=
                   8869:       else
                   8870:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8871:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8872:       fi
                   8873:       ;;
1.23      millert  8874:
1.27      millert  8875:     solaris*)
                   8876:       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
                   8877:        ld_shlibs=no
                   8878:        cat <<EOF 1>&2
                   8879:
                   8880: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
                   8881: *** create shared libraries on Solaris systems.  Therefore, libtool
                   8882: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   8883: *** binutils to release 2.9.1 or newer.  Another option is to modify
                   8884: *** your PATH or compiler configuration so that the native linker is
                   8885: *** used, and then restart.
                   8886:
                   8887: EOF
                   8888:       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8889:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8890:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8891:       else
                   8892:        ld_shlibs=no
                   8893:       fi
                   8894:       ;;
                   8895:
                   8896:     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
                   8897:       case `$LD -v 2>&1` in
                   8898:         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
                   8899:        ld_shlibs=no
                   8900:        cat <<_LT_EOF 1>&2
                   8901:
                   8902: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
                   8903: *** reliably create shared libraries on SCO systems.  Therefore, libtool
                   8904: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   8905: *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
                   8906: *** your PATH or compiler configuration so that the native linker is
                   8907: *** used, and then restart.
                   8908:
                   8909: _LT_EOF
                   8910:        ;;
                   8911:        *)
                   8912:          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8913:            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
                   8914:            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
                   8915:            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
                   8916:          else
                   8917:            ld_shlibs=no
                   8918:          fi
                   8919:        ;;
                   8920:       esac
                   8921:       ;;
                   8922:
                   8923:     sunos4*)
                   8924:       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   8925:       wlarc=
                   8926:       hardcode_direct=yes
                   8927:       hardcode_shlibpath_var=no
                   8928:       ;;
                   8929:
                   8930:     *)
                   8931:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8932:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8933:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8934:       else
                   8935:        ld_shlibs=no
                   8936:       fi
                   8937:       ;;
                   8938:     esac
                   8939:
                   8940:     if test "$ld_shlibs" = no; then
                   8941:       runpath_var=
                   8942:       hardcode_libdir_flag_spec=
                   8943:       export_dynamic_flag_spec=
                   8944:       whole_archive_flag_spec=
                   8945:     fi
                   8946:   else
                   8947:     # PORTME fill in a description of your system's linker (not GNU ld)
                   8948:     case $host_os in
                   8949:     aix3*)
                   8950:       allow_undefined_flag=unsupported
                   8951:       always_export_symbols=yes
                   8952:       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'
                   8953:       # Note: this linker hardcodes the directories in LIBPATH if there
                   8954:       # are no directories specified by -L.
                   8955:       hardcode_minus_L=yes
                   8956:       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
                   8957:        # Neither direct hardcoding nor static linking is supported with a
                   8958:        # broken collect2.
                   8959:        hardcode_direct=unsupported
                   8960:       fi
                   8961:       ;;
                   8962:
1.36      millert  8963:     aix[4-9]*)
1.27      millert  8964:       if test "$host_cpu" = ia64; then
                   8965:        # On IA64, the linker does run time linking by default, so we don't
                   8966:        # have to do anything special.
                   8967:        aix_use_runtimelinking=no
                   8968:        exp_sym_flag='-Bexport'
                   8969:        no_entry_flag=""
                   8970:       else
                   8971:        # If we're using GNU nm, then we don't want the "-C" option.
                   8972:        # -C means demangle to AIX nm, but means don't demangle with GNU nm
                   8973:        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
                   8974:          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
                   8975:        else
                   8976:          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'
                   8977:        fi
                   8978:        aix_use_runtimelinking=no
                   8979:
                   8980:        # Test if we are trying to use run time linking or normal
                   8981:        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
                   8982:        # need to do runtime linking.
1.36      millert  8983:        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1.27      millert  8984:          for ld_flag in $LDFLAGS; do
                   8985:          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
                   8986:            aix_use_runtimelinking=yes
                   8987:            break
                   8988:          fi
                   8989:          done
                   8990:          ;;
                   8991:        esac
                   8992:
                   8993:        exp_sym_flag='-bexport'
                   8994:        no_entry_flag='-bnoentry'
                   8995:       fi
                   8996:
                   8997:       # When large executables or shared objects are built, AIX ld can
                   8998:       # have problems creating the table of contents.  If linking a library
                   8999:       # or program results in "error TOC overflow" add -mminimal-toc to
                   9000:       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
                   9001:       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
                   9002:
                   9003:       archive_cmds=''
                   9004:       hardcode_direct=yes
                   9005:       hardcode_libdir_separator=':'
                   9006:       link_all_deplibs=yes
                   9007:
                   9008:       if test "$GCC" = yes; then
                   9009:        case $host_os in aix4.[012]|aix4.[012].*)
                   9010:        # We only want to do this on AIX 4.2 and lower, the check
                   9011:        # below for broken collect2 doesn't work under 4.3+
                   9012:          collect2name=`${CC} -print-prog-name=collect2`
                   9013:          if test -f "$collect2name" && \
                   9014:           strings "$collect2name" | grep resolve_lib_name >/dev/null
                   9015:          then
                   9016:          # We have reworked collect2
                   9017:          :
                   9018:          else
                   9019:          # We have old collect2
                   9020:          hardcode_direct=unsupported
                   9021:          # It fails to find uninstalled libraries when the uninstalled
                   9022:          # path is not listed in the libpath.  Setting hardcode_minus_L
                   9023:          # to unsupported forces relinking
                   9024:          hardcode_minus_L=yes
                   9025:          hardcode_libdir_flag_spec='-L$libdir'
                   9026:          hardcode_libdir_separator=
                   9027:          fi
                   9028:          ;;
                   9029:        esac
                   9030:        shared_flag='-shared'
                   9031:        if test "$aix_use_runtimelinking" = yes; then
                   9032:          shared_flag="$shared_flag "'${wl}-G'
                   9033:        fi
                   9034:       else
                   9035:        # not using gcc
                   9036:        if test "$host_cpu" = ia64; then
                   9037:        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
                   9038:        # chokes on -Wl,-G. The following line is correct:
                   9039:          shared_flag='-G'
                   9040:        else
                   9041:          if test "$aix_use_runtimelinking" = yes; then
                   9042:            shared_flag='${wl}-G'
                   9043:          else
                   9044:            shared_flag='${wl}-bM:SRE'
                   9045:          fi
                   9046:        fi
                   9047:       fi
                   9048:
                   9049:       # It seems that -bexpall does not export symbols beginning with
                   9050:       # underscore (_), so it is better to generate a list of symbols to export.
                   9051:       always_export_symbols=yes
                   9052:       if test "$aix_use_runtimelinking" = yes; then
                   9053:        # Warning - without using the other runtime loading flags (-brtl),
                   9054:        # -berok will link without error, but may produce a broken library.
                   9055:        allow_undefined_flag='-berok'
                   9056:        # Determine the default libpath from the value encoded in an empty executable.
                   9057:        cat >conftest.$ac_ext <<_ACEOF
                   9058: /* confdefs.h.  */
                   9059: _ACEOF
                   9060: cat confdefs.h >>conftest.$ac_ext
                   9061: cat >>conftest.$ac_ext <<_ACEOF
                   9062: /* end confdefs.h.  */
                   9063:
                   9064: int
                   9065: main ()
                   9066: {
1.23      millert  9067:
1.25      millert  9068:   ;
                   9069:   return 0;
                   9070: }
                   9071: _ACEOF
                   9072: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  9073: if { (ac_try="$ac_link"
                   9074: case "(($ac_try" in
                   9075:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   9076:   *) ac_try_echo=$ac_try;;
                   9077: esac
                   9078: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   9079:   (eval "$ac_link") 2>conftest.er1
1.25      millert  9080:   ac_status=$?
                   9081:   grep -v '^ *+' conftest.er1 >conftest.err
                   9082:   rm -f conftest.er1
                   9083:   cat conftest.err >&5
                   9084:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  9085:   (exit $ac_status); } && {
                   9086:         test -z "$ac_c_werror_flag" ||
                   9087:         test ! -s conftest.err
                   9088:        } && test -s conftest$ac_exeext &&
                   9089:        $as_test_x conftest$ac_exeext; then
                   9090:
                   9091: lt_aix_libpath_sed='
                   9092:     /Import File Strings/,/^$/ {
                   9093:        /^0/ {
                   9094:            s/^0  *\(.*\)$/\1/
                   9095:            p
                   9096:        }
                   9097:     }'
                   9098: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9099: # Check for a 64-bit object if we didn't find anything.
                   9100: if test -z "$aix_libpath"; then
                   9101:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9102: fi
1.23      millert  9103: else
1.25      millert  9104:   echo "$as_me: failed program was:" >&5
                   9105: sed 's/^/| /' conftest.$ac_ext >&5
                   9106:
1.23      millert  9107:
                   9108: fi
                   9109:
1.27      millert  9110: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   9111:       conftest$ac_exeext conftest.$ac_ext
                   9112: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.25      millert  9113:
1.27      millert  9114:        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   9115:        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
                   9116:        else
                   9117:        if test "$host_cpu" = ia64; then
                   9118:          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
                   9119:          allow_undefined_flag="-z nodefs"
                   9120:          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"
                   9121:        else
                   9122:         # Determine the default libpath from the value encoded in an empty executable.
                   9123:         cat >conftest.$ac_ext <<_ACEOF
                   9124: /* confdefs.h.  */
                   9125: _ACEOF
                   9126: cat confdefs.h >>conftest.$ac_ext
                   9127: cat >>conftest.$ac_ext <<_ACEOF
                   9128: /* end confdefs.h.  */
1.23      millert  9129:
1.27      millert  9130: int
                   9131: main ()
                   9132: {
1.23      millert  9133:
1.27      millert  9134:   ;
                   9135:   return 0;
                   9136: }
                   9137: _ACEOF
                   9138: rm -f conftest.$ac_objext conftest$ac_exeext
                   9139: if { (ac_try="$ac_link"
                   9140: case "(($ac_try" in
                   9141:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   9142:   *) ac_try_echo=$ac_try;;
                   9143: esac
                   9144: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   9145:   (eval "$ac_link") 2>conftest.er1
                   9146:   ac_status=$?
                   9147:   grep -v '^ *+' conftest.er1 >conftest.err
                   9148:   rm -f conftest.er1
                   9149:   cat conftest.err >&5
                   9150:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9151:   (exit $ac_status); } && {
                   9152:         test -z "$ac_c_werror_flag" ||
                   9153:         test ! -s conftest.err
                   9154:        } && test -s conftest$ac_exeext &&
                   9155:        $as_test_x conftest$ac_exeext; then
1.23      millert  9156:
1.27      millert  9157: lt_aix_libpath_sed='
                   9158:     /Import File Strings/,/^$/ {
                   9159:        /^0/ {
                   9160:            s/^0  *\(.*\)$/\1/
                   9161:            p
                   9162:        }
                   9163:     }'
                   9164: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9165: # Check for a 64-bit object if we didn't find anything.
                   9166: if test -z "$aix_libpath"; then
                   9167:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9168: fi
1.23      millert  9169: else
1.27      millert  9170:   echo "$as_me: failed program was:" >&5
                   9171: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  9172:
                   9173:
1.27      millert  9174: fi
1.23      millert  9175:
1.27      millert  9176: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   9177:       conftest$ac_exeext conftest.$ac_ext
                   9178: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.23      millert  9179:
1.27      millert  9180:         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   9181:          # Warning - without using the other run time loading flags,
                   9182:          # -berok will link without error, but may produce a broken library.
                   9183:          no_undefined_flag=' ${wl}-bernotok'
                   9184:          allow_undefined_flag=' ${wl}-berok'
                   9185:          # Exported symbols can be pulled into shared objects from archives
                   9186:          whole_archive_flag_spec='$convenience'
                   9187:          archive_cmds_need_lc=yes
                   9188:          # This is similar to how AIX traditionally builds its shared libraries.
                   9189:          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'
                   9190:        fi
                   9191:       fi
                   9192:       ;;
1.23      millert  9193:
1.27      millert  9194:     amigaos*)
                   9195:       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)'
                   9196:       hardcode_libdir_flag_spec='-L$libdir'
                   9197:       hardcode_minus_L=yes
                   9198:       # see comment about different semantics on the GNU ld section
                   9199:       ld_shlibs=no
                   9200:       ;;
1.23      millert  9201:
1.27      millert  9202:     bsdi[45]*)
                   9203:       export_dynamic_flag_spec=-rdynamic
                   9204:       ;;
1.25      millert  9205:
1.27      millert  9206:     cygwin* | mingw* | pw32*)
                   9207:       # When not using gcc, we currently assume that we are using
                   9208:       # Microsoft Visual C++.
                   9209:       # hardcode_libdir_flag_spec is actually meaningless, as there is
                   9210:       # no search path for DLLs.
                   9211:       hardcode_libdir_flag_spec=' '
                   9212:       allow_undefined_flag=unsupported
                   9213:       # Tell ltmain to make .lib files, not .a files.
                   9214:       libext=lib
                   9215:       # Tell ltmain to make .dll files, not .so files.
                   9216:       shrext_cmds=".dll"
                   9217:       # FIXME: Setting linknames here is a bad hack.
                   9218:       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
                   9219:       # The linker will automatically build a .lib file if we build a DLL.
                   9220:       old_archive_From_new_cmds='true'
                   9221:       # FIXME: Should let the user specify the lib program.
                   9222:       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
                   9223:       fix_srcfile_path='`cygpath -w "$srcfile"`'
                   9224:       enable_shared_with_static_runtimes=yes
                   9225:       ;;
1.25      millert  9226:
1.27      millert  9227:     darwin* | rhapsody*)
                   9228:       case $host_os in
                   9229:         rhapsody* | darwin1.[012])
                   9230:          allow_undefined_flag='${wl}-undefined ${wl}suppress'
                   9231:          ;;
                   9232:        *) # Darwin 1.3 on
                   9233:          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
                   9234:            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
                   9235:          else
                   9236:            case ${MACOSX_DEPLOYMENT_TARGET} in
                   9237:              10.[012])
                   9238:                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
                   9239:                ;;
                   9240:              10.*)
                   9241:                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
                   9242:                ;;
                   9243:            esac
                   9244:          fi
                   9245:          ;;
                   9246:       esac
                   9247:       archive_cmds_need_lc=no
                   9248:       hardcode_direct=no
                   9249:       hardcode_automatic=yes
                   9250:       hardcode_shlibpath_var=unsupported
                   9251:       whole_archive_flag_spec=''
                   9252:       link_all_deplibs=yes
                   9253:     if test "$GCC" = yes ; then
                   9254:        output_verbose_link_cmd='echo'
1.36      millert  9255:         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
                   9256:         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
                   9257:         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}"
                   9258:         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.27      millert  9259:     else
                   9260:       case $cc_basename in
                   9261:         xlc*)
                   9262:          output_verbose_link_cmd='echo'
                   9263:          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
                   9264:          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
                   9265:           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
                   9266:          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   9267:           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   9268:           ;;
                   9269:        *)
                   9270:          ld_shlibs=no
                   9271:           ;;
                   9272:       esac
                   9273:     fi
                   9274:       ;;
1.25      millert  9275:
1.27      millert  9276:     dgux*)
                   9277:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9278:       hardcode_libdir_flag_spec='-L$libdir'
                   9279:       hardcode_shlibpath_var=no
1.25      millert  9280:       ;;
                   9281:
1.27      millert  9282:     freebsd1*)
                   9283:       ld_shlibs=no
                   9284:       ;;
1.23      millert  9285:
1.27      millert  9286:     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
                   9287:     # support.  Future versions do this automatically, but an explicit c++rt0.o
                   9288:     # does not break anything, and helps significantly (at the cost of a little
                   9289:     # extra space).
                   9290:     freebsd2.2*)
                   9291:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
                   9292:       hardcode_libdir_flag_spec='-R$libdir'
                   9293:       hardcode_direct=yes
                   9294:       hardcode_shlibpath_var=no
                   9295:       ;;
1.23      millert  9296:
1.27      millert  9297:     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
                   9298:     freebsd2*)
                   9299:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   9300:       hardcode_direct=yes
                   9301:       hardcode_minus_L=yes
                   9302:       hardcode_shlibpath_var=no
                   9303:       ;;
1.23      millert  9304:
1.27      millert  9305:     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
                   9306:     freebsd* | dragonfly*)
                   9307:       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
                   9308:       hardcode_libdir_flag_spec='-R$libdir'
                   9309:       hardcode_direct=yes
                   9310:       hardcode_shlibpath_var=no
                   9311:       ;;
1.23      millert  9312:
1.27      millert  9313:     hpux9*)
                   9314:       if test "$GCC" = yes; then
                   9315:        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
                   9316:       else
                   9317:        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
                   9318:       fi
                   9319:       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   9320:       hardcode_libdir_separator=:
                   9321:       hardcode_direct=yes
1.23      millert  9322:
1.27      millert  9323:       # hardcode_minus_L: Not really in the search PATH,
                   9324:       # but as the default location of the library.
                   9325:       hardcode_minus_L=yes
                   9326:       export_dynamic_flag_spec='${wl}-E'
                   9327:       ;;
1.23      millert  9328:
1.27      millert  9329:     hpux10*)
                   9330:       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
                   9331:        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   9332:       else
                   9333:        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
                   9334:       fi
                   9335:       if test "$with_gnu_ld" = no; then
                   9336:        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   9337:        hardcode_libdir_separator=:
1.23      millert  9338:
1.27      millert  9339:        hardcode_direct=yes
                   9340:        export_dynamic_flag_spec='${wl}-E'
1.23      millert  9341:
1.27      millert  9342:        # hardcode_minus_L: Not really in the search PATH,
                   9343:        # but as the default location of the library.
                   9344:        hardcode_minus_L=yes
                   9345:       fi
                   9346:       ;;
1.23      millert  9347:
1.27      millert  9348:     hpux11*)
                   9349:       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
                   9350:        case $host_cpu in
                   9351:        hppa*64*)
                   9352:          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9353:          ;;
                   9354:        ia64*)
                   9355:          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   9356:          ;;
                   9357:        *)
                   9358:          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   9359:          ;;
                   9360:        esac
                   9361:       else
                   9362:        case $host_cpu in
                   9363:        hppa*64*)
                   9364:          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9365:          ;;
                   9366:        ia64*)
                   9367:          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   9368:          ;;
                   9369:        *)
                   9370:          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   9371:          ;;
                   9372:        esac
                   9373:       fi
                   9374:       if test "$with_gnu_ld" = no; then
                   9375:        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   9376:        hardcode_libdir_separator=:
1.23      millert  9377:
1.27      millert  9378:        case $host_cpu in
                   9379:        hppa*64*|ia64*)
                   9380:          hardcode_libdir_flag_spec_ld='+b $libdir'
                   9381:          hardcode_direct=no
                   9382:          hardcode_shlibpath_var=no
                   9383:          ;;
                   9384:        *)
                   9385:          hardcode_direct=yes
                   9386:          export_dynamic_flag_spec='${wl}-E'
1.23      millert  9387:
1.27      millert  9388:          # hardcode_minus_L: Not really in the search PATH,
                   9389:          # but as the default location of the library.
                   9390:          hardcode_minus_L=yes
                   9391:          ;;
                   9392:        esac
                   9393:       fi
                   9394:       ;;
1.23      millert  9395:
1.27      millert  9396:     irix5* | irix6* | nonstopux*)
                   9397:       if test "$GCC" = yes; then
                   9398:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   9399:       else
                   9400:        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   9401:        hardcode_libdir_flag_spec_ld='-rpath $libdir'
                   9402:       fi
                   9403:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9404:       hardcode_libdir_separator=:
                   9405:       link_all_deplibs=yes
                   9406:       ;;
1.23      millert  9407:
1.27      millert  9408:     netbsd*)
                   9409:       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   9410:        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
                   9411:       else
                   9412:        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
                   9413:       fi
                   9414:       hardcode_libdir_flag_spec='-R$libdir'
                   9415:       hardcode_direct=yes
                   9416:       hardcode_shlibpath_var=no
                   9417:       ;;
1.23      millert  9418:
1.27      millert  9419:     newsos6)
                   9420:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9421:       hardcode_direct=yes
                   9422:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9423:       hardcode_libdir_separator=:
                   9424:       hardcode_shlibpath_var=no
                   9425:       ;;
1.23      millert  9426:
1.27      millert  9427:     openbsd*)
                   9428:       if test -f /usr/libexec/ld.so; then
                   9429:        hardcode_direct=yes
                   9430:        hardcode_shlibpath_var=no
                   9431:        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   9432:          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   9433:          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
                   9434:          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   9435:          export_dynamic_flag_spec='${wl}-E'
                   9436:        else
                   9437:          case $host_os in
                   9438:           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
                   9439:             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   9440:             hardcode_libdir_flag_spec='-R$libdir'
                   9441:             ;;
                   9442:           *)
                   9443:             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   9444:             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   9445:             ;;
                   9446:          esac
                   9447:         fi
                   9448:       else
                   9449:        ld_shlibs=no
                   9450:       fi
                   9451:       ;;
1.23      millert  9452:
1.27      millert  9453:     os2*)
                   9454:       hardcode_libdir_flag_spec='-L$libdir'
                   9455:       hardcode_minus_L=yes
                   9456:       allow_undefined_flag=unsupported
                   9457:       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'
                   9458:       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
                   9459:       ;;
1.23      millert  9460:
1.27      millert  9461:     osf3*)
                   9462:       if test "$GCC" = yes; then
                   9463:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   9464:        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   9465:       else
                   9466:        allow_undefined_flag=' -expect_unresolved \*'
                   9467:        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   9468:       fi
                   9469:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9470:       hardcode_libdir_separator=:
1.25      millert  9471:       ;;
1.23      millert  9472:
1.27      millert  9473:     osf4* | osf5*)     # as osf3* with the addition of -msym flag
                   9474:       if test "$GCC" = yes; then
                   9475:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   9476:        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   9477:        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9478:       else
                   9479:        allow_undefined_flag=' -expect_unresolved \*'
                   9480:        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   9481:        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
                   9482:        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
1.23      millert  9483:
1.27      millert  9484:        # Both c and cxx compiler support -rpath directly
                   9485:        hardcode_libdir_flag_spec='-rpath $libdir'
                   9486:       fi
                   9487:       hardcode_libdir_separator=:
                   9488:       ;;
1.23      millert  9489:
1.27      millert  9490:     solaris*)
                   9491:       no_undefined_flag=' -z text'
                   9492:       if test "$GCC" = yes; then
                   9493:        wlarc='${wl}'
                   9494:        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9495:        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                   9496:          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
                   9497:       else
                   9498:        wlarc=''
                   9499:        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9500:        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                   9501:        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
                   9502:       fi
                   9503:       hardcode_libdir_flag_spec='-R$libdir'
                   9504:       hardcode_shlibpath_var=no
                   9505:       case $host_os in
                   9506:       solaris2.[0-5] | solaris2.[0-5].*) ;;
                   9507:       *)
                   9508:        # The compiler driver will combine and reorder linker options,
                   9509:        # but understands `-z linker_flag'.  GCC discards it without `$wl',
                   9510:        # but is careful enough not to reorder.
                   9511:        # Supported since Solaris 2.6 (maybe 2.5.1?)
                   9512:        if test "$GCC" = yes; then
                   9513:          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
                   9514:        else
                   9515:          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
                   9516:        fi
                   9517:        ;;
                   9518:       esac
                   9519:       link_all_deplibs=yes
                   9520:       ;;
1.23      millert  9521:
1.27      millert  9522:     sunos4*)
                   9523:       if test "x$host_vendor" = xsequent; then
                   9524:        # Use $CC to link under sequent, because it throws in some extra .o
                   9525:        # files that make .init and .fini sections work.
                   9526:        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
                   9527:       else
                   9528:        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
                   9529:       fi
                   9530:       hardcode_libdir_flag_spec='-L$libdir'
                   9531:       hardcode_direct=yes
                   9532:       hardcode_minus_L=yes
                   9533:       hardcode_shlibpath_var=no
                   9534:       ;;
1.23      millert  9535:
1.27      millert  9536:     sysv4)
                   9537:       case $host_vendor in
                   9538:        sni)
                   9539:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9540:          hardcode_direct=yes # is this really true???
                   9541:        ;;
                   9542:        siemens)
                   9543:          ## LD is ld it makes a PLAMLIB
                   9544:          ## CC just makes a GrossModule.
                   9545:          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
                   9546:          reload_cmds='$CC -r -o $output$reload_objs'
                   9547:          hardcode_direct=no
                   9548:         ;;
                   9549:        motorola)
                   9550:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9551:          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
                   9552:        ;;
                   9553:       esac
                   9554:       runpath_var='LD_RUN_PATH'
                   9555:       hardcode_shlibpath_var=no
                   9556:       ;;
1.23      millert  9557:
1.27      millert  9558:     sysv4.3*)
                   9559:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9560:       hardcode_shlibpath_var=no
                   9561:       export_dynamic_flag_spec='-Bexport'
                   9562:       ;;
1.23      millert  9563:
1.27      millert  9564:     sysv4*MP*)
                   9565:       if test -d /usr/nec; then
                   9566:        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9567:        hardcode_shlibpath_var=no
                   9568:        runpath_var=LD_RUN_PATH
                   9569:        hardcode_runpath_var=yes
                   9570:        ld_shlibs=yes
                   9571:       fi
                   9572:       ;;
1.23      millert  9573:
1.27      millert  9574:     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
                   9575:       no_undefined_flag='${wl}-z,text'
                   9576:       archive_cmds_need_lc=no
                   9577:       hardcode_shlibpath_var=no
                   9578:       runpath_var='LD_RUN_PATH'
1.23      millert  9579:
1.27      millert  9580:       if test "$GCC" = yes; then
                   9581:        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9582:        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9583:       else
                   9584:        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9585:        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9586:       fi
                   9587:       ;;
1.23      millert  9588:
1.27      millert  9589:     sysv5* | sco3.2v5* | sco5v6*)
                   9590:       # Note: We can NOT use -z defs as we might desire, because we do not
                   9591:       # link with -lc, and that would cause any symbols used from libc to
                   9592:       # always be unresolved, which means just about no library would
                   9593:       # ever link correctly.  If we're not using GNU ld we use -z text
                   9594:       # though, which does catch some bad symbols but isn't as heavy-handed
                   9595:       # as -z defs.
                   9596:       no_undefined_flag='${wl}-z,text'
                   9597:       allow_undefined_flag='${wl}-z,nodefs'
                   9598:       archive_cmds_need_lc=no
                   9599:       hardcode_shlibpath_var=no
                   9600:       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
                   9601:       hardcode_libdir_separator=':'
                   9602:       link_all_deplibs=yes
                   9603:       export_dynamic_flag_spec='${wl}-Bexport'
                   9604:       runpath_var='LD_RUN_PATH'
1.23      millert  9605:
1.27      millert  9606:       if test "$GCC" = yes; then
                   9607:        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9608:        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9609:       else
                   9610:        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9611:        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9612:       fi
                   9613:       ;;
1.23      millert  9614:
1.27      millert  9615:     uts4*)
                   9616:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9617:       hardcode_libdir_flag_spec='-L$libdir'
                   9618:       hardcode_shlibpath_var=no
                   9619:       ;;
1.23      millert  9620:
1.27      millert  9621:     *)
                   9622:       ld_shlibs=no
                   9623:       ;;
                   9624:     esac
                   9625:   fi
1.23      millert  9626:
1.27      millert  9627: { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
                   9628: echo "${ECHO_T}$ld_shlibs" >&6; }
                   9629: test "$ld_shlibs" = no && can_build_shared=no
1.23      millert  9630:
1.27      millert  9631: #
                   9632: # Do we need to explicitly link libc?
                   9633: #
                   9634: case "x$archive_cmds_need_lc" in
                   9635: x|xyes)
                   9636:   # Assume -lc should be added
                   9637:   archive_cmds_need_lc=yes
1.23      millert  9638:
1.27      millert  9639:   if test "$enable_shared" = yes && test "$GCC" = yes; then
                   9640:     case $archive_cmds in
                   9641:     *'~'*)
                   9642:       # FIXME: we may have to deal with multi-command sequences.
                   9643:       ;;
                   9644:     '$CC '*)
                   9645:       # Test whether the compiler implicitly links with -lc since on some
                   9646:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
                   9647:       # to ld, don't add -lc before -lgcc.
                   9648:       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
                   9649: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
                   9650:       $rm conftest*
                   9651:       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.25      millert  9652:
1.27      millert  9653:       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   9654:   (eval $ac_compile) 2>&5
                   9655:   ac_status=$?
                   9656:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9657:   (exit $ac_status); } 2>conftest.err; then
                   9658:         soname=conftest
                   9659:         lib=conftest
                   9660:         libobjs=conftest.$ac_objext
                   9661:         deplibs=
                   9662:         wl=$lt_prog_compiler_wl
                   9663:        pic_flag=$lt_prog_compiler_pic
                   9664:         compiler_flags=-v
                   9665:         linker_flags=-v
                   9666:         verstring=
                   9667:         output_objdir=.
                   9668:         libname=conftest
                   9669:         lt_save_allow_undefined_flag=$allow_undefined_flag
                   9670:         allow_undefined_flag=
                   9671:         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
                   9672:   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
                   9673:   ac_status=$?
                   9674:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9675:   (exit $ac_status); }
                   9676:         then
                   9677:          archive_cmds_need_lc=no
                   9678:         else
                   9679:          archive_cmds_need_lc=yes
                   9680:         fi
                   9681:         allow_undefined_flag=$lt_save_allow_undefined_flag
                   9682:       else
                   9683:         cat conftest.err 1>&5
                   9684:       fi
                   9685:       $rm conftest*
                   9686:       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
                   9687: echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
                   9688:       ;;
                   9689:     esac
                   9690:   fi
                   9691:   ;;
                   9692: esac
1.23      millert  9693:
1.27      millert  9694: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
                   9695: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
                   9696: library_names_spec=
                   9697: libname_spec='lib$name'
                   9698: soname_spec=
                   9699: shrext_cmds=".so"
                   9700: postinstall_cmds=
                   9701: postuninstall_cmds=
                   9702: finish_cmds=
                   9703: finish_eval=
                   9704: shlibpath_var=
                   9705: shlibpath_overrides_runpath=unknown
                   9706: version_type=none
                   9707: dynamic_linker="$host_os ld.so"
                   9708: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.23      millert  9709:
1.27      millert  9710: if test "$GCC" = yes; then
                   9711:   case $host_os in
                   9712:     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
                   9713:     *) lt_awk_arg="/^libraries:/" ;;
                   9714:   esac
                   9715:   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
                   9716:   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
                   9717:     # if the path contains ";" then we assume it to be the separator
                   9718:     # otherwise default to the standard path separator (i.e. ":") - it is
                   9719:     # assumed that no part of a normal pathname contains ";" but that should
                   9720:     # okay in the real world where ";" in dirpaths is itself problematic.
                   9721:     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
                   9722:   else
                   9723:     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
                   9724:   fi
                   9725:   # Ok, now we have the path, separated by spaces, we can step through it
                   9726:   # and add multilib dir if necessary.
                   9727:   lt_tmp_lt_search_path_spec=
                   9728:   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
                   9729:   for lt_sys_path in $lt_search_path_spec; do
                   9730:     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
                   9731:       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
                   9732:     else
                   9733:       test -d "$lt_sys_path" && \
                   9734:        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
                   9735:     fi
                   9736:   done
                   9737:   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
                   9738: BEGIN {RS=" "; FS="/|\n";} {
                   9739:   lt_foo="";
                   9740:   lt_count=0;
                   9741:   for (lt_i = NF; lt_i > 0; lt_i--) {
                   9742:     if ($lt_i != "" && $lt_i != ".") {
                   9743:       if ($lt_i == "..") {
                   9744:         lt_count++;
                   9745:       } else {
                   9746:         if (lt_count == 0) {
                   9747:           lt_foo="/" $lt_i lt_foo;
                   9748:         } else {
                   9749:           lt_count--;
                   9750:         }
                   9751:       }
                   9752:     }
                   9753:   }
                   9754:   if (lt_foo != "") { lt_freq[lt_foo]++; }
                   9755:   if (lt_freq[lt_foo] == 1) { print lt_foo; }
                   9756: }'`
                   9757:   sys_lib_search_path_spec=`echo $lt_search_path_spec`
1.25      millert  9758: else
1.27      millert  9759:   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.25      millert  9760: fi
1.27      millert  9761: need_lib_prefix=no
                   9762: hardcode_into_libs=no
1.25      millert  9763:
1.27      millert  9764: # when you set need_version to no, make sure it does not cause -set_version
                   9765: # flags to be left without arguments
                   9766: need_version=no
1.25      millert  9767:
1.27      millert  9768: case $host_os in
                   9769: aix3*)
                   9770:   version_type=linux
                   9771:   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
                   9772:   shlibpath_var=LIBPATH
1.25      millert  9773:
1.27      millert  9774:   # AIX 3 has no versioning support, so we append a major version to the name.
                   9775:   soname_spec='${libname}${release}${shared_ext}$major'
                   9776:   ;;
1.23      millert  9777:
1.36      millert  9778: aix[4-9]*)
1.27      millert  9779:   version_type=linux
                   9780:   need_lib_prefix=no
                   9781:   need_version=no
                   9782:   hardcode_into_libs=yes
                   9783:   if test "$host_cpu" = ia64; then
                   9784:     # AIX 5 supports IA64
                   9785:     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
                   9786:     shlibpath_var=LD_LIBRARY_PATH
                   9787:   else
                   9788:     # With GCC up to 2.95.x, collect2 would create an import file
                   9789:     # for dependence libraries.  The import file would start with
                   9790:     # the line `#! .'.  This would cause the generated library to
                   9791:     # depend on `.', always an invalid library.  This was fixed in
                   9792:     # development snapshots of GCC prior to 3.0.
                   9793:     case $host_os in
                   9794:       aix4 | aix4.[01] | aix4.[01].*)
                   9795:       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
                   9796:           echo ' yes '
                   9797:           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
                   9798:        :
                   9799:       else
                   9800:        can_build_shared=no
                   9801:       fi
                   9802:       ;;
                   9803:     esac
                   9804:     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
                   9805:     # soname into executable. Probably we can add versioning support to
                   9806:     # collect2, so additional links can be useful in future.
                   9807:     if test "$aix_use_runtimelinking" = yes; then
                   9808:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
                   9809:       # instead of lib<name>.a to let people know that these are not
                   9810:       # typical AIX shared libraries.
                   9811:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9812:     else
                   9813:       # We preserve .a as extension for shared libraries through AIX4.2
                   9814:       # and later when we are not doing run time linking.
                   9815:       library_names_spec='${libname}${release}.a $libname.a'
                   9816:       soname_spec='${libname}${release}${shared_ext}$major'
                   9817:     fi
                   9818:     shlibpath_var=LIBPATH
                   9819:   fi
                   9820:   ;;
1.23      millert  9821:
1.27      millert  9822: amigaos*)
                   9823:   library_names_spec='$libname.ixlibrary $libname.a'
                   9824:   # Create ${libname}_ixlibrary.a entries in /sys/libs.
                   9825:   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
                   9826:   ;;
1.23      millert  9827:
1.27      millert  9828: beos*)
                   9829:   library_names_spec='${libname}${shared_ext}'
                   9830:   dynamic_linker="$host_os ld.so"
                   9831:   shlibpath_var=LIBRARY_PATH
                   9832:   ;;
1.23      millert  9833:
1.27      millert  9834: bsdi[45]*)
                   9835:   version_type=linux
                   9836:   need_version=no
                   9837:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9838:   soname_spec='${libname}${release}${shared_ext}$major'
                   9839:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
                   9840:   shlibpath_var=LD_LIBRARY_PATH
                   9841:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
                   9842:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
                   9843:   # the default ld.so.conf also contains /usr/contrib/lib and
                   9844:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
                   9845:   # libtool to hard-code these into programs
                   9846:   ;;
1.23      millert  9847:
1.27      millert  9848: cygwin* | mingw* | pw32*)
                   9849:   version_type=windows
                   9850:   shrext_cmds=".dll"
                   9851:   need_version=no
                   9852:   need_lib_prefix=no
1.23      millert  9853:
1.27      millert  9854:   case $GCC,$host_os in
                   9855:   yes,cygwin* | yes,mingw* | yes,pw32*)
                   9856:     library_names_spec='$libname.dll.a'
                   9857:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
                   9858:     postinstall_cmds='base_file=`basename \${file}`~
                   9859:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
                   9860:       dldir=$destdir/`dirname \$dlpath`~
                   9861:       test -d \$dldir || mkdir -p \$dldir~
                   9862:       $install_prog $dir/$dlname \$dldir/$dlname~
                   9863:       chmod a+x \$dldir/$dlname'
                   9864:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
                   9865:       dlpath=$dir/\$dldll~
                   9866:        $rm \$dlpath'
                   9867:     shlibpath_overrides_runpath=yes
1.23      millert  9868:
1.27      millert  9869:     case $host_os in
                   9870:     cygwin*)
                   9871:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
                   9872:       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9873:       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
                   9874:       ;;
                   9875:     mingw*)
                   9876:       # MinGW DLLs use traditional 'lib' prefix
                   9877:       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9878:       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
                   9879:       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
                   9880:         # It is most probably a Windows format PATH printed by
                   9881:         # mingw gcc, but we are running on Cygwin. Gcc prints its search
                   9882:         # path with ; separators, and with drive letters. We can handle the
                   9883:         # drive letters (cygwin fileutils understands them), so leave them,
                   9884:         # especially as we might pass files found there to a mingw objdump,
                   9885:         # which wouldn't understand a cygwinified path. Ahh.
                   9886:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
                   9887:       else
                   9888:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
                   9889:       fi
                   9890:       ;;
                   9891:     pw32*)
                   9892:       # pw32 DLLs use 'pw' prefix rather than 'lib'
                   9893:       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9894:       ;;
                   9895:     esac
                   9896:     ;;
1.23      millert  9897:
1.27      millert  9898:   *)
                   9899:     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
                   9900:     ;;
                   9901:   esac
                   9902:   dynamic_linker='Win32 ld.exe'
                   9903:   # FIXME: first we should search . and the directory the executable is in
                   9904:   shlibpath_var=PATH
                   9905:   ;;
1.23      millert  9906:
1.27      millert  9907: darwin* | rhapsody*)
                   9908:   dynamic_linker="$host_os dyld"
                   9909:   version_type=darwin
                   9910:   need_lib_prefix=no
                   9911:   need_version=no
                   9912:   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
                   9913:   soname_spec='${libname}${release}${major}$shared_ext'
                   9914:   shlibpath_overrides_runpath=yes
                   9915:   shlibpath_var=DYLD_LIBRARY_PATH
                   9916:   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.23      millert  9917:
1.27      millert  9918:   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
                   9919:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
                   9920:   ;;
1.23      millert  9921:
1.27      millert  9922: dgux*)
                   9923:   version_type=linux
                   9924:   need_lib_prefix=no
                   9925:   need_version=no
                   9926:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
                   9927:   soname_spec='${libname}${release}${shared_ext}$major'
                   9928:   shlibpath_var=LD_LIBRARY_PATH
                   9929:   ;;
1.23      millert  9930:
1.27      millert  9931: freebsd1*)
                   9932:   dynamic_linker=no
                   9933:   ;;
1.23      millert  9934:
1.27      millert  9935: freebsd* | dragonfly*)
                   9936:   # DragonFly does not have aout.  When/if they implement a new
                   9937:   # versioning mechanism, adjust this.
                   9938:   if test -x /usr/bin/objformat; then
                   9939:     objformat=`/usr/bin/objformat`
                   9940:   else
                   9941:     case $host_os in
                   9942:     freebsd[123]*) objformat=aout ;;
                   9943:     *) objformat=elf ;;
                   9944:     esac
                   9945:   fi
                   9946:   version_type=freebsd-$objformat
                   9947:   case $version_type in
                   9948:     freebsd-elf*)
                   9949:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   9950:       need_version=no
                   9951:       need_lib_prefix=no
                   9952:       ;;
                   9953:     freebsd-*)
                   9954:       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
                   9955:       need_version=no
                   9956:       ;;
                   9957:   esac
                   9958:   shlibpath_var=LD_LIBRARY_PATH
                   9959:   case $host_os in
                   9960:   freebsd2*)
                   9961:     shlibpath_overrides_runpath=yes
                   9962:     ;;
                   9963:   freebsd3.[01]* | freebsdelf3.[01]*)
                   9964:     shlibpath_overrides_runpath=yes
                   9965:     hardcode_into_libs=yes
                   9966:     ;;
                   9967:   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
                   9968:   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
                   9969:     shlibpath_overrides_runpath=no
                   9970:     hardcode_into_libs=yes
                   9971:     ;;
                   9972:   *) # from 4.6 on, and DragonFly
                   9973:     shlibpath_overrides_runpath=yes
                   9974:     hardcode_into_libs=yes
                   9975:     ;;
                   9976:   esac
                   9977:   ;;
1.23      millert  9978:
1.27      millert  9979: gnu*)
                   9980:   version_type=linux
                   9981:   need_lib_prefix=no
                   9982:   need_version=no
                   9983:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
                   9984:   soname_spec='${libname}${release}${shared_ext}$major'
                   9985:   shlibpath_var=LD_LIBRARY_PATH
                   9986:   hardcode_into_libs=yes
                   9987:   ;;
1.23      millert  9988:
1.27      millert  9989: hpux9* | hpux10* | hpux11*)
                   9990:   # Give a soname corresponding to the major version so that dld.sl refuses to
                   9991:   # link against other versions.
                   9992:   version_type=sunos
                   9993:   need_lib_prefix=no
                   9994:   need_version=no
                   9995:   case $host_cpu in
                   9996:   ia64*)
                   9997:     shrext_cmds='.so'
                   9998:     hardcode_into_libs=yes
                   9999:     dynamic_linker="$host_os dld.so"
                   10000:     shlibpath_var=LD_LIBRARY_PATH
                   10001:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   10002:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10003:     soname_spec='${libname}${release}${shared_ext}$major'
                   10004:     if test "X$HPUX_IA64_MODE" = X32; then
                   10005:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
                   10006:     else
                   10007:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
                   10008:     fi
                   10009:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   10010:     ;;
                   10011:    hppa*64*)
                   10012:      shrext_cmds='.sl'
                   10013:      hardcode_into_libs=yes
                   10014:      dynamic_linker="$host_os dld.sl"
                   10015:      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
                   10016:      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   10017:      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10018:      soname_spec='${libname}${release}${shared_ext}$major'
                   10019:      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
                   10020:      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   10021:      ;;
                   10022:    *)
                   10023:     shrext_cmds='.sl'
                   10024:     dynamic_linker="$host_os dld.sl"
                   10025:     shlibpath_var=SHLIB_PATH
                   10026:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
                   10027:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10028:     soname_spec='${libname}${release}${shared_ext}$major'
                   10029:     ;;
                   10030:   esac
                   10031:   # HP-UX runs *really* slowly unless shared libraries are mode 555.
                   10032:   postinstall_cmds='chmod 555 $lib'
                   10033:   ;;
1.23      millert  10034:
1.27      millert  10035: interix[3-9]*)
                   10036:   version_type=linux
                   10037:   need_lib_prefix=no
                   10038:   need_version=no
                   10039:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   10040:   soname_spec='${libname}${release}${shared_ext}$major'
                   10041:   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
                   10042:   shlibpath_var=LD_LIBRARY_PATH
                   10043:   shlibpath_overrides_runpath=no
                   10044:   hardcode_into_libs=yes
                   10045:   ;;
1.23      millert  10046:
1.27      millert  10047: irix5* | irix6* | nonstopux*)
                   10048:   case $host_os in
                   10049:     nonstopux*) version_type=nonstopux ;;
                   10050:     *)
                   10051:        if test "$lt_cv_prog_gnu_ld" = yes; then
                   10052:                version_type=linux
                   10053:        else
                   10054:                version_type=irix
                   10055:        fi ;;
                   10056:   esac
                   10057:   need_lib_prefix=no
                   10058:   need_version=no
                   10059:   soname_spec='${libname}${release}${shared_ext}$major'
                   10060:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
                   10061:   case $host_os in
                   10062:   irix5* | nonstopux*)
                   10063:     libsuff= shlibsuff=
                   10064:     ;;
                   10065:   *)
                   10066:     case $LD in # libtool.m4 will add one of these switches to LD
                   10067:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
                   10068:       libsuff= shlibsuff= libmagic=32-bit;;
                   10069:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
                   10070:       libsuff=32 shlibsuff=N32 libmagic=N32;;
                   10071:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
                   10072:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
                   10073:     *) libsuff= shlibsuff= libmagic=never-match;;
                   10074:     esac
                   10075:     ;;
                   10076:   esac
                   10077:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
                   10078:   shlibpath_overrides_runpath=no
                   10079:   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
                   10080:   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
                   10081:   hardcode_into_libs=yes
                   10082:   ;;
1.23      millert  10083:
1.27      millert  10084: # No shared lib support for Linux oldld, aout, or coff.
                   10085: linux*oldld* | linux*aout* | linux*coff*)
                   10086:   dynamic_linker=no
1.25      millert  10087:   ;;
1.23      millert  10088:
1.27      millert  10089: # This must be Linux ELF.
                   10090: linux* | k*bsd*-gnu)
                   10091:   version_type=linux
                   10092:   need_lib_prefix=no
                   10093:   need_version=no
                   10094:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10095:   soname_spec='${libname}${release}${shared_ext}$major'
                   10096:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
                   10097:   shlibpath_var=LD_LIBRARY_PATH
                   10098:   shlibpath_overrides_runpath=no
                   10099:   # This implies no fast_install, which is unacceptable.
                   10100:   # Some rework will be needed to allow for fast_install
                   10101:   # before this can be enabled.
                   10102:   hardcode_into_libs=yes
1.23      millert  10103:
1.27      millert  10104:   # Append ld.so.conf contents to the search path
                   10105:   if test -f /etc/ld.so.conf; then
                   10106:     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;/^$/d' | tr '\n' ' '`
                   10107:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
                   10108:   fi
1.23      millert  10109:
1.27      millert  10110:   # We used to test for /lib/ld.so.1 and disable shared libraries on
                   10111:   # powerpc, because MkLinux only supported shared libraries with the
                   10112:   # GNU dynamic linker.  Since this was broken with cross compilers,
                   10113:   # most powerpc-linux boxes support dynamic linking these days and
                   10114:   # people can always --disable-shared, the test was removed, and we
                   10115:   # assume the GNU/Linux dynamic linker is in use.
                   10116:   dynamic_linker='GNU/Linux ld.so'
                   10117:   ;;
1.23      millert  10118:
1.27      millert  10119: netbsd*)
                   10120:   version_type=sunos
                   10121:   need_lib_prefix=no
                   10122:   need_version=no
                   10123:   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   10124:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   10125:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   10126:     dynamic_linker='NetBSD (a.out) ld.so'
                   10127:   else
                   10128:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   10129:     soname_spec='${libname}${release}${shared_ext}$major'
                   10130:     dynamic_linker='NetBSD ld.elf_so'
                   10131:   fi
                   10132:   shlibpath_var=LD_LIBRARY_PATH
                   10133:   shlibpath_overrides_runpath=yes
                   10134:   hardcode_into_libs=yes
                   10135:   ;;
1.23      millert  10136:
1.27      millert  10137: newsos6)
                   10138:   version_type=linux
                   10139:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10140:   shlibpath_var=LD_LIBRARY_PATH
                   10141:   shlibpath_overrides_runpath=yes
                   10142:   ;;
1.23      millert  10143:
1.27      millert  10144: nto-qnx*)
                   10145:   version_type=linux
                   10146:   need_lib_prefix=no
                   10147:   need_version=no
                   10148:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10149:   soname_spec='${libname}${release}${shared_ext}$major'
                   10150:   shlibpath_var=LD_LIBRARY_PATH
                   10151:   shlibpath_overrides_runpath=yes
                   10152:   ;;
1.23      millert  10153:
1.27      millert  10154: openbsd*)
                   10155:   version_type=sunos
                   10156:   sys_lib_dlsearch_path_spec="/usr/lib"
                   10157:   need_lib_prefix=no
                   10158:   need_version=no
                   10159:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   10160:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   10161:   shlibpath_var=LD_LIBRARY_PATH
                   10162:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   10163:     case $host_os in
                   10164:       openbsd2.[89] | openbsd2.[89].*)
                   10165:        shlibpath_overrides_runpath=no
                   10166:        ;;
                   10167:       *)
                   10168:        shlibpath_overrides_runpath=yes
                   10169:        ;;
                   10170:       esac
                   10171:   else
                   10172:     shlibpath_overrides_runpath=yes
                   10173:   fi
                   10174:   ;;
1.23      millert  10175:
1.27      millert  10176: os2*)
                   10177:   libname_spec='$name'
                   10178:   shrext_cmds=".dll"
                   10179:   need_lib_prefix=no
                   10180:   library_names_spec='$libname${shared_ext} $libname.a'
                   10181:   dynamic_linker='OS/2 ld.exe'
                   10182:   shlibpath_var=LIBPATH
                   10183:   ;;
1.23      millert  10184:
1.27      millert  10185: osf3* | osf4* | osf5*)
                   10186:   version_type=osf
                   10187:   need_lib_prefix=no
                   10188:   need_version=no
                   10189:   soname_spec='${libname}${release}${shared_ext}$major'
                   10190:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10191:   shlibpath_var=LD_LIBRARY_PATH
                   10192:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
                   10193:   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
                   10194:   ;;
1.23      millert  10195:
1.27      millert  10196: rdos*)
                   10197:   dynamic_linker=no
                   10198:   ;;
1.23      millert  10199:
1.27      millert  10200: solaris*)
                   10201:   version_type=linux
                   10202:   need_lib_prefix=no
                   10203:   need_version=no
                   10204:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10205:   soname_spec='${libname}${release}${shared_ext}$major'
                   10206:   shlibpath_var=LD_LIBRARY_PATH
                   10207:   shlibpath_overrides_runpath=yes
                   10208:   hardcode_into_libs=yes
                   10209:   # ldd complains unless libraries are executable
                   10210:   postinstall_cmds='chmod +x $lib'
                   10211:   ;;
1.23      millert  10212:
1.27      millert  10213: sunos4*)
                   10214:   version_type=sunos
                   10215:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   10216:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
                   10217:   shlibpath_var=LD_LIBRARY_PATH
                   10218:   shlibpath_overrides_runpath=yes
                   10219:   if test "$with_gnu_ld" = yes; then
                   10220:     need_lib_prefix=no
                   10221:   fi
                   10222:   need_version=no
                   10223:   ;;
1.23      millert  10224:
1.27      millert  10225: sysv4 | sysv4.3*)
                   10226:   version_type=linux
                   10227:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10228:   soname_spec='${libname}${release}${shared_ext}$major'
                   10229:   shlibpath_var=LD_LIBRARY_PATH
                   10230:   case $host_vendor in
                   10231:     sni)
                   10232:       shlibpath_overrides_runpath=no
                   10233:       need_lib_prefix=no
                   10234:       export_dynamic_flag_spec='${wl}-Blargedynsym'
                   10235:       runpath_var=LD_RUN_PATH
                   10236:       ;;
                   10237:     siemens)
                   10238:       need_lib_prefix=no
                   10239:       ;;
                   10240:     motorola)
                   10241:       need_lib_prefix=no
                   10242:       need_version=no
                   10243:       shlibpath_overrides_runpath=no
                   10244:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
                   10245:       ;;
                   10246:   esac
1.25      millert  10247:   ;;
                   10248:
1.27      millert  10249: sysv4*MP*)
                   10250:   if test -d /usr/nec ;then
                   10251:     version_type=linux
                   10252:     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
                   10253:     soname_spec='$libname${shared_ext}.$major'
                   10254:     shlibpath_var=LD_LIBRARY_PATH
                   10255:   fi
                   10256:   ;;
1.25      millert  10257:
1.27      millert  10258: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
                   10259:   version_type=freebsd-elf
                   10260:   need_lib_prefix=no
                   10261:   need_version=no
                   10262:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   10263:   soname_spec='${libname}${release}${shared_ext}$major'
                   10264:   shlibpath_var=LD_LIBRARY_PATH
                   10265:   hardcode_into_libs=yes
                   10266:   if test "$with_gnu_ld" = yes; then
                   10267:     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
                   10268:     shlibpath_overrides_runpath=no
                   10269:   else
                   10270:     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
                   10271:     shlibpath_overrides_runpath=yes
                   10272:     case $host_os in
                   10273:       sco3.2v5*)
                   10274:         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
                   10275:        ;;
                   10276:     esac
                   10277:   fi
                   10278:   sys_lib_dlsearch_path_spec='/usr/lib'
1.25      millert  10279:   ;;
1.23      millert  10280:
1.27      millert  10281: uts4*)
                   10282:   version_type=linux
                   10283:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10284:   soname_spec='${libname}${release}${shared_ext}$major'
                   10285:   shlibpath_var=LD_LIBRARY_PATH
                   10286:   ;;
1.23      millert  10287:
1.25      millert  10288: *)
1.27      millert  10289:   dynamic_linker=no
1.25      millert  10290:   ;;
                   10291: esac
1.27      millert  10292: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
                   10293: echo "${ECHO_T}$dynamic_linker" >&6; }
                   10294: test "$dynamic_linker" = no && can_build_shared=no
1.23      millert  10295:
1.36      millert  10296: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
                   10297:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10298: else
                   10299:   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
                   10300: fi
                   10301:
                   10302: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
                   10303: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
                   10304:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10305: else
                   10306:   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
                   10307: fi
                   10308:
                   10309: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
                   10310:
1.27      millert  10311: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
                   10312: if test "$GCC" = yes; then
                   10313:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.25      millert  10314: fi
                   10315:
1.27      millert  10316: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
                   10317: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
                   10318: hardcode_action=
                   10319: if test -n "$hardcode_libdir_flag_spec" || \
                   10320:    test -n "$runpath_var" || \
                   10321:    test "X$hardcode_automatic" = "Xyes" ; then
1.23      millert  10322:
1.32      millert  10323:   # We can hardcode non-existent directories.
1.27      millert  10324:   if test "$hardcode_direct" != no &&
                   10325:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
                   10326:      # have to relink, otherwise we might link with an installed library
                   10327:      # when we should be linking with a yet-to-be-installed one
                   10328:      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
                   10329:      test "$hardcode_minus_L" != no; then
                   10330:     # Linking always hardcodes the temporary library directory.
                   10331:     hardcode_action=relink
1.25      millert  10332:   else
1.27      millert  10333:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
                   10334:     hardcode_action=immediate
1.25      millert  10335:   fi
1.27      millert  10336: else
                   10337:   # We cannot hardcode anything, or else we can only hardcode existing
                   10338:   # directories.
                   10339:   hardcode_action=unsupported
1.23      millert  10340: fi
1.27      millert  10341: { echo "$as_me:$LINENO: result: $hardcode_action" >&5
                   10342: echo "${ECHO_T}$hardcode_action" >&6; }
1.23      millert  10343:
1.27      millert  10344: if test "$hardcode_action" = relink; then
                   10345:   # Fast installation is not supported
                   10346:   enable_fast_install=no
                   10347: elif test "$shlibpath_overrides_runpath" = yes ||
                   10348:      test "$enable_shared" = no; then
                   10349:   # Fast installation is not necessary
                   10350:   enable_fast_install=needless
                   10351: fi
1.25      millert  10352:
1.27      millert  10353: striplib=
                   10354: old_striplib=
                   10355: { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
                   10356: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
                   10357: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
                   10358:   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
                   10359:   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
                   10360:   { echo "$as_me:$LINENO: result: yes" >&5
                   10361: echo "${ECHO_T}yes" >&6; }
                   10362: else
                   10363: # FIXME - insert some real tests, host_os isn't really good enough
                   10364:   case $host_os in
                   10365:    darwin*)
                   10366:        if test -n "$STRIP" ; then
                   10367:          striplib="$STRIP -x"
                   10368:          old_striplib="$STRIP -S"
                   10369:          { echo "$as_me:$LINENO: result: yes" >&5
                   10370: echo "${ECHO_T}yes" >&6; }
                   10371:        else
                   10372:   { echo "$as_me:$LINENO: result: no" >&5
                   10373: echo "${ECHO_T}no" >&6; }
                   10374: fi
                   10375:        ;;
                   10376:    *)
                   10377:   { echo "$as_me:$LINENO: result: no" >&5
                   10378: echo "${ECHO_T}no" >&6; }
                   10379:     ;;
                   10380:   esac
                   10381: fi
1.25      millert  10382:
1.27      millert  10383: if test "x$enable_dlopen" != xyes; then
                   10384:   enable_dlopen=unknown
                   10385:   enable_dlopen_self=unknown
                   10386:   enable_dlopen_self_static=unknown
                   10387: else
                   10388:   lt_cv_dlopen=no
                   10389:   lt_cv_dlopen_libs=
1.25      millert  10390:
1.27      millert  10391:   case $host_os in
                   10392:   beos*)
                   10393:     lt_cv_dlopen="load_add_on"
                   10394:     lt_cv_dlopen_libs=
                   10395:     lt_cv_dlopen_self=yes
                   10396:     ;;
1.23      millert  10397:
1.27      millert  10398:   mingw* | pw32*)
                   10399:     lt_cv_dlopen="LoadLibrary"
                   10400:     lt_cv_dlopen_libs=
                   10401:    ;;
1.23      millert  10402:
1.27      millert  10403:   cygwin*)
                   10404:     lt_cv_dlopen="dlopen"
                   10405:     lt_cv_dlopen_libs=
                   10406:    ;;
1.23      millert  10407:
1.27      millert  10408:   darwin*)
                   10409:   # if libdl is installed we need to link against it
                   10410:     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
                   10411: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
                   10412: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
                   10413:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10414: else
                   10415:   ac_check_lib_save_LIBS=$LIBS
                   10416: LIBS="-ldl  $LIBS"
                   10417: cat >conftest.$ac_ext <<_ACEOF
                   10418: /* confdefs.h.  */
                   10419: _ACEOF
                   10420: cat confdefs.h >>conftest.$ac_ext
                   10421: cat >>conftest.$ac_ext <<_ACEOF
                   10422: /* end confdefs.h.  */
1.23      millert  10423:
1.27      millert  10424: /* Override any GCC internal prototype to avoid an error.
                   10425:    Use char because int might match the return type of a GCC
                   10426:    builtin and then its argument prototype would still apply.  */
                   10427: #ifdef __cplusplus
                   10428: extern "C"
                   10429: #endif
                   10430: char dlopen ();
                   10431: int
                   10432: main ()
                   10433: {
                   10434: return dlopen ();
                   10435:   ;
                   10436:   return 0;
                   10437: }
                   10438: _ACEOF
                   10439: rm -f conftest.$ac_objext conftest$ac_exeext
                   10440: if { (ac_try="$ac_link"
                   10441: case "(($ac_try" in
                   10442:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10443:   *) ac_try_echo=$ac_try;;
                   10444: esac
                   10445: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10446:   (eval "$ac_link") 2>conftest.er1
                   10447:   ac_status=$?
                   10448:   grep -v '^ *+' conftest.er1 >conftest.err
                   10449:   rm -f conftest.er1
                   10450:   cat conftest.err >&5
                   10451:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10452:   (exit $ac_status); } && {
                   10453:         test -z "$ac_c_werror_flag" ||
                   10454:         test ! -s conftest.err
                   10455:        } && test -s conftest$ac_exeext &&
                   10456:        $as_test_x conftest$ac_exeext; then
                   10457:   ac_cv_lib_dl_dlopen=yes
                   10458: else
                   10459:   echo "$as_me: failed program was:" >&5
                   10460: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  10461:
1.27      millert  10462:        ac_cv_lib_dl_dlopen=no
                   10463: fi
1.23      millert  10464:
1.27      millert  10465: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10466:       conftest$ac_exeext conftest.$ac_ext
                   10467: LIBS=$ac_check_lib_save_LIBS
                   10468: fi
                   10469: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
                   10470: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
                   10471: if test $ac_cv_lib_dl_dlopen = yes; then
                   10472:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
                   10473: else
1.23      millert  10474:
1.27      millert  10475:     lt_cv_dlopen="dyld"
                   10476:     lt_cv_dlopen_libs=
                   10477:     lt_cv_dlopen_self=yes
1.23      millert  10478:
1.27      millert  10479: fi
1.23      millert  10480:
1.27      millert  10481:    ;;
1.23      millert  10482:
1.27      millert  10483:   *)
                   10484:     { echo "$as_me:$LINENO: checking for shl_load" >&5
                   10485: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
                   10486: if test "${ac_cv_func_shl_load+set}" = set; then
                   10487:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10488: else
                   10489:   cat >conftest.$ac_ext <<_ACEOF
                   10490: /* confdefs.h.  */
                   10491: _ACEOF
                   10492: cat confdefs.h >>conftest.$ac_ext
                   10493: cat >>conftest.$ac_ext <<_ACEOF
                   10494: /* end confdefs.h.  */
                   10495: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
                   10496:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   10497: #define shl_load innocuous_shl_load
1.23      millert  10498:
1.27      millert  10499: /* System header to define __stub macros and hopefully few prototypes,
                   10500:     which can conflict with char shl_load (); below.
                   10501:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   10502:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  10503:
1.27      millert  10504: #ifdef __STDC__
                   10505: # include <limits.h>
                   10506: #else
                   10507: # include <assert.h>
                   10508: #endif
1.23      millert  10509:
1.27      millert  10510: #undef shl_load
1.23      millert  10511:
1.27      millert  10512: /* Override any GCC internal prototype to avoid an error.
                   10513:    Use char because int might match the return type of a GCC
                   10514:    builtin and then its argument prototype would still apply.  */
                   10515: #ifdef __cplusplus
                   10516: extern "C"
                   10517: #endif
                   10518: char shl_load ();
                   10519: /* The GNU C library defines this for functions which it implements
                   10520:     to always fail with ENOSYS.  Some functions are actually named
                   10521:     something starting with __ and the normal name is an alias.  */
                   10522: #if defined __stub_shl_load || defined __stub___shl_load
                   10523: choke me
                   10524: #endif
1.23      millert  10525:
1.27      millert  10526: int
                   10527: main ()
                   10528: {
                   10529: return shl_load ();
                   10530:   ;
                   10531:   return 0;
                   10532: }
                   10533: _ACEOF
                   10534: rm -f conftest.$ac_objext conftest$ac_exeext
                   10535: if { (ac_try="$ac_link"
                   10536: case "(($ac_try" in
                   10537:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10538:   *) ac_try_echo=$ac_try;;
                   10539: esac
                   10540: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10541:   (eval "$ac_link") 2>conftest.er1
                   10542:   ac_status=$?
                   10543:   grep -v '^ *+' conftest.er1 >conftest.err
                   10544:   rm -f conftest.er1
                   10545:   cat conftest.err >&5
                   10546:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10547:   (exit $ac_status); } && {
                   10548:         test -z "$ac_c_werror_flag" ||
                   10549:         test ! -s conftest.err
                   10550:        } && test -s conftest$ac_exeext &&
                   10551:        $as_test_x conftest$ac_exeext; then
                   10552:   ac_cv_func_shl_load=yes
                   10553: else
                   10554:   echo "$as_me: failed program was:" >&5
                   10555: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  10556:
1.27      millert  10557:        ac_cv_func_shl_load=no
                   10558: fi
1.23      millert  10559:
1.27      millert  10560: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10561:       conftest$ac_exeext conftest.$ac_ext
1.25      millert  10562: fi
1.27      millert  10563: { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
                   10564: echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
                   10565: if test $ac_cv_func_shl_load = yes; then
                   10566:   lt_cv_dlopen="shl_load"
                   10567: else
                   10568:   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
                   10569: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
                   10570: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
1.25      millert  10571:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10572: else
1.27      millert  10573:   ac_check_lib_save_LIBS=$LIBS
                   10574: LIBS="-ldld  $LIBS"
                   10575: cat >conftest.$ac_ext <<_ACEOF
                   10576: /* confdefs.h.  */
                   10577: _ACEOF
                   10578: cat confdefs.h >>conftest.$ac_ext
                   10579: cat >>conftest.$ac_ext <<_ACEOF
                   10580: /* end confdefs.h.  */
1.25      millert  10581:
1.27      millert  10582: /* Override any GCC internal prototype to avoid an error.
                   10583:    Use char because int might match the return type of a GCC
                   10584:    builtin and then its argument prototype would still apply.  */
                   10585: #ifdef __cplusplus
                   10586: extern "C"
                   10587: #endif
                   10588: char shl_load ();
                   10589: int
                   10590: main ()
                   10591: {
                   10592: return shl_load ();
                   10593:   ;
                   10594:   return 0;
                   10595: }
                   10596: _ACEOF
                   10597: rm -f conftest.$ac_objext conftest$ac_exeext
                   10598: if { (ac_try="$ac_link"
                   10599: case "(($ac_try" in
                   10600:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10601:   *) ac_try_echo=$ac_try;;
                   10602: esac
                   10603: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10604:   (eval "$ac_link") 2>conftest.er1
                   10605:   ac_status=$?
                   10606:   grep -v '^ *+' conftest.er1 >conftest.err
                   10607:   rm -f conftest.er1
                   10608:   cat conftest.err >&5
                   10609:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10610:   (exit $ac_status); } && {
                   10611:         test -z "$ac_c_werror_flag" ||
                   10612:         test ! -s conftest.err
                   10613:        } && test -s conftest$ac_exeext &&
                   10614:        $as_test_x conftest$ac_exeext; then
                   10615:   ac_cv_lib_dld_shl_load=yes
1.25      millert  10616: else
1.27      millert  10617:   echo "$as_me: failed program was:" >&5
                   10618: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  10619:
1.27      millert  10620:        ac_cv_lib_dld_shl_load=no
1.25      millert  10621: fi
                   10622:
1.27      millert  10623: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10624:       conftest$ac_exeext conftest.$ac_ext
                   10625: LIBS=$ac_check_lib_save_LIBS
                   10626: fi
                   10627: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
                   10628: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
                   10629: if test $ac_cv_lib_dld_shl_load = yes; then
1.36      millert  10630:   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1.27      millert  10631: else
                   10632:   { echo "$as_me:$LINENO: checking for dlopen" >&5
                   10633: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
                   10634: if test "${ac_cv_func_dlopen+set}" = set; then
                   10635:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10636: else
                   10637:   cat >conftest.$ac_ext <<_ACEOF
                   10638: /* confdefs.h.  */
                   10639: _ACEOF
                   10640: cat confdefs.h >>conftest.$ac_ext
                   10641: cat >>conftest.$ac_ext <<_ACEOF
                   10642: /* end confdefs.h.  */
                   10643: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
                   10644:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   10645: #define dlopen innocuous_dlopen
                   10646:
                   10647: /* System header to define __stub macros and hopefully few prototypes,
                   10648:     which can conflict with char dlopen (); below.
                   10649:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   10650:     <limits.h> exists even on freestanding compilers.  */
                   10651:
                   10652: #ifdef __STDC__
                   10653: # include <limits.h>
                   10654: #else
                   10655: # include <assert.h>
                   10656: #endif
                   10657:
                   10658: #undef dlopen
                   10659:
                   10660: /* Override any GCC internal prototype to avoid an error.
                   10661:    Use char because int might match the return type of a GCC
                   10662:    builtin and then its argument prototype would still apply.  */
                   10663: #ifdef __cplusplus
                   10664: extern "C"
                   10665: #endif
                   10666: char dlopen ();
                   10667: /* The GNU C library defines this for functions which it implements
                   10668:     to always fail with ENOSYS.  Some functions are actually named
                   10669:     something starting with __ and the normal name is an alias.  */
                   10670: #if defined __stub_dlopen || defined __stub___dlopen
                   10671: choke me
                   10672: #endif
                   10673:
                   10674: int
                   10675: main ()
                   10676: {
                   10677: return dlopen ();
                   10678:   ;
                   10679:   return 0;
                   10680: }
                   10681: _ACEOF
                   10682: rm -f conftest.$ac_objext conftest$ac_exeext
                   10683: if { (ac_try="$ac_link"
                   10684: case "(($ac_try" in
                   10685:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10686:   *) ac_try_echo=$ac_try;;
                   10687: esac
                   10688: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10689:   (eval "$ac_link") 2>conftest.er1
                   10690:   ac_status=$?
                   10691:   grep -v '^ *+' conftest.er1 >conftest.err
                   10692:   rm -f conftest.er1
                   10693:   cat conftest.err >&5
                   10694:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10695:   (exit $ac_status); } && {
                   10696:         test -z "$ac_c_werror_flag" ||
                   10697:         test ! -s conftest.err
                   10698:        } && test -s conftest$ac_exeext &&
                   10699:        $as_test_x conftest$ac_exeext; then
                   10700:   ac_cv_func_dlopen=yes
                   10701: else
                   10702:   echo "$as_me: failed program was:" >&5
                   10703: sed 's/^/| /' conftest.$ac_ext >&5
                   10704:
                   10705:        ac_cv_func_dlopen=no
                   10706: fi
                   10707:
                   10708: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10709:       conftest$ac_exeext conftest.$ac_ext
                   10710: fi
                   10711: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
                   10712: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
                   10713: if test $ac_cv_func_dlopen = yes; then
                   10714:   lt_cv_dlopen="dlopen"
                   10715: else
                   10716:   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
                   10717: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
                   10718: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
                   10719:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10720: else
                   10721:   ac_check_lib_save_LIBS=$LIBS
                   10722: LIBS="-ldl  $LIBS"
                   10723: cat >conftest.$ac_ext <<_ACEOF
                   10724: /* confdefs.h.  */
                   10725: _ACEOF
                   10726: cat confdefs.h >>conftest.$ac_ext
                   10727: cat >>conftest.$ac_ext <<_ACEOF
                   10728: /* end confdefs.h.  */
                   10729:
                   10730: /* Override any GCC internal prototype to avoid an error.
                   10731:    Use char because int might match the return type of a GCC
                   10732:    builtin and then its argument prototype would still apply.  */
                   10733: #ifdef __cplusplus
                   10734: extern "C"
                   10735: #endif
                   10736: char dlopen ();
                   10737: int
                   10738: main ()
                   10739: {
                   10740: return dlopen ();
                   10741:   ;
                   10742:   return 0;
                   10743: }
                   10744: _ACEOF
                   10745: rm -f conftest.$ac_objext conftest$ac_exeext
                   10746: if { (ac_try="$ac_link"
                   10747: case "(($ac_try" in
                   10748:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10749:   *) ac_try_echo=$ac_try;;
                   10750: esac
                   10751: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10752:   (eval "$ac_link") 2>conftest.er1
                   10753:   ac_status=$?
                   10754:   grep -v '^ *+' conftest.er1 >conftest.err
                   10755:   rm -f conftest.er1
                   10756:   cat conftest.err >&5
                   10757:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10758:   (exit $ac_status); } && {
                   10759:         test -z "$ac_c_werror_flag" ||
                   10760:         test ! -s conftest.err
                   10761:        } && test -s conftest$ac_exeext &&
                   10762:        $as_test_x conftest$ac_exeext; then
                   10763:   ac_cv_lib_dl_dlopen=yes
                   10764: else
                   10765:   echo "$as_me: failed program was:" >&5
                   10766: sed 's/^/| /' conftest.$ac_ext >&5
                   10767:
                   10768:        ac_cv_lib_dl_dlopen=no
                   10769: fi
                   10770:
                   10771: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10772:       conftest$ac_exeext conftest.$ac_ext
                   10773: LIBS=$ac_check_lib_save_LIBS
                   10774: fi
                   10775: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
                   10776: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
                   10777: if test $ac_cv_lib_dl_dlopen = yes; then
                   10778:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
                   10779: else
                   10780:   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
                   10781: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
                   10782: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
                   10783:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10784: else
                   10785:   ac_check_lib_save_LIBS=$LIBS
                   10786: LIBS="-lsvld  $LIBS"
                   10787: cat >conftest.$ac_ext <<_ACEOF
                   10788: /* confdefs.h.  */
                   10789: _ACEOF
                   10790: cat confdefs.h >>conftest.$ac_ext
                   10791: cat >>conftest.$ac_ext <<_ACEOF
                   10792: /* end confdefs.h.  */
                   10793:
                   10794: /* Override any GCC internal prototype to avoid an error.
                   10795:    Use char because int might match the return type of a GCC
                   10796:    builtin and then its argument prototype would still apply.  */
                   10797: #ifdef __cplusplus
                   10798: extern "C"
                   10799: #endif
                   10800: char dlopen ();
                   10801: int
                   10802: main ()
                   10803: {
                   10804: return dlopen ();
                   10805:   ;
                   10806:   return 0;
                   10807: }
                   10808: _ACEOF
                   10809: rm -f conftest.$ac_objext conftest$ac_exeext
                   10810: if { (ac_try="$ac_link"
                   10811: case "(($ac_try" in
                   10812:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10813:   *) ac_try_echo=$ac_try;;
                   10814: esac
                   10815: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10816:   (eval "$ac_link") 2>conftest.er1
                   10817:   ac_status=$?
                   10818:   grep -v '^ *+' conftest.er1 >conftest.err
                   10819:   rm -f conftest.er1
                   10820:   cat conftest.err >&5
                   10821:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10822:   (exit $ac_status); } && {
                   10823:         test -z "$ac_c_werror_flag" ||
                   10824:         test ! -s conftest.err
                   10825:        } && test -s conftest$ac_exeext &&
                   10826:        $as_test_x conftest$ac_exeext; then
                   10827:   ac_cv_lib_svld_dlopen=yes
                   10828: else
                   10829:   echo "$as_me: failed program was:" >&5
                   10830: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  10831:
1.27      millert  10832:        ac_cv_lib_svld_dlopen=no
                   10833: fi
1.25      millert  10834:
1.27      millert  10835: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10836:       conftest$ac_exeext conftest.$ac_ext
                   10837: LIBS=$ac_check_lib_save_LIBS
                   10838: fi
                   10839: { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
                   10840: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
                   10841: if test $ac_cv_lib_svld_dlopen = yes; then
                   10842:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
                   10843: else
                   10844:   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
                   10845: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
                   10846: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
                   10847:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10848: else
                   10849:   ac_check_lib_save_LIBS=$LIBS
                   10850: LIBS="-ldld  $LIBS"
                   10851: cat >conftest.$ac_ext <<_ACEOF
                   10852: /* confdefs.h.  */
                   10853: _ACEOF
                   10854: cat confdefs.h >>conftest.$ac_ext
                   10855: cat >>conftest.$ac_ext <<_ACEOF
                   10856: /* end confdefs.h.  */
1.25      millert  10857:
1.27      millert  10858: /* Override any GCC internal prototype to avoid an error.
                   10859:    Use char because int might match the return type of a GCC
                   10860:    builtin and then its argument prototype would still apply.  */
                   10861: #ifdef __cplusplus
                   10862: extern "C"
                   10863: #endif
                   10864: char dld_link ();
                   10865: int
                   10866: main ()
                   10867: {
                   10868: return dld_link ();
                   10869:   ;
                   10870:   return 0;
                   10871: }
                   10872: _ACEOF
                   10873: rm -f conftest.$ac_objext conftest$ac_exeext
                   10874: if { (ac_try="$ac_link"
                   10875: case "(($ac_try" in
                   10876:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10877:   *) ac_try_echo=$ac_try;;
                   10878: esac
                   10879: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10880:   (eval "$ac_link") 2>conftest.er1
                   10881:   ac_status=$?
                   10882:   grep -v '^ *+' conftest.er1 >conftest.err
                   10883:   rm -f conftest.er1
                   10884:   cat conftest.err >&5
                   10885:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10886:   (exit $ac_status); } && {
                   10887:         test -z "$ac_c_werror_flag" ||
                   10888:         test ! -s conftest.err
                   10889:        } && test -s conftest$ac_exeext &&
                   10890:        $as_test_x conftest$ac_exeext; then
                   10891:   ac_cv_lib_dld_dld_link=yes
                   10892: else
                   10893:   echo "$as_me: failed program was:" >&5
                   10894: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  10895:
1.27      millert  10896:        ac_cv_lib_dld_dld_link=no
                   10897: fi
1.25      millert  10898:
1.27      millert  10899: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10900:       conftest$ac_exeext conftest.$ac_ext
                   10901: LIBS=$ac_check_lib_save_LIBS
                   10902: fi
                   10903: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
                   10904: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
                   10905: if test $ac_cv_lib_dld_dld_link = yes; then
1.36      millert  10906:   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1.27      millert  10907: fi
1.25      millert  10908:
1.23      millert  10909:
1.27      millert  10910: fi
1.23      millert  10911:
                   10912:
1.27      millert  10913: fi
1.23      millert  10914:
1.25      millert  10915:
1.27      millert  10916: fi
1.23      millert  10917:
                   10918:
1.27      millert  10919: fi
1.23      millert  10920:
                   10921:
1.27      millert  10922: fi
1.23      millert  10923:
1.27      millert  10924:     ;;
                   10925:   esac
1.23      millert  10926:
1.27      millert  10927:   if test "x$lt_cv_dlopen" != xno; then
                   10928:     enable_dlopen=yes
                   10929:   else
                   10930:     enable_dlopen=no
                   10931:   fi
1.25      millert  10932:
1.27      millert  10933:   case $lt_cv_dlopen in
                   10934:   dlopen)
                   10935:     save_CPPFLAGS="$CPPFLAGS"
                   10936:     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.23      millert  10937:
1.27      millert  10938:     save_LDFLAGS="$LDFLAGS"
                   10939:     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.25      millert  10940:
1.27      millert  10941:     save_LIBS="$LIBS"
                   10942:     LIBS="$lt_cv_dlopen_libs $LIBS"
1.23      millert  10943:
1.27      millert  10944:     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
                   10945: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
                   10946: if test "${lt_cv_dlopen_self+set}" = set; then
                   10947:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10948: else
                   10949:          if test "$cross_compiling" = yes; then :
                   10950:   lt_cv_dlopen_self=cross
                   10951: else
                   10952:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   10953:   lt_status=$lt_dlunknown
                   10954:   cat > conftest.$ac_ext <<EOF
1.47      millert  10955: #line 10955 "configure"
1.27      millert  10956: #include "confdefs.h"
1.23      millert  10957:
1.27      millert  10958: #if HAVE_DLFCN_H
                   10959: #include <dlfcn.h>
                   10960: #endif
1.25      millert  10961:
1.27      millert  10962: #include <stdio.h>
1.25      millert  10963:
1.27      millert  10964: #ifdef RTLD_GLOBAL
                   10965: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   10966: #else
                   10967: #  ifdef DL_GLOBAL
                   10968: #    define LT_DLGLOBAL                DL_GLOBAL
                   10969: #  else
                   10970: #    define LT_DLGLOBAL                0
                   10971: #  endif
                   10972: #endif
1.25      millert  10973:
1.27      millert  10974: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   10975:    find out it does not work in some platform. */
                   10976: #ifndef LT_DLLAZY_OR_NOW
                   10977: #  ifdef RTLD_LAZY
                   10978: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   10979: #  else
                   10980: #    ifdef DL_LAZY
                   10981: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   10982: #    else
                   10983: #      ifdef RTLD_NOW
                   10984: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   10985: #      else
                   10986: #        ifdef DL_NOW
                   10987: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   10988: #        else
                   10989: #          define LT_DLLAZY_OR_NOW     0
                   10990: #        endif
                   10991: #      endif
                   10992: #    endif
                   10993: #  endif
                   10994: #endif
1.23      millert  10995:
1.27      millert  10996: #ifdef __cplusplus
                   10997: extern "C" void exit (int);
                   10998: #endif
1.23      millert  10999:
1.27      millert  11000: void fnord() { int i=42;}
                   11001: int main ()
                   11002: {
                   11003:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   11004:   int status = $lt_dlunknown;
1.23      millert  11005:
1.27      millert  11006:   if (self)
                   11007:     {
                   11008:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   11009:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
                   11010:       /* dlclose (self); */
                   11011:     }
                   11012:   else
                   11013:     puts (dlerror ());
1.23      millert  11014:
1.27      millert  11015:     exit (status);
                   11016: }
                   11017: EOF
                   11018:   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   11019:   (eval $ac_link) 2>&5
                   11020:   ac_status=$?
                   11021:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11022:   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
                   11023:     (./conftest; exit; ) >&5 2>/dev/null
                   11024:     lt_status=$?
                   11025:     case x$lt_status in
                   11026:       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
                   11027:       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
                   11028:       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1.23      millert  11029:     esac
1.27      millert  11030:   else :
                   11031:     # compilation failed
                   11032:     lt_cv_dlopen_self=no
1.23      millert  11033:   fi
1.27      millert  11034: fi
                   11035: rm -fr conftest*
1.23      millert  11036:
                   11037:
1.27      millert  11038: fi
                   11039: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
                   11040: echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
1.23      millert  11041:
1.27      millert  11042:     if test "x$lt_cv_dlopen_self" = xyes; then
                   11043:       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
                   11044:       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
                   11045: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
                   11046: if test "${lt_cv_dlopen_self_static+set}" = set; then
1.25      millert  11047:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.23      millert  11048: else
1.27      millert  11049:          if test "$cross_compiling" = yes; then :
                   11050:   lt_cv_dlopen_self_static=cross
1.25      millert  11051: else
1.27      millert  11052:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   11053:   lt_status=$lt_dlunknown
                   11054:   cat > conftest.$ac_ext <<EOF
1.47      millert  11055: #line 11055 "configure"
1.27      millert  11056: #include "confdefs.h"
1.23      millert  11057:
1.27      millert  11058: #if HAVE_DLFCN_H
                   11059: #include <dlfcn.h>
                   11060: #endif
1.23      millert  11061:
1.27      millert  11062: #include <stdio.h>
1.25      millert  11063:
1.27      millert  11064: #ifdef RTLD_GLOBAL
                   11065: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   11066: #else
                   11067: #  ifdef DL_GLOBAL
                   11068: #    define LT_DLGLOBAL                DL_GLOBAL
                   11069: #  else
                   11070: #    define LT_DLGLOBAL                0
                   11071: #  endif
                   11072: #endif
1.25      millert  11073:
1.27      millert  11074: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   11075:    find out it does not work in some platform. */
                   11076: #ifndef LT_DLLAZY_OR_NOW
                   11077: #  ifdef RTLD_LAZY
                   11078: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   11079: #  else
                   11080: #    ifdef DL_LAZY
                   11081: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   11082: #    else
                   11083: #      ifdef RTLD_NOW
                   11084: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   11085: #      else
                   11086: #        ifdef DL_NOW
                   11087: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   11088: #        else
                   11089: #          define LT_DLLAZY_OR_NOW     0
                   11090: #        endif
                   11091: #      endif
                   11092: #    endif
                   11093: #  endif
                   11094: #endif
1.25      millert  11095:
1.27      millert  11096: #ifdef __cplusplus
                   11097: extern "C" void exit (int);
                   11098: #endif
1.25      millert  11099:
1.27      millert  11100: void fnord() { int i=42;}
                   11101: int main ()
                   11102: {
                   11103:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   11104:   int status = $lt_dlunknown;
1.25      millert  11105:
1.27      millert  11106:   if (self)
                   11107:     {
                   11108:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   11109:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
                   11110:       /* dlclose (self); */
                   11111:     }
                   11112:   else
                   11113:     puts (dlerror ());
1.25      millert  11114:
1.27      millert  11115:     exit (status);
                   11116: }
                   11117: EOF
                   11118:   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   11119:   (eval $ac_link) 2>&5
                   11120:   ac_status=$?
                   11121:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11122:   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
                   11123:     (./conftest; exit; ) >&5 2>/dev/null
                   11124:     lt_status=$?
                   11125:     case x$lt_status in
                   11126:       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
                   11127:       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
                   11128:       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
                   11129:     esac
                   11130:   else :
                   11131:     # compilation failed
                   11132:     lt_cv_dlopen_self_static=no
                   11133:   fi
1.23      millert  11134: fi
1.27      millert  11135: rm -fr conftest*
1.23      millert  11136:
                   11137:
1.25      millert  11138: fi
1.27      millert  11139: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
                   11140: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
                   11141:     fi
1.23      millert  11142:
1.27      millert  11143:     CPPFLAGS="$save_CPPFLAGS"
                   11144:     LDFLAGS="$save_LDFLAGS"
                   11145:     LIBS="$save_LIBS"
1.25      millert  11146:     ;;
                   11147:   esac
1.23      millert  11148:
1.27      millert  11149:   case $lt_cv_dlopen_self in
                   11150:   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
                   11151:   *) enable_dlopen_self=unknown ;;
                   11152:   esac
1.23      millert  11153:
1.27      millert  11154:   case $lt_cv_dlopen_self_static in
                   11155:   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
                   11156:   *) enable_dlopen_self_static=unknown ;;
1.23      millert  11157:   esac
1.27      millert  11158: fi
1.23      millert  11159:
                   11160:
1.27      millert  11161: # Report which library types will actually be built
                   11162: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
                   11163: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
                   11164: { echo "$as_me:$LINENO: result: $can_build_shared" >&5
                   11165: echo "${ECHO_T}$can_build_shared" >&6; }
                   11166:
                   11167: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
                   11168: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
                   11169: test "$can_build_shared" = "no" && enable_shared=no
1.25      millert  11170:
1.27      millert  11171: # On AIX, shared libraries and static libraries use the same namespace, and
                   11172: # are all built from PIC.
                   11173: case $host_os in
                   11174: aix3*)
                   11175:   test "$enable_shared" = yes && enable_static=no
                   11176:   if test -n "$RANLIB"; then
                   11177:     archive_cmds="$archive_cmds~\$RANLIB \$lib"
                   11178:     postinstall_cmds='$RANLIB $lib'
                   11179:   fi
1.23      millert  11180:   ;;
                   11181:
1.36      millert  11182: aix[4-9]*)
1.27      millert  11183:   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
                   11184:     test "$enable_shared" = yes && enable_static=no
                   11185:   fi
                   11186:     ;;
1.23      millert  11187: esac
1.27      millert  11188: { echo "$as_me:$LINENO: result: $enable_shared" >&5
                   11189: echo "${ECHO_T}$enable_shared" >&6; }
1.23      millert  11190:
1.27      millert  11191: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
                   11192: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
                   11193: # Make sure either enable_shared or enable_static is yes.
                   11194: test "$enable_shared" = yes || enable_static=yes
                   11195: { echo "$as_me:$LINENO: result: $enable_static" >&5
                   11196: echo "${ECHO_T}$enable_static" >&6; }
                   11197:
                   11198: # The else clause should only fire when bootstrapping the
                   11199: # libtool distribution, otherwise you forgot to ship ltmain.sh
                   11200: # with your package, and you will get complaints that there are
                   11201: # no rules to generate ltmain.sh.
                   11202: if test -f "$ltmain"; then
                   11203:   # See if we are running on zsh, and set the options which allow our commands through
                   11204:   # without removal of \ escapes.
                   11205:   if test -n "${ZSH_VERSION+set}" ; then
                   11206:     setopt NO_GLOB_SUBST
                   11207:   fi
                   11208:   # Now quote all the things that may contain metacharacters while being
                   11209:   # careful not to overquote the AC_SUBSTed values.  We take copies of the
                   11210:   # variables and quote the copies for generation of the libtool script.
                   11211:   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
                   11212:     SED SHELL STRIP \
                   11213:     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
                   11214:     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
                   11215:     deplibs_check_method reload_flag reload_cmds need_locks \
                   11216:     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
                   11217:     lt_cv_sys_global_symbol_to_c_name_address \
                   11218:     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
                   11219:     old_postinstall_cmds old_postuninstall_cmds \
                   11220:     compiler \
                   11221:     CC \
                   11222:     LD \
                   11223:     lt_prog_compiler_wl \
                   11224:     lt_prog_compiler_pic \
                   11225:     lt_prog_compiler_static \
                   11226:     lt_prog_compiler_no_builtin_flag \
                   11227:     export_dynamic_flag_spec \
                   11228:     thread_safe_flag_spec \
                   11229:     whole_archive_flag_spec \
                   11230:     enable_shared_with_static_runtimes \
                   11231:     old_archive_cmds \
                   11232:     old_archive_from_new_cmds \
                   11233:     predep_objects \
                   11234:     postdep_objects \
                   11235:     predeps \
                   11236:     postdeps \
                   11237:     compiler_lib_search_path \
1.36      millert  11238:     compiler_lib_search_dirs \
1.27      millert  11239:     archive_cmds \
                   11240:     archive_expsym_cmds \
                   11241:     postinstall_cmds \
                   11242:     postuninstall_cmds \
                   11243:     old_archive_from_expsyms_cmds \
                   11244:     allow_undefined_flag \
                   11245:     no_undefined_flag \
                   11246:     export_symbols_cmds \
                   11247:     hardcode_libdir_flag_spec \
                   11248:     hardcode_libdir_flag_spec_ld \
                   11249:     hardcode_libdir_separator \
                   11250:     hardcode_automatic \
                   11251:     module_cmds \
                   11252:     module_expsym_cmds \
                   11253:     lt_cv_prog_compiler_c_o \
                   11254:     fix_srcfile_path \
                   11255:     exclude_expsyms \
                   11256:     include_expsyms; do
                   11257:
                   11258:     case $var in
                   11259:     old_archive_cmds | \
                   11260:     old_archive_from_new_cmds | \
                   11261:     archive_cmds | \
                   11262:     archive_expsym_cmds | \
                   11263:     module_cmds | \
                   11264:     module_expsym_cmds | \
                   11265:     old_archive_from_expsyms_cmds | \
                   11266:     export_symbols_cmds | \
                   11267:     extract_expsyms_cmds | reload_cmds | finish_cmds | \
                   11268:     postinstall_cmds | postuninstall_cmds | \
                   11269:     old_postinstall_cmds | old_postuninstall_cmds | \
                   11270:     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
                   11271:       # Double-quote double-evaled strings.
                   11272:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
                   11273:       ;;
                   11274:     *)
                   11275:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
                   11276:       ;;
                   11277:     esac
                   11278:   done
1.23      millert  11279:
1.27      millert  11280:   case $lt_echo in
                   11281:   *'\$0 --fallback-echo"')
                   11282:     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
                   11283:     ;;
                   11284:   esac
1.23      millert  11285:
1.27      millert  11286: cfgfile="${ofile}T"
                   11287:   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
                   11288:   $rm -f "$cfgfile"
                   11289:   { echo "$as_me:$LINENO: creating $ofile" >&5
                   11290: echo "$as_me: creating $ofile" >&6;}
1.23      millert  11291:
1.27      millert  11292:   cat <<__EOF__ >> "$cfgfile"
                   11293: #! $SHELL
1.23      millert  11294:
1.27      millert  11295: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
                   11296: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
                   11297: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
                   11298: #
1.36      millert  11299: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1.27      millert  11300: # Free Software Foundation, Inc.
                   11301: #
                   11302: # This file is part of GNU Libtool:
                   11303: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
                   11304: #
                   11305: # This program is free software; you can redistribute it and/or modify
                   11306: # it under the terms of the GNU General Public License as published by
                   11307: # the Free Software Foundation; either version 2 of the License, or
                   11308: # (at your option) any later version.
                   11309: #
                   11310: # This program is distributed in the hope that it will be useful, but
                   11311: # WITHOUT ANY WARRANTY; without even the implied warranty of
                   11312: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
                   11313: # General Public License for more details.
                   11314: #
                   11315: # You should have received a copy of the GNU General Public License
                   11316: # along with this program; if not, write to the Free Software
                   11317: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
                   11318: #
                   11319: # As a special exception to the GNU General Public License, if you
                   11320: # distribute this file as part of a program that contains a
                   11321: # configuration script generated by Autoconf, you may include it under
                   11322: # the same distribution terms that you use for the rest of that program.
1.23      millert  11323:
1.27      millert  11324: # A sed program that does not truncate output.
                   11325: SED=$lt_SED
1.23      millert  11326:
1.27      millert  11327: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
                   11328: Xsed="$SED -e 1s/^X//"
1.23      millert  11329:
1.27      millert  11330: # The HP-UX ksh and POSIX shell print the target directory to stdout
                   11331: # if CDPATH is set.
                   11332: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.23      millert  11333:
1.27      millert  11334: # The names of the tagged configurations supported by this script.
                   11335: available_tags=
1.23      millert  11336:
1.27      millert  11337: # ### BEGIN LIBTOOL CONFIG
1.23      millert  11338:
1.27      millert  11339: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.23      millert  11340:
1.27      millert  11341: # Shell to use when invoking shell scripts.
                   11342: SHELL=$lt_SHELL
1.23      millert  11343:
1.27      millert  11344: # Whether or not to build shared libraries.
                   11345: build_libtool_libs=$enable_shared
1.23      millert  11346:
1.27      millert  11347: # Whether or not to build static libraries.
                   11348: build_old_libs=$enable_static
1.23      millert  11349:
1.27      millert  11350: # Whether or not to add -lc for building shared libraries.
                   11351: build_libtool_need_lc=$archive_cmds_need_lc
1.23      millert  11352:
1.27      millert  11353: # Whether or not to disallow shared libs when runtime libs are static
                   11354: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1.23      millert  11355:
1.27      millert  11356: # Whether or not to optimize for fast installation.
                   11357: fast_install=$enable_fast_install
1.23      millert  11358:
1.27      millert  11359: # The host system.
                   11360: host_alias=$host_alias
                   11361: host=$host
                   11362: host_os=$host_os
1.23      millert  11363:
1.27      millert  11364: # The build system.
                   11365: build_alias=$build_alias
                   11366: build=$build
                   11367: build_os=$build_os
1.23      millert  11368:
1.27      millert  11369: # An echo program that does not interpret backslashes.
                   11370: echo=$lt_echo
1.23      millert  11371:
1.27      millert  11372: # The archiver.
                   11373: AR=$lt_AR
                   11374: AR_FLAGS=$lt_AR_FLAGS
1.23      millert  11375:
1.27      millert  11376: # A C compiler.
                   11377: LTCC=$lt_LTCC
1.23      millert  11378:
1.27      millert  11379: # LTCC compiler flags.
                   11380: LTCFLAGS=$lt_LTCFLAGS
1.23      millert  11381:
1.27      millert  11382: # A language-specific compiler.
                   11383: CC=$lt_compiler
1.23      millert  11384:
1.27      millert  11385: # Is the compiler the GNU C compiler?
                   11386: with_gcc=$GCC
1.23      millert  11387:
1.27      millert  11388: # An ERE matcher.
                   11389: EGREP=$lt_EGREP
1.23      millert  11390:
1.27      millert  11391: # The linker used to build libraries.
                   11392: LD=$lt_LD
1.23      millert  11393:
1.27      millert  11394: # Whether we need hard or soft links.
                   11395: LN_S=$lt_LN_S
1.23      millert  11396:
1.27      millert  11397: # A BSD-compatible nm program.
                   11398: NM=$lt_NM
1.23      millert  11399:
1.27      millert  11400: # A symbol stripping program
                   11401: STRIP=$lt_STRIP
1.23      millert  11402:
1.27      millert  11403: # Used to examine libraries when file_magic_cmd begins "file"
                   11404: MAGIC_CMD=$MAGIC_CMD
1.23      millert  11405:
1.27      millert  11406: # Used on cygwin: DLL creation program.
                   11407: DLLTOOL="$DLLTOOL"
1.23      millert  11408:
1.27      millert  11409: # Used on cygwin: object dumper.
                   11410: OBJDUMP="$OBJDUMP"
1.23      millert  11411:
1.27      millert  11412: # Used on cygwin: assembler.
                   11413: AS="$AS"
1.23      millert  11414:
1.27      millert  11415: # The name of the directory that contains temporary libtool files.
                   11416: objdir=$objdir
1.23      millert  11417:
1.27      millert  11418: # How to create reloadable object files.
                   11419: reload_flag=$lt_reload_flag
                   11420: reload_cmds=$lt_reload_cmds
1.23      millert  11421:
1.27      millert  11422: # How to pass a linker flag through the compiler.
                   11423: wl=$lt_lt_prog_compiler_wl
1.23      millert  11424:
1.27      millert  11425: # Object file suffix (normally "o").
                   11426: objext="$ac_objext"
1.23      millert  11427:
1.27      millert  11428: # Old archive suffix (normally "a").
                   11429: libext="$libext"
1.23      millert  11430:
1.27      millert  11431: # Shared library suffix (normally ".so").
                   11432: shrext_cmds='$shrext_cmds'
1.23      millert  11433:
1.27      millert  11434: # Executable file suffix (normally "").
                   11435: exeext="$exeext"
1.23      millert  11436:
1.27      millert  11437: # Additional compiler flags for building library objects.
                   11438: pic_flag=$lt_lt_prog_compiler_pic
                   11439: pic_mode=$pic_mode
1.23      millert  11440:
1.27      millert  11441: # What is the maximum length of a command?
                   11442: max_cmd_len=$lt_cv_sys_max_cmd_len
1.23      millert  11443:
1.27      millert  11444: # Does compiler simultaneously support -c and -o options?
                   11445: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1.23      millert  11446:
1.27      millert  11447: # Must we lock files when doing compilation?
                   11448: need_locks=$lt_need_locks
1.23      millert  11449:
1.27      millert  11450: # Do we need the lib prefix for modules?
                   11451: need_lib_prefix=$need_lib_prefix
1.23      millert  11452:
1.27      millert  11453: # Do we need a version for libraries?
                   11454: need_version=$need_version
1.23      millert  11455:
1.27      millert  11456: # Whether dlopen is supported.
                   11457: dlopen_support=$enable_dlopen
1.23      millert  11458:
1.27      millert  11459: # Whether dlopen of programs is supported.
                   11460: dlopen_self=$enable_dlopen_self
1.23      millert  11461:
1.27      millert  11462: # Whether dlopen of statically linked programs is supported.
                   11463: dlopen_self_static=$enable_dlopen_self_static
1.23      millert  11464:
1.27      millert  11465: # Compiler flag to prevent dynamic linking.
                   11466: link_static_flag=$lt_lt_prog_compiler_static
1.23      millert  11467:
1.27      millert  11468: # Compiler flag to turn off builtin functions.
                   11469: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1.23      millert  11470:
1.27      millert  11471: # Compiler flag to allow reflexive dlopens.
                   11472: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1.23      millert  11473:
1.27      millert  11474: # Compiler flag to generate shared objects directly from archives.
                   11475: whole_archive_flag_spec=$lt_whole_archive_flag_spec
1.23      millert  11476:
1.27      millert  11477: # Compiler flag to generate thread-safe objects.
                   11478: thread_safe_flag_spec=$lt_thread_safe_flag_spec
1.23      millert  11479:
1.27      millert  11480: # Library versioning type.
                   11481: version_type=$version_type
1.23      millert  11482:
1.27      millert  11483: # Format of library name prefix.
                   11484: libname_spec=$lt_libname_spec
1.23      millert  11485:
1.27      millert  11486: # List of archive names.  First name is the real one, the rest are links.
                   11487: # The last name is the one that the linker finds with -lNAME.
                   11488: library_names_spec=$lt_library_names_spec
1.25      millert  11489:
1.27      millert  11490: # The coded name of the library, if different from the real name.
                   11491: soname_spec=$lt_soname_spec
1.25      millert  11492:
1.27      millert  11493: # Commands used to build and install an old-style archive.
                   11494: RANLIB=$lt_RANLIB
                   11495: old_archive_cmds=$lt_old_archive_cmds
                   11496: old_postinstall_cmds=$lt_old_postinstall_cmds
                   11497: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.25      millert  11498:
1.27      millert  11499: # Create an old-style archive from a shared archive.
                   11500: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1.25      millert  11501:
1.27      millert  11502: # Create a temporary old-style archive to link instead of a shared archive.
                   11503: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1.25      millert  11504:
1.27      millert  11505: # Commands used to build and install a shared archive.
                   11506: archive_cmds=$lt_archive_cmds
                   11507: archive_expsym_cmds=$lt_archive_expsym_cmds
                   11508: postinstall_cmds=$lt_postinstall_cmds
                   11509: postuninstall_cmds=$lt_postuninstall_cmds
1.25      millert  11510:
1.27      millert  11511: # Commands used to build a loadable module (assumed same as above if empty)
                   11512: module_cmds=$lt_module_cmds
                   11513: module_expsym_cmds=$lt_module_expsym_cmds
1.25      millert  11514:
1.27      millert  11515: # Commands to strip libraries.
                   11516: old_striplib=$lt_old_striplib
                   11517: striplib=$lt_striplib
1.25      millert  11518:
1.27      millert  11519: # Dependencies to place before the objects being linked to create a
                   11520: # shared library.
                   11521: predep_objects=$lt_predep_objects
                   11522:
                   11523: # Dependencies to place after the objects being linked to create a
                   11524: # shared library.
                   11525: postdep_objects=$lt_postdep_objects
                   11526:
                   11527: # Dependencies to place before the objects being linked to create a
                   11528: # shared library.
                   11529: predeps=$lt_predeps
                   11530:
                   11531: # Dependencies to place after the objects being linked to create a
                   11532: # shared library.
                   11533: postdeps=$lt_postdeps
                   11534:
1.36      millert  11535: # The directories searched by this compiler when creating a shared
                   11536: # library
                   11537: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
                   11538:
1.27      millert  11539: # The library search path used internally by the compiler when linking
                   11540: # a shared library.
                   11541: compiler_lib_search_path=$lt_compiler_lib_search_path
1.25      millert  11542:
1.27      millert  11543: # Method to check whether dependent libraries are shared objects.
                   11544: deplibs_check_method=$lt_deplibs_check_method
1.25      millert  11545:
1.27      millert  11546: # Command to use when deplibs_check_method == file_magic.
                   11547: file_magic_cmd=$lt_file_magic_cmd
1.25      millert  11548:
1.27      millert  11549: # Flag that allows shared libraries with undefined symbols to be built.
                   11550: allow_undefined_flag=$lt_allow_undefined_flag
1.25      millert  11551:
1.27      millert  11552: # Flag that forces no undefined symbols.
                   11553: no_undefined_flag=$lt_no_undefined_flag
1.25      millert  11554:
1.27      millert  11555: # Commands used to finish a libtool library installation in a directory.
                   11556: finish_cmds=$lt_finish_cmds
1.25      millert  11557:
1.27      millert  11558: # Same as above, but a single script fragment to be evaled but not shown.
                   11559: finish_eval=$lt_finish_eval
1.25      millert  11560:
1.27      millert  11561: # Take the output of nm and produce a listing of raw symbols and C names.
                   11562: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.25      millert  11563:
1.27      millert  11564: # Transform the output of nm in a proper C declaration
                   11565: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.25      millert  11566:
1.27      millert  11567: # Transform the output of nm in a C name address pair
                   11568: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.25      millert  11569:
1.27      millert  11570: # This is the shared library runtime path variable.
                   11571: runpath_var=$runpath_var
1.25      millert  11572:
1.27      millert  11573: # This is the shared library path variable.
                   11574: shlibpath_var=$shlibpath_var
1.25      millert  11575:
1.27      millert  11576: # Is shlibpath searched before the hard-coded library search path?
                   11577: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.25      millert  11578:
1.27      millert  11579: # How to hardcode a shared library path into an executable.
                   11580: hardcode_action=$hardcode_action
1.25      millert  11581:
1.27      millert  11582: # Whether we should hardcode library paths into libraries.
                   11583: hardcode_into_libs=$hardcode_into_libs
1.25      millert  11584:
1.27      millert  11585: # Flag to hardcode \$libdir into a binary during linking.
                   11586: # This must work even if \$libdir does not exist.
                   11587: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1.25      millert  11588:
1.27      millert  11589: # If ld is used when linking, flag to hardcode \$libdir into
                   11590: # a binary during linking. This must work even if \$libdir does
                   11591: # not exist.
                   11592: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1.23      millert  11593:
1.27      millert  11594: # Whether we need a single -rpath flag with a separated argument.
                   11595: hardcode_libdir_separator=$lt_hardcode_libdir_separator
1.23      millert  11596:
1.27      millert  11597: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
                   11598: # resulting binary.
                   11599: hardcode_direct=$hardcode_direct
1.25      millert  11600:
1.27      millert  11601: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
                   11602: # resulting binary.
                   11603: hardcode_minus_L=$hardcode_minus_L
1.25      millert  11604:
1.27      millert  11605: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
                   11606: # the resulting binary.
                   11607: hardcode_shlibpath_var=$hardcode_shlibpath_var
1.25      millert  11608:
1.27      millert  11609: # Set to yes if building a shared library automatically hardcodes DIR into the library
                   11610: # and all subsequent libraries and executables linked against it.
                   11611: hardcode_automatic=$hardcode_automatic
1.25      millert  11612:
1.27      millert  11613: # Variables whose values should be saved in libtool wrapper scripts and
                   11614: # restored at relink time.
                   11615: variables_saved_for_relink="$variables_saved_for_relink"
1.25      millert  11616:
1.27      millert  11617: # Whether libtool must link a program against all its dependency libraries.
                   11618: link_all_deplibs=$link_all_deplibs
1.23      millert  11619:
1.27      millert  11620: # Compile-time system search path for libraries
                   11621: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.23      millert  11622:
1.27      millert  11623: # Run-time system search path for libraries
                   11624: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.23      millert  11625:
1.27      millert  11626: # Fix the shell variable \$srcfile for the compiler.
                   11627: fix_srcfile_path=$lt_fix_srcfile_path
1.23      millert  11628:
1.27      millert  11629: # Set to yes if exported symbols are required.
                   11630: always_export_symbols=$always_export_symbols
1.23      millert  11631:
1.27      millert  11632: # The commands to list exported symbols.
                   11633: export_symbols_cmds=$lt_export_symbols_cmds
1.23      millert  11634:
1.27      millert  11635: # The commands to extract the exported symbol list from a shared archive.
                   11636: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.23      millert  11637:
1.27      millert  11638: # Symbols that should not be listed in the preloaded symbols.
                   11639: exclude_expsyms=$lt_exclude_expsyms
1.23      millert  11640:
1.27      millert  11641: # Symbols that must always be exported.
                   11642: include_expsyms=$lt_include_expsyms
1.23      millert  11643:
1.27      millert  11644: # ### END LIBTOOL CONFIG
1.23      millert  11645:
1.27      millert  11646: __EOF__
1.23      millert  11647:
                   11648:
1.27      millert  11649:   case $host_os in
1.25      millert  11650:   aix3*)
1.27      millert  11651:     cat <<\EOF >> "$cfgfile"
1.23      millert  11652:
1.27      millert  11653: # AIX sometimes has problems with the GCC collect2 program.  For some
                   11654: # reason, if we set the COLLECT_NAMES environment variable, the problems
                   11655: # vanish in a puff of smoke.
                   11656: if test "X${COLLECT_NAMES+set}" != Xset; then
                   11657:   COLLECT_NAMES=
                   11658:   export COLLECT_NAMES
                   11659: fi
                   11660: EOF
1.25      millert  11661:     ;;
                   11662:   esac
1.23      millert  11663:
1.27      millert  11664:   # We use sed instead of cat because bash on DJGPP gets confused if
                   11665:   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
                   11666:   # text mode, it properly converts lines to CR/LF.  This bash problem
                   11667:   # is reportedly fixed, but why not run on old versions too?
                   11668:   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
1.23      millert  11669:
1.27      millert  11670:   mv -f "$cfgfile" "$ofile" || \
                   11671:     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
                   11672:   chmod +x "$ofile"
1.23      millert  11673:
1.27      millert  11674: else
                   11675:   # If there is no Makefile yet, we rely on a make rule to execute
                   11676:   # `config.status --recheck' to rerun these tests and create the
                   11677:   # libtool script then.
                   11678:   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
                   11679:   if test -f "$ltmain_in"; then
                   11680:     test -f Makefile && make "$ltmain"
                   11681:   fi
                   11682: fi
1.23      millert  11683:
                   11684:
1.25      millert  11685: ac_ext=c
                   11686: ac_cpp='$CPP $CPPFLAGS'
                   11687: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   11688: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   11689: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  11690:
1.25      millert  11691: CC="$lt_save_CC"
1.23      millert  11692:
                   11693:
                   11694:
1.27      millert  11695: # This can be used to rebuild libtool when needed
                   11696: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1.23      millert  11697:
1.27      millert  11698: # Always use our own libtool.
                   11699: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.23      millert  11700:
1.27      millert  11701: # Prevent multiple expansion
1.23      millert  11702:
                   11703:
                   11704:
                   11705:
                   11706:
                   11707:
                   11708:
                   11709:
                   11710:
                   11711:
1.25      millert  11712: if test "$enable_shared" = "no"; then
                   11713:     with_noexec=no
                   11714: else
1.26      millert  11715:     eval _shrext="$shrext_cmds"
1.25      millert  11716: fi
1.27      millert  11717: { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
                   11718: echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
1.23      millert  11719:
1.27      millert  11720: # Check whether --with-noexec was given.
1.25      millert  11721: if test "${with_noexec+set}" = set; then
1.27      millert  11722:   withval=$with_noexec; case $with_noexec in
1.25      millert  11723:     yes)       with_noexec="$libexecdir/sudo_noexec$_shrext"
                   11724:                ;;
                   11725:     no)                ;;
                   11726:     *)         ;;
                   11727: esac
                   11728: else
                   11729:   with_noexec="$libexecdir/sudo_noexec$_shrext"
1.27      millert  11730: fi
                   11731:
                   11732: { echo "$as_me:$LINENO: result: $with_noexec" >&5
                   11733: echo "${ECHO_T}$with_noexec" >&6; }
1.36      millert  11734: NOEXECFILE="sudo_noexec$_shrext"
1.25      millert  11735: NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
1.23      millert  11736:
1.25      millert  11737: if test "$with_devel" = "yes" -a -n "$GCC"; then
                   11738:     CFLAGS="${CFLAGS} -Wall"
                   11739: fi
1.23      millert  11740:
1.25      millert  11741: # Extract the first word of "uname", so it can be a program name with args.
                   11742: set dummy uname; ac_word=$2
1.27      millert  11743: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   11744: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  11745: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
                   11746:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11747: else
                   11748:   if test -n "$UNAMEPROG"; then
                   11749:   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
                   11750: else
                   11751: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   11752: for as_dir in $PATH
                   11753: do
                   11754:   IFS=$as_save_IFS
                   11755:   test -z "$as_dir" && as_dir=.
                   11756:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  11757:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  11758:     ac_cv_prog_UNAMEPROG="uname"
                   11759:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   11760:     break 2
                   11761:   fi
                   11762: done
                   11763: done
1.27      millert  11764: IFS=$as_save_IFS
1.23      millert  11765:
1.25      millert  11766: fi
                   11767: fi
                   11768: UNAMEPROG=$ac_cv_prog_UNAMEPROG
                   11769: if test -n "$UNAMEPROG"; then
1.27      millert  11770:   { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
                   11771: echo "${ECHO_T}$UNAMEPROG" >&6; }
1.25      millert  11772: else
1.27      millert  11773:   { echo "$as_me:$LINENO: result: no" >&5
                   11774: echo "${ECHO_T}no" >&6; }
1.25      millert  11775: fi
1.23      millert  11776:
1.27      millert  11777:
1.25      millert  11778: # Extract the first word of "tr", so it can be a program name with args.
                   11779: set dummy tr; ac_word=$2
1.27      millert  11780: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   11781: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  11782: if test "${ac_cv_prog_TRPROG+set}" = set; then
                   11783:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11784: else
                   11785:   if test -n "$TRPROG"; then
                   11786:   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
                   11787: else
                   11788: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   11789: for as_dir in $PATH
                   11790: do
                   11791:   IFS=$as_save_IFS
                   11792:   test -z "$as_dir" && as_dir=.
                   11793:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  11794:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  11795:     ac_cv_prog_TRPROG="tr"
                   11796:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   11797:     break 2
                   11798:   fi
                   11799: done
                   11800: done
1.27      millert  11801: IFS=$as_save_IFS
1.23      millert  11802:
1.25      millert  11803: fi
                   11804: fi
                   11805: TRPROG=$ac_cv_prog_TRPROG
                   11806: if test -n "$TRPROG"; then
1.27      millert  11807:   { echo "$as_me:$LINENO: result: $TRPROG" >&5
                   11808: echo "${ECHO_T}$TRPROG" >&6; }
1.25      millert  11809: else
1.27      millert  11810:   { echo "$as_me:$LINENO: result: no" >&5
                   11811: echo "${ECHO_T}no" >&6; }
1.25      millert  11812: fi
1.23      millert  11813:
1.27      millert  11814:
1.25      millert  11815: # Extract the first word of "nroff", so it can be a program name with args.
                   11816: set dummy nroff; ac_word=$2
1.27      millert  11817: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   11818: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  11819: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
                   11820:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11821: else
                   11822:   if test -n "$NROFFPROG"; then
                   11823:   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
                   11824: else
                   11825: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   11826: for as_dir in $PATH
                   11827: do
                   11828:   IFS=$as_save_IFS
                   11829:   test -z "$as_dir" && as_dir=.
                   11830:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  11831:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  11832:     ac_cv_prog_NROFFPROG="nroff"
                   11833:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   11834:     break 2
                   11835:   fi
                   11836: done
                   11837: done
1.27      millert  11838: IFS=$as_save_IFS
1.23      millert  11839:
1.25      millert  11840: fi
                   11841: fi
                   11842: NROFFPROG=$ac_cv_prog_NROFFPROG
                   11843: if test -n "$NROFFPROG"; then
1.27      millert  11844:   { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
                   11845: echo "${ECHO_T}$NROFFPROG" >&6; }
1.25      millert  11846: else
1.27      millert  11847:   { echo "$as_me:$LINENO: result: no" >&5
                   11848: echo "${ECHO_T}no" >&6; }
1.25      millert  11849: fi
1.23      millert  11850:
1.27      millert  11851:
1.25      millert  11852: if test -z "$NROFFPROG"; then
                   11853:     MANTYPE="cat"
                   11854:     mansrcdir='$(srcdir)'
                   11855: fi
1.23      millert  11856:
1.25      millert  11857: if test -n "$sudo_cv_prev_host"; then
                   11858:     if test "$sudo_cv_prev_host" != "$host"; then
                   11859:        { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
                   11860: echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
                   11861:    { (exit 1); exit 1; }; }
                   11862:     else
1.27      millert  11863:        { echo "$as_me:$LINENO: checking previous host type" >&5
                   11864: echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
1.25      millert  11865:        if test "${sudo_cv_prev_host+set}" = set; then
                   11866:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11867: else
                   11868:   sudo_cv_prev_host="$host"
                   11869: fi
1.23      millert  11870:
1.27      millert  11871:        { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
                   11872: echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
1.25      millert  11873:     fi
                   11874: else
                   11875:     # this will produce no output since there is no cached value
                   11876:     if test "${sudo_cv_prev_host+set}" = set; then
                   11877:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11878: else
                   11879:   sudo_cv_prev_host="$host"
                   11880: fi
1.23      millert  11881:
1.25      millert  11882: fi
1.23      millert  11883:
1.25      millert  11884: if test -n "$host_os"; then
                   11885:     OS=`echo $host_os | sed 's/[0-9].*//'`
                   11886:     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
                   11887:     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
                   11888: else
                   11889:     OS="unknown"
                   11890:     OSREV=0
                   11891:     OSMAJOR=0
                   11892: fi
1.23      millert  11893:
1.25      millert  11894: case "$host" in
                   11895:     *-*-sunos4*)
                   11896:                # getcwd(3) opens a pipe to getpwd(1)!?!
                   11897:                BROKEN_GETCWD=1
1.23      millert  11898:
1.25      millert  11899:                # system headers lack prototypes but gcc helps...
                   11900:                if test -n "$GCC"; then
                   11901:                    OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
                   11902:                fi
1.23      millert  11903:
1.25      millert  11904:                shadow_funcs="getpwanam issecure"
                   11905:                ;;
                   11906:     *-*-solaris2*)
                   11907:                # To get the crypt(3) prototype (so we pass -Wall)
                   11908:                OSDEFS="${OSDEFS} -D__EXTENSIONS__"
                   11909:                # AFS support needs -lucb
                   11910:                if test "$with_AFS" = "yes"; then
                   11911:                    AFS_LIBS="-lc -lucb"
                   11912:                fi
                   11913:                : ${mansectsu='1m'}
                   11914:                : ${mansectform='4'}
                   11915:                : ${with_rpath='yes'}
1.27      millert  11916:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  11917:                ;;
                   11918:     *-*-aix*)
                   11919:                # To get all prototypes (so we pass -Wall)
                   11920:                OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
                   11921:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
                   11922:                if test X"$with_blibpath" != X"no"; then
1.27      millert  11923:                    { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
                   11924: echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
1.25      millert  11925:                    O_LDFLAGS="$LDFLAGS"
                   11926:                    LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
                   11927:                    cat >conftest.$ac_ext <<_ACEOF
                   11928: /* confdefs.h.  */
                   11929: _ACEOF
                   11930: cat confdefs.h >>conftest.$ac_ext
                   11931: cat >>conftest.$ac_ext <<_ACEOF
                   11932: /* end confdefs.h.  */
1.23      millert  11933:
1.25      millert  11934: int
                   11935: main ()
                   11936: {
1.23      millert  11937:
1.25      millert  11938:   ;
                   11939:   return 0;
                   11940: }
                   11941: _ACEOF
                   11942: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  11943: if { (ac_try="$ac_link"
                   11944: case "(($ac_try" in
                   11945:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   11946:   *) ac_try_echo=$ac_try;;
                   11947: esac
                   11948: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   11949:   (eval "$ac_link") 2>conftest.er1
1.25      millert  11950:   ac_status=$?
                   11951:   grep -v '^ *+' conftest.er1 >conftest.err
                   11952:   rm -f conftest.er1
                   11953:   cat conftest.err >&5
                   11954:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  11955:   (exit $ac_status); } && {
                   11956:         test -z "$ac_c_werror_flag" ||
                   11957:         test ! -s conftest.err
                   11958:        } && test -s conftest$ac_exeext &&
                   11959:        $as_test_x conftest$ac_exeext; then
1.23      millert  11960:
1.25      millert  11961:                        if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
                   11962:                            blibpath="$with_blibpath"
                   11963:                        elif test -n "$GCC"; then
                   11964:                            blibpath="/usr/lib:/lib:/usr/local/lib"
                   11965:                        else
                   11966:                            blibpath="/usr/lib:/lib"
                   11967:                        fi
1.27      millert  11968:                        { echo "$as_me:$LINENO: result: yes" >&5
                   11969: echo "${ECHO_T}yes" >&6; }
1.23      millert  11970:
1.25      millert  11971: else
                   11972:   echo "$as_me: failed program was:" >&5
                   11973: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11974:
1.27      millert  11975:        { echo "$as_me:$LINENO: result: no" >&5
                   11976: echo "${ECHO_T}no" >&6; }
1.25      millert  11977: fi
1.27      millert  11978:
                   11979: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  11980:       conftest$ac_exeext conftest.$ac_ext
                   11981:                fi
                   11982:                LDFLAGS="$O_LDFLAGS"
1.23      millert  11983:
1.27      millert  11984:                # Use authenticate(3) as the default authentication method
1.25      millert  11985:                if test X"$with_aixauth" = X""; then
1.23      millert  11986:
1.25      millert  11987: for ac_func in authenticate
                   11988: do
                   11989: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  11990: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   11991: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   11992: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  11993:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11994: else
                   11995:   cat >conftest.$ac_ext <<_ACEOF
                   11996: /* confdefs.h.  */
                   11997: _ACEOF
                   11998: cat confdefs.h >>conftest.$ac_ext
                   11999: cat >>conftest.$ac_ext <<_ACEOF
                   12000: /* end confdefs.h.  */
                   12001: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   12002:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   12003: #define $ac_func innocuous_$ac_func
1.23      millert  12004:
1.25      millert  12005: /* System header to define __stub macros and hopefully few prototypes,
                   12006:     which can conflict with char $ac_func (); below.
                   12007:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   12008:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  12009:
1.25      millert  12010: #ifdef __STDC__
                   12011: # include <limits.h>
                   12012: #else
                   12013: # include <assert.h>
                   12014: #endif
1.23      millert  12015:
1.25      millert  12016: #undef $ac_func
1.23      millert  12017:
1.27      millert  12018: /* Override any GCC internal prototype to avoid an error.
                   12019:    Use char because int might match the return type of a GCC
                   12020:    builtin and then its argument prototype would still apply.  */
1.25      millert  12021: #ifdef __cplusplus
                   12022: extern "C"
                   12023: #endif
                   12024: char $ac_func ();
                   12025: /* The GNU C library defines this for functions which it implements
                   12026:     to always fail with ENOSYS.  Some functions are actually named
                   12027:     something starting with __ and the normal name is an alias.  */
1.27      millert  12028: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  12029: choke me
                   12030: #endif
1.23      millert  12031:
1.25      millert  12032: int
                   12033: main ()
                   12034: {
1.27      millert  12035: return $ac_func ();
1.25      millert  12036:   ;
                   12037:   return 0;
                   12038: }
                   12039: _ACEOF
                   12040: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  12041: if { (ac_try="$ac_link"
                   12042: case "(($ac_try" in
                   12043:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12044:   *) ac_try_echo=$ac_try;;
                   12045: esac
                   12046: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12047:   (eval "$ac_link") 2>conftest.er1
1.25      millert  12048:   ac_status=$?
                   12049:   grep -v '^ *+' conftest.er1 >conftest.err
                   12050:   rm -f conftest.er1
                   12051:   cat conftest.err >&5
                   12052:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12053:   (exit $ac_status); } && {
                   12054:         test -z "$ac_c_werror_flag" ||
                   12055:         test ! -s conftest.err
                   12056:        } && test -s conftest$ac_exeext &&
                   12057:        $as_test_x conftest$ac_exeext; then
1.25      millert  12058:   eval "$as_ac_var=yes"
                   12059: else
                   12060:   echo "$as_me: failed program was:" >&5
                   12061: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12062:
1.27      millert  12063:        eval "$as_ac_var=no"
1.25      millert  12064: fi
1.27      millert  12065:
                   12066: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  12067:       conftest$ac_exeext conftest.$ac_ext
                   12068: fi
1.27      millert  12069: ac_res=`eval echo '${'$as_ac_var'}'`
                   12070:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   12071: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  12072: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   12073:   cat >>confdefs.h <<_ACEOF
                   12074: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   12075: _ACEOF
1.27      millert  12076:  AUTH_EXCL_DEF="AIX_AUTH"
1.25      millert  12077: fi
                   12078: done
1.23      millert  12079:
1.25      millert  12080:                fi
1.37      millert  12081:
1.39      millert  12082:                # AIX analog of nsswitch.conf, enabled by default
                   12083:
                   12084: # Check whether --with-netsvc was given.
                   12085: if test "${with_netsvc+set}" = set; then
                   12086:   withval=$with_netsvc; case $with_netsvc in
                   12087:                    no)         ;;
                   12088:                    yes)        with_netsvc="/etc/netsvc.conf"
                   12089:                                ;;
                   12090:                    *)          ;;
                   12091:                esac
                   12092: fi
                   12093:
                   12094:                if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
                   12095:                    with_netsvc="/etc/netsvc.conf"
                   12096:                fi
                   12097:
1.37      millert  12098:                # AIX-specific functions
                   12099:
                   12100: for ac_func in getuserattr
                   12101: do
                   12102: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   12103: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   12104: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   12105: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   12106:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12107: else
                   12108:   cat >conftest.$ac_ext <<_ACEOF
                   12109: /* confdefs.h.  */
                   12110: _ACEOF
                   12111: cat confdefs.h >>conftest.$ac_ext
                   12112: cat >>conftest.$ac_ext <<_ACEOF
                   12113: /* end confdefs.h.  */
                   12114: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   12115:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   12116: #define $ac_func innocuous_$ac_func
                   12117:
                   12118: /* System header to define __stub macros and hopefully few prototypes,
                   12119:     which can conflict with char $ac_func (); below.
                   12120:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   12121:     <limits.h> exists even on freestanding compilers.  */
                   12122:
                   12123: #ifdef __STDC__
                   12124: # include <limits.h>
                   12125: #else
                   12126: # include <assert.h>
                   12127: #endif
                   12128:
                   12129: #undef $ac_func
                   12130:
                   12131: /* Override any GCC internal prototype to avoid an error.
                   12132:    Use char because int might match the return type of a GCC
                   12133:    builtin and then its argument prototype would still apply.  */
                   12134: #ifdef __cplusplus
                   12135: extern "C"
                   12136: #endif
                   12137: char $ac_func ();
                   12138: /* The GNU C library defines this for functions which it implements
                   12139:     to always fail with ENOSYS.  Some functions are actually named
                   12140:     something starting with __ and the normal name is an alias.  */
                   12141: #if defined __stub_$ac_func || defined __stub___$ac_func
                   12142: choke me
                   12143: #endif
                   12144:
                   12145: int
                   12146: main ()
                   12147: {
                   12148: return $ac_func ();
                   12149:   ;
                   12150:   return 0;
                   12151: }
                   12152: _ACEOF
                   12153: rm -f conftest.$ac_objext conftest$ac_exeext
                   12154: if { (ac_try="$ac_link"
                   12155: case "(($ac_try" in
                   12156:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12157:   *) ac_try_echo=$ac_try;;
                   12158: esac
                   12159: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12160:   (eval "$ac_link") 2>conftest.er1
                   12161:   ac_status=$?
                   12162:   grep -v '^ *+' conftest.er1 >conftest.err
                   12163:   rm -f conftest.er1
                   12164:   cat conftest.err >&5
                   12165:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12166:   (exit $ac_status); } && {
                   12167:         test -z "$ac_c_werror_flag" ||
                   12168:         test ! -s conftest.err
                   12169:        } && test -s conftest$ac_exeext &&
                   12170:        $as_test_x conftest$ac_exeext; then
                   12171:   eval "$as_ac_var=yes"
                   12172: else
                   12173:   echo "$as_me: failed program was:" >&5
                   12174: sed 's/^/| /' conftest.$ac_ext >&5
                   12175:
                   12176:        eval "$as_ac_var=no"
                   12177: fi
                   12178:
                   12179: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   12180:       conftest$ac_exeext conftest.$ac_ext
                   12181: fi
                   12182: ac_res=`eval echo '${'$as_ac_var'}'`
                   12183:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   12184: echo "${ECHO_T}$ac_res" >&6; }
                   12185: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   12186:   cat >>confdefs.h <<_ACEOF
                   12187: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   12188: _ACEOF
                   12189:
                   12190: fi
                   12191: done
                   12192:
                   12193:                SUDO_OBJS="$SUDO_OBJS aix.o"
1.25      millert  12194:                ;;
                   12195:     *-*-hiuxmpp*)
                   12196:                : ${mansectsu='1m'}
                   12197:                : ${mansectform='4'}
                   12198:                ;;
                   12199:     *-*-hpux*)
                   12200:                # AFS support needs -lBSD
                   12201:                if test "$with_AFS" = "yes"; then
                   12202:                    AFS_LIBS="-lc -lBSD"
                   12203:                fi
                   12204:                : ${mansectsu='1m'}
                   12205:                : ${mansectform='4'}
1.23      millert  12206:
1.38      millert  12207:                # HP-UX bundled compiler can't generate shared objects
                   12208:                if test "x$ac_cv_prog_cc_c89" = "xno"; then
                   12209:                    with_noexec=no
                   12210:                fi
1.40      millert  12211:
                   12212:                # Use the +DAportable flag if it is supported
                   12213:                _CFLAGS="$CFLAGS"
                   12214:                CFLAGS="$CFLAGS +DAportable"
                   12215:                { echo "$as_me:$LINENO: checking whether $CC understands +DAportable" >&5
                   12216: echo $ECHO_N "checking whether $CC understands +DAportable... $ECHO_C" >&6; }
                   12217: if test "${sudo_cv_var_daportable+set}" = set; then
                   12218:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12219: else
                   12220:   cat >conftest.$ac_ext <<_ACEOF
                   12221: /* confdefs.h.  */
                   12222: _ACEOF
                   12223: cat confdefs.h >>conftest.$ac_ext
                   12224: cat >>conftest.$ac_ext <<_ACEOF
                   12225: /* end confdefs.h.  */
                   12226:
                   12227: int
                   12228: main ()
                   12229: {
                   12230:
                   12231:   ;
                   12232:   return 0;
                   12233: }
                   12234: _ACEOF
                   12235: rm -f conftest.$ac_objext conftest$ac_exeext
                   12236: if { (ac_try="$ac_link"
                   12237: case "(($ac_try" in
                   12238:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12239:   *) ac_try_echo=$ac_try;;
                   12240: esac
                   12241: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12242:   (eval "$ac_link") 2>conftest.er1
                   12243:   ac_status=$?
                   12244:   grep -v '^ *+' conftest.er1 >conftest.err
                   12245:   rm -f conftest.er1
                   12246:   cat conftest.err >&5
                   12247:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12248:   (exit $ac_status); } && {
                   12249:         test -z "$ac_c_werror_flag" ||
                   12250:         test ! -s conftest.err
                   12251:        } && test -s conftest$ac_exeext &&
                   12252:        $as_test_x conftest$ac_exeext; then
                   12253:   sudo_cv_var_daportable=yes
                   12254: else
                   12255:   echo "$as_me: failed program was:" >&5
                   12256: sed 's/^/| /' conftest.$ac_ext >&5
                   12257:
                   12258:        sudo_cv_var_daportable=no
                   12259: fi
                   12260:
                   12261: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   12262:       conftest$ac_exeext conftest.$ac_ext
                   12263:
                   12264: fi
                   12265: { echo "$as_me:$LINENO: result: $sudo_cv_var_daportable" >&5
                   12266: echo "${ECHO_T}$sudo_cv_var_daportable" >&6; }
                   12267:                if test X"$sudo_cv_var_daportable" != X"yes"; then
                   12268:                    CFLAGS="$_CFLAGS"
                   12269:                fi
                   12270:
1.25      millert  12271:                case "$host" in
                   12272:                        *-*-hpux1-8.*)
                   12273:                            cat >>confdefs.h <<\_ACEOF
                   12274: #define BROKEN_SYSLOG 1
                   12275: _ACEOF
1.23      millert  12276:
                   12277:
1.25      millert  12278:                            # Not sure if setuid binaries are safe in < 9.x
                   12279:                            if test -n "$GCC"; then
                   12280:                                SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   12281:                            else
                   12282:                                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   12283:                            fi
                   12284:                        ;;
                   12285:                        *-*-hpux9.*)
                   12286:                            cat >>confdefs.h <<\_ACEOF
                   12287: #define BROKEN_SYSLOG 1
                   12288: _ACEOF
1.23      millert  12289:
                   12290:
1.25      millert  12291:                            shadow_funcs="getspwuid"
1.23      millert  12292:
1.25      millert  12293:                            # DCE support (requires ANSI C compiler)
                   12294:                            if test "$with_DCE" = "yes"; then
                   12295:                                # order of libs in 9.X is important. -lc_r must be last
                   12296:                                SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
                   12297:                                LIBS="${LIBS} -ldce -lM -lc_r"
                   12298:                                CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
                   12299:                            fi
                   12300:                        ;;
                   12301:                        *-*-hpux10.*)
                   12302:                            shadow_funcs="getprpwnam iscomsec"
                   12303:                            shadow_libs="-lsec"
                   12304:                        ;;
                   12305:                        *)
                   12306:                            shadow_funcs="getspnam iscomsec"
                   12307:                            shadow_libs="-lsec"
1.27      millert  12308:                            test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12309:                        ;;
                   12310:                esac
                   12311:                ;;
                   12312:     *-dec-osf*)
                   12313:                # ignore envariables wrt dynamic lib path
                   12314:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
1.23      millert  12315:
1.28      millert  12316:                : ${CHECKSIA='true'}
1.27      millert  12317:                { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
                   12318: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
                   12319:                # Check whether --enable-sia was given.
1.25      millert  12320: if test "${enable_sia+set}" = set; then
1.27      millert  12321:   enableval=$enable_sia;  case "$enableval" in
                   12322:                    yes)        { echo "$as_me:$LINENO: result: no" >&5
                   12323: echo "${ECHO_T}no" >&6; }
1.28      millert  12324:                                CHECKSIA=true
1.25      millert  12325:                                ;;
1.27      millert  12326:                    no)         { echo "$as_me:$LINENO: result: yes" >&5
                   12327: echo "${ECHO_T}yes" >&6; }
1.25      millert  12328:                                CHECKSIA=false
                   12329:                                ;;
1.27      millert  12330:                    *)          { echo "$as_me:$LINENO: result: no" >&5
                   12331: echo "${ECHO_T}no" >&6; }
1.25      millert  12332:                                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
                   12333: echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
                   12334:                                ;;
                   12335:                  esac
1.23      millert  12336:
1.25      millert  12337: else
1.27      millert  12338:   { echo "$as_me:$LINENO: result: no" >&5
                   12339: echo "${ECHO_T}no" >&6; }
                   12340: fi
                   12341:
1.23      millert  12342:
1.25      millert  12343:                shadow_funcs="getprpwnam dispcrypt"
                   12344:                # OSF/1 4.x and higher need -ldb too
                   12345:                if test $OSMAJOR -lt 4; then
                   12346:                    shadow_libs="-lsecurity -laud -lm"
                   12347:                else
                   12348:                    shadow_libs="-lsecurity -ldb -laud -lm"
                   12349:                fi
1.23      millert  12350:
1.25      millert  12351:                # use SIA by default, if we have it
1.27      millert  12352:                test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
1.23      millert  12353:
1.27      millert  12354:                #
                   12355:                # Some versions of Digital Unix ship with a broken
                   12356:                # copy of prot.h, which we need for shadow passwords.
                   12357:                # XXX - make should remove this as part of distclean
                   12358:                #
                   12359:                { echo "$as_me:$LINENO: checking for broken prot.h" >&5
                   12360: echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
                   12361:                cat >conftest.$ac_ext <<_ACEOF
1.25      millert  12362: /* confdefs.h.  */
                   12363: _ACEOF
                   12364: cat confdefs.h >>conftest.$ac_ext
                   12365: cat >>conftest.$ac_ext <<_ACEOF
                   12366: /* end confdefs.h.  */
1.23      millert  12367:
1.25      millert  12368: #include <sys/types.h>
                   12369: #include <sys/security.h>
                   12370: #include <prot.h>
1.23      millert  12371:
1.25      millert  12372: int
                   12373: main ()
                   12374: {
                   12375: exit(0);
                   12376:   ;
                   12377:   return 0;
                   12378: }
                   12379: _ACEOF
                   12380: rm -f conftest.$ac_objext
1.27      millert  12381: if { (ac_try="$ac_compile"
                   12382: case "(($ac_try" in
                   12383:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12384:   *) ac_try_echo=$ac_try;;
                   12385: esac
                   12386: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12387:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  12388:   ac_status=$?
                   12389:   grep -v '^ *+' conftest.er1 >conftest.err
                   12390:   rm -f conftest.er1
                   12391:   cat conftest.err >&5
                   12392:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12393:   (exit $ac_status); } && {
                   12394:         test -z "$ac_c_werror_flag" ||
                   12395:         test ! -s conftest.err
                   12396:        } && test -s conftest.$ac_objext; then
                   12397:   { echo "$as_me:$LINENO: result: no" >&5
                   12398: echo "${ECHO_T}no" >&6; }
1.25      millert  12399: else
                   12400:   echo "$as_me: failed program was:" >&5
                   12401: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12402:
1.27      millert  12403:        { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
                   12404: echo "${ECHO_T}yes, fixing locally" >&6; }
                   12405:                sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.23      millert  12406:
1.25      millert  12407: fi
1.27      millert  12408:
                   12409: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  12410:                : ${mansectsu='8'}
                   12411:                : ${mansectform='4'}
                   12412:                ;;
                   12413:     *-*-irix*)
                   12414:                OSDEFS="${OSDEFS} -D_BSD_TYPES"
                   12415:                if test -z "$NROFFPROG"; then
                   12416:                    MAN_POSTINSTALL='   /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
                   12417:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   12418:                        if test -d /usr/share/catman/local; then
                   12419:                            mandir="/usr/share/catman/local"
                   12420:                        else
                   12421:                            mandir="/usr/catman/local"
                   12422:                        fi
                   12423:                    fi
                   12424:                else
                   12425:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   12426:                        if test -d "/usr/share/man/local"; then
                   12427:                            mandir="/usr/share/man/local"
                   12428:                        else
                   12429:                            mandir="/usr/man/local"
                   12430:                        fi
                   12431:                    fi
                   12432:                fi
                   12433:                # IRIX <= 4 needs -lsun
                   12434:                if test "$OSMAJOR" -le 4; then
1.27      millert  12435:                    { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
                   12436: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
1.25      millert  12437: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
                   12438:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12439: else
                   12440:   ac_check_lib_save_LIBS=$LIBS
                   12441: LIBS="-lsun  $LIBS"
                   12442: cat >conftest.$ac_ext <<_ACEOF
                   12443: /* confdefs.h.  */
                   12444: _ACEOF
                   12445: cat confdefs.h >>conftest.$ac_ext
                   12446: cat >>conftest.$ac_ext <<_ACEOF
                   12447: /* end confdefs.h.  */
1.23      millert  12448:
1.27      millert  12449: /* Override any GCC internal prototype to avoid an error.
                   12450:    Use char because int might match the return type of a GCC
                   12451:    builtin and then its argument prototype would still apply.  */
1.25      millert  12452: #ifdef __cplusplus
                   12453: extern "C"
                   12454: #endif
                   12455: char getpwnam ();
                   12456: int
                   12457: main ()
                   12458: {
1.27      millert  12459: return getpwnam ();
1.25      millert  12460:   ;
                   12461:   return 0;
                   12462: }
                   12463: _ACEOF
                   12464: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  12465: if { (ac_try="$ac_link"
                   12466: case "(($ac_try" in
                   12467:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12468:   *) ac_try_echo=$ac_try;;
                   12469: esac
                   12470: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12471:   (eval "$ac_link") 2>conftest.er1
1.25      millert  12472:   ac_status=$?
                   12473:   grep -v '^ *+' conftest.er1 >conftest.err
                   12474:   rm -f conftest.er1
                   12475:   cat conftest.err >&5
                   12476:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12477:   (exit $ac_status); } && {
                   12478:         test -z "$ac_c_werror_flag" ||
                   12479:         test ! -s conftest.err
                   12480:        } && test -s conftest$ac_exeext &&
                   12481:        $as_test_x conftest$ac_exeext; then
1.25      millert  12482:   ac_cv_lib_sun_getpwnam=yes
                   12483: else
                   12484:   echo "$as_me: failed program was:" >&5
                   12485: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12486:
1.27      millert  12487:        ac_cv_lib_sun_getpwnam=no
1.25      millert  12488: fi
1.27      millert  12489:
                   12490: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  12491:       conftest$ac_exeext conftest.$ac_ext
                   12492: LIBS=$ac_check_lib_save_LIBS
                   12493: fi
1.27      millert  12494: { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
                   12495: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
1.25      millert  12496: if test $ac_cv_lib_sun_getpwnam = yes; then
                   12497:   LIBS="${LIBS} -lsun"
                   12498: fi
1.23      millert  12499:
1.25      millert  12500:                fi
                   12501:                : ${mansectsu='1m'}
                   12502:                : ${mansectform='4'}
                   12503:                ;;
1.36      millert  12504:     *-*-linux*|*-*-k*bsd*-gnu)
1.25      millert  12505:                OSDEFS="${OSDEFS} -D_GNU_SOURCE"
                   12506:                # Some Linux versions need to link with -lshadow
                   12507:                shadow_funcs="getspnam"
                   12508:                shadow_libs_optional="-lshadow"
1.27      millert  12509:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12510:                ;;
                   12511:     *-convex-bsd*)
                   12512:                OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
                   12513:                if test -z "$GCC"; then
                   12514:                    CFLAGS="${CFLAGS} -D__STDC__"
                   12515:                fi
1.23      millert  12516:
1.25      millert  12517:                shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
                   12518:                shadow_funcs="getprpwnam"
                   12519:                shadow_libs="-lprot"
                   12520:                ;;
                   12521:     *-*-ultrix*)
                   12522:                OS="ultrix"
                   12523:                shadow_funcs="getauthuid"
                   12524:                shadow_libs="-lauth"
                   12525:                ;;
                   12526:     *-*-riscos*)
                   12527:                LIBS="${LIBS} -lsun -lbsd"
                   12528:                CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
                   12529:                OSDEFS="${OSDEFS} -D_MIPS"
                   12530:                : ${mansectsu='1m'}
                   12531:                : ${mansectform='4'}
                   12532:                ;;
                   12533:     *-*-isc*)
                   12534:                OSDEFS="${OSDEFS} -D_ISC"
                   12535:                LIB_CRYPT=1
                   12536:                SUDO_LIBS="${SUDO_LIBS} -lcrypt"
                   12537:                LIBS="${LIBS} -lcrypt"
1.23      millert  12538:
1.25      millert  12539:                shadow_funcs="getspnam"
                   12540:                shadow_libs="-lsec"
1.23      millert  12541:
1.25      millert  12542:                : ${mansectsu='1m'}
                   12543:                : ${mansectform='4'}
                   12544:                ;;
                   12545:     *-*-sco*|*-sco-*)
                   12546:                shadow_funcs="getprpwnam"
                   12547:                shadow_libs="-lprot -lx"
                   12548:                : ${mansectsu='1m'}
                   12549:                : ${mansectform='4'}
                   12550:                ;;
                   12551:     m88k-motorola-sysv*)
                   12552:                # motorolla's cc (a variant of gcc) does -O but not -O2
                   12553:                CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
                   12554:                : ${mansectsu='1m'}
                   12555:                : ${mansectform='4'}
                   12556:                ;;
                   12557:     *-sequent-sysv*)
                   12558:                shadow_funcs="getspnam"
                   12559:                shadow_libs="-lsec"
                   12560:                : ${mansectsu='1m'}
                   12561:                : ${mansectform='4'}
                   12562:                : ${with_rpath='yes'}
                   12563:                ;;
                   12564:     *-ncr-sysv4*|*-ncr-sysvr4*)
1.27      millert  12565:                { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
                   12566: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
1.25      millert  12567: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
                   12568:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12569: else
                   12570:   ac_check_lib_save_LIBS=$LIBS
                   12571: LIBS="-lc89  $LIBS"
                   12572: cat >conftest.$ac_ext <<_ACEOF
                   12573: /* confdefs.h.  */
                   12574: _ACEOF
                   12575: cat confdefs.h >>conftest.$ac_ext
                   12576: cat >>conftest.$ac_ext <<_ACEOF
                   12577: /* end confdefs.h.  */
1.23      millert  12578:
1.27      millert  12579: /* Override any GCC internal prototype to avoid an error.
                   12580:    Use char because int might match the return type of a GCC
                   12581:    builtin and then its argument prototype would still apply.  */
1.25      millert  12582: #ifdef __cplusplus
                   12583: extern "C"
                   12584: #endif
                   12585: char strcasecmp ();
                   12586: int
                   12587: main ()
                   12588: {
1.27      millert  12589: return strcasecmp ();
1.25      millert  12590:   ;
                   12591:   return 0;
                   12592: }
                   12593: _ACEOF
                   12594: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  12595: if { (ac_try="$ac_link"
                   12596: case "(($ac_try" in
                   12597:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12598:   *) ac_try_echo=$ac_try;;
                   12599: esac
                   12600: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12601:   (eval "$ac_link") 2>conftest.er1
1.25      millert  12602:   ac_status=$?
                   12603:   grep -v '^ *+' conftest.er1 >conftest.err
                   12604:   rm -f conftest.er1
                   12605:   cat conftest.err >&5
                   12606:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12607:   (exit $ac_status); } && {
                   12608:         test -z "$ac_c_werror_flag" ||
                   12609:         test ! -s conftest.err
                   12610:        } && test -s conftest$ac_exeext &&
                   12611:        $as_test_x conftest$ac_exeext; then
1.25      millert  12612:   ac_cv_lib_c89_strcasecmp=yes
                   12613: else
                   12614:   echo "$as_me: failed program was:" >&5
                   12615: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12616:
1.27      millert  12617:        ac_cv_lib_c89_strcasecmp=no
1.25      millert  12618: fi
1.27      millert  12619:
                   12620: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  12621:       conftest$ac_exeext conftest.$ac_ext
                   12622: LIBS=$ac_check_lib_save_LIBS
                   12623: fi
1.27      millert  12624: { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
                   12625: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
1.25      millert  12626: if test $ac_cv_lib_c89_strcasecmp = yes; then
                   12627:   cat >>confdefs.h <<\_ACEOF
                   12628: #define HAVE_STRCASECMP 1
                   12629: _ACEOF
                   12630:  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
                   12631: fi
1.23      millert  12632:
1.25      millert  12633:                : ${mansectsu='1m'}
                   12634:                : ${mansectform='4'}
                   12635:                : ${with_rpath='yes'}
                   12636:                ;;
                   12637:     *-ccur-sysv4*|*-ccur-sysvr4*)
                   12638:                LIBS="${LIBS} -lgen"
                   12639:                SUDO_LIBS="${SUDO_LIBS} -lgen"
                   12640:                : ${mansectsu='1m'}
                   12641:                : ${mansectform='4'}
                   12642:                : ${with_rpath='yes'}
                   12643:                ;;
                   12644:     *-*-bsdi*)
                   12645:                SKIP_SETREUID=yes
                   12646:                # Use shlicc for BSD/OS [23].x unless asked to do otherwise
                   12647:                if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
                   12648:                    case "$OSMAJOR" in
                   12649:                        2|3)    { echo "$as_me:$LINENO: using shlicc as CC" >&5
                   12650: echo "$as_me: using shlicc as CC" >&6;}
                   12651:                                ac_cv_prog_CC=shlicc
                   12652:                                CC="$ac_cv_prog_CC"
                   12653:                                ;;
                   12654:                    esac
                   12655:                fi
                   12656:                # Check for newer BSD auth API (just check for >= 3.0?)
                   12657:                if test -z "$with_bsdauth"; then
1.23      millert  12658:
1.25      millert  12659: for ac_func in auth_challenge
                   12660: do
                   12661: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  12662: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   12663: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   12664: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  12665:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12666: else
                   12667:   cat >conftest.$ac_ext <<_ACEOF
                   12668: /* confdefs.h.  */
                   12669: _ACEOF
                   12670: cat confdefs.h >>conftest.$ac_ext
                   12671: cat >>conftest.$ac_ext <<_ACEOF
                   12672: /* end confdefs.h.  */
                   12673: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   12674:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   12675: #define $ac_func innocuous_$ac_func
1.23      millert  12676:
1.25      millert  12677: /* System header to define __stub macros and hopefully few prototypes,
                   12678:     which can conflict with char $ac_func (); below.
                   12679:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   12680:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  12681:
1.25      millert  12682: #ifdef __STDC__
                   12683: # include <limits.h>
                   12684: #else
                   12685: # include <assert.h>
                   12686: #endif
1.23      millert  12687:
1.25      millert  12688: #undef $ac_func
1.23      millert  12689:
1.27      millert  12690: /* Override any GCC internal prototype to avoid an error.
                   12691:    Use char because int might match the return type of a GCC
                   12692:    builtin and then its argument prototype would still apply.  */
1.25      millert  12693: #ifdef __cplusplus
                   12694: extern "C"
                   12695: #endif
                   12696: char $ac_func ();
                   12697: /* The GNU C library defines this for functions which it implements
                   12698:     to always fail with ENOSYS.  Some functions are actually named
                   12699:     something starting with __ and the normal name is an alias.  */
1.27      millert  12700: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  12701: choke me
                   12702: #endif
1.23      millert  12703:
1.25      millert  12704: int
                   12705: main ()
                   12706: {
1.27      millert  12707: return $ac_func ();
1.25      millert  12708:   ;
                   12709:   return 0;
                   12710: }
                   12711: _ACEOF
                   12712: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  12713: if { (ac_try="$ac_link"
                   12714: case "(($ac_try" in
                   12715:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12716:   *) ac_try_echo=$ac_try;;
                   12717: esac
                   12718: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12719:   (eval "$ac_link") 2>conftest.er1
1.25      millert  12720:   ac_status=$?
                   12721:   grep -v '^ *+' conftest.er1 >conftest.err
                   12722:   rm -f conftest.er1
                   12723:   cat conftest.err >&5
                   12724:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12725:   (exit $ac_status); } && {
                   12726:         test -z "$ac_c_werror_flag" ||
                   12727:         test ! -s conftest.err
                   12728:        } && test -s conftest$ac_exeext &&
                   12729:        $as_test_x conftest$ac_exeext; then
1.25      millert  12730:   eval "$as_ac_var=yes"
                   12731: else
                   12732:   echo "$as_me: failed program was:" >&5
                   12733: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12734:
1.27      millert  12735:        eval "$as_ac_var=no"
1.25      millert  12736: fi
1.27      millert  12737:
                   12738: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  12739:       conftest$ac_exeext conftest.$ac_ext
                   12740: fi
1.27      millert  12741: ac_res=`eval echo '${'$as_ac_var'}'`
                   12742:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   12743: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  12744: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   12745:   cat >>confdefs.h <<_ACEOF
                   12746: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   12747: _ACEOF
1.27      millert  12748:  AUTH_EXCL_DEF="BSD_AUTH"
1.25      millert  12749: fi
                   12750: done
1.23      millert  12751:
1.25      millert  12752:                fi
                   12753:                ;;
                   12754:     *-*-freebsd*)
                   12755:                # FreeBSD has a real setreuid(2) starting with 2.1 and
                   12756:                # backported to 2.0.5.  We just take 2.1 and above...
                   12757:                case "$OSREV" in
                   12758:                0.*|1.*|2.0*)
                   12759:                    SKIP_SETREUID=yes
                   12760:                    ;;
                   12761:                esac
                   12762:                if test "$with_skey" = "yes"; then
                   12763:                     SUDO_LIBS="${SUDO_LIBS} -lmd"
                   12764:                fi
1.27      millert  12765:                CHECKSHADOW="false"
                   12766:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12767:                : ${with_logincap='maybe'}
                   12768:                ;;
                   12769:     *-*-*openbsd*)
                   12770:                # OpenBSD has a real setreuid(2) starting with 3.3 but
                   12771:                # we will use setreuid(2) instead.
                   12772:                SKIP_SETREUID=yes
1.27      millert  12773:                CHECKSHADOW="false"
1.25      millert  12774:                # OpenBSD >= 3.0 supports BSD auth
                   12775:                if test -z "$with_bsdauth"; then
                   12776:                    case "$OSREV" in
                   12777:                    0-2.*)
                   12778:                        ;;
                   12779:                    *)
1.27      millert  12780:                        AUTH_EXCL_DEF="BSD_AUTH"
1.25      millert  12781:                        ;;
                   12782:                    esac
                   12783:                fi
                   12784:                : ${with_logincap='maybe'}
                   12785:                ;;
                   12786:     *-*-*netbsd*)
                   12787:                # NetBSD has a real setreuid(2) starting with 1.3.2
                   12788:                case "$OSREV" in
                   12789:                0.9*|1.012*|1.3|1.3.1)
                   12790:                    SKIP_SETREUID=yes
                   12791:                    ;;
                   12792:                esac
1.27      millert  12793:                CHECKSHADOW="false"
                   12794:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12795:                : ${with_logincap='maybe'}
                   12796:                ;;
                   12797:     *-*-dragonfly*)
                   12798:                if test "$with_skey" = "yes"; then
                   12799:                     SUDO_LIBS="${SUDO_LIBS} -lmd"
                   12800:                fi
1.27      millert  12801:                CHECKSHADOW="false"
                   12802:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12803:                : ${with_logincap='yes'}
                   12804:                ;;
                   12805:     *-*-*bsd*)
1.27      millert  12806:                CHECKSHADOW="false"
1.25      millert  12807:                ;;
                   12808:     *-*-darwin*)
                   12809:                SKIP_SETREUID=yes
1.27      millert  12810:                CHECKSHADOW="false"
                   12811:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12812:                : ${with_logincap='yes'}
                   12813:                ;;
                   12814:     *-*-nextstep*)
                   12815:                # lockf() on is broken on the NeXT -- use flock instead
                   12816:                ac_cv_func_lockf=no
                   12817:                ac_cv_func_flock=yes
                   12818:                ;;
                   12819:     *-*-*sysv4*)
                   12820:                : ${mansectsu='1m'}
                   12821:                : ${mansectform='4'}
                   12822:                : ${with_rpath='yes'}
                   12823:                ;;
                   12824:     *-*-sysv*)
                   12825:                : ${mansectsu='1m'}
                   12826:                : ${mansectform='4'}
1.27      millert  12827:                ;;
                   12828:     *-gnu*)
                   12829:                OSDEFS="${OSDEFS} -D_GNU_SOURCE"
                   12830:                ;;
                   12831: esac
                   12832:
                   12833: AUTH_REG=${AUTH_REG# }
                   12834: AUTH_EXCL=${AUTH_EXCL# }
                   12835: if test -n "$AUTH_EXCL"; then
                   12836:     set -- $AUTH_EXCL
                   12837:     if test $# != 1; then
                   12838:        { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
                   12839: echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
                   12840:    { (exit 1); exit 1; }; }
                   12841:     fi
                   12842:     if test -n "$AUTH_REG"; then
                   12843:        { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
                   12844: echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
                   12845:    { (exit 1); exit 1; }; }
                   12846:     fi
                   12847: fi
                   12848: if test X"${with_skey}${with_opie}" = X"yesyes"; then
                   12849:     { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
                   12850: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
                   12851:    { (exit 1); exit 1; }; }
                   12852: fi
1.23      millert  12853:
1.25      millert  12854: : ${mansectsu='8'}
                   12855: : ${mansectform='5'}
1.23      millert  12856:
1.25      millert  12857: if test -n "$with_libpath"; then
                   12858:     for i in ${with_libpath}; do
1.23      millert  12859:
1.25      millert  12860:     if test X"$with_rpath" = X"yes"; then
1.47      millert  12861:        case "$host" in
                   12862:            *-*-hpux*)  LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
                   12863:                        ;;
                   12864:            *)          LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
                   12865:                        ;;
                   12866:        esac
1.25      millert  12867:     else
                   12868:        LDFLAGS="${LDFLAGS} -L$i"
                   12869:     fi
                   12870:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   12871:        blibpath_add="${blibpath_add}:$i"
                   12872:     fi
1.23      millert  12873:
1.25      millert  12874:     done
                   12875: fi
                   12876: if test -n "$with_libraries"; then
                   12877:     for i in ${with_libraries}; do
                   12878:        case $i in
                   12879:            -l*)        ;;
                   12880:            *.a)        ;;
                   12881:            *.o)        ;;
                   12882:            *)  i="-l${i}";;
                   12883:        esac
                   12884:        LIBS="${LIBS} ${i}"
                   12885:     done
                   12886: fi
1.23      millert  12887:
1.25      millert  12888: if test $ac_cv_c_compiler_gnu = yes; then
1.27      millert  12889:     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
                   12890: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
1.25      millert  12891: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
                   12892:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12893: else
                   12894:     ac_pattern="Autoconf.*'x'"
                   12895:   cat >conftest.$ac_ext <<_ACEOF
                   12896: /* confdefs.h.  */
                   12897: _ACEOF
                   12898: cat confdefs.h >>conftest.$ac_ext
                   12899: cat >>conftest.$ac_ext <<_ACEOF
                   12900: /* end confdefs.h.  */
                   12901: #include <sgtty.h>
                   12902: Autoconf TIOCGETP
                   12903: _ACEOF
                   12904: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   12905:   $EGREP "$ac_pattern" >/dev/null 2>&1; then
                   12906:   ac_cv_prog_gcc_traditional=yes
                   12907: else
                   12908:   ac_cv_prog_gcc_traditional=no
                   12909: fi
                   12910: rm -f conftest*
1.23      millert  12911:
                   12912:
1.25      millert  12913:   if test $ac_cv_prog_gcc_traditional = no; then
                   12914:     cat >conftest.$ac_ext <<_ACEOF
                   12915: /* confdefs.h.  */
                   12916: _ACEOF
                   12917: cat confdefs.h >>conftest.$ac_ext
                   12918: cat >>conftest.$ac_ext <<_ACEOF
                   12919: /* end confdefs.h.  */
                   12920: #include <termio.h>
                   12921: Autoconf TCGETA
                   12922: _ACEOF
                   12923: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   12924:   $EGREP "$ac_pattern" >/dev/null 2>&1; then
                   12925:   ac_cv_prog_gcc_traditional=yes
                   12926: fi
                   12927: rm -f conftest*
1.23      millert  12928:
1.25      millert  12929:   fi
                   12930: fi
1.27      millert  12931: { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
                   12932: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
1.25      millert  12933:   if test $ac_cv_prog_gcc_traditional = yes; then
                   12934:     CC="$CC -traditional"
                   12935:   fi
                   12936: fi
1.23      millert  12937:
1.27      millert  12938: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
                   12939: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
1.25      millert  12940: if test "${ac_cv_c_const+set}" = set; then
                   12941:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12942: else
                   12943:   cat >conftest.$ac_ext <<_ACEOF
                   12944: /* confdefs.h.  */
                   12945: _ACEOF
                   12946: cat confdefs.h >>conftest.$ac_ext
                   12947: cat >>conftest.$ac_ext <<_ACEOF
                   12948: /* end confdefs.h.  */
1.23      millert  12949:
1.25      millert  12950: int
                   12951: main ()
                   12952: {
                   12953: /* FIXME: Include the comments suggested by Paul. */
                   12954: #ifndef __cplusplus
                   12955:   /* Ultrix mips cc rejects this.  */
                   12956:   typedef int charset[2];
1.27      millert  12957:   const charset cs;
1.25      millert  12958:   /* SunOS 4.1.1 cc rejects this.  */
1.27      millert  12959:   char const *const *pcpcc;
                   12960:   char **ppc;
1.25      millert  12961:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   12962:   struct point {int x, y;};
                   12963:   static struct point const zero = {0,0};
                   12964:   /* AIX XL C 1.02.0.0 rejects this.
                   12965:      It does not let you subtract one const X* pointer from another in
                   12966:      an arm of an if-expression whose if-part is not a constant
                   12967:      expression */
                   12968:   const char *g = "string";
1.27      millert  12969:   pcpcc = &g + (g ? g-g : 0);
1.25      millert  12970:   /* HPUX 7.0 cc rejects these. */
1.27      millert  12971:   ++pcpcc;
                   12972:   ppc = (char**) pcpcc;
                   12973:   pcpcc = (char const *const *) ppc;
1.25      millert  12974:   { /* SCO 3.2v4 cc rejects this.  */
                   12975:     char *t;
                   12976:     char const *s = 0 ? (char *) 0 : (char const *) 0;
1.23      millert  12977:
1.25      millert  12978:     *t++ = 0;
1.27      millert  12979:     if (s) return 0;
1.25      millert  12980:   }
                   12981:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   12982:     int x[] = {25, 17};
                   12983:     const int *foo = &x[0];
                   12984:     ++foo;
                   12985:   }
                   12986:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   12987:     typedef const int *iptr;
                   12988:     iptr p = 0;
                   12989:     ++p;
                   12990:   }
                   12991:   { /* AIX XL C 1.02.0.0 rejects this saying
                   12992:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   12993:     struct s { int j; const int *ap[3]; };
                   12994:     struct s *b; b->j = 5;
                   12995:   }
                   12996:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   12997:     const int foo = 10;
1.27      millert  12998:     if (!foo) return 0;
1.25      millert  12999:   }
1.27      millert  13000:   return !cs[0] && !zero.x;
1.25      millert  13001: #endif
1.23      millert  13002:
1.25      millert  13003:   ;
                   13004:   return 0;
                   13005: }
                   13006: _ACEOF
                   13007: rm -f conftest.$ac_objext
1.27      millert  13008: if { (ac_try="$ac_compile"
                   13009: case "(($ac_try" in
                   13010:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13011:   *) ac_try_echo=$ac_try;;
                   13012: esac
                   13013: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13014:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  13015:   ac_status=$?
                   13016:   grep -v '^ *+' conftest.er1 >conftest.err
                   13017:   rm -f conftest.er1
                   13018:   cat conftest.err >&5
                   13019:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13020:   (exit $ac_status); } && {
                   13021:         test -z "$ac_c_werror_flag" ||
                   13022:         test ! -s conftest.err
                   13023:        } && test -s conftest.$ac_objext; then
1.25      millert  13024:   ac_cv_c_const=yes
                   13025: else
                   13026:   echo "$as_me: failed program was:" >&5
                   13027: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  13028:
1.27      millert  13029:        ac_cv_c_const=no
1.25      millert  13030: fi
1.27      millert  13031:
                   13032: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  13033: fi
1.27      millert  13034: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
                   13035: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.25      millert  13036: if test $ac_cv_c_const = no; then
1.23      millert  13037:
1.25      millert  13038: cat >>confdefs.h <<\_ACEOF
                   13039: #define const
                   13040: _ACEOF
1.23      millert  13041:
1.25      millert  13042: fi
1.23      millert  13043:
1.27      millert  13044: { echo "$as_me:$LINENO: checking for working volatile" >&5
                   13045: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
1.25      millert  13046: if test "${ac_cv_c_volatile+set}" = set; then
                   13047:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13048: else
                   13049:   cat >conftest.$ac_ext <<_ACEOF
                   13050: /* confdefs.h.  */
                   13051: _ACEOF
                   13052: cat confdefs.h >>conftest.$ac_ext
                   13053: cat >>conftest.$ac_ext <<_ACEOF
                   13054: /* end confdefs.h.  */
1.23      millert  13055:
1.25      millert  13056: int
                   13057: main ()
                   13058: {
1.23      millert  13059:
1.25      millert  13060: volatile int x;
1.27      millert  13061: int * volatile y = (int *) 0;
                   13062: return !x && !y;
1.25      millert  13063:   ;
                   13064:   return 0;
                   13065: }
                   13066: _ACEOF
                   13067: rm -f conftest.$ac_objext
1.27      millert  13068: if { (ac_try="$ac_compile"
                   13069: case "(($ac_try" in
                   13070:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13071:   *) ac_try_echo=$ac_try;;
                   13072: esac
                   13073: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13074:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  13075:   ac_status=$?
                   13076:   grep -v '^ *+' conftest.er1 >conftest.err
                   13077:   rm -f conftest.er1
                   13078:   cat conftest.err >&5
                   13079:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13080:   (exit $ac_status); } && {
                   13081:         test -z "$ac_c_werror_flag" ||
                   13082:         test ! -s conftest.err
                   13083:        } && test -s conftest.$ac_objext; then
1.25      millert  13084:   ac_cv_c_volatile=yes
                   13085: else
                   13086:   echo "$as_me: failed program was:" >&5
                   13087: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  13088:
1.27      millert  13089:        ac_cv_c_volatile=no
1.25      millert  13090: fi
1.27      millert  13091:
                   13092: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  13093: fi
1.27      millert  13094: { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
                   13095: echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
1.25      millert  13096: if test $ac_cv_c_volatile = no; then
1.23      millert  13097:
1.25      millert  13098: cat >>confdefs.h <<\_ACEOF
                   13099: #define volatile
                   13100: _ACEOF
1.23      millert  13101:
1.25      millert  13102: fi
1.23      millert  13103:
1.25      millert  13104: for ac_prog in 'bison -y' byacc
                   13105: do
                   13106:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   13107: set dummy $ac_prog; ac_word=$2
1.27      millert  13108: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   13109: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  13110: if test "${ac_cv_prog_YACC+set}" = set; then
                   13111:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13112: else
                   13113:   if test -n "$YACC"; then
                   13114:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   13115: else
                   13116: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   13117: for as_dir in $PATH
                   13118: do
                   13119:   IFS=$as_save_IFS
                   13120:   test -z "$as_dir" && as_dir=.
                   13121:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  13122:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  13123:     ac_cv_prog_YACC="$ac_prog"
                   13124:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   13125:     break 2
                   13126:   fi
                   13127: done
                   13128: done
1.27      millert  13129: IFS=$as_save_IFS
1.23      millert  13130:
1.25      millert  13131: fi
                   13132: fi
                   13133: YACC=$ac_cv_prog_YACC
                   13134: if test -n "$YACC"; then
1.27      millert  13135:   { echo "$as_me:$LINENO: result: $YACC" >&5
                   13136: echo "${ECHO_T}$YACC" >&6; }
1.25      millert  13137: else
1.27      millert  13138:   { echo "$as_me:$LINENO: result: no" >&5
                   13139: echo "${ECHO_T}no" >&6; }
1.25      millert  13140: fi
1.23      millert  13141:
1.27      millert  13142:
1.25      millert  13143:   test -n "$YACC" && break
                   13144: done
                   13145: test -n "$YACC" || YACC="yacc"
1.23      millert  13146:
1.40      millert  13147: # Extract the first word of "flex", so it can be a program name with args.
                   13148: set dummy flex; ac_word=$2
                   13149: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   13150: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   13151: if test "${ac_cv_path_FLEX+set}" = set; then
                   13152:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13153: else
                   13154:   case $FLEX in
                   13155:   [\\/]* | ?:[\\/]*)
                   13156:   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
                   13157:   ;;
                   13158:   *)
                   13159:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   13160: for as_dir in $PATH
                   13161: do
                   13162:   IFS=$as_save_IFS
                   13163:   test -z "$as_dir" && as_dir=.
                   13164:   for ac_exec_ext in '' $ac_executable_extensions; do
                   13165:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   13166:     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
                   13167:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   13168:     break 2
                   13169:   fi
                   13170: done
                   13171: done
                   13172: IFS=$as_save_IFS
                   13173:
                   13174:   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
                   13175:   ;;
                   13176: esac
                   13177: fi
                   13178: FLEX=$ac_cv_path_FLEX
                   13179: if test -n "$FLEX"; then
                   13180:   { echo "$as_me:$LINENO: result: $FLEX" >&5
                   13181: echo "${ECHO_T}$FLEX" >&6; }
                   13182: else
                   13183:   { echo "$as_me:$LINENO: result: no" >&5
                   13184: echo "${ECHO_T}no" >&6; }
                   13185: fi
                   13186:
                   13187:
1.27      millert  13188: { echo "$as_me:$LINENO: checking for mv" >&5
                   13189: echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
1.25      millert  13190: if test -f "/usr/bin/mv"; then
1.27      millert  13191:     { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
                   13192: echo "${ECHO_T}/usr/bin/mv" >&6; }
1.25      millert  13193:     cat >>confdefs.h <<\EOF
                   13194: #define _PATH_MV "/usr/bin/mv"
                   13195: EOF
1.23      millert  13196:
1.25      millert  13197: elif test -f "/bin/mv"; then
1.27      millert  13198:     { echo "$as_me:$LINENO: result: /bin/mv" >&5
                   13199: echo "${ECHO_T}/bin/mv" >&6; }
1.25      millert  13200:     cat >>confdefs.h <<\EOF
                   13201: #define _PATH_MV "/bin/mv"
                   13202: EOF
1.23      millert  13203:
1.25      millert  13204: elif test -f "/usr/ucb/mv"; then
1.27      millert  13205:     { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
                   13206: echo "${ECHO_T}/usr/ucb/mv" >&6; }
1.25      millert  13207:     cat >>confdefs.h <<\EOF
                   13208: #define _PATH_MV "/usr/ucb/mv"
                   13209: EOF
1.23      millert  13210:
1.25      millert  13211: elif test -f "/usr/sbin/mv"; then
1.27      millert  13212:     { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
                   13213: echo "${ECHO_T}/usr/sbin/mv" >&6; }
1.25      millert  13214:     cat >>confdefs.h <<\EOF
                   13215: #define _PATH_MV "/usr/sbin/mv"
                   13216: EOF
1.23      millert  13217:
1.25      millert  13218: else
1.27      millert  13219:     { echo "$as_me:$LINENO: result: not found" >&5
                   13220: echo "${ECHO_T}not found" >&6; }
1.25      millert  13221: fi
1.23      millert  13222:
1.27      millert  13223: { echo "$as_me:$LINENO: checking for bourne shell" >&5
                   13224: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
1.25      millert  13225: if test -f "/bin/sh"; then
1.27      millert  13226:     { echo "$as_me:$LINENO: result: /bin/sh" >&5
                   13227: echo "${ECHO_T}/bin/sh" >&6; }
1.25      millert  13228:     cat >>confdefs.h <<\EOF
                   13229: #define _PATH_BSHELL "/bin/sh"
                   13230: EOF
1.23      millert  13231:
1.25      millert  13232: elif test -f "/usr/bin/sh"; then
1.27      millert  13233:     { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
                   13234: echo "${ECHO_T}/usr/bin/sh" >&6; }
1.25      millert  13235:     cat >>confdefs.h <<\EOF
                   13236: #define _PATH_BSHELL "/usr/bin/sh"
                   13237: EOF
1.23      millert  13238:
1.25      millert  13239: elif test -f "/sbin/sh"; then
1.27      millert  13240:     { echo "$as_me:$LINENO: result: /sbin/sh" >&5
                   13241: echo "${ECHO_T}/sbin/sh" >&6; }
1.25      millert  13242:     cat >>confdefs.h <<\EOF
                   13243: #define _PATH_BSHELL "/sbin/sh"
                   13244: EOF
1.23      millert  13245:
1.25      millert  13246: elif test -f "/usr/sbin/sh"; then
1.27      millert  13247:     { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
                   13248: echo "${ECHO_T}/usr/sbin/sh" >&6; }
1.25      millert  13249:     cat >>confdefs.h <<\EOF
                   13250: #define _PATH_BSHELL "/usr/sbin/sh"
                   13251: EOF
1.23      millert  13252:
1.25      millert  13253: elif test -f "/bin/ksh"; then
1.27      millert  13254:     { echo "$as_me:$LINENO: result: /bin/ksh" >&5
                   13255: echo "${ECHO_T}/bin/ksh" >&6; }
1.25      millert  13256:     cat >>confdefs.h <<\EOF
                   13257: #define _PATH_BSHELL "/bin/ksh"
                   13258: EOF
1.23      millert  13259:
1.25      millert  13260: elif test -f "/usr/bin/ksh"; then
1.27      millert  13261:     { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
                   13262: echo "${ECHO_T}/usr/bin/ksh" >&6; }
1.25      millert  13263:     cat >>confdefs.h <<\EOF
                   13264: #define _PATH_BSHELL "/usr/bin/ksh"
                   13265: EOF
1.23      millert  13266:
1.25      millert  13267: elif test -f "/bin/bash"; then
1.27      millert  13268:     { echo "$as_me:$LINENO: result: /bin/bash" >&5
                   13269: echo "${ECHO_T}/bin/bash" >&6; }
1.25      millert  13270:     cat >>confdefs.h <<\EOF
                   13271: #define _PATH_BSHELL "/bin/bash"
                   13272: EOF
1.23      millert  13273:
1.25      millert  13274: elif test -f "/usr/bin/bash"; then
1.27      millert  13275:     { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
                   13276: echo "${ECHO_T}/usr/bin/bash" >&6; }
1.25      millert  13277:     cat >>confdefs.h <<\EOF
                   13278: #define _PATH_BSHELL "/usr/bin/bash"
                   13279: EOF
1.23      millert  13280:
1.25      millert  13281: else
1.27      millert  13282:     { echo "$as_me:$LINENO: result: not found" >&5
                   13283: echo "${ECHO_T}not found" >&6; }
1.25      millert  13284: fi
1.23      millert  13285:
1.25      millert  13286: if test -z "$with_sendmail"; then
1.27      millert  13287:     { echo "$as_me:$LINENO: checking for sendmail" >&5
                   13288: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
1.25      millert  13289: if test -f "/usr/sbin/sendmail"; then
1.27      millert  13290:     { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
                   13291: echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
1.25      millert  13292:     cat >>confdefs.h <<\EOF
                   13293: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
                   13294: EOF
1.23      millert  13295:
1.25      millert  13296: elif test -f "/usr/lib/sendmail"; then
1.27      millert  13297:     { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
                   13298: echo "${ECHO_T}/usr/lib/sendmail" >&6; }
1.25      millert  13299:     cat >>confdefs.h <<\EOF
                   13300: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
                   13301: EOF
1.23      millert  13302:
1.25      millert  13303: elif test -f "/usr/etc/sendmail"; then
1.27      millert  13304:     { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
                   13305: echo "${ECHO_T}/usr/etc/sendmail" >&6; }
1.25      millert  13306:     cat >>confdefs.h <<\EOF
                   13307: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
                   13308: EOF
1.23      millert  13309:
1.25      millert  13310: elif test -f "/usr/ucblib/sendmail"; then
1.27      millert  13311:     { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
                   13312: echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
1.25      millert  13313:     cat >>confdefs.h <<\EOF
                   13314: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
                   13315: EOF
1.23      millert  13316:
1.25      millert  13317: elif test -f "/usr/local/lib/sendmail"; then
1.27      millert  13318:     { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
                   13319: echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
1.25      millert  13320:     cat >>confdefs.h <<\EOF
                   13321: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
                   13322: EOF
1.23      millert  13323:
1.25      millert  13324: elif test -f "/usr/local/bin/sendmail"; then
1.27      millert  13325:     { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
                   13326: echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
1.25      millert  13327:     cat >>confdefs.h <<\EOF
                   13328: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
                   13329: EOF
1.23      millert  13330:
1.25      millert  13331: else
1.27      millert  13332:     { echo "$as_me:$LINENO: result: not found" >&5
                   13333: echo "${ECHO_T}not found" >&6; }
1.25      millert  13334: fi
1.23      millert  13335:
1.25      millert  13336: fi
                   13337: if test -z "$with_editor"; then
1.27      millert  13338:     { echo "$as_me:$LINENO: checking for vi" >&5
                   13339: echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
1.25      millert  13340: if test -f "/usr/bin/vi"; then
1.27      millert  13341:     { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
                   13342: echo "${ECHO_T}/usr/bin/vi" >&6; }
1.25      millert  13343:     cat >>confdefs.h <<\EOF
                   13344: #define _PATH_VI "/usr/bin/vi"
                   13345: EOF
1.23      millert  13346:
1.25      millert  13347: elif test -f "/usr/ucb/vi"; then
1.27      millert  13348:     { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
                   13349: echo "${ECHO_T}/usr/ucb/vi" >&6; }
1.25      millert  13350:     cat >>confdefs.h <<\EOF
                   13351: #define _PATH_VI "/usr/ucb/vi"
                   13352: EOF
1.23      millert  13353:
1.25      millert  13354: elif test -f "/usr/bsd/vi"; then
1.27      millert  13355:     { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
                   13356: echo "${ECHO_T}/usr/bsd/vi" >&6; }
1.25      millert  13357:     cat >>confdefs.h <<\EOF
                   13358: #define _PATH_VI "/usr/bsd/vi"
                   13359: EOF
1.23      millert  13360:
1.25      millert  13361: elif test -f "/bin/vi"; then
1.27      millert  13362:     { echo "$as_me:$LINENO: result: /bin/vi" >&5
                   13363: echo "${ECHO_T}/bin/vi" >&6; }
1.25      millert  13364:     cat >>confdefs.h <<\EOF
                   13365: #define _PATH_VI "/bin/vi"
                   13366: EOF
1.23      millert  13367:
1.25      millert  13368: elif test -f "/usr/local/bin/vi"; then
1.27      millert  13369:     { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
                   13370: echo "${ECHO_T}/usr/local/bin/vi" >&6; }
1.25      millert  13371:     cat >>confdefs.h <<\EOF
                   13372: #define _PATH_VI "/usr/local/bin/vi"
                   13373: EOF
1.23      millert  13374:
                   13375: else
1.27      millert  13376:     { echo "$as_me:$LINENO: result: not found" >&5
                   13377: echo "${ECHO_T}not found" >&6; }
1.23      millert  13378: fi
                   13379:
1.25      millert  13380: fi
1.27      millert  13381: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
                   13382: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.25      millert  13383: if test "${ac_cv_header_stdc+set}" = set; then
                   13384:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13385: else
                   13386:   cat >conftest.$ac_ext <<_ACEOF
                   13387: /* confdefs.h.  */
                   13388: _ACEOF
                   13389: cat confdefs.h >>conftest.$ac_ext
                   13390: cat >>conftest.$ac_ext <<_ACEOF
                   13391: /* end confdefs.h.  */
                   13392: #include <stdlib.h>
                   13393: #include <stdarg.h>
                   13394: #include <string.h>
                   13395: #include <float.h>
1.23      millert  13396:
1.25      millert  13397: int
                   13398: main ()
                   13399: {
1.23      millert  13400:
1.25      millert  13401:   ;
                   13402:   return 0;
                   13403: }
                   13404: _ACEOF
                   13405: rm -f conftest.$ac_objext
1.27      millert  13406: if { (ac_try="$ac_compile"
                   13407: case "(($ac_try" in
                   13408:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13409:   *) ac_try_echo=$ac_try;;
                   13410: esac
                   13411: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13412:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  13413:   ac_status=$?
                   13414:   grep -v '^ *+' conftest.er1 >conftest.err
                   13415:   rm -f conftest.er1
                   13416:   cat conftest.err >&5
                   13417:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13418:   (exit $ac_status); } && {
                   13419:         test -z "$ac_c_werror_flag" ||
                   13420:         test ! -s conftest.err
                   13421:        } && test -s conftest.$ac_objext; then
1.25      millert  13422:   ac_cv_header_stdc=yes
                   13423: else
                   13424:   echo "$as_me: failed program was:" >&5
                   13425: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  13426:
1.27      millert  13427:        ac_cv_header_stdc=no
1.25      millert  13428: fi
1.27      millert  13429:
                   13430: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  13431:
1.25      millert  13432: if test $ac_cv_header_stdc = yes; then
                   13433:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   13434:   cat >conftest.$ac_ext <<_ACEOF
                   13435: /* confdefs.h.  */
                   13436: _ACEOF
                   13437: cat confdefs.h >>conftest.$ac_ext
                   13438: cat >>conftest.$ac_ext <<_ACEOF
                   13439: /* end confdefs.h.  */
                   13440: #include <string.h>
1.23      millert  13441:
1.25      millert  13442: _ACEOF
                   13443: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13444:   $EGREP "memchr" >/dev/null 2>&1; then
                   13445:   :
                   13446: else
                   13447:   ac_cv_header_stdc=no
                   13448: fi
                   13449: rm -f conftest*
1.23      millert  13450:
                   13451: fi
                   13452:
1.25      millert  13453: if test $ac_cv_header_stdc = yes; then
                   13454:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   13455:   cat >conftest.$ac_ext <<_ACEOF
                   13456: /* confdefs.h.  */
                   13457: _ACEOF
                   13458: cat confdefs.h >>conftest.$ac_ext
                   13459: cat >>conftest.$ac_ext <<_ACEOF
                   13460: /* end confdefs.h.  */
                   13461: #include <stdlib.h>
1.23      millert  13462:
1.25      millert  13463: _ACEOF
                   13464: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13465:   $EGREP "free" >/dev/null 2>&1; then
                   13466:   :
1.23      millert  13467: else
1.25      millert  13468:   ac_cv_header_stdc=no
1.23      millert  13469: fi
1.25      millert  13470: rm -f conftest*
1.23      millert  13471:
                   13472: fi
                   13473:
1.25      millert  13474: if test $ac_cv_header_stdc = yes; then
                   13475:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   13476:   if test "$cross_compiling" = yes; then
                   13477:   :
1.1       millert  13478: else
1.25      millert  13479:   cat >conftest.$ac_ext <<_ACEOF
                   13480: /* confdefs.h.  */
                   13481: _ACEOF
                   13482: cat confdefs.h >>conftest.$ac_ext
                   13483: cat >>conftest.$ac_ext <<_ACEOF
                   13484: /* end confdefs.h.  */
                   13485: #include <ctype.h>
1.27      millert  13486: #include <stdlib.h>
1.25      millert  13487: #if ((' ' & 0x0FF) == 0x020)
                   13488: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   13489: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   13490: #else
                   13491: # define ISLOWER(c) \
                   13492:                   (('a' <= (c) && (c) <= 'i') \
                   13493:                     || ('j' <= (c) && (c) <= 'r') \
                   13494:                     || ('s' <= (c) && (c) <= 'z'))
                   13495: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   13496: #endif
                   13497:
                   13498: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   13499: int
                   13500: main ()
                   13501: {
                   13502:   int i;
                   13503:   for (i = 0; i < 256; i++)
                   13504:     if (XOR (islower (i), ISLOWER (i))
                   13505:        || toupper (i) != TOUPPER (i))
1.27      millert  13506:       return 2;
                   13507:   return 0;
1.25      millert  13508: }
                   13509: _ACEOF
                   13510: rm -f conftest$ac_exeext
1.27      millert  13511: if { (ac_try="$ac_link"
                   13512: case "(($ac_try" in
                   13513:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13514:   *) ac_try_echo=$ac_try;;
                   13515: esac
                   13516: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13517:   (eval "$ac_link") 2>&5
1.25      millert  13518:   ac_status=$?
                   13519:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13520:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.27      millert  13521:   { (case "(($ac_try" in
                   13522:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13523:   *) ac_try_echo=$ac_try;;
                   13524: esac
                   13525: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13526:   (eval "$ac_try") 2>&5
1.25      millert  13527:   ac_status=$?
                   13528:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13529:   (exit $ac_status); }; }; then
                   13530:   :
1.1       millert  13531: else
1.25      millert  13532:   echo "$as_me: program exited with status $ac_status" >&5
                   13533: echo "$as_me: failed program was:" >&5
                   13534: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  13535:
1.25      millert  13536: ( exit $ac_status )
                   13537: ac_cv_header_stdc=no
                   13538: fi
1.27      millert  13539: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  13540: fi
1.27      millert  13541:
                   13542:
1.1       millert  13543: fi
                   13544: fi
1.27      millert  13545: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
                   13546: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.25      millert  13547: if test $ac_cv_header_stdc = yes; then
1.1       millert  13548:
1.25      millert  13549: cat >>confdefs.h <<\_ACEOF
                   13550: #define STDC_HEADERS 1
                   13551: _ACEOF
1.9       millert  13552:
1.1       millert  13553: fi
                   13554:
1.25      millert  13555:
                   13556:
                   13557:
                   13558:
                   13559:
                   13560: ac_header_dirent=no
                   13561: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   13562:   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.27      millert  13563: { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
                   13564: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
                   13565: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  13566:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13567: else
1.25      millert  13568:   cat >conftest.$ac_ext <<_ACEOF
                   13569: /* confdefs.h.  */
                   13570: _ACEOF
                   13571: cat confdefs.h >>conftest.$ac_ext
                   13572: cat >>conftest.$ac_ext <<_ACEOF
                   13573: /* end confdefs.h.  */
                   13574: #include <sys/types.h>
                   13575: #include <$ac_hdr>
                   13576:
                   13577: int
                   13578: main ()
                   13579: {
                   13580: if ((DIR *) 0)
                   13581: return 0;
                   13582:   ;
                   13583:   return 0;
                   13584: }
                   13585: _ACEOF
                   13586: rm -f conftest.$ac_objext
1.27      millert  13587: if { (ac_try="$ac_compile"
                   13588: case "(($ac_try" in
                   13589:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13590:   *) ac_try_echo=$ac_try;;
                   13591: esac
                   13592: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13593:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  13594:   ac_status=$?
                   13595:   grep -v '^ *+' conftest.er1 >conftest.err
                   13596:   rm -f conftest.er1
                   13597:   cat conftest.err >&5
                   13598:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13599:   (exit $ac_status); } && {
                   13600:         test -z "$ac_c_werror_flag" ||
                   13601:         test ! -s conftest.err
                   13602:        } && test -s conftest.$ac_objext; then
1.25      millert  13603:   eval "$as_ac_Header=yes"
1.1       millert  13604: else
1.25      millert  13605:   echo "$as_me: failed program was:" >&5
                   13606: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  13607:
1.27      millert  13608:        eval "$as_ac_Header=no"
1.1       millert  13609: fi
1.27      millert  13610:
                   13611: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  13612: fi
1.27      millert  13613: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13614:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13615: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  13616: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   13617:   cat >>confdefs.h <<_ACEOF
                   13618: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   13619: _ACEOF
1.9       millert  13620:
1.25      millert  13621: ac_header_dirent=$ac_hdr; break
1.9       millert  13622: fi
1.16      millert  13623:
1.25      millert  13624: done
                   13625: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   13626: if test $ac_header_dirent = dirent.h; then
1.27      millert  13627:   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
                   13628: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.25      millert  13629: if test "${ac_cv_search_opendir+set}" = set; then
1.9       millert  13630:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13631: else
1.25      millert  13632:   ac_func_search_save_LIBS=$LIBS
                   13633: cat >conftest.$ac_ext <<_ACEOF
                   13634: /* confdefs.h.  */
                   13635: _ACEOF
                   13636: cat confdefs.h >>conftest.$ac_ext
                   13637: cat >>conftest.$ac_ext <<_ACEOF
                   13638: /* end confdefs.h.  */
1.1       millert  13639:
1.27      millert  13640: /* Override any GCC internal prototype to avoid an error.
                   13641:    Use char because int might match the return type of a GCC
                   13642:    builtin and then its argument prototype would still apply.  */
1.25      millert  13643: #ifdef __cplusplus
                   13644: extern "C"
                   13645: #endif
                   13646: char opendir ();
                   13647: int
                   13648: main ()
                   13649: {
1.27      millert  13650: return opendir ();
1.25      millert  13651:   ;
                   13652:   return 0;
                   13653: }
                   13654: _ACEOF
1.27      millert  13655: for ac_lib in '' dir; do
                   13656:   if test -z "$ac_lib"; then
                   13657:     ac_res="none required"
                   13658:   else
                   13659:     ac_res=-l$ac_lib
                   13660:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   13661:   fi
                   13662:   rm -f conftest.$ac_objext conftest$ac_exeext
                   13663: if { (ac_try="$ac_link"
                   13664: case "(($ac_try" in
                   13665:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13666:   *) ac_try_echo=$ac_try;;
                   13667: esac
                   13668: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13669:   (eval "$ac_link") 2>conftest.er1
1.25      millert  13670:   ac_status=$?
                   13671:   grep -v '^ *+' conftest.er1 >conftest.err
                   13672:   rm -f conftest.er1
                   13673:   cat conftest.err >&5
                   13674:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13675:   (exit $ac_status); } && {
                   13676:         test -z "$ac_c_werror_flag" ||
                   13677:         test ! -s conftest.err
                   13678:        } && test -s conftest$ac_exeext &&
                   13679:        $as_test_x conftest$ac_exeext; then
                   13680:   ac_cv_search_opendir=$ac_res
1.1       millert  13681: else
1.25      millert  13682:   echo "$as_me: failed program was:" >&5
                   13683: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  13684:
1.27      millert  13685:
1.1       millert  13686: fi
                   13687:
1.27      millert  13688: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   13689:       conftest$ac_exeext
                   13690:   if test "${ac_cv_search_opendir+set}" = set; then
                   13691:   break
                   13692: fi
                   13693: done
                   13694: if test "${ac_cv_search_opendir+set}" = set; then
                   13695:   :
1.1       millert  13696: else
1.27      millert  13697:   ac_cv_search_opendir=no
1.25      millert  13698: fi
1.27      millert  13699: rm conftest.$ac_ext
1.25      millert  13700: LIBS=$ac_func_search_save_LIBS
1.1       millert  13701: fi
1.27      millert  13702: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
                   13703: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
                   13704: ac_res=$ac_cv_search_opendir
                   13705: if test "$ac_res" != no; then
                   13706:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       millert  13707:
1.25      millert  13708: fi
1.1       millert  13709:
1.25      millert  13710: else
1.27      millert  13711:   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
                   13712: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.25      millert  13713: if test "${ac_cv_search_opendir+set}" = set; then
1.9       millert  13714:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13715: else
1.25      millert  13716:   ac_func_search_save_LIBS=$LIBS
                   13717: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13718: /* confdefs.h.  */
                   13719: _ACEOF
                   13720: cat confdefs.h >>conftest.$ac_ext
                   13721: cat >>conftest.$ac_ext <<_ACEOF
                   13722: /* end confdefs.h.  */
1.25      millert  13723:
1.27      millert  13724: /* Override any GCC internal prototype to avoid an error.
                   13725:    Use char because int might match the return type of a GCC
                   13726:    builtin and then its argument prototype would still apply.  */
1.9       millert  13727: #ifdef __cplusplus
                   13728: extern "C"
                   13729: #endif
1.25      millert  13730: char opendir ();
1.16      millert  13731: int
                   13732: main ()
                   13733: {
1.27      millert  13734: return opendir ();
1.9       millert  13735:   ;
                   13736:   return 0;
                   13737: }
                   13738: _ACEOF
1.27      millert  13739: for ac_lib in '' x; do
                   13740:   if test -z "$ac_lib"; then
                   13741:     ac_res="none required"
                   13742:   else
                   13743:     ac_res=-l$ac_lib
                   13744:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   13745:   fi
                   13746:   rm -f conftest.$ac_objext conftest$ac_exeext
                   13747: if { (ac_try="$ac_link"
                   13748: case "(($ac_try" in
                   13749:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13750:   *) ac_try_echo=$ac_try;;
                   13751: esac
                   13752: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13753:   (eval "$ac_link") 2>conftest.er1
1.9       millert  13754:   ac_status=$?
1.25      millert  13755:   grep -v '^ *+' conftest.er1 >conftest.err
                   13756:   rm -f conftest.er1
                   13757:   cat conftest.err >&5
1.16      millert  13758:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13759:   (exit $ac_status); } && {
                   13760:         test -z "$ac_c_werror_flag" ||
                   13761:         test ! -s conftest.err
                   13762:        } && test -s conftest$ac_exeext &&
                   13763:        $as_test_x conftest$ac_exeext; then
                   13764:   ac_cv_search_opendir=$ac_res
1.9       millert  13765: else
                   13766:   echo "$as_me: failed program was:" >&5
1.16      millert  13767: sed 's/^/| /' conftest.$ac_ext >&5
                   13768:
1.27      millert  13769:
1.1       millert  13770: fi
1.17      millert  13771:
1.27      millert  13772: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   13773:       conftest$ac_exeext
                   13774:   if test "${ac_cv_search_opendir+set}" = set; then
                   13775:   break
                   13776: fi
                   13777: done
                   13778: if test "${ac_cv_search_opendir+set}" = set; then
                   13779:   :
1.17      millert  13780: else
1.27      millert  13781:   ac_cv_search_opendir=no
1.25      millert  13782: fi
1.27      millert  13783: rm conftest.$ac_ext
1.25      millert  13784: LIBS=$ac_func_search_save_LIBS
                   13785: fi
1.27      millert  13786: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
                   13787: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
                   13788: ac_res=$ac_cv_search_opendir
                   13789: if test "$ac_res" != no; then
                   13790:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.25      millert  13791:
                   13792: fi
                   13793:
                   13794: fi
                   13795:
1.27      millert  13796: { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
                   13797: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
1.25      millert  13798: if test "${ac_cv_header_time+set}" = set; then
1.9       millert  13799:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13800: else
1.25      millert  13801:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13802: /* confdefs.h.  */
                   13803: _ACEOF
                   13804: cat confdefs.h >>conftest.$ac_ext
                   13805: cat >>conftest.$ac_ext <<_ACEOF
                   13806: /* end confdefs.h.  */
1.25      millert  13807: #include <sys/types.h>
                   13808: #include <sys/time.h>
                   13809: #include <time.h>
1.9       millert  13810:
                   13811: int
                   13812: main ()
                   13813: {
1.25      millert  13814: if ((struct tm *) 0)
                   13815: return 0;
1.9       millert  13816:   ;
                   13817:   return 0;
                   13818: }
                   13819: _ACEOF
1.25      millert  13820: rm -f conftest.$ac_objext
1.27      millert  13821: if { (ac_try="$ac_compile"
                   13822: case "(($ac_try" in
                   13823:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13824:   *) ac_try_echo=$ac_try;;
                   13825: esac
                   13826: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13827:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  13828:   ac_status=$?
1.25      millert  13829:   grep -v '^ *+' conftest.er1 >conftest.err
                   13830:   rm -f conftest.er1
                   13831:   cat conftest.err >&5
1.16      millert  13832:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13833:   (exit $ac_status); } && {
                   13834:         test -z "$ac_c_werror_flag" ||
                   13835:         test ! -s conftest.err
                   13836:        } && test -s conftest.$ac_objext; then
1.25      millert  13837:   ac_cv_header_time=yes
1.9       millert  13838: else
                   13839:   echo "$as_me: failed program was:" >&5
1.16      millert  13840: sed 's/^/| /' conftest.$ac_ext >&5
                   13841:
1.27      millert  13842:        ac_cv_header_time=no
1.9       millert  13843: fi
1.27      millert  13844:
                   13845: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  13846: fi
1.27      millert  13847: { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
                   13848: echo "${ECHO_T}$ac_cv_header_time" >&6; }
1.25      millert  13849: if test $ac_cv_header_time = yes; then
                   13850:
                   13851: cat >>confdefs.h <<\_ACEOF
                   13852: #define TIME_WITH_SYS_TIME 1
1.16      millert  13853: _ACEOF
1.25      millert  13854:
                   13855: fi
                   13856:
                   13857:
                   13858:
                   13859:
                   13860:
                   13861:
                   13862:
                   13863:
                   13864: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
                   13865: do
                   13866: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27      millert  13867: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   13868:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13869: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13870: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  13871:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  13872: fi
1.27      millert  13873: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13874:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13875: echo "${ECHO_T}$ac_res" >&6; }
1.1       millert  13876: else
1.25      millert  13877:   # Is the header compilable?
1.27      millert  13878: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   13879: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.9       millert  13880: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13881: /* confdefs.h.  */
                   13882: _ACEOF
                   13883: cat confdefs.h >>conftest.$ac_ext
                   13884: cat >>conftest.$ac_ext <<_ACEOF
                   13885: /* end confdefs.h.  */
1.25      millert  13886: $ac_includes_default
                   13887: #include <$ac_header>
1.9       millert  13888: _ACEOF
1.25      millert  13889: rm -f conftest.$ac_objext
1.27      millert  13890: if { (ac_try="$ac_compile"
                   13891: case "(($ac_try" in
                   13892:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13893:   *) ac_try_echo=$ac_try;;
                   13894: esac
                   13895: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13896:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  13897:   ac_status=$?
1.25      millert  13898:   grep -v '^ *+' conftest.er1 >conftest.err
                   13899:   rm -f conftest.er1
                   13900:   cat conftest.err >&5
1.16      millert  13901:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13902:   (exit $ac_status); } && {
                   13903:         test -z "$ac_c_werror_flag" ||
                   13904:         test ! -s conftest.err
                   13905:        } && test -s conftest.$ac_objext; then
1.25      millert  13906:   ac_header_compiler=yes
1.9       millert  13907: else
                   13908:   echo "$as_me: failed program was:" >&5
1.16      millert  13909: sed 's/^/| /' conftest.$ac_ext >&5
                   13910:
1.27      millert  13911:        ac_header_compiler=no
1.9       millert  13912: fi
1.27      millert  13913:
                   13914: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   13915: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   13916: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  13917:
                   13918: # Is the header present?
1.27      millert  13919: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   13920: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.25      millert  13921: cat >conftest.$ac_ext <<_ACEOF
                   13922: /* confdefs.h.  */
                   13923: _ACEOF
                   13924: cat confdefs.h >>conftest.$ac_ext
                   13925: cat >>conftest.$ac_ext <<_ACEOF
                   13926: /* end confdefs.h.  */
                   13927: #include <$ac_header>
1.16      millert  13928: _ACEOF
1.27      millert  13929: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   13930: case "(($ac_try" in
                   13931:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13932:   *) ac_try_echo=$ac_try;;
                   13933: esac
                   13934: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13935:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25      millert  13936:   ac_status=$?
                   13937:   grep -v '^ *+' conftest.er1 >conftest.err
                   13938:   rm -f conftest.er1
                   13939:   cat conftest.err >&5
                   13940:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13941:   (exit $ac_status); } >/dev/null && {
                   13942:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   13943:         test ! -s conftest.err
                   13944:        }; then
1.25      millert  13945:   ac_header_preproc=yes
                   13946: else
                   13947:   echo "$as_me: failed program was:" >&5
                   13948: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  13949:
1.25      millert  13950:   ac_header_preproc=no
1.1       millert  13951: fi
1.27      millert  13952:
1.25      millert  13953: rm -f conftest.err conftest.$ac_ext
1.27      millert  13954: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   13955: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1       millert  13956:
1.25      millert  13957: # So?  What about this header?
                   13958: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   13959:   yes:no: )
                   13960:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   13961: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   13962:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   13963: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   13964:     ac_header_preproc=yes
                   13965:     ;;
                   13966:   no:yes:* )
                   13967:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   13968: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   13969:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   13970: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   13971:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   13972: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   13973:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   13974: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   13975:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   13976: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   13977:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   13978: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  13979:     ( cat <<\_ASBOX
                   13980: ## --------------------------------------- ##
                   13981: ## Report this to http://www.sudo.ws/bugs/ ##
                   13982: ## --------------------------------------- ##
                   13983: _ASBOX
                   13984:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.25      millert  13985:     ;;
                   13986: esac
1.27      millert  13987: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13988: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13989: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  13990:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13991: else
                   13992:   eval "$as_ac_Header=\$ac_header_preproc"
                   13993: fi
1.27      millert  13994: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13995:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13996: echo "${ECHO_T}$ac_res" >&6; }
1.23      millert  13997:
1.25      millert  13998: fi
                   13999: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   14000:   cat >>confdefs.h <<_ACEOF
                   14001: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23      millert  14002: _ACEOF
                   14003:
1.25      millert  14004: fi
1.23      millert  14005:
1.25      millert  14006: done
1.23      millert  14007:
1.37      millert  14008: if test "$OS" != "ultrix"; then
                   14009:     { echo "$as_me:$LINENO: checking POSIX termios" >&5
                   14010: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
                   14011: if test "${ac_cv_sys_posix_termios+set}" = set; then
                   14012:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14013: else
                   14014:   cat >conftest.$ac_ext <<_ACEOF
                   14015: /* confdefs.h.  */
                   14016: _ACEOF
                   14017: cat confdefs.h >>conftest.$ac_ext
                   14018: cat >>conftest.$ac_ext <<_ACEOF
                   14019: /* end confdefs.h.  */
                   14020: #include <sys/types.h>
                   14021: #include <unistd.h>
                   14022: #include <termios.h>
                   14023:
                   14024: int
                   14025: main ()
                   14026: {
                   14027: /* SunOS 4.0.3 has termios.h but not the library calls.  */
                   14028:    tcgetattr(0, 0);
                   14029:   ;
                   14030:   return 0;
                   14031: }
                   14032: _ACEOF
                   14033: rm -f conftest.$ac_objext conftest$ac_exeext
                   14034: if { (ac_try="$ac_link"
                   14035: case "(($ac_try" in
                   14036:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14037:   *) ac_try_echo=$ac_try;;
                   14038: esac
                   14039: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14040:   (eval "$ac_link") 2>conftest.er1
                   14041:   ac_status=$?
                   14042:   grep -v '^ *+' conftest.er1 >conftest.err
                   14043:   rm -f conftest.er1
                   14044:   cat conftest.err >&5
                   14045:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14046:   (exit $ac_status); } && {
                   14047:         test -z "$ac_c_werror_flag" ||
                   14048:         test ! -s conftest.err
                   14049:        } && test -s conftest$ac_exeext &&
                   14050:        $as_test_x conftest$ac_exeext; then
                   14051:   ac_cv_sys_posix_termios=yes
                   14052: else
                   14053:   echo "$as_me: failed program was:" >&5
                   14054: sed 's/^/| /' conftest.$ac_ext >&5
                   14055:
                   14056:        ac_cv_sys_posix_termios=no
                   14057: fi
                   14058:
                   14059: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   14060:       conftest$ac_exeext conftest.$ac_ext
                   14061: fi
                   14062: { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
                   14063: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
                   14064:
                   14065:     if test "$ac_cv_sys_posix_termios" = "yes"; then
                   14066:        cat >>confdefs.h <<\_ACEOF
                   14067: #define HAVE_TERMIOS_H 1
                   14068: _ACEOF
                   14069:
                   14070:     else
1.23      millert  14071:
1.37      millert  14072: for ac_header in termio.h
1.23      millert  14073: do
1.25      millert  14074: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27      millert  14075: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   14076:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   14077: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   14078: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  14079:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  14080: fi
1.27      millert  14081: ac_res=`eval echo '${'$as_ac_Header'}'`
                   14082:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   14083: echo "${ECHO_T}$ac_res" >&6; }
1.23      millert  14084: else
1.25      millert  14085:   # Is the header compilable?
1.27      millert  14086: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   14087: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.25      millert  14088: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  14089: /* confdefs.h.  */
                   14090: _ACEOF
                   14091: cat confdefs.h >>conftest.$ac_ext
                   14092: cat >>conftest.$ac_ext <<_ACEOF
                   14093: /* end confdefs.h.  */
1.25      millert  14094: $ac_includes_default
                   14095: #include <$ac_header>
1.23      millert  14096: _ACEOF
1.25      millert  14097: rm -f conftest.$ac_objext
1.27      millert  14098: if { (ac_try="$ac_compile"
                   14099: case "(($ac_try" in
                   14100:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14101:   *) ac_try_echo=$ac_try;;
                   14102: esac
                   14103: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14104:   (eval "$ac_compile") 2>conftest.er1
1.23      millert  14105:   ac_status=$?
1.25      millert  14106:   grep -v '^ *+' conftest.er1 >conftest.err
                   14107:   rm -f conftest.er1
                   14108:   cat conftest.err >&5
1.23      millert  14109:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14110:   (exit $ac_status); } && {
                   14111:         test -z "$ac_c_werror_flag" ||
                   14112:         test ! -s conftest.err
                   14113:        } && test -s conftest.$ac_objext; then
1.25      millert  14114:   ac_header_compiler=yes
1.23      millert  14115: else
                   14116:   echo "$as_me: failed program was:" >&5
                   14117: sed 's/^/| /' conftest.$ac_ext >&5
                   14118:
1.27      millert  14119:        ac_header_compiler=no
1.23      millert  14120: fi
1.27      millert  14121:
                   14122: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14123: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   14124: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.23      millert  14125:
1.25      millert  14126: # Is the header present?
1.27      millert  14127: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   14128: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.9       millert  14129: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14130: /* confdefs.h.  */
                   14131: _ACEOF
                   14132: cat confdefs.h >>conftest.$ac_ext
                   14133: cat >>conftest.$ac_ext <<_ACEOF
                   14134: /* end confdefs.h.  */
1.25      millert  14135: #include <$ac_header>
1.9       millert  14136: _ACEOF
1.27      millert  14137: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   14138: case "(($ac_try" in
                   14139:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14140:   *) ac_try_echo=$ac_try;;
                   14141: esac
                   14142: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14143:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  14144:   ac_status=$?
1.25      millert  14145:   grep -v '^ *+' conftest.er1 >conftest.err
                   14146:   rm -f conftest.er1
                   14147:   cat conftest.err >&5
1.16      millert  14148:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14149:   (exit $ac_status); } >/dev/null && {
                   14150:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   14151:         test ! -s conftest.err
                   14152:        }; then
1.25      millert  14153:   ac_header_preproc=yes
1.9       millert  14154: else
                   14155:   echo "$as_me: failed program was:" >&5
1.16      millert  14156: sed 's/^/| /' conftest.$ac_ext >&5
                   14157:
1.25      millert  14158:   ac_header_preproc=no
                   14159: fi
1.27      millert  14160:
1.25      millert  14161: rm -f conftest.err conftest.$ac_ext
1.27      millert  14162: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   14163: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  14164:
                   14165: # So?  What about this header?
                   14166: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   14167:   yes:no: )
                   14168:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   14169: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   14170:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   14171: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   14172:     ac_header_preproc=yes
                   14173:     ;;
                   14174:   no:yes:* )
                   14175:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   14176: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   14177:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   14178: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   14179:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   14180: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   14181:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   14182: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   14183:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   14184: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   14185:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   14186: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  14187:     ( cat <<\_ASBOX
                   14188: ## --------------------------------------- ##
                   14189: ## Report this to http://www.sudo.ws/bugs/ ##
                   14190: ## --------------------------------------- ##
                   14191: _ASBOX
                   14192:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.25      millert  14193:     ;;
                   14194: esac
1.27      millert  14195: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   14196: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   14197: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  14198:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14199: else
                   14200:   eval "$as_ac_Header=\$ac_header_preproc"
                   14201: fi
1.27      millert  14202: ac_res=`eval echo '${'$as_ac_Header'}'`
                   14203:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   14204: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  14205:
1.9       millert  14206: fi
1.25      millert  14207: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   14208:   cat >>confdefs.h <<_ACEOF
                   14209: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   14210: _ACEOF
                   14211:
1.9       millert  14212: fi
1.25      millert  14213:
                   14214: done
                   14215:
1.37      millert  14216:     fi
                   14217: fi
                   14218: if test ${with_logincap-'no'} != "no"; then
                   14219:
                   14220: for ac_header in login_cap.h
                   14221: do
                   14222: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   14223: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   14224:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   14225: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   14226: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  14227:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.37      millert  14228: fi
                   14229: ac_res=`eval echo '${'$as_ac_Header'}'`
                   14230:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   14231: echo "${ECHO_T}$ac_res" >&6; }
1.1       millert  14232: else
1.37      millert  14233:   # Is the header compilable?
                   14234: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   14235: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   14236: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14237: /* confdefs.h.  */
                   14238: _ACEOF
                   14239: cat confdefs.h >>conftest.$ac_ext
                   14240: cat >>conftest.$ac_ext <<_ACEOF
                   14241: /* end confdefs.h.  */
1.37      millert  14242: $ac_includes_default
                   14243: #include <$ac_header>
1.9       millert  14244: _ACEOF
1.37      millert  14245: rm -f conftest.$ac_objext
1.27      millert  14246: if { (ac_try="$ac_compile"
                   14247: case "(($ac_try" in
                   14248:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14249:   *) ac_try_echo=$ac_try;;
                   14250: esac
                   14251: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14252:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  14253:   ac_status=$?
                   14254:   grep -v '^ *+' conftest.er1 >conftest.err
                   14255:   rm -f conftest.er1
                   14256:   cat conftest.err >&5
                   14257:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14258:   (exit $ac_status); } && {
                   14259:         test -z "$ac_c_werror_flag" ||
                   14260:         test ! -s conftest.err
                   14261:        } && test -s conftest.$ac_objext; then
1.25      millert  14262:   ac_header_compiler=yes
1.9       millert  14263: else
                   14264:   echo "$as_me: failed program was:" >&5
1.16      millert  14265: sed 's/^/| /' conftest.$ac_ext >&5
                   14266:
1.27      millert  14267:        ac_header_compiler=no
1.9       millert  14268: fi
1.27      millert  14269:
                   14270: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14271: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   14272: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.9       millert  14273:
1.25      millert  14274: # Is the header present?
1.27      millert  14275: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   14276: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.9       millert  14277: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14278: /* confdefs.h.  */
                   14279: _ACEOF
                   14280: cat confdefs.h >>conftest.$ac_ext
                   14281: cat >>conftest.$ac_ext <<_ACEOF
                   14282: /* end confdefs.h.  */
1.25      millert  14283: #include <$ac_header>
1.9       millert  14284: _ACEOF
1.27      millert  14285: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   14286: case "(($ac_try" in
                   14287:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14288:   *) ac_try_echo=$ac_try;;
                   14289: esac
                   14290: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14291:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  14292:   ac_status=$?
1.25      millert  14293:   grep -v '^ *+' conftest.er1 >conftest.err
                   14294:   rm -f conftest.er1
                   14295:   cat conftest.err >&5
1.16      millert  14296:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14297:   (exit $ac_status); } >/dev/null && {
                   14298:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   14299:         test ! -s conftest.err
                   14300:        }; then
1.25      millert  14301:   ac_header_preproc=yes
1.9       millert  14302: else
                   14303:   echo "$as_me: failed program was:" >&5
1.16      millert  14304: sed 's/^/| /' conftest.$ac_ext >&5
                   14305:
1.25      millert  14306:   ac_header_preproc=no
1.9       millert  14307: fi
1.27      millert  14308:
1.25      millert  14309: rm -f conftest.err conftest.$ac_ext
1.27      millert  14310: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   14311: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  14312:
                   14313: # So?  What about this header?
                   14314: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   14315:   yes:no: )
                   14316:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   14317: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   14318:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   14319: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   14320:     ac_header_preproc=yes
                   14321:     ;;
                   14322:   no:yes:* )
                   14323:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   14324: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   14325:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   14326: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   14327:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   14328: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   14329:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   14330: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   14331:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   14332: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   14333:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   14334: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  14335:     ( cat <<\_ASBOX
                   14336: ## --------------------------------------- ##
                   14337: ## Report this to http://www.sudo.ws/bugs/ ##
                   14338: ## --------------------------------------- ##
                   14339: _ASBOX
                   14340:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.25      millert  14341:     ;;
                   14342: esac
1.27      millert  14343: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   14344: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   14345: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  14346:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14347: else
                   14348:   eval "$as_ac_Header=\$ac_header_preproc"
1.9       millert  14349: fi
1.27      millert  14350: ac_res=`eval echo '${'$as_ac_Header'}'`
                   14351:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   14352: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  14353:
1.1       millert  14354: fi
1.25      millert  14355: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   14356:   cat >>confdefs.h <<_ACEOF
                   14357: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   14358: _ACEOF
1.37      millert  14359:  LOGINCAP_USAGE='[-c class|-] '; LCMAN=""
1.31      millert  14360:        case "$OS" in
                   14361:            freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
                   14362:            ;;
                   14363:        esac
                   14364:
1.25      millert  14365: fi
1.1       millert  14366:
1.25      millert  14367: done
1.1       millert  14368:
1.25      millert  14369: fi
                   14370: if test ${with_project-'no'} != "no"; then
                   14371:     if test "${ac_cv_header_project_h+set}" = set; then
1.27      millert  14372:   { echo "$as_me:$LINENO: checking for project.h" >&5
                   14373: echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
1.25      millert  14374: if test "${ac_cv_header_project_h+set}" = set; then
1.9       millert  14375:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  14376: fi
1.27      millert  14377: { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
                   14378: echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
1.1       millert  14379: else
1.25      millert  14380:   # Is the header compilable?
1.27      millert  14381: { echo "$as_me:$LINENO: checking project.h usability" >&5
                   14382: echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
1.25      millert  14383: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14384: /* confdefs.h.  */
                   14385: _ACEOF
                   14386: cat confdefs.h >>conftest.$ac_ext
                   14387: cat >>conftest.$ac_ext <<_ACEOF
                   14388: /* end confdefs.h.  */
1.25      millert  14389: $ac_includes_default
                   14390: #include <project.h>
1.9       millert  14391: _ACEOF
1.25      millert  14392: rm -f conftest.$ac_objext
1.27      millert  14393: if { (ac_try="$ac_compile"
                   14394: case "(($ac_try" in
                   14395:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14396:   *) ac_try_echo=$ac_try;;
                   14397: esac
                   14398: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14399:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14400:   ac_status=$?
1.25      millert  14401:   grep -v '^ *+' conftest.er1 >conftest.err
                   14402:   rm -f conftest.er1
                   14403:   cat conftest.err >&5
1.16      millert  14404:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14405:   (exit $ac_status); } && {
                   14406:         test -z "$ac_c_werror_flag" ||
                   14407:         test ! -s conftest.err
                   14408:        } && test -s conftest.$ac_objext; then
1.25      millert  14409:   ac_header_compiler=yes
1.9       millert  14410: else
                   14411:   echo "$as_me: failed program was:" >&5
1.16      millert  14412: sed 's/^/| /' conftest.$ac_ext >&5
                   14413:
1.27      millert  14414:        ac_header_compiler=no
1.9       millert  14415: fi
1.27      millert  14416:
                   14417: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14418: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   14419: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1       millert  14420:
1.25      millert  14421: # Is the header present?
1.27      millert  14422: { echo "$as_me:$LINENO: checking project.h presence" >&5
                   14423: echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
1.25      millert  14424: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14425: /* confdefs.h.  */
                   14426: _ACEOF
                   14427: cat confdefs.h >>conftest.$ac_ext
                   14428: cat >>conftest.$ac_ext <<_ACEOF
                   14429: /* end confdefs.h.  */
1.25      millert  14430: #include <project.h>
1.9       millert  14431: _ACEOF
1.27      millert  14432: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   14433: case "(($ac_try" in
                   14434:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14435:   *) ac_try_echo=$ac_try;;
                   14436: esac
                   14437: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14438:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  14439:   ac_status=$?
1.25      millert  14440:   grep -v '^ *+' conftest.er1 >conftest.err
                   14441:   rm -f conftest.er1
                   14442:   cat conftest.err >&5
1.16      millert  14443:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14444:   (exit $ac_status); } >/dev/null && {
                   14445:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   14446:         test ! -s conftest.err
                   14447:        }; then
1.25      millert  14448:   ac_header_preproc=yes
1.9       millert  14449: else
                   14450:   echo "$as_me: failed program was:" >&5
1.16      millert  14451: sed 's/^/| /' conftest.$ac_ext >&5
                   14452:
1.25      millert  14453:   ac_header_preproc=no
                   14454: fi
1.27      millert  14455:
1.25      millert  14456: rm -f conftest.err conftest.$ac_ext
1.27      millert  14457: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   14458: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  14459:
                   14460: # So?  What about this header?
                   14461: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   14462:   yes:no: )
                   14463:     { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
                   14464: echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   14465:     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
                   14466: echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
                   14467:     ac_header_preproc=yes
                   14468:     ;;
                   14469:   no:yes:* )
                   14470:     { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
                   14471: echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
                   14472:     { echo "$as_me:$LINENO: WARNING: project.h:     check for missing prerequisite headers?" >&5
                   14473: echo "$as_me: WARNING: project.h:     check for missing prerequisite headers?" >&2;}
                   14474:     { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
                   14475: echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
                   14476:     { echo "$as_me:$LINENO: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&5
                   14477: echo "$as_me: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&2;}
                   14478:     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
                   14479: echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
                   14480:     { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
                   14481: echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
1.40      millert  14482:     ( cat <<\_ASBOX
                   14483: ## --------------------------------------- ##
                   14484: ## Report this to http://www.sudo.ws/bugs/ ##
                   14485: ## --------------------------------------- ##
                   14486: _ASBOX
                   14487:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.25      millert  14488:     ;;
                   14489: esac
1.27      millert  14490: { echo "$as_me:$LINENO: checking for project.h" >&5
                   14491: echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
1.25      millert  14492: if test "${ac_cv_header_project_h+set}" = set; then
                   14493:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14494: else
                   14495:   ac_cv_header_project_h=$ac_header_preproc
1.9       millert  14496: fi
1.27      millert  14497: { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
                   14498: echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
1.25      millert  14499:
1.9       millert  14500: fi
1.25      millert  14501: if test $ac_cv_header_project_h = yes; then
                   14502:   cat >>confdefs.h <<\_ACEOF
                   14503: #define HAVE_PROJECT_H 1
1.16      millert  14504: _ACEOF
1.1       millert  14505:
1.25      millert  14506:        SUDO_LIBS="${SUDO_LIBS} -lproject"
1.1       millert  14507: else
1.25      millert  14508:   -
1.1       millert  14509: fi
                   14510:
1.25      millert  14511:
                   14512: fi
1.27      millert  14513: { echo "$as_me:$LINENO: checking for mode_t" >&5
                   14514: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
1.25      millert  14515: if test "${ac_cv_type_mode_t+set}" = set; then
1.9       millert  14516:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14517: else
1.25      millert  14518:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14519: /* confdefs.h.  */
                   14520: _ACEOF
                   14521: cat confdefs.h >>conftest.$ac_ext
                   14522: cat >>conftest.$ac_ext <<_ACEOF
                   14523: /* end confdefs.h.  */
1.25      millert  14524: $ac_includes_default
1.27      millert  14525: typedef mode_t ac__type_new_;
1.9       millert  14526: int
                   14527: main ()
                   14528: {
1.27      millert  14529: if ((ac__type_new_ *) 0)
1.25      millert  14530:   return 0;
1.27      millert  14531: if (sizeof (ac__type_new_))
1.25      millert  14532:   return 0;
1.9       millert  14533:   ;
                   14534:   return 0;
                   14535: }
                   14536: _ACEOF
1.25      millert  14537: rm -f conftest.$ac_objext
1.27      millert  14538: if { (ac_try="$ac_compile"
                   14539: case "(($ac_try" in
                   14540:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14541:   *) ac_try_echo=$ac_try;;
                   14542: esac
                   14543: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14544:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14545:   ac_status=$?
1.25      millert  14546:   grep -v '^ *+' conftest.er1 >conftest.err
                   14547:   rm -f conftest.er1
                   14548:   cat conftest.err >&5
1.16      millert  14549:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14550:   (exit $ac_status); } && {
                   14551:         test -z "$ac_c_werror_flag" ||
                   14552:         test ! -s conftest.err
                   14553:        } && test -s conftest.$ac_objext; then
1.25      millert  14554:   ac_cv_type_mode_t=yes
1.9       millert  14555: else
                   14556:   echo "$as_me: failed program was:" >&5
1.16      millert  14557: sed 's/^/| /' conftest.$ac_ext >&5
                   14558:
1.27      millert  14559:        ac_cv_type_mode_t=no
1.9       millert  14560: fi
1.27      millert  14561:
                   14562: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14563: fi
1.27      millert  14564: { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
                   14565: echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
1.25      millert  14566: if test $ac_cv_type_mode_t = yes; then
                   14567:   :
1.1       millert  14568: else
1.25      millert  14569:
                   14570: cat >>confdefs.h <<_ACEOF
                   14571: #define mode_t int
                   14572: _ACEOF
                   14573:
1.1       millert  14574: fi
                   14575:
1.27      millert  14576: { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
                   14577: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
1.25      millert  14578: if test "${ac_cv_type_uid_t+set}" = set; then
1.9       millert  14579:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14580: else
1.9       millert  14581:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14582: /* confdefs.h.  */
                   14583: _ACEOF
                   14584: cat confdefs.h >>conftest.$ac_ext
                   14585: cat >>conftest.$ac_ext <<_ACEOF
                   14586: /* end confdefs.h.  */
1.25      millert  14587: #include <sys/types.h>
1.1       millert  14588:
1.9       millert  14589: _ACEOF
1.25      millert  14590: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14591:   $EGREP "uid_t" >/dev/null 2>&1; then
                   14592:   ac_cv_type_uid_t=yes
1.9       millert  14593: else
1.25      millert  14594:   ac_cv_type_uid_t=no
                   14595: fi
                   14596: rm -f conftest*
1.16      millert  14597:
1.9       millert  14598: fi
1.27      millert  14599: { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
                   14600: echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
1.25      millert  14601: if test $ac_cv_type_uid_t = no; then
                   14602:
                   14603: cat >>confdefs.h <<\_ACEOF
                   14604: #define uid_t int
                   14605: _ACEOF
                   14606:
                   14607:
                   14608: cat >>confdefs.h <<\_ACEOF
                   14609: #define gid_t int
1.16      millert  14610: _ACEOF
1.1       millert  14611:
                   14612: fi
                   14613:
1.37      millert  14614: { echo "$as_me:$LINENO: checking for __signed char" >&5
                   14615: echo $ECHO_N "checking for __signed char... $ECHO_C" >&6; }
                   14616: if test "${ac_cv_type___signed_char+set}" = set; then
1.25      millert  14617:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14618: else
                   14619:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14620: /* confdefs.h.  */
                   14621: _ACEOF
                   14622: cat confdefs.h >>conftest.$ac_ext
                   14623: cat >>conftest.$ac_ext <<_ACEOF
                   14624: /* end confdefs.h.  */
1.37      millert  14625: $ac_includes_default
                   14626: typedef __signed char ac__type_new_;
1.9       millert  14627: int
                   14628: main ()
                   14629: {
1.27      millert  14630: if ((ac__type_new_ *) 0)
1.25      millert  14631:   return 0;
1.27      millert  14632: if (sizeof (ac__type_new_))
1.25      millert  14633:   return 0;
1.9       millert  14634:   ;
                   14635:   return 0;
                   14636: }
                   14637: _ACEOF
                   14638: rm -f conftest.$ac_objext
1.27      millert  14639: if { (ac_try="$ac_compile"
                   14640: case "(($ac_try" in
                   14641:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14642:   *) ac_try_echo=$ac_try;;
                   14643: esac
                   14644: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14645:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14646:   ac_status=$?
1.25      millert  14647:   grep -v '^ *+' conftest.er1 >conftest.err
                   14648:   rm -f conftest.er1
                   14649:   cat conftest.err >&5
1.16      millert  14650:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14651:   (exit $ac_status); } && {
                   14652:         test -z "$ac_c_werror_flag" ||
                   14653:         test ! -s conftest.err
                   14654:        } && test -s conftest.$ac_objext; then
1.37      millert  14655:   ac_cv_type___signed_char=yes
1.9       millert  14656: else
                   14657:   echo "$as_me: failed program was:" >&5
1.16      millert  14658: sed 's/^/| /' conftest.$ac_ext >&5
                   14659:
1.37      millert  14660:        ac_cv_type___signed_char=no
1.25      millert  14661: fi
1.27      millert  14662:
                   14663: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  14664: fi
1.37      millert  14665: { echo "$as_me:$LINENO: result: $ac_cv_type___signed_char" >&5
                   14666: echo "${ECHO_T}$ac_cv_type___signed_char" >&6; }
                   14667: if test $ac_cv_type___signed_char = yes; then
                   14668:   :
1.25      millert  14669: else
1.37      millert  14670:   { echo "$as_me:$LINENO: checking for signed char" >&5
                   14671: echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
                   14672: if test "${ac_cv_type_signed_char+set}" = set; then
1.9       millert  14673:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14674: else
1.25      millert  14675:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14676: /* confdefs.h.  */
                   14677: _ACEOF
                   14678: cat confdefs.h >>conftest.$ac_ext
                   14679: cat >>conftest.$ac_ext <<_ACEOF
                   14680: /* end confdefs.h.  */
1.37      millert  14681: $ac_includes_default
                   14682: typedef signed char ac__type_new_;
1.9       millert  14683: int
1.25      millert  14684: main ()
                   14685: {
1.27      millert  14686: if ((ac__type_new_ *) 0)
1.25      millert  14687:   return 0;
1.27      millert  14688: if (sizeof (ac__type_new_))
1.25      millert  14689:   return 0;
1.9       millert  14690:   ;
                   14691:   return 0;
                   14692: }
                   14693: _ACEOF
1.25      millert  14694: rm -f conftest.$ac_objext
1.27      millert  14695: if { (ac_try="$ac_compile"
                   14696: case "(($ac_try" in
                   14697:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14698:   *) ac_try_echo=$ac_try;;
                   14699: esac
                   14700: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14701:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14702:   ac_status=$?
1.25      millert  14703:   grep -v '^ *+' conftest.er1 >conftest.err
                   14704:   rm -f conftest.er1
                   14705:   cat conftest.err >&5
1.16      millert  14706:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14707:   (exit $ac_status); } && {
                   14708:         test -z "$ac_c_werror_flag" ||
                   14709:         test ! -s conftest.err
                   14710:        } && test -s conftest.$ac_objext; then
1.37      millert  14711:   ac_cv_type_signed_char=yes
1.9       millert  14712: else
                   14713:   echo "$as_me: failed program was:" >&5
1.16      millert  14714: sed 's/^/| /' conftest.$ac_ext >&5
                   14715:
1.37      millert  14716:        ac_cv_type_signed_char=no
1.9       millert  14717: fi
1.27      millert  14718:
                   14719: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14720: fi
1.37      millert  14721: { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
                   14722: echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
                   14723: if test $ac_cv_type_signed_char = yes; then
                   14724:   cat >>confdefs.h <<\_ACEOF
                   14725: #define __signed signed
                   14726: _ACEOF
1.25      millert  14727:
1.37      millert  14728: else
                   14729:   cat >>confdefs.h <<\_ACEOF
                   14730: #define __signed
1.25      millert  14731: _ACEOF
                   14732:
1.37      millert  14733: fi
                   14734:
                   14735: fi
                   14736:
                   14737: { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
                   14738: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
                   14739: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
                   14740:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14741: else
                   14742:   cat >conftest.$ac_ext <<_ACEOF
                   14743: /* confdefs.h.  */
                   14744: _ACEOF
                   14745: cat confdefs.h >>conftest.$ac_ext
                   14746: cat >>conftest.$ac_ext <<_ACEOF
                   14747: /* end confdefs.h.  */
                   14748: #include <sys/types.h>
                   14749: #include <signal.h>
                   14750:
                   14751: typedef sig_atomic_t ac__type_new_;
                   14752: int
                   14753: main ()
                   14754: {
                   14755: if ((ac__type_new_ *) 0)
                   14756:   return 0;
                   14757: if (sizeof (ac__type_new_))
                   14758:   return 0;
                   14759:   ;
                   14760:   return 0;
                   14761: }
                   14762: _ACEOF
                   14763: rm -f conftest.$ac_objext
                   14764: if { (ac_try="$ac_compile"
                   14765: case "(($ac_try" in
                   14766:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14767:   *) ac_try_echo=$ac_try;;
                   14768: esac
                   14769: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14770:   (eval "$ac_compile") 2>conftest.er1
                   14771:   ac_status=$?
                   14772:   grep -v '^ *+' conftest.er1 >conftest.err
                   14773:   rm -f conftest.er1
                   14774:   cat conftest.err >&5
                   14775:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14776:   (exit $ac_status); } && {
                   14777:         test -z "$ac_c_werror_flag" ||
                   14778:         test ! -s conftest.err
                   14779:        } && test -s conftest.$ac_objext; then
                   14780:   ac_cv_type_sig_atomic_t=yes
                   14781: else
                   14782:   echo "$as_me: failed program was:" >&5
                   14783: sed 's/^/| /' conftest.$ac_ext >&5
                   14784:
                   14785:        ac_cv_type_sig_atomic_t=no
                   14786: fi
                   14787:
                   14788: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14789: fi
                   14790: { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
                   14791: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
                   14792: if test $ac_cv_type_sig_atomic_t = yes; then
                   14793:   :
                   14794: else
                   14795:   cat >>confdefs.h <<\_ACEOF
                   14796: #define sig_atomic_t int
                   14797: _ACEOF
                   14798:
                   14799: fi
                   14800:
                   14801: { echo "$as_me:$LINENO: checking for sigaction_t" >&5
                   14802: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
                   14803: if test "${ac_cv_type_sigaction_t+set}" = set; then
                   14804:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14805: else
                   14806:   cat >conftest.$ac_ext <<_ACEOF
                   14807: /* confdefs.h.  */
                   14808: _ACEOF
                   14809: cat confdefs.h >>conftest.$ac_ext
                   14810: cat >>conftest.$ac_ext <<_ACEOF
                   14811: /* end confdefs.h.  */
                   14812: #include <sys/types.h>
                   14813: #include <signal.h>
                   14814:
                   14815: typedef sigaction_t ac__type_new_;
                   14816: int
                   14817: main ()
                   14818: {
                   14819: if ((ac__type_new_ *) 0)
                   14820:   return 0;
                   14821: if (sizeof (ac__type_new_))
                   14822:   return 0;
                   14823:   ;
                   14824:   return 0;
                   14825: }
                   14826: _ACEOF
                   14827: rm -f conftest.$ac_objext
                   14828: if { (ac_try="$ac_compile"
                   14829: case "(($ac_try" in
                   14830:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14831:   *) ac_try_echo=$ac_try;;
                   14832: esac
                   14833: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14834:   (eval "$ac_compile") 2>conftest.er1
                   14835:   ac_status=$?
                   14836:   grep -v '^ *+' conftest.er1 >conftest.err
                   14837:   rm -f conftest.er1
                   14838:   cat conftest.err >&5
                   14839:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14840:   (exit $ac_status); } && {
                   14841:         test -z "$ac_c_werror_flag" ||
                   14842:         test ! -s conftest.err
                   14843:        } && test -s conftest.$ac_objext; then
                   14844:   ac_cv_type_sigaction_t=yes
                   14845: else
                   14846:   echo "$as_me: failed program was:" >&5
                   14847: sed 's/^/| /' conftest.$ac_ext >&5
                   14848:
                   14849:        ac_cv_type_sigaction_t=no
                   14850: fi
                   14851:
                   14852: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14853: fi
                   14854: { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
                   14855: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
                   14856: if test $ac_cv_type_sigaction_t = yes; then
                   14857:
                   14858: cat >>confdefs.h <<_ACEOF
                   14859: #define HAVE_SIGACTION_T 1
                   14860: _ACEOF
                   14861:
                   14862: cat >>confdefs.h <<\_ACEOF
                   14863: #define HAVE_SIGACTION_T 1
                   14864: _ACEOF
1.25      millert  14865:
1.1       millert  14866: fi
                   14867:
1.27      millert  14868: { echo "$as_me:$LINENO: checking for struct timespec" >&5
                   14869: echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
1.25      millert  14870: if test "${ac_cv_type_struct_timespec+set}" = set; then
1.9       millert  14871:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14872: else
1.9       millert  14873:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14874: /* confdefs.h.  */
                   14875: _ACEOF
                   14876: cat confdefs.h >>conftest.$ac_ext
                   14877: cat >>conftest.$ac_ext <<_ACEOF
                   14878: /* end confdefs.h.  */
1.25      millert  14879: #include <sys/types.h>
                   14880: #if TIME_WITH_SYS_TIME
                   14881: # include <sys/time.h>
1.1       millert  14882: #endif
1.31      millert  14883: #include <time.h>
1.1       millert  14884:
1.27      millert  14885: typedef struct timespec ac__type_new_;
1.16      millert  14886: int
                   14887: main ()
                   14888: {
1.27      millert  14889: if ((ac__type_new_ *) 0)
1.25      millert  14890:   return 0;
1.27      millert  14891: if (sizeof (ac__type_new_))
1.25      millert  14892:   return 0;
1.9       millert  14893:   ;
                   14894:   return 0;
                   14895: }
                   14896: _ACEOF
1.25      millert  14897: rm -f conftest.$ac_objext
1.27      millert  14898: if { (ac_try="$ac_compile"
                   14899: case "(($ac_try" in
                   14900:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14901:   *) ac_try_echo=$ac_try;;
                   14902: esac
                   14903: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14904:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14905:   ac_status=$?
1.25      millert  14906:   grep -v '^ *+' conftest.er1 >conftest.err
                   14907:   rm -f conftest.er1
                   14908:   cat conftest.err >&5
1.16      millert  14909:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14910:   (exit $ac_status); } && {
                   14911:         test -z "$ac_c_werror_flag" ||
                   14912:         test ! -s conftest.err
                   14913:        } && test -s conftest.$ac_objext; then
1.25      millert  14914:   ac_cv_type_struct_timespec=yes
1.9       millert  14915: else
                   14916:   echo "$as_me: failed program was:" >&5
1.16      millert  14917: sed 's/^/| /' conftest.$ac_ext >&5
                   14918:
1.27      millert  14919:        ac_cv_type_struct_timespec=no
1.9       millert  14920: fi
1.27      millert  14921:
                   14922: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14923: fi
1.27      millert  14924: { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
                   14925: echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
1.25      millert  14926: if test $ac_cv_type_struct_timespec = yes; then
                   14927:   cat >>confdefs.h <<\_ACEOF
                   14928: #define HAVE_TIMESPEC 1
1.16      millert  14929: _ACEOF
1.1       millert  14930:
1.25      millert  14931: fi
                   14932:
1.31      millert  14933: { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
                   14934: echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
                   14935: if test "${ac_cv_type_struct_in6_addr+set}" = set; then
                   14936:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14937: else
                   14938:   cat >conftest.$ac_ext <<_ACEOF
                   14939: /* confdefs.h.  */
                   14940: _ACEOF
                   14941: cat confdefs.h >>conftest.$ac_ext
                   14942: cat >>conftest.$ac_ext <<_ACEOF
                   14943: /* end confdefs.h.  */
                   14944: #include <sys/types.h>
                   14945: #include <netinet/in.h>
                   14946:
                   14947: typedef struct in6_addr ac__type_new_;
                   14948: int
                   14949: main ()
                   14950: {
                   14951: if ((ac__type_new_ *) 0)
                   14952:   return 0;
                   14953: if (sizeof (ac__type_new_))
                   14954:   return 0;
                   14955:   ;
                   14956:   return 0;
                   14957: }
                   14958: _ACEOF
                   14959: rm -f conftest.$ac_objext
                   14960: if { (ac_try="$ac_compile"
                   14961: case "(($ac_try" in
                   14962:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14963:   *) ac_try_echo=$ac_try;;
                   14964: esac
                   14965: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14966:   (eval "$ac_compile") 2>conftest.er1
                   14967:   ac_status=$?
                   14968:   grep -v '^ *+' conftest.er1 >conftest.err
                   14969:   rm -f conftest.er1
                   14970:   cat conftest.err >&5
                   14971:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14972:   (exit $ac_status); } && {
                   14973:         test -z "$ac_c_werror_flag" ||
                   14974:         test ! -s conftest.err
                   14975:        } && test -s conftest.$ac_objext; then
                   14976:   ac_cv_type_struct_in6_addr=yes
                   14977: else
                   14978:   echo "$as_me: failed program was:" >&5
                   14979: sed 's/^/| /' conftest.$ac_ext >&5
                   14980:
                   14981:        ac_cv_type_struct_in6_addr=no
                   14982: fi
                   14983:
                   14984: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14985: fi
                   14986: { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
                   14987: echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
                   14988: if test $ac_cv_type_struct_in6_addr = yes; then
                   14989:
                   14990: cat >>confdefs.h <<_ACEOF
                   14991: #define HAVE_STRUCT_IN6_ADDR 1
                   14992: _ACEOF
                   14993:
                   14994: cat >>confdefs.h <<\_ACEOF
                   14995: #define HAVE_IN6_ADDR 1
                   14996: _ACEOF
                   14997:
                   14998: fi
                   14999:
1.27      millert  15000: { echo "$as_me:$LINENO: checking for size_t" >&5
                   15001: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
1.25      millert  15002: if test "${sudo_cv_type_size_t+set}" = set; then
                   15003:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15004: else
                   15005:   cat >conftest.$ac_ext <<_ACEOF
                   15006: /* confdefs.h.  */
                   15007: _ACEOF
                   15008: cat confdefs.h >>conftest.$ac_ext
                   15009: cat >>conftest.$ac_ext <<_ACEOF
                   15010: /* end confdefs.h.  */
                   15011: #include <sys/types.h>
                   15012: #include <stdio.h>
                   15013: #if STDC_HEADERS
                   15014: #include <stdlib.h>
                   15015: #endif
                   15016: #if HAVE_UNISTD_H
                   15017: #include <unistd.h>
                   15018: #endif
                   15019: _ACEOF
                   15020: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   15021:   $EGREP "size_t" >/dev/null 2>&1; then
                   15022:   sudo_cv_type_size_t=yes
1.1       millert  15023: else
1.25      millert  15024:   sudo_cv_type_size_t=no
                   15025: fi
                   15026: rm -f conftest*
                   15027:
                   15028: fi
1.27      millert  15029: { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
                   15030: echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
1.25      millert  15031: if test $sudo_cv_type_size_t = no; then
                   15032:
                   15033: cat >>confdefs.h <<\_ACEOF
                   15034: #define size_t int
                   15035: _ACEOF
                   15036:
                   15037: fi
                   15038:
1.27      millert  15039: { echo "$as_me:$LINENO: checking for ssize_t" >&5
                   15040: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
1.25      millert  15041: if test "${sudo_cv_type_ssize_t+set}" = set; then
1.9       millert  15042:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15043: else
1.25      millert  15044:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15045: /* confdefs.h.  */
                   15046: _ACEOF
                   15047: cat confdefs.h >>conftest.$ac_ext
                   15048: cat >>conftest.$ac_ext <<_ACEOF
                   15049: /* end confdefs.h.  */
1.25      millert  15050: #include <sys/types.h>
                   15051: #include <stdio.h>
                   15052: #if STDC_HEADERS
                   15053: #include <stdlib.h>
                   15054: #endif
                   15055: #if HAVE_UNISTD_H
                   15056: #include <unistd.h>
1.9       millert  15057: #endif
                   15058: _ACEOF
1.25      millert  15059: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   15060:   $EGREP "ssize_t" >/dev/null 2>&1; then
                   15061:   sudo_cv_type_ssize_t=yes
1.9       millert  15062: else
1.25      millert  15063:   sudo_cv_type_ssize_t=no
                   15064: fi
                   15065: rm -f conftest*
1.16      millert  15066:
1.9       millert  15067: fi
1.27      millert  15068: { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
                   15069: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
1.25      millert  15070: if test $sudo_cv_type_ssize_t = no; then
                   15071:
                   15072: cat >>confdefs.h <<\_ACEOF
                   15073: #define ssize_t int
                   15074: _ACEOF
                   15075:
1.9       millert  15076: fi
1.25      millert  15077:
1.27      millert  15078: { echo "$as_me:$LINENO: checking for dev_t" >&5
                   15079: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
1.25      millert  15080: if test "${sudo_cv_type_dev_t+set}" = set; then
                   15081:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15082: else
                   15083:   cat >conftest.$ac_ext <<_ACEOF
                   15084: /* confdefs.h.  */
                   15085: _ACEOF
                   15086: cat confdefs.h >>conftest.$ac_ext
                   15087: cat >>conftest.$ac_ext <<_ACEOF
                   15088: /* end confdefs.h.  */
                   15089: #include <sys/types.h>
                   15090: #include <stdio.h>
                   15091: #if STDC_HEADERS
                   15092: #include <stdlib.h>
                   15093: #endif
                   15094: #if HAVE_UNISTD_H
                   15095: #include <unistd.h>
                   15096: #endif
1.16      millert  15097: _ACEOF
1.25      millert  15098: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   15099:   $EGREP "dev_t" >/dev/null 2>&1; then
                   15100:   sudo_cv_type_dev_t=yes
                   15101: else
                   15102:   sudo_cv_type_dev_t=no
1.1       millert  15103: fi
1.25      millert  15104: rm -f conftest*
1.1       millert  15105:
                   15106: fi
1.27      millert  15107: { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
                   15108: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
1.25      millert  15109: if test $sudo_cv_type_dev_t = no; then
1.1       millert  15110:
1.25      millert  15111: cat >>confdefs.h <<\_ACEOF
                   15112: #define dev_t int
                   15113: _ACEOF
1.1       millert  15114:
1.25      millert  15115: fi
1.1       millert  15116:
1.27      millert  15117: { echo "$as_me:$LINENO: checking for ino_t" >&5
                   15118: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
                   15119: if test "${sudo_cv_type_ino_t+set}" = set; then
1.9       millert  15120:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15121: else
1.25      millert  15122:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15123: /* confdefs.h.  */
                   15124: _ACEOF
                   15125: cat confdefs.h >>conftest.$ac_ext
                   15126: cat >>conftest.$ac_ext <<_ACEOF
                   15127: /* end confdefs.h.  */
1.25      millert  15128: #include <sys/types.h>
1.27      millert  15129: #include <stdio.h>
                   15130: #if STDC_HEADERS
                   15131: #include <stdlib.h>
                   15132: #endif
                   15133: #if HAVE_UNISTD_H
                   15134: #include <unistd.h>
                   15135: #endif
1.9       millert  15136: _ACEOF
1.27      millert  15137: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   15138:   $EGREP "ino_t" >/dev/null 2>&1; then
                   15139:   sudo_cv_type_ino_t=yes
1.9       millert  15140: else
1.27      millert  15141:   sudo_cv_type_ino_t=no
                   15142: fi
                   15143: rm -f conftest*
1.16      millert  15144:
1.25      millert  15145: fi
1.27      millert  15146: { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
                   15147: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
                   15148: if test $sudo_cv_type_ino_t = no; then
1.25      millert  15149:
                   15150: cat >>confdefs.h <<\_ACEOF
1.27      millert  15151: #define ino_t unsigned int
1.16      millert  15152: _ACEOF
1.25      millert  15153:
1.1       millert  15154: fi
                   15155:
1.6       millert  15156:
1.27      millert  15157: { echo "$as_me:$LINENO: checking max length of uid_t" >&5
                   15158: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
                   15159: if test "${sudo_cv_uid_t_len+set}" = set; then
1.9       millert  15160:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15161: else
1.27      millert  15162:   rm -f conftestdata
                   15163: if test "$cross_compiling" = yes; then
                   15164:   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
                   15165: See \`config.log' for more details." >&5
                   15166: echo "$as_me: error: cannot run test program while cross compiling
                   15167: See \`config.log' for more details." >&2;}
                   15168:    { (exit 1); exit 1; }; }
                   15169: else
1.9       millert  15170:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15171: /* confdefs.h.  */
                   15172: _ACEOF
                   15173: cat confdefs.h >>conftest.$ac_ext
                   15174: cat >>conftest.$ac_ext <<_ACEOF
                   15175: /* end confdefs.h.  */
1.27      millert  15176: #include <stdio.h>
                   15177: #include <pwd.h>
                   15178: #include <limits.h>
                   15179: #include <sys/types.h>
                   15180: #include <sys/param.h>
                   15181: main() {
                   15182:   FILE *f;
                   15183:   char b[1024];
                   15184:   uid_t u = (uid_t) -1;
1.25      millert  15185:
1.27      millert  15186:   if ((f = fopen("conftestdata", "w")) == NULL)
                   15187:     exit(1);
1.25      millert  15188:
1.27      millert  15189:   (void) sprintf(b, "%lu", (unsigned long) u);
                   15190:   (void) fprintf(f, "%d\n", strlen(b));
                   15191:   (void) fclose(f);
                   15192:   exit(0);
1.9       millert  15193: }
                   15194: _ACEOF
1.27      millert  15195: rm -f conftest$ac_exeext
                   15196: if { (ac_try="$ac_link"
                   15197: case "(($ac_try" in
                   15198:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15199:   *) ac_try_echo=$ac_try;;
                   15200: esac
                   15201: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15202:   (eval "$ac_link") 2>&5
1.9       millert  15203:   ac_status=$?
1.16      millert  15204:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15205:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15206:   { (case "(($ac_try" in
                   15207:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15208:   *) ac_try_echo=$ac_try;;
                   15209: esac
                   15210: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15211:   (eval "$ac_try") 2>&5
1.9       millert  15212:   ac_status=$?
1.16      millert  15213:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  15214:   (exit $ac_status); }; }; then
1.27      millert  15215:   sudo_cv_uid_t_len=`cat conftestdata`
1.9       millert  15216: else
1.27      millert  15217:   echo "$as_me: program exited with status $ac_status" >&5
                   15218: echo "$as_me: failed program was:" >&5
1.16      millert  15219: sed 's/^/| /' conftest.$ac_ext >&5
                   15220:
1.27      millert  15221: ( exit $ac_status )
                   15222: sudo_cv_uid_t_len=10
1.9       millert  15223: fi
1.27      millert  15224: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  15225: fi
1.27      millert  15226:
                   15227:
1.25      millert  15228:
                   15229: fi
                   15230:
1.27      millert  15231: rm -f conftestdata
                   15232: { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
                   15233: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
                   15234:
                   15235: cat >>confdefs.h <<_ACEOF
                   15236: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
                   15237: _ACEOF
                   15238:
1.25      millert  15239:
1.27      millert  15240: { echo "$as_me:$LINENO: checking for long long" >&5
                   15241: echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
                   15242: if test "${ac_cv_type_long_long+set}" = set; then
1.9       millert  15243:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15244: else
1.25      millert  15245:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15246: /* confdefs.h.  */
                   15247: _ACEOF
                   15248: cat confdefs.h >>conftest.$ac_ext
                   15249: cat >>conftest.$ac_ext <<_ACEOF
                   15250: /* end confdefs.h.  */
1.27      millert  15251: $ac_includes_default
                   15252: typedef long long ac__type_new_;
1.9       millert  15253: int
                   15254: main ()
                   15255: {
1.27      millert  15256: if ((ac__type_new_ *) 0)
                   15257:   return 0;
                   15258: if (sizeof (ac__type_new_))
                   15259:   return 0;
1.9       millert  15260:   ;
                   15261:   return 0;
                   15262: }
                   15263: _ACEOF
1.27      millert  15264: rm -f conftest.$ac_objext
                   15265: if { (ac_try="$ac_compile"
                   15266: case "(($ac_try" in
                   15267:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15268:   *) ac_try_echo=$ac_try;;
                   15269: esac
                   15270: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15271:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  15272:   ac_status=$?
1.25      millert  15273:   grep -v '^ *+' conftest.er1 >conftest.err
                   15274:   rm -f conftest.er1
                   15275:   cat conftest.err >&5
1.16      millert  15276:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15277:   (exit $ac_status); } && {
                   15278:         test -z "$ac_c_werror_flag" ||
                   15279:         test ! -s conftest.err
                   15280:        } && test -s conftest.$ac_objext; then
                   15281:   ac_cv_type_long_long=yes
1.9       millert  15282: else
                   15283:   echo "$as_me: failed program was:" >&5
1.16      millert  15284: sed 's/^/| /' conftest.$ac_ext >&5
                   15285:
1.27      millert  15286:        ac_cv_type_long_long=no
1.9       millert  15287: fi
1.27      millert  15288:
                   15289: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  15290: fi
1.27      millert  15291: { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
                   15292: echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
                   15293: if test $ac_cv_type_long_long = yes; then
                   15294:
                   15295: cat >>confdefs.h <<_ACEOF
                   15296: #define HAVE_LONG_LONG 1
1.16      millert  15297: _ACEOF
1.9       millert  15298:
1.1       millert  15299:
1.27      millert  15300: cat >>confdefs.h <<\_ACEOF
                   15301: #define HAVE_LONG_LONG 1
                   15302: _ACEOF
                   15303:
                   15304: { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
                   15305: echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
                   15306: if test "${sudo_cv_type_long_is_quad+set}" = set; then
1.9       millert  15307:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15308: else
1.27      millert  15309:   if test "$cross_compiling" = yes; then
                   15310:   sudo_cv_type_long_is_quad=no
                   15311: else
1.9       millert  15312:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15313: /* confdefs.h.  */
                   15314: _ACEOF
                   15315: cat confdefs.h >>conftest.$ac_ext
                   15316: cat >>conftest.$ac_ext <<_ACEOF
                   15317: /* end confdefs.h.  */
1.25      millert  15318:
1.27      millert  15319: main() {
                   15320: if (sizeof(long long) == sizeof(long)) exit(0);
                   15321: else exit(1);
1.9       millert  15322: }
                   15323: _ACEOF
1.27      millert  15324: rm -f conftest$ac_exeext
                   15325: if { (ac_try="$ac_link"
                   15326: case "(($ac_try" in
                   15327:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15328:   *) ac_try_echo=$ac_try;;
                   15329: esac
                   15330: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15331:   (eval "$ac_link") 2>&5
1.9       millert  15332:   ac_status=$?
1.16      millert  15333:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15334:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15335:   { (case "(($ac_try" in
                   15336:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15337:   *) ac_try_echo=$ac_try;;
                   15338: esac
                   15339: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15340:   (eval "$ac_try") 2>&5
1.9       millert  15341:   ac_status=$?
1.16      millert  15342:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  15343:   (exit $ac_status); }; }; then
1.27      millert  15344:   sudo_cv_type_long_is_quad=yes
1.9       millert  15345: else
1.27      millert  15346:   echo "$as_me: program exited with status $ac_status" >&5
                   15347: echo "$as_me: failed program was:" >&5
1.16      millert  15348: sed 's/^/| /' conftest.$ac_ext >&5
                   15349:
1.27      millert  15350: ( exit $ac_status )
                   15351: sudo_cv_type_long_is_quad=no
                   15352: fi
                   15353: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  15354: fi
1.27      millert  15355:
                   15356:
                   15357: rm -f core core.* *.core
1.9       millert  15358: fi
1.27      millert  15359: { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
                   15360: echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
                   15361: if test $sudo_cv_type_long_is_quad = yes; then
                   15362:
                   15363: cat >>confdefs.h <<\_ACEOF
                   15364: #define LONG_IS_QUAD 1
1.16      millert  15365: _ACEOF
1.27      millert  15366:
1.25      millert  15367: fi
                   15368:
                   15369: fi
                   15370:
1.27      millert  15371: { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
                   15372: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
                   15373: if test "${sudo_cv_sock_sa_len+set}" = set; then
1.9       millert  15374:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15375: else
1.27      millert  15376:   if test "$cross_compiling" = yes; then
                   15377:   sudo_cv_sock_sa_len=no
                   15378: else
1.25      millert  15379:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15380: /* confdefs.h.  */
                   15381: _ACEOF
                   15382: cat confdefs.h >>conftest.$ac_ext
                   15383: cat >>conftest.$ac_ext <<_ACEOF
                   15384: /* end confdefs.h.  */
1.27      millert  15385: #include <sys/types.h>
                   15386: #include <sys/socket.h>
                   15387: main() {
                   15388: struct sockaddr s;
                   15389: s.sa_len = 0;
                   15390: exit(0);
1.9       millert  15391: }
                   15392: _ACEOF
1.27      millert  15393: rm -f conftest$ac_exeext
                   15394: if { (ac_try="$ac_link"
                   15395: case "(($ac_try" in
                   15396:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15397:   *) ac_try_echo=$ac_try;;
                   15398: esac
                   15399: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15400:   (eval "$ac_link") 2>&5
1.9       millert  15401:   ac_status=$?
1.16      millert  15402:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15403:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15404:   { (case "(($ac_try" in
                   15405:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15406:   *) ac_try_echo=$ac_try;;
                   15407: esac
                   15408: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15409:   (eval "$ac_try") 2>&5
1.9       millert  15410:   ac_status=$?
1.16      millert  15411:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  15412:   (exit $ac_status); }; }; then
1.27      millert  15413:   sudo_cv_sock_sa_len=yes
1.9       millert  15414: else
1.27      millert  15415:   echo "$as_me: program exited with status $ac_status" >&5
                   15416: echo "$as_me: failed program was:" >&5
1.16      millert  15417: sed 's/^/| /' conftest.$ac_ext >&5
                   15418:
1.27      millert  15419: ( exit $ac_status )
                   15420: sudo_cv_sock_sa_len=no
1.9       millert  15421: fi
1.27      millert  15422: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  15423: fi
1.1       millert  15424:
1.27      millert  15425:
                   15426: rm -f core core.* *.core
1.1       millert  15427: fi
1.27      millert  15428: { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
                   15429: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
                   15430: if test $sudo_cv_sock_sa_len = yes; then
                   15431:
                   15432: cat >>confdefs.h <<\_ACEOF
                   15433: #define HAVE_SA_LEN 1
                   15434: _ACEOF
1.1       millert  15435:
                   15436: fi
                   15437:
1.27      millert  15438: case "$DEFS" in
                   15439:     *"RETSIGTYPE"*)    ;;
                   15440:     *)                 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
                   15441: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
                   15442: if test "${ac_cv_type_signal+set}" = set; then
1.9       millert  15443:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15444: else
1.9       millert  15445:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15446: /* confdefs.h.  */
                   15447: _ACEOF
                   15448: cat confdefs.h >>conftest.$ac_ext
                   15449: cat >>conftest.$ac_ext <<_ACEOF
                   15450: /* end confdefs.h.  */
1.27      millert  15451: #include <sys/types.h>
                   15452: #include <signal.h>
1.9       millert  15453:
                   15454: int
                   15455: main ()
                   15456: {
1.27      millert  15457: return *(signal (0, 0)) (0) == 1;
1.9       millert  15458:   ;
                   15459:   return 0;
1.1       millert  15460: }
1.9       millert  15461: _ACEOF
1.27      millert  15462: rm -f conftest.$ac_objext
                   15463: if { (ac_try="$ac_compile"
                   15464: case "(($ac_try" in
                   15465:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15466:   *) ac_try_echo=$ac_try;;
                   15467: esac
                   15468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15469:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  15470:   ac_status=$?
1.25      millert  15471:   grep -v '^ *+' conftest.er1 >conftest.err
                   15472:   rm -f conftest.er1
                   15473:   cat conftest.err >&5
1.16      millert  15474:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15475:   (exit $ac_status); } && {
                   15476:         test -z "$ac_c_werror_flag" ||
                   15477:         test ! -s conftest.err
                   15478:        } && test -s conftest.$ac_objext; then
                   15479:   ac_cv_type_signal=int
1.1       millert  15480: else
1.9       millert  15481:   echo "$as_me: failed program was:" >&5
1.16      millert  15482: sed 's/^/| /' conftest.$ac_ext >&5
                   15483:
1.27      millert  15484:        ac_cv_type_signal=void
1.9       millert  15485: fi
1.27      millert  15486:
                   15487: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       millert  15488: fi
1.27      millert  15489: { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
                   15490: echo "${ECHO_T}$ac_cv_type_signal" >&6; }
                   15491:
                   15492: cat >>confdefs.h <<_ACEOF
                   15493: #define RETSIGTYPE $ac_cv_type_signal
1.25      millert  15494: _ACEOF
                   15495:
1.27      millert  15496: ;;
                   15497: esac
1.32      millert  15498: { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
                   15499: echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
                   15500: if test "${ac_cv_type_getgroups+set}" = set; then
                   15501:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15502: else
                   15503:   if test "$cross_compiling" = yes; then
                   15504:   ac_cv_type_getgroups=cross
                   15505: else
                   15506:   cat >conftest.$ac_ext <<_ACEOF
                   15507: /* confdefs.h.  */
                   15508: _ACEOF
                   15509: cat confdefs.h >>conftest.$ac_ext
                   15510: cat >>conftest.$ac_ext <<_ACEOF
                   15511: /* end confdefs.h.  */
                   15512: /* Thanks to Mike Rendell for this test.  */
                   15513: $ac_includes_default
                   15514: #define NGID 256
                   15515: #undef MAX
                   15516: #define MAX(x, y) ((x) > (y) ? (x) : (y))
                   15517:
                   15518: int
                   15519: main ()
                   15520: {
                   15521:   gid_t gidset[NGID];
                   15522:   int i, n;
                   15523:   union { gid_t gval; long int lval; }  val;
                   15524:
                   15525:   val.lval = -1;
                   15526:   for (i = 0; i < NGID; i++)
                   15527:     gidset[i] = val.gval;
                   15528:   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
                   15529:                 gidset);
                   15530:   /* Exit non-zero if getgroups seems to require an array of ints.  This
                   15531:      happens when gid_t is short int but getgroups modifies an array
                   15532:      of ints.  */
                   15533:   return n > 0 && gidset[n] != val.gval;
                   15534: }
                   15535: _ACEOF
                   15536: rm -f conftest$ac_exeext
                   15537: if { (ac_try="$ac_link"
                   15538: case "(($ac_try" in
                   15539:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15540:   *) ac_try_echo=$ac_try;;
                   15541: esac
                   15542: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15543:   (eval "$ac_link") 2>&5
                   15544:   ac_status=$?
                   15545:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15546:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15547:   { (case "(($ac_try" in
                   15548:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15549:   *) ac_try_echo=$ac_try;;
                   15550: esac
                   15551: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15552:   (eval "$ac_try") 2>&5
                   15553:   ac_status=$?
                   15554:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15555:   (exit $ac_status); }; }; then
                   15556:   ac_cv_type_getgroups=gid_t
                   15557: else
                   15558:   echo "$as_me: program exited with status $ac_status" >&5
                   15559: echo "$as_me: failed program was:" >&5
                   15560: sed 's/^/| /' conftest.$ac_ext >&5
                   15561:
                   15562: ( exit $ac_status )
                   15563: ac_cv_type_getgroups=int
                   15564: fi
                   15565: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   15566: fi
                   15567:
                   15568:
                   15569: if test $ac_cv_type_getgroups = cross; then
                   15570:         cat >conftest.$ac_ext <<_ACEOF
                   15571: /* confdefs.h.  */
                   15572: _ACEOF
                   15573: cat confdefs.h >>conftest.$ac_ext
                   15574: cat >>conftest.$ac_ext <<_ACEOF
                   15575: /* end confdefs.h.  */
                   15576: #include <unistd.h>
                   15577:
                   15578: _ACEOF
                   15579: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   15580:   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
                   15581:   ac_cv_type_getgroups=gid_t
                   15582: else
                   15583:   ac_cv_type_getgroups=int
                   15584: fi
                   15585: rm -f conftest*
                   15586:
                   15587: fi
                   15588: fi
                   15589: { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
                   15590: echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
                   15591:
                   15592: cat >>confdefs.h <<_ACEOF
                   15593: #define GETGROUPS_T $ac_cv_type_getgroups
                   15594: _ACEOF
                   15595:
                   15596:
                   15597: { echo "$as_me:$LINENO: checking for size_t" >&5
                   15598: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
                   15599: if test "${ac_cv_type_size_t+set}" = set; then
                   15600:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15601: else
                   15602:   cat >conftest.$ac_ext <<_ACEOF
                   15603: /* confdefs.h.  */
                   15604: _ACEOF
                   15605: cat confdefs.h >>conftest.$ac_ext
                   15606: cat >>conftest.$ac_ext <<_ACEOF
                   15607: /* end confdefs.h.  */
                   15608: $ac_includes_default
                   15609: typedef size_t ac__type_new_;
                   15610: int
                   15611: main ()
                   15612: {
                   15613: if ((ac__type_new_ *) 0)
                   15614:   return 0;
                   15615: if (sizeof (ac__type_new_))
                   15616:   return 0;
                   15617:   ;
                   15618:   return 0;
                   15619: }
                   15620: _ACEOF
                   15621: rm -f conftest.$ac_objext
                   15622: if { (ac_try="$ac_compile"
                   15623: case "(($ac_try" in
                   15624:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15625:   *) ac_try_echo=$ac_try;;
                   15626: esac
                   15627: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15628:   (eval "$ac_compile") 2>conftest.er1
                   15629:   ac_status=$?
                   15630:   grep -v '^ *+' conftest.er1 >conftest.err
                   15631:   rm -f conftest.er1
                   15632:   cat conftest.err >&5
                   15633:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15634:   (exit $ac_status); } && {
                   15635:         test -z "$ac_c_werror_flag" ||
                   15636:         test ! -s conftest.err
                   15637:        } && test -s conftest.$ac_objext; then
                   15638:   ac_cv_type_size_t=yes
                   15639: else
                   15640:   echo "$as_me: failed program was:" >&5
                   15641: sed 's/^/| /' conftest.$ac_ext >&5
                   15642:
                   15643:        ac_cv_type_size_t=no
                   15644: fi
                   15645:
                   15646: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15647: fi
                   15648: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
                   15649: echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
                   15650: if test $ac_cv_type_size_t = yes; then
                   15651:   :
                   15652: else
                   15653:
                   15654: cat >>confdefs.h <<_ACEOF
                   15655: #define size_t unsigned int
                   15656: _ACEOF
                   15657:
                   15658: fi
                   15659:
                   15660: { echo "$as_me:$LINENO: checking for getgroups" >&5
                   15661: echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
                   15662: if test "${ac_cv_func_getgroups+set}" = set; then
                   15663:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15664: else
                   15665:   cat >conftest.$ac_ext <<_ACEOF
                   15666: /* confdefs.h.  */
                   15667: _ACEOF
                   15668: cat confdefs.h >>conftest.$ac_ext
                   15669: cat >>conftest.$ac_ext <<_ACEOF
                   15670: /* end confdefs.h.  */
                   15671: /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
                   15672:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15673: #define getgroups innocuous_getgroups
                   15674:
                   15675: /* System header to define __stub macros and hopefully few prototypes,
                   15676:     which can conflict with char getgroups (); below.
                   15677:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15678:     <limits.h> exists even on freestanding compilers.  */
                   15679:
                   15680: #ifdef __STDC__
                   15681: # include <limits.h>
                   15682: #else
                   15683: # include <assert.h>
                   15684: #endif
                   15685:
                   15686: #undef getgroups
                   15687:
                   15688: /* Override any GCC internal prototype to avoid an error.
                   15689:    Use char because int might match the return type of a GCC
                   15690:    builtin and then its argument prototype would still apply.  */
                   15691: #ifdef __cplusplus
                   15692: extern "C"
                   15693: #endif
                   15694: char getgroups ();
                   15695: /* The GNU C library defines this for functions which it implements
                   15696:     to always fail with ENOSYS.  Some functions are actually named
                   15697:     something starting with __ and the normal name is an alias.  */
                   15698: #if defined __stub_getgroups || defined __stub___getgroups
                   15699: choke me
                   15700: #endif
                   15701:
                   15702: int
                   15703: main ()
                   15704: {
                   15705: return getgroups ();
                   15706:   ;
                   15707:   return 0;
                   15708: }
                   15709: _ACEOF
                   15710: rm -f conftest.$ac_objext conftest$ac_exeext
                   15711: if { (ac_try="$ac_link"
                   15712: case "(($ac_try" in
                   15713:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15714:   *) ac_try_echo=$ac_try;;
                   15715: esac
                   15716: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15717:   (eval "$ac_link") 2>conftest.er1
                   15718:   ac_status=$?
                   15719:   grep -v '^ *+' conftest.er1 >conftest.err
                   15720:   rm -f conftest.er1
                   15721:   cat conftest.err >&5
                   15722:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15723:   (exit $ac_status); } && {
                   15724:         test -z "$ac_c_werror_flag" ||
                   15725:         test ! -s conftest.err
                   15726:        } && test -s conftest$ac_exeext &&
                   15727:        $as_test_x conftest$ac_exeext; then
                   15728:   ac_cv_func_getgroups=yes
                   15729: else
                   15730:   echo "$as_me: failed program was:" >&5
                   15731: sed 's/^/| /' conftest.$ac_ext >&5
                   15732:
                   15733:        ac_cv_func_getgroups=no
                   15734: fi
                   15735:
                   15736: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   15737:       conftest$ac_exeext conftest.$ac_ext
                   15738: fi
                   15739: { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
                   15740: echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
                   15741:
                   15742:
                   15743: # If we don't yet have getgroups, see if it's in -lbsd.
                   15744: # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
                   15745: ac_save_LIBS=$LIBS
                   15746: if test $ac_cv_func_getgroups = no; then
                   15747:   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
                   15748: echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
                   15749: if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
                   15750:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15751: else
                   15752:   ac_check_lib_save_LIBS=$LIBS
                   15753: LIBS="-lbsd  $LIBS"
                   15754: cat >conftest.$ac_ext <<_ACEOF
                   15755: /* confdefs.h.  */
                   15756: _ACEOF
                   15757: cat confdefs.h >>conftest.$ac_ext
                   15758: cat >>conftest.$ac_ext <<_ACEOF
                   15759: /* end confdefs.h.  */
                   15760:
                   15761: /* Override any GCC internal prototype to avoid an error.
                   15762:    Use char because int might match the return type of a GCC
                   15763:    builtin and then its argument prototype would still apply.  */
                   15764: #ifdef __cplusplus
                   15765: extern "C"
                   15766: #endif
                   15767: char getgroups ();
                   15768: int
                   15769: main ()
                   15770: {
                   15771: return getgroups ();
                   15772:   ;
                   15773:   return 0;
                   15774: }
                   15775: _ACEOF
                   15776: rm -f conftest.$ac_objext conftest$ac_exeext
                   15777: if { (ac_try="$ac_link"
                   15778: case "(($ac_try" in
                   15779:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15780:   *) ac_try_echo=$ac_try;;
                   15781: esac
                   15782: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15783:   (eval "$ac_link") 2>conftest.er1
                   15784:   ac_status=$?
                   15785:   grep -v '^ *+' conftest.er1 >conftest.err
                   15786:   rm -f conftest.er1
                   15787:   cat conftest.err >&5
                   15788:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15789:   (exit $ac_status); } && {
                   15790:         test -z "$ac_c_werror_flag" ||
                   15791:         test ! -s conftest.err
                   15792:        } && test -s conftest$ac_exeext &&
                   15793:        $as_test_x conftest$ac_exeext; then
                   15794:   ac_cv_lib_bsd_getgroups=yes
                   15795: else
                   15796:   echo "$as_me: failed program was:" >&5
                   15797: sed 's/^/| /' conftest.$ac_ext >&5
                   15798:
                   15799:        ac_cv_lib_bsd_getgroups=no
                   15800: fi
                   15801:
                   15802: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   15803:       conftest$ac_exeext conftest.$ac_ext
                   15804: LIBS=$ac_check_lib_save_LIBS
                   15805: fi
                   15806: { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
                   15807: echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
                   15808: if test $ac_cv_lib_bsd_getgroups = yes; then
                   15809:   GETGROUPS_LIB=-lbsd
                   15810: fi
                   15811:
                   15812: fi
                   15813:
                   15814: # Run the program to test the functionality of the system-supplied
                   15815: # getgroups function only if there is such a function.
                   15816: if test $ac_cv_func_getgroups = yes; then
                   15817:   { echo "$as_me:$LINENO: checking for working getgroups" >&5
                   15818: echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
                   15819: if test "${ac_cv_func_getgroups_works+set}" = set; then
                   15820:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15821: else
                   15822:   if test "$cross_compiling" = yes; then
                   15823:   ac_cv_func_getgroups_works=no
                   15824: else
                   15825:   cat >conftest.$ac_ext <<_ACEOF
                   15826: /* confdefs.h.  */
                   15827: _ACEOF
                   15828: cat confdefs.h >>conftest.$ac_ext
                   15829: cat >>conftest.$ac_ext <<_ACEOF
                   15830: /* end confdefs.h.  */
                   15831: $ac_includes_default
                   15832: int
                   15833: main ()
                   15834: {
                   15835: /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
                   15836:        return getgroups (0, 0) == -1;
                   15837:   ;
                   15838:   return 0;
                   15839: }
                   15840: _ACEOF
                   15841: rm -f conftest$ac_exeext
                   15842: if { (ac_try="$ac_link"
                   15843: case "(($ac_try" in
                   15844:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15845:   *) ac_try_echo=$ac_try;;
                   15846: esac
                   15847: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15848:   (eval "$ac_link") 2>&5
                   15849:   ac_status=$?
                   15850:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15851:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15852:   { (case "(($ac_try" in
                   15853:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15854:   *) ac_try_echo=$ac_try;;
                   15855: esac
                   15856: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15857:   (eval "$ac_try") 2>&5
                   15858:   ac_status=$?
                   15859:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15860:   (exit $ac_status); }; }; then
                   15861:   ac_cv_func_getgroups_works=yes
                   15862: else
                   15863:   echo "$as_me: program exited with status $ac_status" >&5
                   15864: echo "$as_me: failed program was:" >&5
                   15865: sed 's/^/| /' conftest.$ac_ext >&5
                   15866:
                   15867: ( exit $ac_status )
                   15868: ac_cv_func_getgroups_works=no
                   15869: fi
                   15870: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   15871: fi
                   15872:
                   15873:
                   15874:
                   15875: fi
                   15876: { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
                   15877: echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
                   15878:   if test $ac_cv_func_getgroups_works = yes; then
                   15879:
                   15880: cat >>confdefs.h <<\_ACEOF
                   15881: #define HAVE_GETGROUPS 1
                   15882: _ACEOF
                   15883:
                   15884:   fi
                   15885: fi
                   15886: LIBS=$ac_save_LIBS
                   15887:
1.27      millert  15888:
                   15889:
                   15890:
                   15891:
                   15892:
                   15893:
                   15894:
                   15895:
                   15896:
                   15897:
                   15898:
                   15899:
                   15900:
                   15901:
                   15902:
1.36      millert  15903:
1.39      millert  15904:
1.45      millert  15905:
1.27      millert  15906: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
                   15907:               strftime setrlimit initgroups getgroups fstat gettimeofday \
1.42      millert  15908:               setlocale getaddrinfo setsid setenv setrlimit64
1.25      millert  15909: do
                   15910: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15911: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15912: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15913: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  15914:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15915: else
                   15916:   cat >conftest.$ac_ext <<_ACEOF
                   15917: /* confdefs.h.  */
                   15918: _ACEOF
                   15919: cat confdefs.h >>conftest.$ac_ext
                   15920: cat >>conftest.$ac_ext <<_ACEOF
                   15921: /* end confdefs.h.  */
                   15922: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15923:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15924: #define $ac_func innocuous_$ac_func
                   15925:
                   15926: /* System header to define __stub macros and hopefully few prototypes,
                   15927:     which can conflict with char $ac_func (); below.
                   15928:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15929:     <limits.h> exists even on freestanding compilers.  */
                   15930:
                   15931: #ifdef __STDC__
                   15932: # include <limits.h>
                   15933: #else
                   15934: # include <assert.h>
                   15935: #endif
                   15936:
                   15937: #undef $ac_func
                   15938:
1.27      millert  15939: /* Override any GCC internal prototype to avoid an error.
                   15940:    Use char because int might match the return type of a GCC
                   15941:    builtin and then its argument prototype would still apply.  */
1.25      millert  15942: #ifdef __cplusplus
                   15943: extern "C"
                   15944: #endif
                   15945: char $ac_func ();
                   15946: /* The GNU C library defines this for functions which it implements
                   15947:     to always fail with ENOSYS.  Some functions are actually named
                   15948:     something starting with __ and the normal name is an alias.  */
1.27      millert  15949: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15950: choke me
                   15951: #endif
1.9       millert  15952:
                   15953: int
                   15954: main ()
                   15955: {
1.27      millert  15956: return $ac_func ();
1.9       millert  15957:   ;
                   15958:   return 0;
                   15959: }
                   15960: _ACEOF
1.25      millert  15961: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15962: if { (ac_try="$ac_link"
                   15963: case "(($ac_try" in
                   15964:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15965:   *) ac_try_echo=$ac_try;;
                   15966: esac
                   15967: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15968:   (eval "$ac_link") 2>conftest.er1
1.9       millert  15969:   ac_status=$?
1.25      millert  15970:   grep -v '^ *+' conftest.er1 >conftest.err
                   15971:   rm -f conftest.er1
                   15972:   cat conftest.err >&5
1.16      millert  15973:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15974:   (exit $ac_status); } && {
                   15975:         test -z "$ac_c_werror_flag" ||
                   15976:         test ! -s conftest.err
                   15977:        } && test -s conftest$ac_exeext &&
                   15978:        $as_test_x conftest$ac_exeext; then
1.25      millert  15979:   eval "$as_ac_var=yes"
1.9       millert  15980: else
                   15981:   echo "$as_me: failed program was:" >&5
1.16      millert  15982: sed 's/^/| /' conftest.$ac_ext >&5
                   15983:
1.27      millert  15984:        eval "$as_ac_var=no"
1.9       millert  15985: fi
1.27      millert  15986:
                   15987: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15988:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  15989: fi
1.27      millert  15990: ac_res=`eval echo '${'$as_ac_var'}'`
                   15991:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   15992: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  15993: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15994:   cat >>confdefs.h <<_ACEOF
                   15995: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  15996: _ACEOF
1.1       millert  15997:
                   15998: fi
1.9       millert  15999: done
                   16000:
1.1       millert  16001:
1.39      millert  16002: for ac_func in unsetenv
1.25      millert  16003: do
                   16004: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16005: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16006: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16007: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  16008:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  16009: else
1.25      millert  16010:   cat >conftest.$ac_ext <<_ACEOF
                   16011: /* confdefs.h.  */
                   16012: _ACEOF
                   16013: cat confdefs.h >>conftest.$ac_ext
                   16014: cat >>conftest.$ac_ext <<_ACEOF
                   16015: /* end confdefs.h.  */
                   16016: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16017:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16018: #define $ac_func innocuous_$ac_func
1.9       millert  16019:
1.25      millert  16020: /* System header to define __stub macros and hopefully few prototypes,
                   16021:     which can conflict with char $ac_func (); below.
                   16022:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16023:     <limits.h> exists even on freestanding compilers.  */
1.9       millert  16024:
1.25      millert  16025: #ifdef __STDC__
                   16026: # include <limits.h>
                   16027: #else
                   16028: # include <assert.h>
                   16029: #endif
1.9       millert  16030:
1.25      millert  16031: #undef $ac_func
1.9       millert  16032:
1.27      millert  16033: /* Override any GCC internal prototype to avoid an error.
                   16034:    Use char because int might match the return type of a GCC
                   16035:    builtin and then its argument prototype would still apply.  */
1.25      millert  16036: #ifdef __cplusplus
                   16037: extern "C"
                   16038: #endif
                   16039: char $ac_func ();
                   16040: /* The GNU C library defines this for functions which it implements
                   16041:     to always fail with ENOSYS.  Some functions are actually named
                   16042:     something starting with __ and the normal name is an alias.  */
1.27      millert  16043: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16044: choke me
                   16045: #endif
1.9       millert  16046:
1.25      millert  16047: int
                   16048: main ()
                   16049: {
1.27      millert  16050: return $ac_func ();
1.25      millert  16051:   ;
                   16052:   return 0;
                   16053: }
                   16054: _ACEOF
                   16055: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16056: if { (ac_try="$ac_link"
                   16057: case "(($ac_try" in
                   16058:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16059:   *) ac_try_echo=$ac_try;;
                   16060: esac
                   16061: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16062:   (eval "$ac_link") 2>conftest.er1
1.25      millert  16063:   ac_status=$?
                   16064:   grep -v '^ *+' conftest.er1 >conftest.err
                   16065:   rm -f conftest.er1
                   16066:   cat conftest.err >&5
                   16067:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16068:   (exit $ac_status); } && {
                   16069:         test -z "$ac_c_werror_flag" ||
                   16070:         test ! -s conftest.err
                   16071:        } && test -s conftest$ac_exeext &&
                   16072:        $as_test_x conftest$ac_exeext; then
1.25      millert  16073:   eval "$as_ac_var=yes"
                   16074: else
                   16075:   echo "$as_me: failed program was:" >&5
                   16076: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  16077:
1.27      millert  16078:        eval "$as_ac_var=no"
1.1       millert  16079: fi
1.27      millert  16080:
                   16081: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16082:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  16083: fi
1.27      millert  16084: ac_res=`eval echo '${'$as_ac_var'}'`
                   16085:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16086: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16087: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16088:   cat >>confdefs.h <<_ACEOF
                   16089: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16090: _ACEOF
1.39      millert  16091:  { echo "$as_me:$LINENO: checking whether unsetenv returns void" >&5
                   16092: echo $ECHO_N "checking whether unsetenv returns void... $ECHO_C" >&6; }
                   16093: if test "${sudo_cv_func_unsetenv_void+set}" = set; then
                   16094:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16095: else
                   16096:   if test "$cross_compiling" = yes; then
                   16097:   sudo_cv_func_unsetenv_void=yes
                   16098: else
                   16099:   cat >conftest.$ac_ext <<_ACEOF
                   16100: /* confdefs.h.  */
                   16101: _ACEOF
                   16102: cat confdefs.h >>conftest.$ac_ext
                   16103: cat >>conftest.$ac_ext <<_ACEOF
                   16104: /* end confdefs.h.  */
                   16105: $ac_includes_default
                   16106:         int unsetenv();
                   16107:
                   16108: int
                   16109: main ()
                   16110: {
                   16111:
                   16112:         return unsetenv("FOO") != 0;
                   16113:
                   16114:   ;
                   16115:   return 0;
                   16116: }
                   16117:
                   16118: _ACEOF
                   16119: rm -f conftest$ac_exeext
                   16120: if { (ac_try="$ac_link"
                   16121: case "(($ac_try" in
                   16122:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16123:   *) ac_try_echo=$ac_try;;
                   16124: esac
                   16125: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16126:   (eval "$ac_link") 2>&5
                   16127:   ac_status=$?
                   16128:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16129:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   16130:   { (case "(($ac_try" in
                   16131:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16132:   *) ac_try_echo=$ac_try;;
                   16133: esac
                   16134: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16135:   (eval "$ac_try") 2>&5
                   16136:   ac_status=$?
                   16137:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16138:   (exit $ac_status); }; }; then
                   16139:   sudo_cv_func_unsetenv_void=no
                   16140: else
                   16141:   echo "$as_me: program exited with status $ac_status" >&5
                   16142: echo "$as_me: failed program was:" >&5
                   16143: sed 's/^/| /' conftest.$ac_ext >&5
                   16144:
                   16145: ( exit $ac_status )
                   16146: sudo_cv_func_unsetenv_void=yes
                   16147: fi
                   16148: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   16149: fi
                   16150:
                   16151:
                   16152: fi
                   16153: { echo "$as_me:$LINENO: result: $sudo_cv_func_unsetenv_void" >&5
                   16154: echo "${ECHO_T}$sudo_cv_func_unsetenv_void" >&6; }
                   16155:     if test $sudo_cv_func_unsetenv_void = yes; then
                   16156:
                   16157: cat >>confdefs.h <<\_ACEOF
                   16158: #define UNSETENV_VOID 1
                   16159: _ACEOF
                   16160:
                   16161:     fi
                   16162:
1.25      millert  16163: fi
                   16164: done
1.23      millert  16165:
1.39      millert  16166: { echo "$as_me:$LINENO: checking whether putenv has a const argument" >&5
                   16167: echo $ECHO_N "checking whether putenv has a const argument... $ECHO_C" >&6; }
                   16168: if test "${sudo_cv_func_putenv_const+set}" = set; then
                   16169:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16170: else
                   16171:   cat >conftest.$ac_ext <<_ACEOF
                   16172: /* confdefs.h.  */
                   16173: _ACEOF
                   16174: cat confdefs.h >>conftest.$ac_ext
                   16175: cat >>conftest.$ac_ext <<_ACEOF
                   16176: /* end confdefs.h.  */
                   16177: $ac_includes_default
                   16178: int putenv(const char *string) {return 0;}
                   16179: int
                   16180: main ()
                   16181: {
                   16182:
                   16183:   ;
                   16184:   return 0;
                   16185: }
                   16186: _ACEOF
                   16187: rm -f conftest.$ac_objext
                   16188: if { (ac_try="$ac_compile"
                   16189: case "(($ac_try" in
                   16190:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16191:   *) ac_try_echo=$ac_try;;
                   16192: esac
                   16193: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16194:   (eval "$ac_compile") 2>conftest.er1
                   16195:   ac_status=$?
                   16196:   grep -v '^ *+' conftest.er1 >conftest.err
                   16197:   rm -f conftest.er1
                   16198:   cat conftest.err >&5
                   16199:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16200:   (exit $ac_status); } && {
                   16201:         test -z "$ac_c_werror_flag" ||
                   16202:         test ! -s conftest.err
                   16203:        } && test -s conftest.$ac_objext; then
                   16204:   sudo_cv_func_putenv_const=yes
                   16205: else
                   16206:   echo "$as_me: failed program was:" >&5
                   16207: sed 's/^/| /' conftest.$ac_ext >&5
                   16208:
                   16209:        sudo_cv_func_putenv_const=no
                   16210: fi
                   16211:
                   16212: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   16213:
1.23      millert  16214: fi
1.39      millert  16215: { echo "$as_me:$LINENO: result: $sudo_cv_func_putenv_const" >&5
                   16216: echo "${ECHO_T}$sudo_cv_func_putenv_const" >&6; }
                   16217:   if test $sudo_cv_func_putenv_const = yes; then
                   16218:
                   16219: cat >>confdefs.h <<\_ACEOF
                   16220: #define PUTENV_CONST 1
                   16221: _ACEOF
                   16222:
                   16223:   fi
                   16224:
                   16225: if test -z "$SKIP_SETRESUID"; then
1.23      millert  16226:
1.39      millert  16227: for ac_func in setresuid
1.25      millert  16228: do
                   16229: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16230: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16231: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16232: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  16233:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16234: else
                   16235:   cat >conftest.$ac_ext <<_ACEOF
                   16236: /* confdefs.h.  */
                   16237: _ACEOF
                   16238: cat confdefs.h >>conftest.$ac_ext
                   16239: cat >>conftest.$ac_ext <<_ACEOF
                   16240: /* end confdefs.h.  */
1.25      millert  16241: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16242:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16243: #define $ac_func innocuous_$ac_func
                   16244:
                   16245: /* System header to define __stub macros and hopefully few prototypes,
                   16246:     which can conflict with char $ac_func (); below.
                   16247:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16248:     <limits.h> exists even on freestanding compilers.  */
                   16249:
                   16250: #ifdef __STDC__
                   16251: # include <limits.h>
                   16252: #else
                   16253: # include <assert.h>
                   16254: #endif
                   16255:
                   16256: #undef $ac_func
                   16257:
1.27      millert  16258: /* Override any GCC internal prototype to avoid an error.
                   16259:    Use char because int might match the return type of a GCC
                   16260:    builtin and then its argument prototype would still apply.  */
1.25      millert  16261: #ifdef __cplusplus
                   16262: extern "C"
                   16263: #endif
                   16264: char $ac_func ();
                   16265: /* The GNU C library defines this for functions which it implements
                   16266:     to always fail with ENOSYS.  Some functions are actually named
                   16267:     something starting with __ and the normal name is an alias.  */
1.27      millert  16268: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16269: choke me
                   16270: #endif
1.23      millert  16271:
                   16272: int
                   16273: main ()
                   16274: {
1.27      millert  16275: return $ac_func ();
1.23      millert  16276:   ;
                   16277:   return 0;
                   16278: }
                   16279: _ACEOF
1.25      millert  16280: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16281: if { (ac_try="$ac_link"
                   16282: case "(($ac_try" in
                   16283:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16284:   *) ac_try_echo=$ac_try;;
                   16285: esac
                   16286: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16287:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16288:   ac_status=$?
1.25      millert  16289:   grep -v '^ *+' conftest.er1 >conftest.err
                   16290:   rm -f conftest.er1
                   16291:   cat conftest.err >&5
1.23      millert  16292:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16293:   (exit $ac_status); } && {
                   16294:         test -z "$ac_c_werror_flag" ||
                   16295:         test ! -s conftest.err
                   16296:        } && test -s conftest$ac_exeext &&
                   16297:        $as_test_x conftest$ac_exeext; then
1.25      millert  16298:   eval "$as_ac_var=yes"
1.23      millert  16299: else
                   16300:   echo "$as_me: failed program was:" >&5
                   16301: sed 's/^/| /' conftest.$ac_ext >&5
                   16302:
1.27      millert  16303:        eval "$as_ac_var=no"
1.25      millert  16304: fi
1.27      millert  16305:
                   16306: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16307:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16308: fi
1.27      millert  16309: ac_res=`eval echo '${'$as_ac_var'}'`
                   16310:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16311: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16312: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16313:   cat >>confdefs.h <<_ACEOF
                   16314: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16315: _ACEOF
1.39      millert  16316:  SKIP_SETREUID=yes
1.23      millert  16317: fi
1.27      millert  16318: done
1.23      millert  16319:
                   16320: fi
1.39      millert  16321: if test -z "$SKIP_SETREUID"; then
1.25      millert  16322:
1.39      millert  16323: for ac_func in setreuid
1.25      millert  16324: do
                   16325: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16326: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16327: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16328: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  16329:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16330: else
1.23      millert  16331:   cat >conftest.$ac_ext <<_ACEOF
                   16332: /* confdefs.h.  */
                   16333: _ACEOF
                   16334: cat confdefs.h >>conftest.$ac_ext
                   16335: cat >>conftest.$ac_ext <<_ACEOF
                   16336: /* end confdefs.h.  */
1.25      millert  16337: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16338:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16339: #define $ac_func innocuous_$ac_func
                   16340:
                   16341: /* System header to define __stub macros and hopefully few prototypes,
                   16342:     which can conflict with char $ac_func (); below.
                   16343:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16344:     <limits.h> exists even on freestanding compilers.  */
                   16345:
                   16346: #ifdef __STDC__
                   16347: # include <limits.h>
                   16348: #else
                   16349: # include <assert.h>
                   16350: #endif
                   16351:
                   16352: #undef $ac_func
1.23      millert  16353:
1.27      millert  16354: /* Override any GCC internal prototype to avoid an error.
                   16355:    Use char because int might match the return type of a GCC
                   16356:    builtin and then its argument prototype would still apply.  */
1.25      millert  16357: #ifdef __cplusplus
                   16358: extern "C"
                   16359: #endif
                   16360: char $ac_func ();
                   16361: /* The GNU C library defines this for functions which it implements
                   16362:     to always fail with ENOSYS.  Some functions are actually named
                   16363:     something starting with __ and the normal name is an alias.  */
1.27      millert  16364: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16365: choke me
1.23      millert  16366: #endif
                   16367:
                   16368: int
                   16369: main ()
                   16370: {
1.27      millert  16371: return $ac_func ();
1.25      millert  16372:   ;
                   16373:   return 0;
1.23      millert  16374: }
                   16375: _ACEOF
1.25      millert  16376: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16377: if { (ac_try="$ac_link"
                   16378: case "(($ac_try" in
                   16379:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16380:   *) ac_try_echo=$ac_try;;
                   16381: esac
                   16382: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16383:   (eval "$ac_link") 2>conftest.er1
1.25      millert  16384:   ac_status=$?
                   16385:   grep -v '^ *+' conftest.er1 >conftest.err
                   16386:   rm -f conftest.er1
                   16387:   cat conftest.err >&5
                   16388:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16389:   (exit $ac_status); } && {
                   16390:         test -z "$ac_c_werror_flag" ||
                   16391:         test ! -s conftest.err
                   16392:        } && test -s conftest$ac_exeext &&
                   16393:        $as_test_x conftest$ac_exeext; then
1.25      millert  16394:   eval "$as_ac_var=yes"
1.23      millert  16395: else
1.25      millert  16396:   echo "$as_me: failed program was:" >&5
1.23      millert  16397: sed 's/^/| /' conftest.$ac_ext >&5
                   16398:
1.27      millert  16399:        eval "$as_ac_var=no"
1.23      millert  16400: fi
1.27      millert  16401:
                   16402: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16403:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16404: fi
1.27      millert  16405: ac_res=`eval echo '${'$as_ac_var'}'`
                   16406:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16407: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16408: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16409:   cat >>confdefs.h <<_ACEOF
                   16410: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  16411: _ACEOF
1.39      millert  16412:  SKIP_SETEUID=yes
1.23      millert  16413: fi
1.25      millert  16414: done
1.23      millert  16415:
1.27      millert  16416: fi
1.39      millert  16417: if test -z "$SKIP_SETEUID"; then
1.23      millert  16418:
1.39      millert  16419: for ac_func in seteuid
1.25      millert  16420: do
                   16421: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16422: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16423: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16424: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  16425:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16426: else
                   16427:   cat >conftest.$ac_ext <<_ACEOF
                   16428: /* confdefs.h.  */
                   16429: _ACEOF
                   16430: cat confdefs.h >>conftest.$ac_ext
                   16431: cat >>conftest.$ac_ext <<_ACEOF
                   16432: /* end confdefs.h.  */
1.25      millert  16433: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16434:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16435: #define $ac_func innocuous_$ac_func
                   16436:
                   16437: /* System header to define __stub macros and hopefully few prototypes,
                   16438:     which can conflict with char $ac_func (); below.
                   16439:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16440:     <limits.h> exists even on freestanding compilers.  */
                   16441:
                   16442: #ifdef __STDC__
                   16443: # include <limits.h>
                   16444: #else
                   16445: # include <assert.h>
                   16446: #endif
                   16447:
                   16448: #undef $ac_func
                   16449:
1.27      millert  16450: /* Override any GCC internal prototype to avoid an error.
                   16451:    Use char because int might match the return type of a GCC
                   16452:    builtin and then its argument prototype would still apply.  */
1.25      millert  16453: #ifdef __cplusplus
                   16454: extern "C"
                   16455: #endif
                   16456: char $ac_func ();
                   16457: /* The GNU C library defines this for functions which it implements
                   16458:     to always fail with ENOSYS.  Some functions are actually named
                   16459:     something starting with __ and the normal name is an alias.  */
1.27      millert  16460: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16461: choke me
                   16462: #endif
1.23      millert  16463:
                   16464: int
                   16465: main ()
                   16466: {
1.27      millert  16467: return $ac_func ();
1.23      millert  16468:   ;
                   16469:   return 0;
                   16470: }
                   16471: _ACEOF
1.25      millert  16472: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16473: if { (ac_try="$ac_link"
                   16474: case "(($ac_try" in
                   16475:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16476:   *) ac_try_echo=$ac_try;;
                   16477: esac
                   16478: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16479:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16480:   ac_status=$?
1.25      millert  16481:   grep -v '^ *+' conftest.er1 >conftest.err
                   16482:   rm -f conftest.er1
                   16483:   cat conftest.err >&5
1.23      millert  16484:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16485:   (exit $ac_status); } && {
                   16486:         test -z "$ac_c_werror_flag" ||
                   16487:         test ! -s conftest.err
                   16488:        } && test -s conftest$ac_exeext &&
                   16489:        $as_test_x conftest$ac_exeext; then
1.25      millert  16490:   eval "$as_ac_var=yes"
1.23      millert  16491: else
                   16492:   echo "$as_me: failed program was:" >&5
                   16493: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  16494:
1.27      millert  16495:        eval "$as_ac_var=no"
1.23      millert  16496: fi
1.27      millert  16497:
                   16498: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16499:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16500: fi
1.27      millert  16501: ac_res=`eval echo '${'$as_ac_var'}'`
                   16502:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16503: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16504: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23      millert  16505:   cat >>confdefs.h <<_ACEOF
1.25      millert  16506: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  16507: _ACEOF
1.25      millert  16508:
1.39      millert  16509: fi
                   16510: done
                   16511:
                   16512: fi
                   16513: if test X"$with_interfaces" != X"no"; then
                   16514:
                   16515: for ac_func in getifaddrs
1.25      millert  16516: do
                   16517: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16518: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16519: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16520: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  16521:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  16522: else
1.25      millert  16523:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16524: /* confdefs.h.  */
                   16525: _ACEOF
                   16526: cat confdefs.h >>conftest.$ac_ext
                   16527: cat >>conftest.$ac_ext <<_ACEOF
                   16528: /* end confdefs.h.  */
1.25      millert  16529: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16530:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16531: #define $ac_func innocuous_$ac_func
                   16532:
                   16533: /* System header to define __stub macros and hopefully few prototypes,
                   16534:     which can conflict with char $ac_func (); below.
                   16535:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16536:     <limits.h> exists even on freestanding compilers.  */
                   16537:
                   16538: #ifdef __STDC__
                   16539: # include <limits.h>
                   16540: #else
                   16541: # include <assert.h>
                   16542: #endif
                   16543:
                   16544: #undef $ac_func
1.9       millert  16545:
1.27      millert  16546: /* Override any GCC internal prototype to avoid an error.
                   16547:    Use char because int might match the return type of a GCC
                   16548:    builtin and then its argument prototype would still apply.  */
1.23      millert  16549: #ifdef __cplusplus
                   16550: extern "C"
                   16551: #endif
1.25      millert  16552: char $ac_func ();
                   16553: /* The GNU C library defines this for functions which it implements
                   16554:     to always fail with ENOSYS.  Some functions are actually named
                   16555:     something starting with __ and the normal name is an alias.  */
1.27      millert  16556: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16557: choke me
                   16558: #endif
                   16559:
1.16      millert  16560: int
                   16561: main ()
                   16562: {
1.27      millert  16563: return $ac_func ();
1.16      millert  16564:   ;
                   16565:   return 0;
                   16566: }
1.9       millert  16567: _ACEOF
1.23      millert  16568: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16569: if { (ac_try="$ac_link"
                   16570: case "(($ac_try" in
                   16571:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16572:   *) ac_try_echo=$ac_try;;
                   16573: esac
                   16574: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16575:   (eval "$ac_link") 2>conftest.er1
1.16      millert  16576:   ac_status=$?
1.25      millert  16577:   grep -v '^ *+' conftest.er1 >conftest.err
                   16578:   rm -f conftest.er1
                   16579:   cat conftest.err >&5
1.16      millert  16580:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16581:   (exit $ac_status); } && {
                   16582:         test -z "$ac_c_werror_flag" ||
                   16583:         test ! -s conftest.err
                   16584:        } && test -s conftest$ac_exeext &&
                   16585:        $as_test_x conftest$ac_exeext; then
1.25      millert  16586:   eval "$as_ac_var=yes"
1.1       millert  16587: else
1.9       millert  16588:   echo "$as_me: failed program was:" >&5
1.16      millert  16589: sed 's/^/| /' conftest.$ac_ext >&5
                   16590:
1.27      millert  16591:        eval "$as_ac_var=no"
1.25      millert  16592: fi
1.27      millert  16593:
                   16594: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16595:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  16596: fi
1.27      millert  16597: ac_res=`eval echo '${'$as_ac_var'}'`
                   16598:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16599: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16600: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16601:   cat >>confdefs.h <<_ACEOF
                   16602: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16603: _ACEOF
                   16604:
1.39      millert  16605: for ac_func in freeifaddrs
1.25      millert  16606: do
                   16607: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16608: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16609: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16610: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  16611:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16612: else
                   16613:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16614: /* confdefs.h.  */
                   16615: _ACEOF
                   16616: cat confdefs.h >>conftest.$ac_ext
                   16617: cat >>conftest.$ac_ext <<_ACEOF
                   16618: /* end confdefs.h.  */
1.25      millert  16619: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16620:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16621: #define $ac_func innocuous_$ac_func
                   16622:
                   16623: /* System header to define __stub macros and hopefully few prototypes,
                   16624:     which can conflict with char $ac_func (); below.
                   16625:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16626:     <limits.h> exists even on freestanding compilers.  */
                   16627:
                   16628: #ifdef __STDC__
                   16629: # include <limits.h>
                   16630: #else
                   16631: # include <assert.h>
                   16632: #endif
                   16633:
                   16634: #undef $ac_func
1.9       millert  16635:
1.27      millert  16636: /* Override any GCC internal prototype to avoid an error.
                   16637:    Use char because int might match the return type of a GCC
                   16638:    builtin and then its argument prototype would still apply.  */
1.23      millert  16639: #ifdef __cplusplus
                   16640: extern "C"
                   16641: #endif
1.25      millert  16642: char $ac_func ();
                   16643: /* The GNU C library defines this for functions which it implements
                   16644:     to always fail with ENOSYS.  Some functions are actually named
                   16645:     something starting with __ and the normal name is an alias.  */
1.27      millert  16646: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16647: choke me
                   16648: #endif
                   16649:
1.23      millert  16650: int
                   16651: main ()
                   16652: {
1.27      millert  16653: return $ac_func ();
1.23      millert  16654:   ;
                   16655:   return 0;
                   16656: }
1.9       millert  16657: _ACEOF
1.23      millert  16658: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16659: if { (ac_try="$ac_link"
                   16660: case "(($ac_try" in
                   16661:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16662:   *) ac_try_echo=$ac_try;;
                   16663: esac
                   16664: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16665:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16666:   ac_status=$?
1.25      millert  16667:   grep -v '^ *+' conftest.er1 >conftest.err
                   16668:   rm -f conftest.er1
                   16669:   cat conftest.err >&5
1.23      millert  16670:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16671:   (exit $ac_status); } && {
                   16672:         test -z "$ac_c_werror_flag" ||
                   16673:         test ! -s conftest.err
                   16674:        } && test -s conftest$ac_exeext &&
                   16675:        $as_test_x conftest$ac_exeext; then
1.25      millert  16676:   eval "$as_ac_var=yes"
1.1       millert  16677: else
1.23      millert  16678:   echo "$as_me: failed program was:" >&5
                   16679: sed 's/^/| /' conftest.$ac_ext >&5
                   16680:
1.27      millert  16681:        eval "$as_ac_var=no"
1.25      millert  16682: fi
1.27      millert  16683:
                   16684: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16685:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16686: fi
1.27      millert  16687: ac_res=`eval echo '${'$as_ac_var'}'`
                   16688:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16689: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16690: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16691:   cat >>confdefs.h <<_ACEOF
                   16692: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16693: _ACEOF
                   16694:
1.39      millert  16695: fi
                   16696: done
1.27      millert  16697:
1.23      millert  16698: fi
1.25      millert  16699: done
1.27      millert  16700:
1.1       millert  16701: fi
1.39      millert  16702: if test -z "$BROKEN_GETCWD"; then
1.1       millert  16703:
1.39      millert  16704: for ac_func in getcwd
1.25      millert  16705: do
                   16706: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16707: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16708: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16709: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  16710:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16711: else
1.25      millert  16712:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16713: /* confdefs.h.  */
                   16714: _ACEOF
                   16715: cat confdefs.h >>conftest.$ac_ext
                   16716: cat >>conftest.$ac_ext <<_ACEOF
                   16717: /* end confdefs.h.  */
1.25      millert  16718: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16719:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16720: #define $ac_func innocuous_$ac_func
                   16721:
                   16722: /* System header to define __stub macros and hopefully few prototypes,
                   16723:     which can conflict with char $ac_func (); below.
                   16724:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16725:     <limits.h> exists even on freestanding compilers.  */
                   16726:
                   16727: #ifdef __STDC__
                   16728: # include <limits.h>
                   16729: #else
                   16730: # include <assert.h>
                   16731: #endif
                   16732:
                   16733: #undef $ac_func
1.9       millert  16734:
1.27      millert  16735: /* Override any GCC internal prototype to avoid an error.
                   16736:    Use char because int might match the return type of a GCC
                   16737:    builtin and then its argument prototype would still apply.  */
1.23      millert  16738: #ifdef __cplusplus
                   16739: extern "C"
                   16740: #endif
1.25      millert  16741: char $ac_func ();
                   16742: /* The GNU C library defines this for functions which it implements
                   16743:     to always fail with ENOSYS.  Some functions are actually named
                   16744:     something starting with __ and the normal name is an alias.  */
1.27      millert  16745: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16746: choke me
                   16747: #endif
                   16748:
1.23      millert  16749: int
                   16750: main ()
                   16751: {
1.27      millert  16752: return $ac_func ();
1.23      millert  16753:   ;
                   16754:   return 0;
                   16755: }
1.9       millert  16756: _ACEOF
1.23      millert  16757: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16758: if { (ac_try="$ac_link"
                   16759: case "(($ac_try" in
                   16760:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16761:   *) ac_try_echo=$ac_try;;
                   16762: esac
                   16763: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16764:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16765:   ac_status=$?
1.25      millert  16766:   grep -v '^ *+' conftest.er1 >conftest.err
                   16767:   rm -f conftest.er1
                   16768:   cat conftest.err >&5
1.23      millert  16769:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16770:   (exit $ac_status); } && {
                   16771:         test -z "$ac_c_werror_flag" ||
                   16772:         test ! -s conftest.err
                   16773:        } && test -s conftest$ac_exeext &&
                   16774:        $as_test_x conftest$ac_exeext; then
1.25      millert  16775:   eval "$as_ac_var=yes"
1.1       millert  16776: else
1.23      millert  16777:   echo "$as_me: failed program was:" >&5
                   16778: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  16779:
1.27      millert  16780:        eval "$as_ac_var=no"
1.25      millert  16781: fi
1.27      millert  16782:
                   16783: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16784:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  16785: fi
1.27      millert  16786: ac_res=`eval echo '${'$as_ac_var'}'`
                   16787:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16788: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16789: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16790:   cat >>confdefs.h <<_ACEOF
                   16791: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16792: _ACEOF
1.39      millert  16793:
                   16794: else
                   16795:   case " $LIBOBJS " in
                   16796:   *" $ac_func.$ac_objext "* ) ;;
                   16797:   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
                   16798:  ;;
                   16799: esac
                   16800:
                   16801: fi
                   16802: done
                   16803:
                   16804:
                   16805: fi
                   16806:
                   16807: for ac_func in glob
                   16808: do
                   16809: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   16810: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16811: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16812: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   16813:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16814: else
                   16815:   cat >conftest.$ac_ext <<_ACEOF
                   16816: /* confdefs.h.  */
                   16817: _ACEOF
                   16818: cat confdefs.h >>conftest.$ac_ext
                   16819: cat >>conftest.$ac_ext <<_ACEOF
                   16820: /* end confdefs.h.  */
                   16821: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16822:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16823: #define $ac_func innocuous_$ac_func
                   16824:
                   16825: /* System header to define __stub macros and hopefully few prototypes,
                   16826:     which can conflict with char $ac_func (); below.
                   16827:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16828:     <limits.h> exists even on freestanding compilers.  */
                   16829:
                   16830: #ifdef __STDC__
                   16831: # include <limits.h>
                   16832: #else
                   16833: # include <assert.h>
                   16834: #endif
                   16835:
                   16836: #undef $ac_func
                   16837:
                   16838: /* Override any GCC internal prototype to avoid an error.
                   16839:    Use char because int might match the return type of a GCC
                   16840:    builtin and then its argument prototype would still apply.  */
                   16841: #ifdef __cplusplus
                   16842: extern "C"
                   16843: #endif
                   16844: char $ac_func ();
                   16845: /* The GNU C library defines this for functions which it implements
                   16846:     to always fail with ENOSYS.  Some functions are actually named
                   16847:     something starting with __ and the normal name is an alias.  */
                   16848: #if defined __stub_$ac_func || defined __stub___$ac_func
                   16849: choke me
                   16850: #endif
                   16851:
                   16852: int
                   16853: main ()
                   16854: {
                   16855: return $ac_func ();
                   16856:   ;
                   16857:   return 0;
                   16858: }
                   16859: _ACEOF
                   16860: rm -f conftest.$ac_objext conftest$ac_exeext
                   16861: if { (ac_try="$ac_link"
                   16862: case "(($ac_try" in
                   16863:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16864:   *) ac_try_echo=$ac_try;;
                   16865: esac
                   16866: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16867:   (eval "$ac_link") 2>conftest.er1
                   16868:   ac_status=$?
                   16869:   grep -v '^ *+' conftest.er1 >conftest.err
                   16870:   rm -f conftest.er1
                   16871:   cat conftest.err >&5
                   16872:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16873:   (exit $ac_status); } && {
                   16874:         test -z "$ac_c_werror_flag" ||
                   16875:         test ! -s conftest.err
                   16876:        } && test -s conftest$ac_exeext &&
                   16877:        $as_test_x conftest$ac_exeext; then
                   16878:   eval "$as_ac_var=yes"
                   16879: else
                   16880:   echo "$as_me: failed program was:" >&5
                   16881: sed 's/^/| /' conftest.$ac_ext >&5
                   16882:
                   16883:        eval "$as_ac_var=no"
                   16884: fi
                   16885:
                   16886: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   16887:       conftest$ac_exeext conftest.$ac_ext
                   16888: fi
                   16889: ac_res=`eval echo '${'$as_ac_var'}'`
                   16890:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16891: echo "${ECHO_T}$ac_res" >&6; }
                   16892: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16893:   cat >>confdefs.h <<_ACEOF
                   16894: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16895: _ACEOF
                   16896:  { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
                   16897: echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
                   16898: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16899: /* confdefs.h.  */
                   16900: _ACEOF
                   16901: cat confdefs.h >>conftest.$ac_ext
                   16902: cat >>conftest.$ac_ext <<_ACEOF
                   16903: /* end confdefs.h.  */
1.27      millert  16904: #include <glob.h>
1.9       millert  16905: int
                   16906: main ()
                   16907: {
1.27      millert  16908: int i = GLOB_BRACE | GLOB_TILDE; (void)i;
1.23      millert  16909:   ;
                   16910:   return 0;
1.9       millert  16911: }
                   16912: _ACEOF
1.27      millert  16913: rm -f conftest.$ac_objext
                   16914: if { (ac_try="$ac_compile"
                   16915: case "(($ac_try" in
                   16916:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16917:   *) ac_try_echo=$ac_try;;
                   16918: esac
                   16919: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16920:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  16921:   ac_status=$?
1.25      millert  16922:   grep -v '^ *+' conftest.er1 >conftest.err
                   16923:   rm -f conftest.er1
                   16924:   cat conftest.err >&5
1.16      millert  16925:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16926:   (exit $ac_status); } && {
                   16927:         test -z "$ac_c_werror_flag" ||
                   16928:         test ! -s conftest.err
                   16929:        } && test -s conftest.$ac_objext; then
                   16930:   cat >>confdefs.h <<\_ACEOF
                   16931: #define HAVE_EXTENDED_GLOB 1
                   16932: _ACEOF
1.16      millert  16933:
1.27      millert  16934:     { echo "$as_me:$LINENO: result: yes" >&5
                   16935: echo "${ECHO_T}yes" >&6; }
1.23      millert  16936: else
                   16937:   echo "$as_me: failed program was:" >&5
                   16938: sed 's/^/| /' conftest.$ac_ext >&5
                   16939:
1.27      millert  16940:        case " $LIBOBJS " in
                   16941:   *" glob.$ac_objext "* ) ;;
                   16942:   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
                   16943:  ;;
1.25      millert  16944: esac
                   16945:
1.27      millert  16946:     { echo "$as_me:$LINENO: result: no" >&5
                   16947: echo "${ECHO_T}no" >&6; }
1.25      millert  16948: fi
                   16949:
1.27      millert  16950: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  16951: else
1.27      millert  16952:   case " $LIBOBJS " in
                   16953:   *" glob.$ac_objext "* ) ;;
                   16954:   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
                   16955:  ;;
1.23      millert  16956: esac
                   16957:
                   16958: fi
1.27      millert  16959: done
1.9       millert  16960:
1.23      millert  16961:
                   16962:
1.27      millert  16963: for ac_func in lockf flock
1.25      millert  16964: do
                   16965: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16966: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16967: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16968: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  16969:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  16970: else
1.25      millert  16971:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16972: /* confdefs.h.  */
                   16973: _ACEOF
                   16974: cat confdefs.h >>conftest.$ac_ext
                   16975: cat >>conftest.$ac_ext <<_ACEOF
                   16976: /* end confdefs.h.  */
1.25      millert  16977: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16978:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16979: #define $ac_func innocuous_$ac_func
                   16980:
                   16981: /* System header to define __stub macros and hopefully few prototypes,
                   16982:     which can conflict with char $ac_func (); below.
                   16983:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16984:     <limits.h> exists even on freestanding compilers.  */
                   16985:
                   16986: #ifdef __STDC__
                   16987: # include <limits.h>
                   16988: #else
                   16989: # include <assert.h>
                   16990: #endif
                   16991:
                   16992: #undef $ac_func
                   16993:
1.27      millert  16994: /* Override any GCC internal prototype to avoid an error.
                   16995:    Use char because int might match the return type of a GCC
                   16996:    builtin and then its argument prototype would still apply.  */
1.25      millert  16997: #ifdef __cplusplus
                   16998: extern "C"
                   16999: #endif
                   17000: char $ac_func ();
                   17001: /* The GNU C library defines this for functions which it implements
                   17002:     to always fail with ENOSYS.  Some functions are actually named
                   17003:     something starting with __ and the normal name is an alias.  */
1.27      millert  17004: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17005: choke me
                   17006: #endif
                   17007:
                   17008: int
                   17009: main ()
                   17010: {
1.27      millert  17011: return $ac_func ();
1.25      millert  17012:   ;
                   17013:   return 0;
                   17014: }
1.16      millert  17015: _ACEOF
1.25      millert  17016: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17017: if { (ac_try="$ac_link"
                   17018: case "(($ac_try" in
                   17019:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17020:   *) ac_try_echo=$ac_try;;
                   17021: esac
                   17022: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17023:   (eval "$ac_link") 2>conftest.er1
1.16      millert  17024:   ac_status=$?
1.25      millert  17025:   grep -v '^ *+' conftest.er1 >conftest.err
                   17026:   rm -f conftest.er1
                   17027:   cat conftest.err >&5
1.16      millert  17028:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17029:   (exit $ac_status); } && {
                   17030:         test -z "$ac_c_werror_flag" ||
                   17031:         test ! -s conftest.err
                   17032:        } && test -s conftest$ac_exeext &&
                   17033:        $as_test_x conftest$ac_exeext; then
1.25      millert  17034:   eval "$as_ac_var=yes"
1.16      millert  17035: else
                   17036:   echo "$as_me: failed program was:" >&5
                   17037: sed 's/^/| /' conftest.$ac_ext >&5
                   17038:
1.27      millert  17039:        eval "$as_ac_var=no"
1.25      millert  17040: fi
1.27      millert  17041:
                   17042: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17043:       conftest$ac_exeext conftest.$ac_ext
1.16      millert  17044: fi
1.27      millert  17045: ac_res=`eval echo '${'$as_ac_var'}'`
                   17046:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17047: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  17048: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17049:   cat >>confdefs.h <<_ACEOF
                   17050: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17051: _ACEOF
1.27      millert  17052:  break
                   17053: fi
                   17054: done
                   17055:
1.25      millert  17056:
1.23      millert  17057:
1.27      millert  17058: for ac_func in waitpid wait3
1.25      millert  17059: do
                   17060: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  17061: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17062: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17063: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  17064:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17065: else
                   17066:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17067: /* confdefs.h.  */
                   17068: _ACEOF
                   17069: cat confdefs.h >>conftest.$ac_ext
                   17070: cat >>conftest.$ac_ext <<_ACEOF
                   17071: /* end confdefs.h.  */
1.25      millert  17072: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17073:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17074: #define $ac_func innocuous_$ac_func
                   17075:
                   17076: /* System header to define __stub macros and hopefully few prototypes,
                   17077:     which can conflict with char $ac_func (); below.
                   17078:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17079:     <limits.h> exists even on freestanding compilers.  */
                   17080:
                   17081: #ifdef __STDC__
                   17082: # include <limits.h>
                   17083: #else
                   17084: # include <assert.h>
                   17085: #endif
                   17086:
                   17087: #undef $ac_func
                   17088:
1.27      millert  17089: /* Override any GCC internal prototype to avoid an error.
                   17090:    Use char because int might match the return type of a GCC
                   17091:    builtin and then its argument prototype would still apply.  */
1.25      millert  17092: #ifdef __cplusplus
                   17093: extern "C"
                   17094: #endif
                   17095: char $ac_func ();
                   17096: /* The GNU C library defines this for functions which it implements
                   17097:     to always fail with ENOSYS.  Some functions are actually named
                   17098:     something starting with __ and the normal name is an alias.  */
1.27      millert  17099: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17100: choke me
                   17101: #endif
                   17102:
                   17103: int
                   17104: main ()
                   17105: {
1.27      millert  17106: return $ac_func ();
1.25      millert  17107:   ;
                   17108:   return 0;
                   17109: }
1.9       millert  17110: _ACEOF
1.25      millert  17111: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17112: if { (ac_try="$ac_link"
                   17113: case "(($ac_try" in
                   17114:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17115:   *) ac_try_echo=$ac_try;;
                   17116: esac
                   17117: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17118:   (eval "$ac_link") 2>conftest.er1
1.9       millert  17119:   ac_status=$?
1.23      millert  17120:   grep -v '^ *+' conftest.er1 >conftest.err
                   17121:   rm -f conftest.er1
                   17122:   cat conftest.err >&5
1.16      millert  17123:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17124:   (exit $ac_status); } && {
                   17125:         test -z "$ac_c_werror_flag" ||
                   17126:         test ! -s conftest.err
                   17127:        } && test -s conftest$ac_exeext &&
                   17128:        $as_test_x conftest$ac_exeext; then
1.25      millert  17129:   eval "$as_ac_var=yes"
1.23      millert  17130: else
                   17131:   echo "$as_me: failed program was:" >&5
                   17132: sed 's/^/| /' conftest.$ac_ext >&5
                   17133:
1.27      millert  17134:        eval "$as_ac_var=no"
1.23      millert  17135: fi
1.27      millert  17136:
                   17137: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17138:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  17139: fi
1.27      millert  17140: ac_res=`eval echo '${'$as_ac_var'}'`
                   17141:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17142: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  17143: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23      millert  17144:   cat >>confdefs.h <<_ACEOF
1.25      millert  17145: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  17146: _ACEOF
1.25      millert  17147:  break
                   17148: fi
                   17149: done
1.23      millert  17150:
1.16      millert  17151:
1.27      millert  17152:
                   17153: for ac_func in innetgr _innetgr
1.25      millert  17154: do
                   17155: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  17156: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17157: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17158: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  17159:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17160: else
1.23      millert  17161:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17162: /* confdefs.h.  */
                   17163: _ACEOF
                   17164: cat confdefs.h >>conftest.$ac_ext
                   17165: cat >>conftest.$ac_ext <<_ACEOF
                   17166: /* end confdefs.h.  */
1.25      millert  17167: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17168:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17169: #define $ac_func innocuous_$ac_func
                   17170:
                   17171: /* System header to define __stub macros and hopefully few prototypes,
                   17172:     which can conflict with char $ac_func (); below.
                   17173:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17174:     <limits.h> exists even on freestanding compilers.  */
                   17175:
                   17176: #ifdef __STDC__
                   17177: # include <limits.h>
                   17178: #else
                   17179: # include <assert.h>
                   17180: #endif
                   17181:
                   17182: #undef $ac_func
                   17183:
1.27      millert  17184: /* Override any GCC internal prototype to avoid an error.
                   17185:    Use char because int might match the return type of a GCC
                   17186:    builtin and then its argument prototype would still apply.  */
1.25      millert  17187: #ifdef __cplusplus
                   17188: extern "C"
                   17189: #endif
                   17190: char $ac_func ();
                   17191: /* The GNU C library defines this for functions which it implements
                   17192:     to always fail with ENOSYS.  Some functions are actually named
                   17193:     something starting with __ and the normal name is an alias.  */
1.27      millert  17194: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17195: choke me
                   17196: #endif
1.16      millert  17197:
                   17198: int
                   17199: main ()
                   17200: {
1.27      millert  17201: return $ac_func ();
1.16      millert  17202:   ;
                   17203:   return 0;
                   17204: }
                   17205: _ACEOF
                   17206: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17207: if { (ac_try="$ac_link"
                   17208: case "(($ac_try" in
                   17209:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17210:   *) ac_try_echo=$ac_try;;
                   17211: esac
                   17212: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17213:   (eval "$ac_link") 2>conftest.er1
1.16      millert  17214:   ac_status=$?
1.25      millert  17215:   grep -v '^ *+' conftest.er1 >conftest.err
                   17216:   rm -f conftest.er1
                   17217:   cat conftest.err >&5
1.16      millert  17218:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17219:   (exit $ac_status); } && {
                   17220:         test -z "$ac_c_werror_flag" ||
                   17221:         test ! -s conftest.err
                   17222:        } && test -s conftest$ac_exeext &&
                   17223:        $as_test_x conftest$ac_exeext; then
1.25      millert  17224:   eval "$as_ac_var=yes"
1.16      millert  17225: else
                   17226:   echo "$as_me: failed program was:" >&5
                   17227: sed 's/^/| /' conftest.$ac_ext >&5
                   17228:
1.27      millert  17229:        eval "$as_ac_var=no"
1.16      millert  17230: fi
1.27      millert  17231:
                   17232: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17233:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17234: fi
1.27      millert  17235: ac_res=`eval echo '${'$as_ac_var'}'`
                   17236:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17237: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  17238: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17239:   cat >>confdefs.h <<_ACEOF
                   17240: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17241: _ACEOF
1.9       millert  17242:
1.27      millert  17243: for ac_func in getdomainname
                   17244: do
                   17245: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17246: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17247: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17248: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.16      millert  17249:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17250: else
1.25      millert  17251:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17252: /* confdefs.h.  */
                   17253: _ACEOF
                   17254: cat confdefs.h >>conftest.$ac_ext
                   17255: cat >>conftest.$ac_ext <<_ACEOF
                   17256: /* end confdefs.h.  */
1.27      millert  17257: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17258:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17259: #define $ac_func innocuous_$ac_func
1.16      millert  17260:
1.27      millert  17261: /* System header to define __stub macros and hopefully few prototypes,
                   17262:     which can conflict with char $ac_func (); below.
                   17263:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17264:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  17265:
1.27      millert  17266: #ifdef __STDC__
                   17267: # include <limits.h>
                   17268: #else
                   17269: # include <assert.h>
                   17270: #endif
1.25      millert  17271:
1.27      millert  17272: #undef $ac_func
1.25      millert  17273:
1.27      millert  17274: /* Override any GCC internal prototype to avoid an error.
                   17275:    Use char because int might match the return type of a GCC
                   17276:    builtin and then its argument prototype would still apply.  */
                   17277: #ifdef __cplusplus
                   17278: extern "C"
                   17279: #endif
                   17280: char $ac_func ();
                   17281: /* The GNU C library defines this for functions which it implements
                   17282:     to always fail with ENOSYS.  Some functions are actually named
                   17283:     something starting with __ and the normal name is an alias.  */
                   17284: #if defined __stub_$ac_func || defined __stub___$ac_func
                   17285: choke me
                   17286: #endif
1.23      millert  17287:
1.25      millert  17288: int
                   17289: main ()
                   17290: {
1.27      millert  17291: return $ac_func ();
1.25      millert  17292:   ;
                   17293:   return 0;
                   17294: }
1.23      millert  17295: _ACEOF
1.25      millert  17296: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17297: if { (ac_try="$ac_link"
                   17298: case "(($ac_try" in
                   17299:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17300:   *) ac_try_echo=$ac_try;;
                   17301: esac
                   17302: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17303:   (eval "$ac_link") 2>conftest.er1
1.23      millert  17304:   ac_status=$?
                   17305:   grep -v '^ *+' conftest.er1 >conftest.err
                   17306:   rm -f conftest.er1
                   17307:   cat conftest.err >&5
                   17308:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17309:   (exit $ac_status); } && {
                   17310:         test -z "$ac_c_werror_flag" ||
                   17311:         test ! -s conftest.err
                   17312:        } && test -s conftest$ac_exeext &&
                   17313:        $as_test_x conftest$ac_exeext; then
                   17314:   eval "$as_ac_var=yes"
1.23      millert  17315: else
                   17316:   echo "$as_me: failed program was:" >&5
                   17317: sed 's/^/| /' conftest.$ac_ext >&5
                   17318:
1.27      millert  17319:        eval "$as_ac_var=no"
1.25      millert  17320: fi
1.27      millert  17321:
                   17322: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17323:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17324: fi
1.27      millert  17325: ac_res=`eval echo '${'$as_ac_var'}'`
                   17326:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17327: echo "${ECHO_T}$ac_res" >&6; }
                   17328: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17329:   cat >>confdefs.h <<_ACEOF
                   17330: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  17331: _ACEOF
1.1       millert  17332:
1.27      millert  17333: fi
                   17334: done
                   17335:  break
                   17336: fi
                   17337: done
1.25      millert  17338:
                   17339:
1.37      millert  17340: for ac_func in utimes
1.1       millert  17341: do
1.25      millert  17342: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  17343: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17344: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17345: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  17346:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.16      millert  17347: else
1.25      millert  17348:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17349: /* confdefs.h.  */
                   17350: _ACEOF
                   17351: cat confdefs.h >>conftest.$ac_ext
                   17352: cat >>conftest.$ac_ext <<_ACEOF
                   17353: /* end confdefs.h.  */
1.25      millert  17354: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17355:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17356: #define $ac_func innocuous_$ac_func
                   17357:
                   17358: /* System header to define __stub macros and hopefully few prototypes,
                   17359:     which can conflict with char $ac_func (); below.
                   17360:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17361:     <limits.h> exists even on freestanding compilers.  */
                   17362:
                   17363: #ifdef __STDC__
                   17364: # include <limits.h>
                   17365: #else
                   17366: # include <assert.h>
                   17367: #endif
                   17368:
                   17369: #undef $ac_func
                   17370:
1.27      millert  17371: /* Override any GCC internal prototype to avoid an error.
                   17372:    Use char because int might match the return type of a GCC
                   17373:    builtin and then its argument prototype would still apply.  */
1.25      millert  17374: #ifdef __cplusplus
                   17375: extern "C"
                   17376: #endif
                   17377: char $ac_func ();
                   17378: /* The GNU C library defines this for functions which it implements
                   17379:     to always fail with ENOSYS.  Some functions are actually named
                   17380:     something starting with __ and the normal name is an alias.  */
1.27      millert  17381: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17382: choke me
                   17383: #endif
                   17384:
                   17385: int
                   17386: main ()
                   17387: {
1.27      millert  17388: return $ac_func ();
1.25      millert  17389:   ;
                   17390:   return 0;
                   17391: }
1.16      millert  17392: _ACEOF
1.25      millert  17393: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17394: if { (ac_try="$ac_link"
                   17395: case "(($ac_try" in
                   17396:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17397:   *) ac_try_echo=$ac_try;;
                   17398: esac
                   17399: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17400:   (eval "$ac_link") 2>conftest.er1
1.16      millert  17401:   ac_status=$?
1.25      millert  17402:   grep -v '^ *+' conftest.er1 >conftest.err
                   17403:   rm -f conftest.er1
                   17404:   cat conftest.err >&5
1.16      millert  17405:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17406:   (exit $ac_status); } && {
                   17407:         test -z "$ac_c_werror_flag" ||
                   17408:         test ! -s conftest.err
                   17409:        } && test -s conftest$ac_exeext &&
                   17410:        $as_test_x conftest$ac_exeext; then
1.25      millert  17411:   eval "$as_ac_var=yes"
1.9       millert  17412: else
1.16      millert  17413:   echo "$as_me: failed program was:" >&5
                   17414: sed 's/^/| /' conftest.$ac_ext >&5
                   17415:
1.27      millert  17416:        eval "$as_ac_var=no"
1.25      millert  17417: fi
1.27      millert  17418:
                   17419: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17420:       conftest$ac_exeext conftest.$ac_ext
                   17421: fi
1.27      millert  17422: ac_res=`eval echo '${'$as_ac_var'}'`
                   17423:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17424: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  17425: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17426:   cat >>confdefs.h <<_ACEOF
                   17427: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17428: _ACEOF
                   17429:
1.37      millert  17430:
                   17431: for ac_func in futimes futimesat
                   17432: do
                   17433: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17434: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17435: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17436: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  17437:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17438: else
1.37      millert  17439:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17440: /* confdefs.h.  */
                   17441: _ACEOF
                   17442: cat confdefs.h >>conftest.$ac_ext
                   17443: cat >>conftest.$ac_ext <<_ACEOF
                   17444: /* end confdefs.h.  */
1.37      millert  17445: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17446:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17447: #define $ac_func innocuous_$ac_func
                   17448:
                   17449: /* System header to define __stub macros and hopefully few prototypes,
                   17450:     which can conflict with char $ac_func (); below.
                   17451:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17452:     <limits.h> exists even on freestanding compilers.  */
                   17453:
                   17454: #ifdef __STDC__
                   17455: # include <limits.h>
                   17456: #else
                   17457: # include <assert.h>
                   17458: #endif
                   17459:
                   17460: #undef $ac_func
1.25      millert  17461:
1.27      millert  17462: /* Override any GCC internal prototype to avoid an error.
                   17463:    Use char because int might match the return type of a GCC
                   17464:    builtin and then its argument prototype would still apply.  */
1.25      millert  17465: #ifdef __cplusplus
                   17466: extern "C"
                   17467: #endif
1.37      millert  17468: char $ac_func ();
                   17469: /* The GNU C library defines this for functions which it implements
                   17470:     to always fail with ENOSYS.  Some functions are actually named
                   17471:     something starting with __ and the normal name is an alias.  */
                   17472: #if defined __stub_$ac_func || defined __stub___$ac_func
                   17473: choke me
                   17474: #endif
                   17475:
1.25      millert  17476: int
                   17477: main ()
                   17478: {
1.37      millert  17479: return $ac_func ();
1.25      millert  17480:   ;
                   17481:   return 0;
                   17482: }
1.9       millert  17483: _ACEOF
1.25      millert  17484: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17485: if { (ac_try="$ac_link"
                   17486: case "(($ac_try" in
                   17487:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17488:   *) ac_try_echo=$ac_try;;
                   17489: esac
                   17490: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17491:   (eval "$ac_link") 2>conftest.er1
1.9       millert  17492:   ac_status=$?
1.16      millert  17493:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  17494:   rm -f conftest.er1
                   17495:   cat conftest.err >&5
1.16      millert  17496:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17497:   (exit $ac_status); } && {
                   17498:         test -z "$ac_c_werror_flag" ||
                   17499:         test ! -s conftest.err
                   17500:        } && test -s conftest$ac_exeext &&
                   17501:        $as_test_x conftest$ac_exeext; then
1.37      millert  17502:   eval "$as_ac_var=yes"
1.1       millert  17503: else
1.9       millert  17504:   echo "$as_me: failed program was:" >&5
1.16      millert  17505: sed 's/^/| /' conftest.$ac_ext >&5
                   17506:
1.37      millert  17507:        eval "$as_ac_var=no"
1.1       millert  17508: fi
1.27      millert  17509:
                   17510: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17511:       conftest$ac_exeext conftest.$ac_ext
1.16      millert  17512: fi
1.37      millert  17513: ac_res=`eval echo '${'$as_ac_var'}'`
                   17514:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17515: echo "${ECHO_T}$ac_res" >&6; }
                   17516: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17517:   cat >>confdefs.h <<_ACEOF
                   17518: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17519: _ACEOF
                   17520:  break
                   17521: fi
                   17522: done
                   17523:
                   17524: else
                   17525:
                   17526: for ac_func in futime
                   17527: do
                   17528: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17529: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17530: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17531: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18      millert  17532:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17533: else
1.25      millert  17534:   cat >conftest.$ac_ext <<_ACEOF
1.18      millert  17535: /* confdefs.h.  */
                   17536: _ACEOF
                   17537: cat confdefs.h >>conftest.$ac_ext
                   17538: cat >>conftest.$ac_ext <<_ACEOF
                   17539: /* end confdefs.h.  */
1.37      millert  17540: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17541:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17542: #define $ac_func innocuous_$ac_func
                   17543:
                   17544: /* System header to define __stub macros and hopefully few prototypes,
                   17545:     which can conflict with char $ac_func (); below.
                   17546:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17547:     <limits.h> exists even on freestanding compilers.  */
                   17548:
                   17549: #ifdef __STDC__
                   17550: # include <limits.h>
                   17551: #else
                   17552: # include <assert.h>
                   17553: #endif
                   17554:
                   17555: #undef $ac_func
                   17556:
                   17557: /* Override any GCC internal prototype to avoid an error.
                   17558:    Use char because int might match the return type of a GCC
                   17559:    builtin and then its argument prototype would still apply.  */
                   17560: #ifdef __cplusplus
                   17561: extern "C"
                   17562: #endif
                   17563: char $ac_func ();
                   17564: /* The GNU C library defines this for functions which it implements
                   17565:     to always fail with ENOSYS.  Some functions are actually named
                   17566:     something starting with __ and the normal name is an alias.  */
                   17567: #if defined __stub_$ac_func || defined __stub___$ac_func
                   17568: choke me
                   17569: #endif
                   17570:
                   17571: int
                   17572: main ()
                   17573: {
                   17574: return $ac_func ();
                   17575:   ;
                   17576:   return 0;
                   17577: }
1.18      millert  17578: _ACEOF
1.37      millert  17579: rm -f conftest.$ac_objext conftest$ac_exeext
                   17580: if { (ac_try="$ac_link"
1.27      millert  17581: case "(($ac_try" in
                   17582:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17583:   *) ac_try_echo=$ac_try;;
                   17584: esac
                   17585: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  17586:   (eval "$ac_link") 2>conftest.er1
1.18      millert  17587:   ac_status=$?
1.25      millert  17588:   grep -v '^ *+' conftest.er1 >conftest.err
                   17589:   rm -f conftest.er1
                   17590:   cat conftest.err >&5
1.18      millert  17591:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  17592:   (exit $ac_status); } && {
                   17593:         test -z "$ac_c_werror_flag" ||
1.27      millert  17594:         test ! -s conftest.err
1.37      millert  17595:        } && test -s conftest$ac_exeext &&
                   17596:        $as_test_x conftest$ac_exeext; then
                   17597:   eval "$as_ac_var=yes"
1.23      millert  17598: else
1.25      millert  17599:   echo "$as_me: failed program was:" >&5
                   17600: sed 's/^/| /' conftest.$ac_ext >&5
                   17601:
1.37      millert  17602:        eval "$as_ac_var=no"
1.23      millert  17603: fi
1.27      millert  17604:
1.37      millert  17605: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   17606:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17607: fi
1.37      millert  17608: ac_res=`eval echo '${'$as_ac_var'}'`
                   17609:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17610: echo "${ECHO_T}$ac_res" >&6; }
                   17611: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17612:   cat >>confdefs.h <<_ACEOF
                   17613: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  17614: _ACEOF
1.37      millert  17615:
                   17616: fi
                   17617: done
                   17618:  case " $LIBOBJS " in
                   17619:   *" utimes.$ac_objext "* ) ;;
                   17620:   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
                   17621:  ;;
                   17622: esac
                   17623:
                   17624: fi
                   17625: done
                   17626:
                   17627: { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
                   17628: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
                   17629: if test "${sudo_cv_func_fnmatch+set}" = set; then
                   17630:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17631: else
                   17632:   rm -f conftestdata; > conftestdata
                   17633: if test "$cross_compiling" = yes; then
                   17634:   sudo_cv_func_fnmatch=no
1.27      millert  17635: else
1.37      millert  17636:   cat >conftest.$ac_ext <<_ACEOF
                   17637: /* confdefs.h.  */
                   17638: _ACEOF
                   17639: cat confdefs.h >>conftest.$ac_ext
                   17640: cat >>conftest.$ac_ext <<_ACEOF
                   17641: /* end confdefs.h.  */
                   17642: #include <fnmatch.h>
                   17643: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
                   17644: _ACEOF
                   17645: rm -f conftest$ac_exeext
                   17646: if { (ac_try="$ac_link"
                   17647: case "(($ac_try" in
                   17648:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17649:   *) ac_try_echo=$ac_try;;
                   17650: esac
                   17651: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17652:   (eval "$ac_link") 2>&5
                   17653:   ac_status=$?
                   17654:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17655:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   17656:   { (case "(($ac_try" in
                   17657:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17658:   *) ac_try_echo=$ac_try;;
1.27      millert  17659: esac
1.37      millert  17660: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17661:   (eval "$ac_try") 2>&5
                   17662:   ac_status=$?
                   17663:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17664:   (exit $ac_status); }; }; then
                   17665:   sudo_cv_func_fnmatch=yes
                   17666: else
                   17667:   echo "$as_me: program exited with status $ac_status" >&5
                   17668: echo "$as_me: failed program was:" >&5
                   17669: sed 's/^/| /' conftest.$ac_ext >&5
                   17670:
                   17671: ( exit $ac_status )
                   17672: sudo_cv_func_fnmatch=no
                   17673: fi
                   17674: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   17675: fi
                   17676:
1.25      millert  17677:
1.37      millert  17678: rm -f core core.* *.core
1.23      millert  17679: fi
                   17680:
1.37      millert  17681: { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
                   17682: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
                   17683: if test $sudo_cv_func_fnmatch = yes; then
                   17684:   cat >>confdefs.h <<\_ACEOF
                   17685: #define HAVE_FNMATCH 1
                   17686: _ACEOF
1.23      millert  17687:
1.27      millert  17688: else
                   17689:   case " $LIBOBJS " in
1.37      millert  17690:   *" fnmatch.$ac_objext "* ) ;;
                   17691:   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
1.27      millert  17692:  ;;
                   17693: esac
                   17694:
                   17695: fi
                   17696:
1.37      millert  17697: { echo "$as_me:$LINENO: checking for isblank" >&5
                   17698: echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
                   17699: if test "${sudo_cv_func_isblank+set}" = set; then
1.23      millert  17700:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17701: else
                   17702:   cat >conftest.$ac_ext <<_ACEOF
                   17703: /* confdefs.h.  */
                   17704: _ACEOF
                   17705: cat confdefs.h >>conftest.$ac_ext
                   17706: cat >>conftest.$ac_ext <<_ACEOF
                   17707: /* end confdefs.h.  */
1.37      millert  17708: #include <ctype.h>
1.23      millert  17709: int
                   17710: main ()
                   17711: {
1.37      millert  17712: return (isblank('a'));
1.23      millert  17713:   ;
                   17714:   return 0;
                   17715: }
                   17716: _ACEOF
1.25      millert  17717: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17718: if { (ac_try="$ac_link"
                   17719: case "(($ac_try" in
                   17720:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17721:   *) ac_try_echo=$ac_try;;
                   17722: esac
                   17723: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17724:   (eval "$ac_link") 2>conftest.er1
1.23      millert  17725:   ac_status=$?
1.25      millert  17726:   grep -v '^ *+' conftest.er1 >conftest.err
                   17727:   rm -f conftest.er1
                   17728:   cat conftest.err >&5
1.23      millert  17729:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17730:   (exit $ac_status); } && {
                   17731:         test -z "$ac_c_werror_flag" ||
                   17732:         test ! -s conftest.err
                   17733:        } && test -s conftest$ac_exeext &&
                   17734:        $as_test_x conftest$ac_exeext; then
1.37      millert  17735:   sudo_cv_func_isblank=yes
1.23      millert  17736: else
                   17737:   echo "$as_me: failed program was:" >&5
                   17738: sed 's/^/| /' conftest.$ac_ext >&5
                   17739:
1.37      millert  17740:        sudo_cv_func_isblank=no
1.23      millert  17741: fi
1.27      millert  17742:
                   17743: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17744:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17745: fi
1.37      millert  17746: { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
                   17747: echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
                   17748:
                   17749:   if test "$sudo_cv_func_isblank" = "yes"; then
                   17750:
                   17751: cat >>confdefs.h <<\_ACEOF
                   17752: #define HAVE_ISBLANK 1
1.25      millert  17753: _ACEOF
                   17754:
1.37      millert  17755:   else
                   17756:     case " $LIBOBJS " in
                   17757:   *" isblank.$ac_objext "* ) ;;
                   17758:   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
                   17759:  ;;
                   17760: esac
                   17761:
                   17762:   fi
                   17763:
                   17764:
                   17765:
1.23      millert  17766:
1.37      millert  17767:
                   17768:
                   17769:
                   17770: for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
1.25      millert  17771: do
                   17772: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  17773: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17774: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17775: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18      millert  17776:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17777: else
1.23      millert  17778:   cat >conftest.$ac_ext <<_ACEOF
                   17779: /* confdefs.h.  */
                   17780: _ACEOF
                   17781: cat confdefs.h >>conftest.$ac_ext
                   17782: cat >>conftest.$ac_ext <<_ACEOF
                   17783: /* end confdefs.h.  */
1.25      millert  17784: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17785:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17786: #define $ac_func innocuous_$ac_func
                   17787:
                   17788: /* System header to define __stub macros and hopefully few prototypes,
                   17789:     which can conflict with char $ac_func (); below.
                   17790:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17791:     <limits.h> exists even on freestanding compilers.  */
                   17792:
                   17793: #ifdef __STDC__
                   17794: # include <limits.h>
                   17795: #else
                   17796: # include <assert.h>
                   17797: #endif
                   17798:
                   17799: #undef $ac_func
                   17800:
1.27      millert  17801: /* Override any GCC internal prototype to avoid an error.
                   17802:    Use char because int might match the return type of a GCC
                   17803:    builtin and then its argument prototype would still apply.  */
1.25      millert  17804: #ifdef __cplusplus
                   17805: extern "C"
                   17806: #endif
                   17807: char $ac_func ();
                   17808: /* The GNU C library defines this for functions which it implements
                   17809:     to always fail with ENOSYS.  Some functions are actually named
                   17810:     something starting with __ and the normal name is an alias.  */
1.27      millert  17811: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17812: choke me
                   17813: #endif
1.23      millert  17814:
1.25      millert  17815: int
                   17816: main ()
                   17817: {
1.27      millert  17818: return $ac_func ();
1.25      millert  17819:   ;
                   17820:   return 0;
                   17821: }
1.23      millert  17822: _ACEOF
1.25      millert  17823: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17824: if { (ac_try="$ac_link"
                   17825: case "(($ac_try" in
                   17826:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17827:   *) ac_try_echo=$ac_try;;
                   17828: esac
                   17829: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17830:   (eval "$ac_link") 2>conftest.er1
1.25      millert  17831:   ac_status=$?
                   17832:   grep -v '^ *+' conftest.er1 >conftest.err
                   17833:   rm -f conftest.er1
                   17834:   cat conftest.err >&5
                   17835:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17836:   (exit $ac_status); } && {
                   17837:         test -z "$ac_c_werror_flag" ||
                   17838:         test ! -s conftest.err
                   17839:        } && test -s conftest$ac_exeext &&
                   17840:        $as_test_x conftest$ac_exeext; then
1.25      millert  17841:   eval "$as_ac_var=yes"
1.23      millert  17842: else
1.25      millert  17843:   echo "$as_me: failed program was:" >&5
                   17844: sed 's/^/| /' conftest.$ac_ext >&5
                   17845:
1.27      millert  17846:        eval "$as_ac_var=no"
1.25      millert  17847: fi
1.27      millert  17848:
                   17849: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17850:       conftest$ac_exeext conftest.$ac_ext
                   17851: fi
1.27      millert  17852: ac_res=`eval echo '${'$as_ac_var'}'`
                   17853:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17854: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  17855: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17856:   cat >>confdefs.h <<_ACEOF
                   17857: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17858: _ACEOF
1.37      millert  17859:
                   17860: else
                   17861:   case " $LIBOBJS " in
                   17862:   *" $ac_func.$ac_objext "* ) ;;
                   17863:   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
                   17864:  ;;
                   17865: esac
                   17866:
1.23      millert  17867: fi
1.25      millert  17868: done
                   17869:
1.23      millert  17870:
1.37      millert  17871:
                   17872: for ac_func in closefrom
1.25      millert  17873: do
                   17874: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  17875: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17876: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17877: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  17878:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17879: else
                   17880:   cat >conftest.$ac_ext <<_ACEOF
                   17881: /* confdefs.h.  */
1.18      millert  17882: _ACEOF
1.23      millert  17883: cat confdefs.h >>conftest.$ac_ext
                   17884: cat >>conftest.$ac_ext <<_ACEOF
                   17885: /* end confdefs.h.  */
1.25      millert  17886: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17887:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17888: #define $ac_func innocuous_$ac_func
                   17889:
                   17890: /* System header to define __stub macros and hopefully few prototypes,
                   17891:     which can conflict with char $ac_func (); below.
                   17892:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17893:     <limits.h> exists even on freestanding compilers.  */
                   17894:
                   17895: #ifdef __STDC__
                   17896: # include <limits.h>
                   17897: #else
                   17898: # include <assert.h>
                   17899: #endif
                   17900:
                   17901: #undef $ac_func
                   17902:
1.27      millert  17903: /* Override any GCC internal prototype to avoid an error.
                   17904:    Use char because int might match the return type of a GCC
                   17905:    builtin and then its argument prototype would still apply.  */
1.25      millert  17906: #ifdef __cplusplus
                   17907: extern "C"
                   17908: #endif
                   17909: char $ac_func ();
                   17910: /* The GNU C library defines this for functions which it implements
                   17911:     to always fail with ENOSYS.  Some functions are actually named
                   17912:     something starting with __ and the normal name is an alias.  */
1.27      millert  17913: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17914: choke me
                   17915: #endif
1.18      millert  17916:
1.23      millert  17917: int
                   17918: main ()
                   17919: {
1.27      millert  17920: return $ac_func ();
1.25      millert  17921:   ;
                   17922:   return 0;
                   17923: }
1.9       millert  17924: _ACEOF
1.27      millert  17925: rm -f conftest.$ac_objext conftest$ac_exeext
                   17926: if { (ac_try="$ac_link"
                   17927: case "(($ac_try" in
                   17928:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17929:   *) ac_try_echo=$ac_try;;
                   17930: esac
                   17931: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17932:   (eval "$ac_link") 2>conftest.er1
1.25      millert  17933:   ac_status=$?
                   17934:   grep -v '^ *+' conftest.er1 >conftest.err
                   17935:   rm -f conftest.er1
                   17936:   cat conftest.err >&5
                   17937:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17938:   (exit $ac_status); } && {
                   17939:         test -z "$ac_c_werror_flag" ||
                   17940:         test ! -s conftest.err
                   17941:        } && test -s conftest$ac_exeext &&
                   17942:        $as_test_x conftest$ac_exeext; then
                   17943:   eval "$as_ac_var=yes"
1.1       millert  17944: else
1.25      millert  17945:   echo "$as_me: failed program was:" >&5
                   17946: sed 's/^/| /' conftest.$ac_ext >&5
                   17947:
1.27      millert  17948:        eval "$as_ac_var=no"
1.23      millert  17949: fi
1.27      millert  17950:
                   17951: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   17952:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  17953: fi
1.27      millert  17954: ac_res=`eval echo '${'$as_ac_var'}'`
                   17955:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17956: echo "${ECHO_T}$ac_res" >&6; }
                   17957: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17958:   cat >>confdefs.h <<_ACEOF
                   17959: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  17960: _ACEOF
1.16      millert  17961:
1.37      millert  17962: else
                   17963:   case " $LIBOBJS " in
                   17964:   *" closefrom.$ac_objext "* ) ;;
                   17965:   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
1.27      millert  17966:  ;;
                   17967: esac
1.9       millert  17968:
1.37      millert  17969:     { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
                   17970: echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
                   17971: if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
1.27      millert  17972:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17973: else
                   17974:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17975: /* confdefs.h.  */
                   17976: _ACEOF
                   17977: cat confdefs.h >>conftest.$ac_ext
                   17978: cat >>conftest.$ac_ext <<_ACEOF
                   17979: /* end confdefs.h.  */
1.37      millert  17980:  #include <limits.h>
                   17981:          #include <fcntl.h>
                   17982:
                   17983: int
                   17984: main ()
                   17985: {
                   17986: #ifndef F_CLOSEM
                   17987:   (void) F_CLOSEM;
                   17988: #endif
                   17989:
                   17990:   ;
                   17991:   return 0;
                   17992: }
1.16      millert  17993: _ACEOF
1.37      millert  17994: rm -f conftest.$ac_objext
                   17995: if { (ac_try="$ac_compile"
1.27      millert  17996: case "(($ac_try" in
                   17997:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17998:   *) ac_try_echo=$ac_try;;
                   17999: esac
                   18000: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  18001:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  18002:   ac_status=$?
1.37      millert  18003:   grep -v '^ *+' conftest.er1 >conftest.err
                   18004:   rm -f conftest.er1
                   18005:   cat conftest.err >&5
1.25      millert  18006:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  18007:   (exit $ac_status); } && {
                   18008:         test -z "$ac_c_werror_flag" ||
                   18009:         test ! -s conftest.err
                   18010:        } && test -s conftest.$ac_objext; then
                   18011:   ac_cv_have_decl_F_CLOSEM=yes
1.1       millert  18012: else
1.37      millert  18013:   echo "$as_me: failed program was:" >&5
1.16      millert  18014: sed 's/^/| /' conftest.$ac_ext >&5
                   18015:
1.37      millert  18016:        ac_cv_have_decl_F_CLOSEM=no
1.27      millert  18017: fi
                   18018:
1.37      millert  18019: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  18020: fi
1.37      millert  18021: { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
                   18022: echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
                   18023: if test $ac_cv_have_decl_F_CLOSEM = yes; then
1.25      millert  18024:   cat >>confdefs.h <<\_ACEOF
1.37      millert  18025: #define HAVE_FCNTL_CLOSEM 1
1.25      millert  18026: _ACEOF
                   18027:
1.27      millert  18028: fi
1.16      millert  18029:
1.27      millert  18030:
1.25      millert  18031: fi
1.37      millert  18032: done
1.27      millert  18033:
                   18034:
1.37      millert  18035: for ac_func in mkstemp
1.27      millert  18036: do
                   18037: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18038: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   18039: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   18040: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  18041:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.7       millert  18042: else
1.9       millert  18043:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18044: /* confdefs.h.  */
                   18045: _ACEOF
                   18046: cat confdefs.h >>conftest.$ac_ext
                   18047: cat >>conftest.$ac_ext <<_ACEOF
1.25      millert  18048: /* end confdefs.h.  */
1.27      millert  18049: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
1.25      millert  18050:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1.27      millert  18051: #define $ac_func innocuous_$ac_func
1.25      millert  18052:
                   18053: /* System header to define __stub macros and hopefully few prototypes,
1.27      millert  18054:     which can conflict with char $ac_func (); below.
1.25      millert  18055:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18056:     <limits.h> exists even on freestanding compilers.  */
                   18057:
                   18058: #ifdef __STDC__
                   18059: # include <limits.h>
                   18060: #else
                   18061: # include <assert.h>
                   18062: #endif
                   18063:
1.27      millert  18064: #undef $ac_func
1.25      millert  18065:
1.27      millert  18066: /* Override any GCC internal prototype to avoid an error.
                   18067:    Use char because int might match the return type of a GCC
                   18068:    builtin and then its argument prototype would still apply.  */
1.25      millert  18069: #ifdef __cplusplus
                   18070: extern "C"
                   18071: #endif
1.27      millert  18072: char $ac_func ();
1.25      millert  18073: /* The GNU C library defines this for functions which it implements
                   18074:     to always fail with ENOSYS.  Some functions are actually named
                   18075:     something starting with __ and the normal name is an alias.  */
1.27      millert  18076: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  18077: choke me
                   18078: #endif
                   18079:
                   18080: int
                   18081: main ()
                   18082: {
1.27      millert  18083: return $ac_func ();
1.25      millert  18084:   ;
                   18085:   return 0;
                   18086: }
                   18087: _ACEOF
                   18088: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18089: if { (ac_try="$ac_link"
                   18090: case "(($ac_try" in
                   18091:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18092:   *) ac_try_echo=$ac_try;;
                   18093: esac
                   18094: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18095:   (eval "$ac_link") 2>conftest.er1
1.25      millert  18096:   ac_status=$?
                   18097:   grep -v '^ *+' conftest.er1 >conftest.err
                   18098:   rm -f conftest.er1
                   18099:   cat conftest.err >&5
                   18100:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18101:   (exit $ac_status); } && {
                   18102:         test -z "$ac_c_werror_flag" ||
                   18103:         test ! -s conftest.err
                   18104:        } && test -s conftest$ac_exeext &&
                   18105:        $as_test_x conftest$ac_exeext; then
                   18106:   eval "$as_ac_var=yes"
1.23      millert  18107: else
1.25      millert  18108:   echo "$as_me: failed program was:" >&5
1.23      millert  18109: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  18110:
1.27      millert  18111:        eval "$as_ac_var=no"
1.23      millert  18112: fi
1.27      millert  18113:
                   18114: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18115:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  18116: fi
1.27      millert  18117: ac_res=`eval echo '${'$as_ac_var'}'`
                   18118:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   18119: echo "${ECHO_T}$ac_res" >&6; }
                   18120: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   18121:   cat >>confdefs.h <<_ACEOF
                   18122: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18123: _ACEOF
                   18124:
1.23      millert  18125: else
1.37      millert  18126:   SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
1.27      millert  18127:
                   18128:
1.37      millert  18129: for ac_func in random lrand48
1.27      millert  18130: do
                   18131: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18132: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   18133: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   18134: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  18135:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18136: else
1.27      millert  18137:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18138: /* confdefs.h.  */
                   18139: _ACEOF
                   18140: cat confdefs.h >>conftest.$ac_ext
                   18141: cat >>conftest.$ac_ext <<_ACEOF
                   18142: /* end confdefs.h.  */
1.27      millert  18143: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   18144:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   18145: #define $ac_func innocuous_$ac_func
                   18146:
                   18147: /* System header to define __stub macros and hopefully few prototypes,
                   18148:     which can conflict with char $ac_func (); below.
                   18149:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18150:     <limits.h> exists even on freestanding compilers.  */
                   18151:
                   18152: #ifdef __STDC__
                   18153: # include <limits.h>
                   18154: #else
                   18155: # include <assert.h>
                   18156: #endif
1.25      millert  18157:
1.27      millert  18158: #undef $ac_func
                   18159:
                   18160: /* Override any GCC internal prototype to avoid an error.
                   18161:    Use char because int might match the return type of a GCC
                   18162:    builtin and then its argument prototype would still apply.  */
1.25      millert  18163: #ifdef __cplusplus
                   18164: extern "C"
                   18165: #endif
1.27      millert  18166: char $ac_func ();
                   18167: /* The GNU C library defines this for functions which it implements
                   18168:     to always fail with ENOSYS.  Some functions are actually named
                   18169:     something starting with __ and the normal name is an alias.  */
                   18170: #if defined __stub_$ac_func || defined __stub___$ac_func
                   18171: choke me
                   18172: #endif
                   18173:
1.25      millert  18174: int
                   18175: main ()
                   18176: {
1.27      millert  18177: return $ac_func ();
1.25      millert  18178:   ;
                   18179:   return 0;
1.9       millert  18180: }
                   18181: _ACEOF
1.25      millert  18182: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18183: if { (ac_try="$ac_link"
                   18184: case "(($ac_try" in
                   18185:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18186:   *) ac_try_echo=$ac_try;;
                   18187: esac
                   18188: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18189:   (eval "$ac_link") 2>conftest.er1
1.25      millert  18190:   ac_status=$?
                   18191:   grep -v '^ *+' conftest.er1 >conftest.err
                   18192:   rm -f conftest.er1
                   18193:   cat conftest.err >&5
                   18194:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18195:   (exit $ac_status); } && {
                   18196:         test -z "$ac_c_werror_flag" ||
                   18197:         test ! -s conftest.err
                   18198:        } && test -s conftest$ac_exeext &&
                   18199:        $as_test_x conftest$ac_exeext; then
                   18200:   eval "$as_ac_var=yes"
1.7       millert  18201: else
1.25      millert  18202:   echo "$as_me: failed program was:" >&5
1.16      millert  18203: sed 's/^/| /' conftest.$ac_ext >&5
                   18204:
1.27      millert  18205:        eval "$as_ac_var=no"
1.23      millert  18206: fi
1.27      millert  18207:
                   18208: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18209:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  18210: fi
                   18211: ac_res=`eval echo '${'$as_ac_var'}'`
                   18212:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   18213: echo "${ECHO_T}$ac_res" >&6; }
                   18214: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   18215:   cat >>confdefs.h <<_ACEOF
                   18216: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18217: _ACEOF
1.37      millert  18218:  break
                   18219: fi
                   18220: done
1.27      millert  18221:
                   18222:
                   18223: fi
1.37      millert  18224: done
1.27      millert  18225:
                   18226:
                   18227:
                   18228:
                   18229:
1.37      millert  18230: for ac_func in snprintf vsnprintf asprintf vasprintf
1.27      millert  18231: do
                   18232: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18233: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   18234: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   18235: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  18236:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18237: else
1.27      millert  18238:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18239: /* confdefs.h.  */
                   18240: _ACEOF
                   18241: cat confdefs.h >>conftest.$ac_ext
                   18242: cat >>conftest.$ac_ext <<_ACEOF
                   18243: /* end confdefs.h.  */
1.27      millert  18244: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   18245:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   18246: #define $ac_func innocuous_$ac_func
1.25      millert  18247:
1.27      millert  18248: /* System header to define __stub macros and hopefully few prototypes,
                   18249:     which can conflict with char $ac_func (); below.
                   18250:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18251:     <limits.h> exists even on freestanding compilers.  */
                   18252:
                   18253: #ifdef __STDC__
                   18254: # include <limits.h>
                   18255: #else
                   18256: # include <assert.h>
                   18257: #endif
                   18258:
                   18259: #undef $ac_func
                   18260:
                   18261: /* Override any GCC internal prototype to avoid an error.
                   18262:    Use char because int might match the return type of a GCC
                   18263:    builtin and then its argument prototype would still apply.  */
1.23      millert  18264: #ifdef __cplusplus
                   18265: extern "C"
                   18266: #endif
1.27      millert  18267: char $ac_func ();
                   18268: /* The GNU C library defines this for functions which it implements
                   18269:     to always fail with ENOSYS.  Some functions are actually named
                   18270:     something starting with __ and the normal name is an alias.  */
                   18271: #if defined __stub_$ac_func || defined __stub___$ac_func
                   18272: choke me
                   18273: #endif
                   18274:
1.23      millert  18275: int
                   18276: main ()
                   18277: {
1.27      millert  18278: return $ac_func ();
1.23      millert  18279:   ;
                   18280:   return 0;
                   18281: }
1.9       millert  18282: _ACEOF
1.23      millert  18283: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18284: if { (ac_try="$ac_link"
                   18285: case "(($ac_try" in
                   18286:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18287:   *) ac_try_echo=$ac_try;;
                   18288: esac
                   18289: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18290:   (eval "$ac_link") 2>conftest.er1
1.23      millert  18291:   ac_status=$?
1.25      millert  18292:   grep -v '^ *+' conftest.er1 >conftest.err
                   18293:   rm -f conftest.er1
                   18294:   cat conftest.err >&5
1.23      millert  18295:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18296:   (exit $ac_status); } && {
                   18297:         test -z "$ac_c_werror_flag" ||
                   18298:         test ! -s conftest.err
                   18299:        } && test -s conftest$ac_exeext &&
                   18300:        $as_test_x conftest$ac_exeext; then
                   18301:   eval "$as_ac_var=yes"
1.1       millert  18302: else
1.23      millert  18303:   echo "$as_me: failed program was:" >&5
                   18304: sed 's/^/| /' conftest.$ac_ext >&5
                   18305:
1.27      millert  18306:        eval "$as_ac_var=no"
1.25      millert  18307: fi
1.27      millert  18308:
                   18309: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18310:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  18311: fi
1.27      millert  18312: ac_res=`eval echo '${'$as_ac_var'}'`
                   18313:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   18314: echo "${ECHO_T}$ac_res" >&6; }
                   18315: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   18316:   cat >>confdefs.h <<_ACEOF
                   18317: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18318: _ACEOF
1.25      millert  18319:
1.27      millert  18320: else
1.37      millert  18321:   NEED_SNPRINTF=1
                   18322: fi
                   18323: done
1.1       millert  18324:
1.37      millert  18325: if test X"$ac_cv_type_struct_timespec" != X"no"; then
                   18326:     { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
                   18327: echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
                   18328: if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
1.9       millert  18329:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18330: else
1.9       millert  18331:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18332: /* confdefs.h.  */
                   18333: _ACEOF
                   18334: cat confdefs.h >>conftest.$ac_ext
                   18335: cat >>conftest.$ac_ext <<_ACEOF
                   18336: /* end confdefs.h.  */
1.37      millert  18337: $ac_includes_default
1.9       millert  18338: int
                   18339: main ()
                   18340: {
1.37      millert  18341: static struct stat ac_aggr;
                   18342: if (ac_aggr.st_mtim)
                   18343: return 0;
1.9       millert  18344:   ;
                   18345:   return 0;
                   18346: }
                   18347: _ACEOF
1.37      millert  18348: rm -f conftest.$ac_objext
                   18349: if { (ac_try="$ac_compile"
1.27      millert  18350: case "(($ac_try" in
                   18351:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18352:   *) ac_try_echo=$ac_try;;
                   18353: esac
                   18354: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  18355:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  18356:   ac_status=$?
1.25      millert  18357:   grep -v '^ *+' conftest.er1 >conftest.err
                   18358:   rm -f conftest.er1
                   18359:   cat conftest.err >&5
1.16      millert  18360:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18361:   (exit $ac_status); } && {
                   18362:         test -z "$ac_c_werror_flag" ||
                   18363:         test ! -s conftest.err
1.37      millert  18364:        } && test -s conftest.$ac_objext; then
                   18365:   ac_cv_member_struct_stat_st_mtim=yes
1.23      millert  18366: else
                   18367:   echo "$as_me: failed program was:" >&5
                   18368: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  18369:
1.37      millert  18370:        cat >conftest.$ac_ext <<_ACEOF
                   18371: /* confdefs.h.  */
                   18372: _ACEOF
                   18373: cat confdefs.h >>conftest.$ac_ext
                   18374: cat >>conftest.$ac_ext <<_ACEOF
                   18375: /* end confdefs.h.  */
1.27      millert  18376: $ac_includes_default
1.23      millert  18377: int
                   18378: main ()
                   18379: {
1.27      millert  18380: static struct stat ac_aggr;
                   18381: if (sizeof ac_aggr.st_mtim)
                   18382: return 0;
1.23      millert  18383:   ;
                   18384:   return 0;
                   18385: }
1.9       millert  18386: _ACEOF
1.27      millert  18387: rm -f conftest.$ac_objext
                   18388: if { (ac_try="$ac_compile"
                   18389: case "(($ac_try" in
                   18390:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18391:   *) ac_try_echo=$ac_try;;
                   18392: esac
                   18393: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18394:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  18395:   ac_status=$?
1.25      millert  18396:   grep -v '^ *+' conftest.er1 >conftest.err
                   18397:   rm -f conftest.er1
                   18398:   cat conftest.err >&5
1.16      millert  18399:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18400:   (exit $ac_status); } && {
                   18401:         test -z "$ac_c_werror_flag" ||
                   18402:         test ! -s conftest.err
                   18403:        } && test -s conftest.$ac_objext; then
                   18404:   ac_cv_member_struct_stat_st_mtim=yes
1.1       millert  18405: else
1.23      millert  18406:   echo "$as_me: failed program was:" >&5
1.16      millert  18407: sed 's/^/| /' conftest.$ac_ext >&5
                   18408:
1.27      millert  18409:        ac_cv_member_struct_stat_st_mtim=no
1.25      millert  18410: fi
                   18411:
1.27      millert  18412: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  18413: fi
                   18414:
1.27      millert  18415: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  18416: fi
1.27      millert  18417: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
                   18418: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
                   18419: if test $ac_cv_member_struct_stat_st_mtim = yes; then
                   18420:   cat >>confdefs.h <<\_ACEOF
                   18421: #define HAVE_ST_MTIM 1
                   18422: _ACEOF
1.25      millert  18423:
1.34      millert  18424:        { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
                   18425: echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
                   18426: if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
                   18427:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18428: else
                   18429:   cat >conftest.$ac_ext <<_ACEOF
                   18430: /* confdefs.h.  */
                   18431: _ACEOF
                   18432: cat confdefs.h >>conftest.$ac_ext
                   18433: cat >>conftest.$ac_ext <<_ACEOF
                   18434: /* end confdefs.h.  */
                   18435: $ac_includes_default
                   18436: int
                   18437: main ()
                   18438: {
                   18439: static struct stat ac_aggr;
                   18440: if (ac_aggr.st_mtim.st__tim)
                   18441: return 0;
                   18442:   ;
                   18443:   return 0;
                   18444: }
                   18445: _ACEOF
                   18446: rm -f conftest.$ac_objext
                   18447: if { (ac_try="$ac_compile"
                   18448: case "(($ac_try" in
                   18449:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18450:   *) ac_try_echo=$ac_try;;
                   18451: esac
                   18452: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18453:   (eval "$ac_compile") 2>conftest.er1
                   18454:   ac_status=$?
                   18455:   grep -v '^ *+' conftest.er1 >conftest.err
                   18456:   rm -f conftest.er1
                   18457:   cat conftest.err >&5
                   18458:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18459:   (exit $ac_status); } && {
                   18460:         test -z "$ac_c_werror_flag" ||
                   18461:         test ! -s conftest.err
                   18462:        } && test -s conftest.$ac_objext; then
                   18463:   ac_cv_member_struct_stat_st_mtim_st__tim=yes
                   18464: else
                   18465:   echo "$as_me: failed program was:" >&5
                   18466: sed 's/^/| /' conftest.$ac_ext >&5
                   18467:
                   18468:        cat >conftest.$ac_ext <<_ACEOF
                   18469: /* confdefs.h.  */
                   18470: _ACEOF
                   18471: cat confdefs.h >>conftest.$ac_ext
                   18472: cat >>conftest.$ac_ext <<_ACEOF
                   18473: /* end confdefs.h.  */
                   18474: $ac_includes_default
                   18475: int
                   18476: main ()
                   18477: {
                   18478: static struct stat ac_aggr;
                   18479: if (sizeof ac_aggr.st_mtim.st__tim)
                   18480: return 0;
                   18481:   ;
                   18482:   return 0;
                   18483: }
                   18484: _ACEOF
                   18485: rm -f conftest.$ac_objext
                   18486: if { (ac_try="$ac_compile"
                   18487: case "(($ac_try" in
                   18488:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18489:   *) ac_try_echo=$ac_try;;
                   18490: esac
                   18491: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18492:   (eval "$ac_compile") 2>conftest.er1
                   18493:   ac_status=$?
                   18494:   grep -v '^ *+' conftest.er1 >conftest.err
                   18495:   rm -f conftest.er1
                   18496:   cat conftest.err >&5
                   18497:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18498:   (exit $ac_status); } && {
                   18499:         test -z "$ac_c_werror_flag" ||
                   18500:         test ! -s conftest.err
                   18501:        } && test -s conftest.$ac_objext; then
                   18502:   ac_cv_member_struct_stat_st_mtim_st__tim=yes
                   18503: else
                   18504:   echo "$as_me: failed program was:" >&5
                   18505: sed 's/^/| /' conftest.$ac_ext >&5
                   18506:
                   18507:        ac_cv_member_struct_stat_st_mtim_st__tim=no
                   18508: fi
                   18509:
                   18510: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18511: fi
                   18512:
                   18513: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18514: fi
                   18515: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
                   18516: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
                   18517: if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
                   18518:   cat >>confdefs.h <<\_ACEOF
                   18519: #define HAVE_ST__TIM 1
                   18520: _ACEOF
                   18521:
                   18522: fi
                   18523:
1.27      millert  18524: else
                   18525:   { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
                   18526: echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
                   18527: if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
1.9       millert  18528:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18529: else
1.9       millert  18530:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18531: /* confdefs.h.  */
                   18532: _ACEOF
                   18533: cat confdefs.h >>conftest.$ac_ext
                   18534: cat >>conftest.$ac_ext <<_ACEOF
                   18535: /* end confdefs.h.  */
1.27      millert  18536: $ac_includes_default
1.23      millert  18537: int
                   18538: main ()
                   18539: {
1.27      millert  18540: static struct stat ac_aggr;
                   18541: if (ac_aggr.st_mtimespec)
                   18542: return 0;
1.23      millert  18543:   ;
                   18544:   return 0;
1.1       millert  18545: }
1.9       millert  18546: _ACEOF
1.27      millert  18547: rm -f conftest.$ac_objext
                   18548: if { (ac_try="$ac_compile"
                   18549: case "(($ac_try" in
                   18550:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18551:   *) ac_try_echo=$ac_try;;
                   18552: esac
                   18553: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18554:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  18555:   ac_status=$?
1.25      millert  18556:   grep -v '^ *+' conftest.er1 >conftest.err
                   18557:   rm -f conftest.er1
                   18558:   cat conftest.err >&5
1.16      millert  18559:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18560:   (exit $ac_status); } && {
                   18561:         test -z "$ac_c_werror_flag" ||
                   18562:         test ! -s conftest.err
                   18563:        } && test -s conftest.$ac_objext; then
                   18564:   ac_cv_member_struct_stat_st_mtimespec=yes
1.1       millert  18565: else
1.23      millert  18566:   echo "$as_me: failed program was:" >&5
1.16      millert  18567: sed 's/^/| /' conftest.$ac_ext >&5
                   18568:
1.27      millert  18569:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18570: /* confdefs.h.  */
                   18571: _ACEOF
                   18572: cat confdefs.h >>conftest.$ac_ext
                   18573: cat >>conftest.$ac_ext <<_ACEOF
                   18574: /* end confdefs.h.  */
1.27      millert  18575: $ac_includes_default
1.9       millert  18576: int
                   18577: main ()
                   18578: {
1.27      millert  18579: static struct stat ac_aggr;
                   18580: if (sizeof ac_aggr.st_mtimespec)
                   18581: return 0;
1.9       millert  18582:   ;
                   18583:   return 0;
                   18584: }
                   18585: _ACEOF
1.27      millert  18586: rm -f conftest.$ac_objext
                   18587: if { (ac_try="$ac_compile"
                   18588: case "(($ac_try" in
                   18589:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18590:   *) ac_try_echo=$ac_try;;
                   18591: esac
                   18592: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18593:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  18594:   ac_status=$?
1.25      millert  18595:   grep -v '^ *+' conftest.er1 >conftest.err
                   18596:   rm -f conftest.er1
                   18597:   cat conftest.err >&5
1.16      millert  18598:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18599:   (exit $ac_status); } && {
                   18600:         test -z "$ac_c_werror_flag" ||
                   18601:         test ! -s conftest.err
                   18602:        } && test -s conftest.$ac_objext; then
                   18603:   ac_cv_member_struct_stat_st_mtimespec=yes
1.16      millert  18604: else
                   18605:   echo "$as_me: failed program was:" >&5
                   18606: sed 's/^/| /' conftest.$ac_ext >&5
                   18607:
1.27      millert  18608:        ac_cv_member_struct_stat_st_mtimespec=no
                   18609: fi
                   18610:
                   18611: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18612: fi
                   18613:
                   18614: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18615: fi
                   18616: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
                   18617: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
                   18618: if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
                   18619:   cat >>confdefs.h <<\_ACEOF
                   18620: #define HAVE_ST_MTIMESPEC 1
                   18621: _ACEOF
                   18622:
1.16      millert  18623: fi
1.27      millert  18624:
1.16      millert  18625: fi
1.27      millert  18626:
                   18627:     { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
                   18628: echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
                   18629:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18630: /* confdefs.h.  */
                   18631: _ACEOF
                   18632: cat confdefs.h >>conftest.$ac_ext
                   18633: cat >>conftest.$ac_ext <<_ACEOF
                   18634: /* end confdefs.h.  */
1.27      millert  18635: #include <sys/types.h>
                   18636: #include <sys/time.h>
1.16      millert  18637: int
                   18638: main ()
                   18639: {
1.27      millert  18640: struct timespec ts1, ts2;
                   18641: ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
                   18642: #ifndef timespecsub
                   18643: #error missing timespecsub
                   18644: #endif
                   18645: timespecsub(&ts1, &ts2);
1.16      millert  18646:   ;
                   18647:   return 0;
                   18648: }
                   18649: _ACEOF
1.27      millert  18650: rm -f conftest.$ac_objext
                   18651: if { (ac_try="$ac_compile"
                   18652: case "(($ac_try" in
                   18653:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18654:   *) ac_try_echo=$ac_try;;
                   18655: esac
                   18656: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18657:   (eval "$ac_compile") 2>conftest.er1
1.16      millert  18658:   ac_status=$?
1.25      millert  18659:   grep -v '^ *+' conftest.er1 >conftest.err
                   18660:   rm -f conftest.er1
                   18661:   cat conftest.err >&5
1.16      millert  18662:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18663:   (exit $ac_status); } && {
                   18664:         test -z "$ac_c_werror_flag" ||
                   18665:         test ! -s conftest.err
                   18666:        } && test -s conftest.$ac_objext; then
                   18667:   cat >>confdefs.h <<\_ACEOF
                   18668: #define HAVE_TIMESPECSUB2 1
                   18669: _ACEOF
                   18670:
                   18671:     { echo "$as_me:$LINENO: result: yes" >&5
                   18672: echo "${ECHO_T}yes" >&6; }
1.1       millert  18673: else
1.9       millert  18674:   echo "$as_me: failed program was:" >&5
1.16      millert  18675: sed 's/^/| /' conftest.$ac_ext >&5
                   18676:
1.27      millert  18677:        { echo "$as_me:$LINENO: result: no" >&5
                   18678: echo "${ECHO_T}no" >&6; }
1.1       millert  18679: fi
1.27      millert  18680:
                   18681: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       millert  18682: fi
1.25      millert  18683: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18684: /* confdefs.h.  */
                   18685: _ACEOF
                   18686: cat confdefs.h >>conftest.$ac_ext
                   18687: cat >>conftest.$ac_ext <<_ACEOF
                   18688: /* end confdefs.h.  */
1.27      millert  18689: #include <sys/types.h>
                   18690: #include <$ac_header_dirent>
1.16      millert  18691: int
                   18692: main ()
                   18693: {
1.36      millert  18694: DIR *d; (void)dirfd(d);
1.9       millert  18695:   ;
                   18696:   return 0;
                   18697: }
                   18698: _ACEOF
                   18699: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18700: if { (ac_try="$ac_link"
                   18701: case "(($ac_try" in
                   18702:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18703:   *) ac_try_echo=$ac_try;;
                   18704: esac
                   18705: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18706:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18707:   ac_status=$?
1.25      millert  18708:   grep -v '^ *+' conftest.er1 >conftest.err
                   18709:   rm -f conftest.er1
                   18710:   cat conftest.err >&5
1.16      millert  18711:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18712:   (exit $ac_status); } && {
                   18713:         test -z "$ac_c_werror_flag" ||
                   18714:         test ! -s conftest.err
                   18715:        } && test -s conftest$ac_exeext &&
                   18716:        $as_test_x conftest$ac_exeext; then
                   18717:   cat >>confdefs.h <<\_ACEOF
                   18718: #define HAVE_DIRFD 1
                   18719: _ACEOF
                   18720:
1.9       millert  18721: else
                   18722:   echo "$as_me: failed program was:" >&5
1.16      millert  18723: sed 's/^/| /' conftest.$ac_ext >&5
                   18724:
1.27      millert  18725:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18726: /* confdefs.h.  */
                   18727: _ACEOF
                   18728: cat confdefs.h >>conftest.$ac_ext
                   18729: cat >>conftest.$ac_ext <<_ACEOF
                   18730: /* end confdefs.h.  */
1.27      millert  18731: #include <sys/types.h>
                   18732: #include <$ac_header_dirent>
1.16      millert  18733: int
                   18734: main ()
                   18735: {
1.27      millert  18736: DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
1.9       millert  18737:   ;
                   18738:   return 0;
                   18739: }
                   18740: _ACEOF
                   18741: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18742: if { (ac_try="$ac_link"
                   18743: case "(($ac_try" in
                   18744:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18745:   *) ac_try_echo=$ac_try;;
                   18746: esac
                   18747: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18748:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18749:   ac_status=$?
1.25      millert  18750:   grep -v '^ *+' conftest.er1 >conftest.err
                   18751:   rm -f conftest.er1
                   18752:   cat conftest.err >&5
1.16      millert  18753:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18754:   (exit $ac_status); } && {
                   18755:         test -z "$ac_c_werror_flag" ||
                   18756:         test ! -s conftest.err
                   18757:        } && test -s conftest$ac_exeext &&
                   18758:        $as_test_x conftest$ac_exeext; then
                   18759:   cat >>confdefs.h <<\_ACEOF
                   18760: #define HAVE_DD_FD 1
                   18761: _ACEOF
                   18762:
1.9       millert  18763: else
                   18764:   echo "$as_me: failed program was:" >&5
1.16      millert  18765: sed 's/^/| /' conftest.$ac_ext >&5
                   18766:
1.25      millert  18767:
1.9       millert  18768: fi
1.25      millert  18769:
1.27      millert  18770: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   18771:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  18772: fi
                   18773:
1.27      millert  18774: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   18775:       conftest$ac_exeext conftest.$ac_ext
                   18776: if test -n "$NEED_SNPRINTF"; then
                   18777:     case " $LIBOBJS " in
                   18778:   *" snprintf.$ac_objext "* ) ;;
                   18779:   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
                   18780:  ;;
                   18781: esac
1.1       millert  18782:
1.25      millert  18783: fi
1.27      millert  18784: { echo "$as_me:$LINENO: checking for socket" >&5
                   18785: echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
                   18786: if test "${ac_cv_func_socket+set}" = set; then
1.9       millert  18787:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18788: else
1.9       millert  18789:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18790: /* confdefs.h.  */
                   18791: _ACEOF
                   18792: cat confdefs.h >>conftest.$ac_ext
                   18793: cat >>conftest.$ac_ext <<_ACEOF
                   18794: /* end confdefs.h.  */
1.27      millert  18795: /* Define socket to an innocuous variant, in case <limits.h> declares socket.
1.25      millert  18796:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1.27      millert  18797: #define socket innocuous_socket
1.25      millert  18798:
1.1       millert  18799: /* System header to define __stub macros and hopefully few prototypes,
1.27      millert  18800:     which can conflict with char socket (); below.
1.16      millert  18801:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18802:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  18803:
1.16      millert  18804: #ifdef __STDC__
                   18805: # include <limits.h>
                   18806: #else
                   18807: # include <assert.h>
                   18808: #endif
1.25      millert  18809:
1.27      millert  18810: #undef socket
1.25      millert  18811:
1.27      millert  18812: /* Override any GCC internal prototype to avoid an error.
                   18813:    Use char because int might match the return type of a GCC
                   18814:    builtin and then its argument prototype would still apply.  */
1.9       millert  18815: #ifdef __cplusplus
                   18816: extern "C"
                   18817: #endif
1.27      millert  18818: char socket ();
1.1       millert  18819: /* The GNU C library defines this for functions which it implements
                   18820:     to always fail with ENOSYS.  Some functions are actually named
                   18821:     something starting with __ and the normal name is an alias.  */
1.27      millert  18822: #if defined __stub_socket || defined __stub___socket
1.1       millert  18823: choke me
                   18824: #endif
                   18825:
1.16      millert  18826: int
                   18827: main ()
                   18828: {
1.27      millert  18829: return socket ();
1.9       millert  18830:   ;
                   18831:   return 0;
                   18832: }
                   18833: _ACEOF
                   18834: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18835: if { (ac_try="$ac_link"
                   18836: case "(($ac_try" in
                   18837:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18838:   *) ac_try_echo=$ac_try;;
                   18839: esac
                   18840: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18841:   (eval "$ac_link") 2>conftest.er1
1.13      millert  18842:   ac_status=$?
1.25      millert  18843:   grep -v '^ *+' conftest.er1 >conftest.err
                   18844:   rm -f conftest.er1
                   18845:   cat conftest.err >&5
1.16      millert  18846:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18847:   (exit $ac_status); } && {
                   18848:         test -z "$ac_c_werror_flag" ||
                   18849:         test ! -s conftest.err
                   18850:        } && test -s conftest$ac_exeext &&
                   18851:        $as_test_x conftest$ac_exeext; then
                   18852:   ac_cv_func_socket=yes
1.13      millert  18853: else
                   18854:   echo "$as_me: failed program was:" >&5
1.16      millert  18855: sed 's/^/| /' conftest.$ac_ext >&5
                   18856:
1.27      millert  18857:        ac_cv_func_socket=no
1.13      millert  18858: fi
1.27      millert  18859:
                   18860: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18861:       conftest$ac_exeext conftest.$ac_ext
1.13      millert  18862: fi
1.27      millert  18863: { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
                   18864: echo "${ECHO_T}$ac_cv_func_socket" >&6; }
                   18865: if test $ac_cv_func_socket = yes; then
1.25      millert  18866:   :
                   18867: else
1.27      millert  18868:   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
                   18869: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
                   18870: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.13      millert  18871:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18872: else
1.25      millert  18873:   ac_check_lib_save_LIBS=$LIBS
                   18874: LIBS="-lsocket  $LIBS"
                   18875: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18876: /* confdefs.h.  */
                   18877: _ACEOF
                   18878: cat confdefs.h >>conftest.$ac_ext
                   18879: cat >>conftest.$ac_ext <<_ACEOF
                   18880: /* end confdefs.h.  */
1.25      millert  18881:
1.27      millert  18882: /* Override any GCC internal prototype to avoid an error.
                   18883:    Use char because int might match the return type of a GCC
                   18884:    builtin and then its argument prototype would still apply.  */
1.13      millert  18885: #ifdef __cplusplus
                   18886: extern "C"
                   18887: #endif
1.27      millert  18888: char socket ();
1.16      millert  18889: int
                   18890: main ()
                   18891: {
1.27      millert  18892: return socket ();
1.13      millert  18893:   ;
                   18894:   return 0;
                   18895: }
                   18896: _ACEOF
                   18897: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18898: if { (ac_try="$ac_link"
                   18899: case "(($ac_try" in
                   18900:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18901:   *) ac_try_echo=$ac_try;;
                   18902: esac
                   18903: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18904:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18905:   ac_status=$?
1.25      millert  18906:   grep -v '^ *+' conftest.er1 >conftest.err
                   18907:   rm -f conftest.er1
                   18908:   cat conftest.err >&5
1.16      millert  18909:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18910:   (exit $ac_status); } && {
                   18911:         test -z "$ac_c_werror_flag" ||
                   18912:         test ! -s conftest.err
                   18913:        } && test -s conftest$ac_exeext &&
                   18914:        $as_test_x conftest$ac_exeext; then
                   18915:   ac_cv_lib_socket_socket=yes
1.9       millert  18916: else
                   18917:   echo "$as_me: failed program was:" >&5
1.16      millert  18918: sed 's/^/| /' conftest.$ac_ext >&5
                   18919:
1.27      millert  18920:        ac_cv_lib_socket_socket=no
1.9       millert  18921: fi
1.27      millert  18922:
                   18923: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18924:       conftest$ac_exeext conftest.$ac_ext
                   18925: LIBS=$ac_check_lib_save_LIBS
1.9       millert  18926: fi
1.27      millert  18927: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
                   18928: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
                   18929: if test $ac_cv_lib_socket_socket = yes; then
1.25      millert  18930:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   18931: else
1.27      millert  18932:   { echo "$as_me:$LINENO: checking for socket in -linet" >&5
                   18933: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
                   18934: if test "${ac_cv_lib_inet_socket+set}" = set; then
1.9       millert  18935:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18936: else
1.25      millert  18937:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  18938: LIBS="-linet  $LIBS"
1.25      millert  18939: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18940: /* confdefs.h.  */
                   18941: _ACEOF
                   18942: cat confdefs.h >>conftest.$ac_ext
                   18943: cat >>conftest.$ac_ext <<_ACEOF
                   18944: /* end confdefs.h.  */
1.25      millert  18945:
1.27      millert  18946: /* Override any GCC internal prototype to avoid an error.
                   18947:    Use char because int might match the return type of a GCC
                   18948:    builtin and then its argument prototype would still apply.  */
1.9       millert  18949: #ifdef __cplusplus
                   18950: extern "C"
1.1       millert  18951: #endif
1.27      millert  18952: char socket ();
1.16      millert  18953: int
                   18954: main ()
                   18955: {
1.27      millert  18956: return socket ();
1.9       millert  18957:   ;
                   18958:   return 0;
                   18959: }
                   18960: _ACEOF
                   18961: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18962: if { (ac_try="$ac_link"
                   18963: case "(($ac_try" in
                   18964:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18965:   *) ac_try_echo=$ac_try;;
                   18966: esac
                   18967: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18968:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18969:   ac_status=$?
1.25      millert  18970:   grep -v '^ *+' conftest.er1 >conftest.err
                   18971:   rm -f conftest.er1
                   18972:   cat conftest.err >&5
1.16      millert  18973:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18974:   (exit $ac_status); } && {
                   18975:         test -z "$ac_c_werror_flag" ||
                   18976:         test ! -s conftest.err
                   18977:        } && test -s conftest$ac_exeext &&
                   18978:        $as_test_x conftest$ac_exeext; then
                   18979:   ac_cv_lib_inet_socket=yes
1.23      millert  18980: else
                   18981:   echo "$as_me: failed program was:" >&5
                   18982: sed 's/^/| /' conftest.$ac_ext >&5
                   18983:
1.27      millert  18984:        ac_cv_lib_inet_socket=no
1.23      millert  18985: fi
1.27      millert  18986:
                   18987: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18988:       conftest$ac_exeext conftest.$ac_ext
                   18989: LIBS=$ac_check_lib_save_LIBS
1.23      millert  18990: fi
1.27      millert  18991: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
                   18992: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
                   18993: if test $ac_cv_lib_inet_socket = yes; then
                   18994:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
1.23      millert  18995: else
1.27      millert  18996:   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
                   18997: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
                   18998: { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
                   18999: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
                   19000: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
1.23      millert  19001:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19002: else
                   19003:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  19004: LIBS="-lsocket -lnsl $LIBS"
1.23      millert  19005: cat >conftest.$ac_ext <<_ACEOF
                   19006: /* confdefs.h.  */
                   19007: _ACEOF
                   19008: cat confdefs.h >>conftest.$ac_ext
                   19009: cat >>conftest.$ac_ext <<_ACEOF
                   19010: /* end confdefs.h.  */
                   19011:
1.27      millert  19012: /* Override any GCC internal prototype to avoid an error.
                   19013:    Use char because int might match the return type of a GCC
                   19014:    builtin and then its argument prototype would still apply.  */
1.23      millert  19015: #ifdef __cplusplus
                   19016: extern "C"
                   19017: #endif
1.27      millert  19018: char socket ();
1.23      millert  19019: int
                   19020: main ()
                   19021: {
1.27      millert  19022: return socket ();
1.23      millert  19023:   ;
                   19024:   return 0;
                   19025: }
                   19026: _ACEOF
                   19027: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19028: if { (ac_try="$ac_link"
                   19029: case "(($ac_try" in
                   19030:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19031:   *) ac_try_echo=$ac_try;;
                   19032: esac
                   19033: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19034:   (eval "$ac_link") 2>conftest.er1
1.23      millert  19035:   ac_status=$?
1.25      millert  19036:   grep -v '^ *+' conftest.er1 >conftest.err
                   19037:   rm -f conftest.er1
                   19038:   cat conftest.err >&5
1.23      millert  19039:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19040:   (exit $ac_status); } && {
                   19041:         test -z "$ac_c_werror_flag" ||
                   19042:         test ! -s conftest.err
                   19043:        } && test -s conftest$ac_exeext &&
                   19044:        $as_test_x conftest$ac_exeext; then
                   19045:   ac_cv_lib_socket_socket_lnsl=yes
1.23      millert  19046: else
                   19047:   echo "$as_me: failed program was:" >&5
                   19048: sed 's/^/| /' conftest.$ac_ext >&5
                   19049:
1.27      millert  19050:        ac_cv_lib_socket_socket_lnsl=no
1.23      millert  19051: fi
1.27      millert  19052:
                   19053: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19054:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  19055: LIBS=$ac_check_lib_save_LIBS
                   19056: fi
1.27      millert  19057: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
                   19058: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
                   19059: if test $ac_cv_lib_socket_socket_lnsl = yes; then
                   19060:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.23      millert  19061: fi
1.16      millert  19062:
1.23      millert  19063: fi
                   19064:
                   19065: fi
1.1       millert  19066:
                   19067: fi
                   19068:
1.27      millert  19069: { echo "$as_me:$LINENO: checking for inet_addr" >&5
                   19070: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
                   19071: if test "${ac_cv_func_inet_addr+set}" = set; then
1.9       millert  19072:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19073: else
1.9       millert  19074:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19075: /* confdefs.h.  */
                   19076: _ACEOF
                   19077: cat confdefs.h >>conftest.$ac_ext
                   19078: cat >>conftest.$ac_ext <<_ACEOF
                   19079: /* end confdefs.h.  */
1.27      millert  19080: /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
                   19081:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   19082: #define inet_addr innocuous_inet_addr
                   19083:
                   19084: /* System header to define __stub macros and hopefully few prototypes,
                   19085:     which can conflict with char inet_addr (); below.
                   19086:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   19087:     <limits.h> exists even on freestanding compilers.  */
                   19088:
                   19089: #ifdef __STDC__
                   19090: # include <limits.h>
                   19091: #else
                   19092: # include <assert.h>
                   19093: #endif
                   19094:
                   19095: #undef inet_addr
                   19096:
                   19097: /* Override any GCC internal prototype to avoid an error.
                   19098:    Use char because int might match the return type of a GCC
                   19099:    builtin and then its argument prototype would still apply.  */
                   19100: #ifdef __cplusplus
                   19101: extern "C"
                   19102: #endif
                   19103: char inet_addr ();
                   19104: /* The GNU C library defines this for functions which it implements
                   19105:     to always fail with ENOSYS.  Some functions are actually named
                   19106:     something starting with __ and the normal name is an alias.  */
                   19107: #if defined __stub_inet_addr || defined __stub___inet_addr
                   19108: choke me
                   19109: #endif
                   19110:
1.16      millert  19111: int
                   19112: main ()
                   19113: {
1.27      millert  19114: return inet_addr ();
1.9       millert  19115:   ;
                   19116:   return 0;
                   19117: }
                   19118: _ACEOF
                   19119: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19120: if { (ac_try="$ac_link"
                   19121: case "(($ac_try" in
                   19122:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19123:   *) ac_try_echo=$ac_try;;
                   19124: esac
                   19125: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19126:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19127:   ac_status=$?
1.25      millert  19128:   grep -v '^ *+' conftest.er1 >conftest.err
                   19129:   rm -f conftest.er1
                   19130:   cat conftest.err >&5
1.16      millert  19131:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19132:   (exit $ac_status); } && {
                   19133:         test -z "$ac_c_werror_flag" ||
                   19134:         test ! -s conftest.err
                   19135:        } && test -s conftest$ac_exeext &&
                   19136:        $as_test_x conftest$ac_exeext; then
                   19137:   ac_cv_func_inet_addr=yes
1.9       millert  19138: else
                   19139:   echo "$as_me: failed program was:" >&5
1.16      millert  19140: sed 's/^/| /' conftest.$ac_ext >&5
                   19141:
1.27      millert  19142:        ac_cv_func_inet_addr=no
1.9       millert  19143: fi
1.27      millert  19144:
                   19145: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19146:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  19147: fi
1.27      millert  19148: { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
                   19149: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
                   19150: if test $ac_cv_func_inet_addr = yes; then
                   19151:   :
                   19152: else
                   19153:   { echo "$as_me:$LINENO: checking for __inet_addr" >&5
                   19154: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
                   19155: if test "${ac_cv_func___inet_addr+set}" = set; then
1.9       millert  19156:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19157: else
1.9       millert  19158:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19159: /* confdefs.h.  */
                   19160: _ACEOF
                   19161: cat confdefs.h >>conftest.$ac_ext
                   19162: cat >>conftest.$ac_ext <<_ACEOF
                   19163: /* end confdefs.h.  */
1.27      millert  19164: /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
                   19165:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   19166: #define __inet_addr innocuous___inet_addr
                   19167:
                   19168: /* System header to define __stub macros and hopefully few prototypes,
                   19169:     which can conflict with char __inet_addr (); below.
                   19170:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   19171:     <limits.h> exists even on freestanding compilers.  */
                   19172:
                   19173: #ifdef __STDC__
                   19174: # include <limits.h>
1.16      millert  19175: #else
1.27      millert  19176: # include <assert.h>
                   19177: #endif
                   19178:
                   19179: #undef __inet_addr
                   19180:
                   19181: /* Override any GCC internal prototype to avoid an error.
                   19182:    Use char because int might match the return type of a GCC
                   19183:    builtin and then its argument prototype would still apply.  */
                   19184: #ifdef __cplusplus
                   19185: extern "C"
                   19186: #endif
                   19187: char __inet_addr ();
                   19188: /* The GNU C library defines this for functions which it implements
                   19189:     to always fail with ENOSYS.  Some functions are actually named
                   19190:     something starting with __ and the normal name is an alias.  */
                   19191: #if defined __stub___inet_addr || defined __stub_____inet_addr
                   19192: choke me
1.1       millert  19193: #endif
                   19194:
1.16      millert  19195: int
                   19196: main ()
                   19197: {
1.27      millert  19198: return __inet_addr ();
1.9       millert  19199:   ;
                   19200:   return 0;
                   19201: }
                   19202: _ACEOF
                   19203: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19204: if { (ac_try="$ac_link"
                   19205: case "(($ac_try" in
                   19206:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19207:   *) ac_try_echo=$ac_try;;
                   19208: esac
                   19209: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19210:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19211:   ac_status=$?
1.25      millert  19212:   grep -v '^ *+' conftest.er1 >conftest.err
                   19213:   rm -f conftest.er1
                   19214:   cat conftest.err >&5
1.16      millert  19215:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19216:   (exit $ac_status); } && {
                   19217:         test -z "$ac_c_werror_flag" ||
                   19218:         test ! -s conftest.err
                   19219:        } && test -s conftest$ac_exeext &&
                   19220:        $as_test_x conftest$ac_exeext; then
                   19221:   ac_cv_func___inet_addr=yes
1.9       millert  19222: else
                   19223:   echo "$as_me: failed program was:" >&5
1.16      millert  19224: sed 's/^/| /' conftest.$ac_ext >&5
                   19225:
1.27      millert  19226:        ac_cv_func___inet_addr=no
1.9       millert  19227: fi
1.27      millert  19228:
                   19229: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19230:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  19231: fi
1.27      millert  19232: { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
                   19233: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
                   19234: if test $ac_cv_func___inet_addr = yes; then
                   19235:   :
1.25      millert  19236: else
1.27      millert  19237:   { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
                   19238: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
                   19239: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
1.25      millert  19240:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19241: else
1.27      millert  19242:   ac_check_lib_save_LIBS=$LIBS
                   19243: LIBS="-lnsl  $LIBS"
                   19244: cat >conftest.$ac_ext <<_ACEOF
1.25      millert  19245: /* confdefs.h.  */
                   19246: _ACEOF
                   19247: cat confdefs.h >>conftest.$ac_ext
                   19248: cat >>conftest.$ac_ext <<_ACEOF
                   19249: /* end confdefs.h.  */
1.27      millert  19250:
                   19251: /* Override any GCC internal prototype to avoid an error.
                   19252:    Use char because int might match the return type of a GCC
                   19253:    builtin and then its argument prototype would still apply.  */
                   19254: #ifdef __cplusplus
                   19255: extern "C"
1.25      millert  19256: #endif
1.27      millert  19257: char inet_addr ();
                   19258: int
                   19259: main ()
                   19260: {
                   19261: return inet_addr ();
                   19262:   ;
                   19263:   return 0;
                   19264: }
1.16      millert  19265: _ACEOF
1.27      millert  19266: rm -f conftest.$ac_objext conftest$ac_exeext
                   19267: if { (ac_try="$ac_link"
                   19268: case "(($ac_try" in
                   19269:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19270:   *) ac_try_echo=$ac_try;;
                   19271: esac
                   19272: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19273:   (eval "$ac_link") 2>conftest.er1
                   19274:   ac_status=$?
                   19275:   grep -v '^ *+' conftest.er1 >conftest.err
                   19276:   rm -f conftest.er1
                   19277:   cat conftest.err >&5
                   19278:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19279:   (exit $ac_status); } && {
                   19280:         test -z "$ac_c_werror_flag" ||
                   19281:         test ! -s conftest.err
                   19282:        } && test -s conftest$ac_exeext &&
                   19283:        $as_test_x conftest$ac_exeext; then
                   19284:   ac_cv_lib_nsl_inet_addr=yes
1.25      millert  19285: else
1.27      millert  19286:   echo "$as_me: failed program was:" >&5
                   19287: sed 's/^/| /' conftest.$ac_ext >&5
                   19288:
                   19289:        ac_cv_lib_nsl_inet_addr=no
1.1       millert  19290: fi
                   19291:
1.27      millert  19292: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19293:       conftest$ac_exeext conftest.$ac_ext
                   19294: LIBS=$ac_check_lib_save_LIBS
1.25      millert  19295: fi
1.27      millert  19296: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
                   19297: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
                   19298: if test $ac_cv_lib_nsl_inet_addr = yes; then
                   19299:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   19300: else
                   19301:   { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
                   19302: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
                   19303: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
1.9       millert  19304:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19305: else
1.27      millert  19306:   ac_check_lib_save_LIBS=$LIBS
                   19307: LIBS="-linet  $LIBS"
                   19308: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19309: /* confdefs.h.  */
                   19310: _ACEOF
                   19311: cat confdefs.h >>conftest.$ac_ext
                   19312: cat >>conftest.$ac_ext <<_ACEOF
                   19313: /* end confdefs.h.  */
1.25      millert  19314:
1.27      millert  19315: /* Override any GCC internal prototype to avoid an error.
                   19316:    Use char because int might match the return type of a GCC
                   19317:    builtin and then its argument prototype would still apply.  */
1.9       millert  19318: #ifdef __cplusplus
                   19319: extern "C"
                   19320: #endif
1.27      millert  19321: char inet_addr ();
1.16      millert  19322: int
                   19323: main ()
                   19324: {
1.27      millert  19325: return inet_addr ();
1.9       millert  19326:   ;
                   19327:   return 0;
                   19328: }
                   19329: _ACEOF
                   19330: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19331: if { (ac_try="$ac_link"
                   19332: case "(($ac_try" in
                   19333:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19334:   *) ac_try_echo=$ac_try;;
                   19335: esac
                   19336: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19337:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19338:   ac_status=$?
1.25      millert  19339:   grep -v '^ *+' conftest.er1 >conftest.err
                   19340:   rm -f conftest.er1
                   19341:   cat conftest.err >&5
1.16      millert  19342:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19343:   (exit $ac_status); } && {
                   19344:         test -z "$ac_c_werror_flag" ||
                   19345:         test ! -s conftest.err
                   19346:        } && test -s conftest$ac_exeext &&
                   19347:        $as_test_x conftest$ac_exeext; then
                   19348:   ac_cv_lib_inet_inet_addr=yes
1.9       millert  19349: else
                   19350:   echo "$as_me: failed program was:" >&5
1.16      millert  19351: sed 's/^/| /' conftest.$ac_ext >&5
                   19352:
1.27      millert  19353:        ac_cv_lib_inet_inet_addr=no
1.9       millert  19354: fi
1.27      millert  19355:
                   19356: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19357:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  19358: LIBS=$ac_check_lib_save_LIBS
1.9       millert  19359: fi
1.27      millert  19360: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
                   19361: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
                   19362: if test $ac_cv_lib_inet_inet_addr = yes; then
                   19363:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   19364: else
                   19365:   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
                   19366: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
                   19367: { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
                   19368: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
                   19369: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
1.23      millert  19370:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19371: else
1.27      millert  19372:   ac_check_lib_save_LIBS=$LIBS
                   19373: LIBS="-lsocket -lnsl $LIBS"
                   19374: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  19375: /* confdefs.h.  */
                   19376: _ACEOF
                   19377: cat confdefs.h >>conftest.$ac_ext
                   19378: cat >>conftest.$ac_ext <<_ACEOF
                   19379: /* end confdefs.h.  */
                   19380:
1.27      millert  19381: /* Override any GCC internal prototype to avoid an error.
                   19382:    Use char because int might match the return type of a GCC
                   19383:    builtin and then its argument prototype would still apply.  */
                   19384: #ifdef __cplusplus
                   19385: extern "C"
                   19386: #endif
                   19387: char inet_addr ();
1.25      millert  19388: int
                   19389: main ()
                   19390: {
1.27      millert  19391: return inet_addr ();
                   19392:   ;
                   19393:   return 0;
1.25      millert  19394: }
1.23      millert  19395: _ACEOF
1.27      millert  19396: rm -f conftest.$ac_objext conftest$ac_exeext
                   19397: if { (ac_try="$ac_link"
                   19398: case "(($ac_try" in
                   19399:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19400:   *) ac_try_echo=$ac_try;;
                   19401: esac
                   19402: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19403:   (eval "$ac_link") 2>conftest.er1
1.23      millert  19404:   ac_status=$?
1.27      millert  19405:   grep -v '^ *+' conftest.er1 >conftest.err
                   19406:   rm -f conftest.er1
                   19407:   cat conftest.err >&5
1.23      millert  19408:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19409:   (exit $ac_status); } && {
                   19410:         test -z "$ac_c_werror_flag" ||
                   19411:         test ! -s conftest.err
                   19412:        } && test -s conftest$ac_exeext &&
                   19413:        $as_test_x conftest$ac_exeext; then
                   19414:   ac_cv_lib_socket_inet_addr_lnsl=yes
1.23      millert  19415: else
1.27      millert  19416:   echo "$as_me: failed program was:" >&5
1.23      millert  19417: sed 's/^/| /' conftest.$ac_ext >&5
                   19418:
1.27      millert  19419:        ac_cv_lib_socket_inet_addr_lnsl=no
1.23      millert  19420: fi
1.27      millert  19421:
                   19422: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19423:       conftest$ac_exeext conftest.$ac_ext
                   19424: LIBS=$ac_check_lib_save_LIBS
1.23      millert  19425: fi
1.27      millert  19426: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
                   19427: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
                   19428: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
                   19429:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.23      millert  19430: fi
1.25      millert  19431:
1.27      millert  19432: fi
1.16      millert  19433:
1.27      millert  19434: fi
1.25      millert  19435:
1.23      millert  19436: fi
1.16      millert  19437:
1.9       millert  19438: fi
1.23      millert  19439:
1.27      millert  19440: { echo "$as_me:$LINENO: checking for syslog" >&5
                   19441: echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
                   19442: if test "${ac_cv_func_syslog+set}" = set; then
1.9       millert  19443:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19444: else
1.9       millert  19445:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19446: /* confdefs.h.  */
                   19447: _ACEOF
                   19448: cat confdefs.h >>conftest.$ac_ext
                   19449: cat >>conftest.$ac_ext <<_ACEOF
                   19450: /* end confdefs.h.  */
1.27      millert  19451: /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
1.25      millert  19452:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1.27      millert  19453: #define syslog innocuous_syslog
1.25      millert  19454:
1.16      millert  19455: /* System header to define __stub macros and hopefully few prototypes,
1.27      millert  19456:     which can conflict with char syslog (); below.
1.16      millert  19457:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   19458:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  19459:
1.16      millert  19460: #ifdef __STDC__
                   19461: # include <limits.h>
                   19462: #else
                   19463: # include <assert.h>
                   19464: #endif
1.25      millert  19465:
1.27      millert  19466: #undef syslog
1.25      millert  19467:
1.27      millert  19468: /* Override any GCC internal prototype to avoid an error.
                   19469:    Use char because int might match the return type of a GCC
                   19470:    builtin and then its argument prototype would still apply.  */
1.9       millert  19471: #ifdef __cplusplus
                   19472: extern "C"
                   19473: #endif
1.27      millert  19474: char syslog ();
1.1       millert  19475: /* The GNU C library defines this for functions which it implements
                   19476:     to always fail with ENOSYS.  Some functions are actually named
                   19477:     something starting with __ and the normal name is an alias.  */
1.27      millert  19478: #if defined __stub_syslog || defined __stub___syslog
1.1       millert  19479: choke me
                   19480: #endif
                   19481:
1.16      millert  19482: int
                   19483: main ()
                   19484: {
1.27      millert  19485: return syslog ();
1.9       millert  19486:   ;
                   19487:   return 0;
                   19488: }
                   19489: _ACEOF
                   19490: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19491: if { (ac_try="$ac_link"
                   19492: case "(($ac_try" in
                   19493:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19494:   *) ac_try_echo=$ac_try;;
                   19495: esac
                   19496: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19497:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19498:   ac_status=$?
1.25      millert  19499:   grep -v '^ *+' conftest.er1 >conftest.err
                   19500:   rm -f conftest.er1
                   19501:   cat conftest.err >&5
1.16      millert  19502:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19503:   (exit $ac_status); } && {
                   19504:         test -z "$ac_c_werror_flag" ||
                   19505:         test ! -s conftest.err
                   19506:        } && test -s conftest$ac_exeext &&
                   19507:        $as_test_x conftest$ac_exeext; then
                   19508:   ac_cv_func_syslog=yes
1.9       millert  19509: else
                   19510:   echo "$as_me: failed program was:" >&5
1.16      millert  19511: sed 's/^/| /' conftest.$ac_ext >&5
                   19512:
1.27      millert  19513:        ac_cv_func_syslog=no
1.9       millert  19514: fi
1.27      millert  19515:
                   19516: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19517:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  19518: fi
1.27      millert  19519: { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
                   19520: echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
                   19521: if test $ac_cv_func_syslog = yes; then
                   19522:   :
1.23      millert  19523: else
1.27      millert  19524:   { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
                   19525: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
                   19526: if test "${ac_cv_lib_socket_syslog+set}" = set; then
1.9       millert  19527:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19528: else
1.27      millert  19529:   ac_check_lib_save_LIBS=$LIBS
                   19530: LIBS="-lsocket  $LIBS"
                   19531: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19532: /* confdefs.h.  */
                   19533: _ACEOF
                   19534: cat confdefs.h >>conftest.$ac_ext
                   19535: cat >>conftest.$ac_ext <<_ACEOF
                   19536: /* end confdefs.h.  */
1.25      millert  19537:
1.27      millert  19538: /* Override any GCC internal prototype to avoid an error.
                   19539:    Use char because int might match the return type of a GCC
                   19540:    builtin and then its argument prototype would still apply.  */
                   19541: #ifdef __cplusplus
                   19542: extern "C"
                   19543: #endif
                   19544: char syslog ();
1.25      millert  19545: int
                   19546: main ()
1.16      millert  19547: {
1.27      millert  19548: return syslog ();
1.25      millert  19549:   ;
                   19550:   return 0;
1.9       millert  19551: }
                   19552: _ACEOF
1.25      millert  19553: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19554: if { (ac_try="$ac_link"
                   19555: case "(($ac_try" in
                   19556:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19557:   *) ac_try_echo=$ac_try;;
                   19558: esac
                   19559: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19560:   (eval "$ac_link") 2>conftest.er1
1.25      millert  19561:   ac_status=$?
                   19562:   grep -v '^ *+' conftest.er1 >conftest.err
                   19563:   rm -f conftest.er1
                   19564:   cat conftest.err >&5
                   19565:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19566:   (exit $ac_status); } && {
                   19567:         test -z "$ac_c_werror_flag" ||
                   19568:         test ! -s conftest.err
                   19569:        } && test -s conftest$ac_exeext &&
                   19570:        $as_test_x conftest$ac_exeext; then
                   19571:   ac_cv_lib_socket_syslog=yes
1.25      millert  19572: else
                   19573:   echo "$as_me: failed program was:" >&5
                   19574: sed 's/^/| /' conftest.$ac_ext >&5
                   19575:
1.27      millert  19576:        ac_cv_lib_socket_syslog=no
1.25      millert  19577: fi
1.27      millert  19578:
                   19579: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19580:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  19581: LIBS=$ac_check_lib_save_LIBS
1.25      millert  19582: fi
1.27      millert  19583: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
                   19584: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
                   19585: if test $ac_cv_lib_socket_syslog = yes; then
                   19586:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   19587: else
                   19588:   { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
                   19589: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
                   19590: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
                   19591:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19592: else
                   19593:   ac_check_lib_save_LIBS=$LIBS
                   19594: LIBS="-lnsl  $LIBS"
                   19595: cat >conftest.$ac_ext <<_ACEOF
                   19596: /* confdefs.h.  */
                   19597: _ACEOF
                   19598: cat confdefs.h >>conftest.$ac_ext
                   19599: cat >>conftest.$ac_ext <<_ACEOF
                   19600: /* end confdefs.h.  */
1.25      millert  19601:
1.27      millert  19602: /* Override any GCC internal prototype to avoid an error.
                   19603:    Use char because int might match the return type of a GCC
                   19604:    builtin and then its argument prototype would still apply.  */
                   19605: #ifdef __cplusplus
                   19606: extern "C"
                   19607: #endif
                   19608: char syslog ();
                   19609: int
                   19610: main ()
                   19611: {
                   19612: return syslog ();
                   19613:   ;
                   19614:   return 0;
                   19615: }
1.25      millert  19616: _ACEOF
1.27      millert  19617: rm -f conftest.$ac_objext conftest$ac_exeext
                   19618: if { (ac_try="$ac_link"
                   19619: case "(($ac_try" in
                   19620:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19621:   *) ac_try_echo=$ac_try;;
1.25      millert  19622: esac
1.27      millert  19623: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19624:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19625:   ac_status=$?
1.25      millert  19626:   grep -v '^ *+' conftest.er1 >conftest.err
                   19627:   rm -f conftest.er1
                   19628:   cat conftest.err >&5
1.16      millert  19629:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19630:   (exit $ac_status); } && {
                   19631:         test -z "$ac_c_werror_flag" ||
                   19632:         test ! -s conftest.err
                   19633:        } && test -s conftest$ac_exeext &&
                   19634:        $as_test_x conftest$ac_exeext; then
                   19635:   ac_cv_lib_nsl_syslog=yes
1.9       millert  19636: else
                   19637:   echo "$as_me: failed program was:" >&5
1.16      millert  19638: sed 's/^/| /' conftest.$ac_ext >&5
                   19639:
1.27      millert  19640:        ac_cv_lib_nsl_syslog=no
                   19641: fi
1.25      millert  19642:
1.27      millert  19643: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19644:       conftest$ac_exeext conftest.$ac_ext
                   19645: LIBS=$ac_check_lib_save_LIBS
                   19646: fi
                   19647: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
                   19648: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
                   19649: if test $ac_cv_lib_nsl_syslog = yes; then
                   19650:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   19651: else
                   19652:   { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
                   19653: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
                   19654: if test "${ac_cv_lib_inet_syslog+set}" = set; then
1.9       millert  19655:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19656: else
1.27      millert  19657:   ac_check_lib_save_LIBS=$LIBS
                   19658: LIBS="-linet  $LIBS"
1.25      millert  19659: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  19660: /* confdefs.h.  */
                   19661: _ACEOF
                   19662: cat confdefs.h >>conftest.$ac_ext
                   19663: cat >>conftest.$ac_ext <<_ACEOF
                   19664: /* end confdefs.h.  */
1.27      millert  19665:
                   19666: /* Override any GCC internal prototype to avoid an error.
                   19667:    Use char because int might match the return type of a GCC
                   19668:    builtin and then its argument prototype would still apply.  */
                   19669: #ifdef __cplusplus
                   19670: extern "C"
                   19671: #endif
                   19672: char syslog ();
                   19673: int
                   19674: main ()
                   19675: {
                   19676: return syslog ();
                   19677:   ;
                   19678:   return 0;
                   19679: }
1.23      millert  19680: _ACEOF
1.27      millert  19681: rm -f conftest.$ac_objext conftest$ac_exeext
                   19682: if { (ac_try="$ac_link"
                   19683: case "(($ac_try" in
                   19684:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19685:   *) ac_try_echo=$ac_try;;
                   19686: esac
                   19687: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19688:   (eval "$ac_link") 2>conftest.er1
1.23      millert  19689:   ac_status=$?
1.25      millert  19690:   grep -v '^ *+' conftest.er1 >conftest.err
                   19691:   rm -f conftest.er1
                   19692:   cat conftest.err >&5
1.23      millert  19693:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19694:   (exit $ac_status); } && {
                   19695:         test -z "$ac_c_werror_flag" ||
                   19696:         test ! -s conftest.err
                   19697:        } && test -s conftest$ac_exeext &&
                   19698:        $as_test_x conftest$ac_exeext; then
                   19699:   ac_cv_lib_inet_syslog=yes
1.1       millert  19700: else
1.23      millert  19701:   echo "$as_me: failed program was:" >&5
                   19702: sed 's/^/| /' conftest.$ac_ext >&5
                   19703:
1.27      millert  19704:        ac_cv_lib_inet_syslog=no
                   19705: fi
                   19706:
                   19707: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19708:       conftest$ac_exeext conftest.$ac_ext
                   19709: LIBS=$ac_check_lib_save_LIBS
                   19710: fi
                   19711: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
                   19712: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
                   19713: if test $ac_cv_lib_inet_syslog = yes; then
                   19714:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   19715: fi
                   19716:
                   19717: fi
                   19718:
                   19719: fi
                   19720:
1.25      millert  19721: fi
                   19722:
1.37      millert  19723:
                   19724: for ac_func in getprogname
                   19725: do
                   19726: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   19727: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   19728: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   19729: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.27      millert  19730:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19731: else
                   19732:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19733: /* confdefs.h.  */
                   19734: _ACEOF
                   19735: cat confdefs.h >>conftest.$ac_ext
                   19736: cat >>conftest.$ac_ext <<_ACEOF
                   19737: /* end confdefs.h.  */
1.37      millert  19738: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   19739:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   19740: #define $ac_func innocuous_$ac_func
                   19741:
                   19742: /* System header to define __stub macros and hopefully few prototypes,
                   19743:     which can conflict with char $ac_func (); below.
                   19744:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   19745:     <limits.h> exists even on freestanding compilers.  */
                   19746:
                   19747: #ifdef __STDC__
                   19748: # include <limits.h>
                   19749: #else
                   19750: # include <assert.h>
                   19751: #endif
                   19752:
                   19753: #undef $ac_func
                   19754:
                   19755: /* Override any GCC internal prototype to avoid an error.
                   19756:    Use char because int might match the return type of a GCC
                   19757:    builtin and then its argument prototype would still apply.  */
                   19758: #ifdef __cplusplus
                   19759: extern "C"
                   19760: #endif
                   19761: char $ac_func ();
                   19762: /* The GNU C library defines this for functions which it implements
                   19763:     to always fail with ENOSYS.  Some functions are actually named
                   19764:     something starting with __ and the normal name is an alias.  */
                   19765: #if defined __stub_$ac_func || defined __stub___$ac_func
                   19766: choke me
                   19767: #endif
                   19768:
1.27      millert  19769: int
                   19770: main ()
                   19771: {
1.37      millert  19772: return $ac_func ();
1.27      millert  19773:   ;
                   19774:   return 0;
                   19775: }
1.9       millert  19776: _ACEOF
1.27      millert  19777: rm -f conftest.$ac_objext conftest$ac_exeext
                   19778: if { (ac_try="$ac_link"
                   19779: case "(($ac_try" in
                   19780:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19781:   *) ac_try_echo=$ac_try;;
                   19782: esac
                   19783: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19784:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19785:   ac_status=$?
1.25      millert  19786:   grep -v '^ *+' conftest.er1 >conftest.err
                   19787:   rm -f conftest.er1
                   19788:   cat conftest.err >&5
1.16      millert  19789:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19790:   (exit $ac_status); } && {
                   19791:         test -z "$ac_c_werror_flag" ||
                   19792:         test ! -s conftest.err
                   19793:        } && test -s conftest$ac_exeext &&
                   19794:        $as_test_x conftest$ac_exeext; then
1.37      millert  19795:   eval "$as_ac_var=yes"
1.1       millert  19796: else
1.23      millert  19797:   echo "$as_me: failed program was:" >&5
1.16      millert  19798: sed 's/^/| /' conftest.$ac_ext >&5
                   19799:
1.37      millert  19800:        eval "$as_ac_var=no"
1.25      millert  19801: fi
                   19802:
1.27      millert  19803: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19804:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  19805: fi
1.37      millert  19806: ac_res=`eval echo '${'$as_ac_var'}'`
                   19807:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   19808: echo "${ECHO_T}$ac_res" >&6; }
                   19809: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   19810:   cat >>confdefs.h <<_ACEOF
                   19811: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.27      millert  19812: _ACEOF
1.25      millert  19813:
1.37      millert  19814: else
1.1       millert  19815:
1.37      millert  19816:     { echo "$as_me:$LINENO: checking for __progname" >&5
                   19817: echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
                   19818:     if test "${sudo_cv___progname+set}" = set; then
1.9       millert  19819:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19820: else
1.37      millert  19821:
                   19822:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19823: /* confdefs.h.  */
                   19824: _ACEOF
                   19825: cat confdefs.h >>conftest.$ac_ext
                   19826: cat >>conftest.$ac_ext <<_ACEOF
                   19827: /* end confdefs.h.  */
1.25      millert  19828:
1.23      millert  19829: int
                   19830: main ()
                   19831: {
1.37      millert  19832: extern char *__progname; (void)puts(__progname);
1.23      millert  19833:   ;
                   19834:   return 0;
                   19835: }
1.9       millert  19836: _ACEOF
1.25      millert  19837: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19838: if { (ac_try="$ac_link"
                   19839: case "(($ac_try" in
                   19840:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19841:   *) ac_try_echo=$ac_try;;
                   19842: esac
                   19843: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19844:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19845:   ac_status=$?
1.25      millert  19846:   grep -v '^ *+' conftest.er1 >conftest.err
                   19847:   rm -f conftest.er1
                   19848:   cat conftest.err >&5
1.16      millert  19849:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19850:   (exit $ac_status); } && {
                   19851:         test -z "$ac_c_werror_flag" ||
                   19852:         test ! -s conftest.err
                   19853:        } && test -s conftest$ac_exeext &&
                   19854:        $as_test_x conftest$ac_exeext; then
1.37      millert  19855:   sudo_cv___progname=yes
1.1       millert  19856: else
1.23      millert  19857:   echo "$as_me: failed program was:" >&5
1.16      millert  19858: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  19859:
1.37      millert  19860:        sudo_cv___progname=no
1.25      millert  19861: fi
1.27      millert  19862:
                   19863: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19864:       conftest$ac_exeext conftest.$ac_ext
                   19865: fi
1.27      millert  19866:
1.37      millert  19867:     if test "$sudo_cv___progname" = "yes"; then
                   19868:        cat >>confdefs.h <<\_ACEOF
                   19869: #define HAVE___PROGNAME 1
1.27      millert  19870: _ACEOF
                   19871:
1.37      millert  19872:     else
                   19873:        case " $LIBOBJS " in
                   19874:   *" getprogname.$ac_objext "* ) ;;
                   19875:   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
                   19876:  ;;
                   19877: esac
1.27      millert  19878:
1.37      millert  19879:     fi
                   19880:     { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
                   19881: echo "${ECHO_T}$sudo_cv___progname" >&6; }
1.27      millert  19882:
1.37      millert  19883: fi
                   19884: done
1.27      millert  19885:
                   19886:
1.39      millert  19887: netsvc_conf='/etc/netsvc.conf'
                   19888: nsswitch_conf='/etc/nsswitch.conf'
                   19889: if test ${with_netsvc-"no"} != "no"; then
                   19890:     cat >>confdefs.h <<EOF
                   19891: #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
                   19892: EOF
                   19893:
                   19894:     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
                   19895: elif test ${with_nsswitch-"yes"} != "no"; then
                   19896:     cat >>confdefs.h <<EOF
                   19897: #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
                   19898: EOF
                   19899:
                   19900:     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
                   19901: fi
                   19902:
1.27      millert  19903:
1.37      millert  19904: if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
                   19905:     for auth in $AUTH_EXCL_DEF; do
                   19906:        case $auth in
                   19907:            AIX_AUTH)   with_aixauth=maybe;;
                   19908:            BSD_AUTH)   with_bsdauth=maybe;;
                   19909:            PAM)        with_pam=maybe;;
                   19910:            SIA)        CHECKSIA=true;;
                   19911:        esac
                   19912:     done
1.27      millert  19913: fi
1.25      millert  19914:
1.37      millert  19915: if test ${with_pam-"no"} != "no"; then
1.47      millert  19916:                 case "$LIBS" in
                   19917:        *-ldl*) SUDO_LIBS="${SUDO_LIBS} -lpam"
                   19918:                ;;
                   19919:        *)      { echo "$as_me:$LINENO: checking for main in -ldl" >&5
1.37      millert  19920: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
                   19921: if test "${ac_cv_lib_dl_main+set}" = set; then
1.25      millert  19922:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19923: else
1.37      millert  19924:   ac_check_lib_save_LIBS=$LIBS
                   19925: LIBS="-ldl  $LIBS"
                   19926: cat >conftest.$ac_ext <<_ACEOF
1.27      millert  19927: /* confdefs.h.  */
                   19928: _ACEOF
                   19929: cat confdefs.h >>conftest.$ac_ext
                   19930: cat >>conftest.$ac_ext <<_ACEOF
                   19931: /* end confdefs.h.  */
1.25      millert  19932:
1.27      millert  19933:
1.9       millert  19934: int
                   19935: main ()
                   19936: {
1.37      millert  19937: return main ();
1.9       millert  19938:   ;
                   19939:   return 0;
                   19940: }
                   19941: _ACEOF
1.25      millert  19942: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19943: if { (ac_try="$ac_link"
                   19944: case "(($ac_try" in
                   19945:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19946:   *) ac_try_echo=$ac_try;;
                   19947: esac
                   19948: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19949:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19950:   ac_status=$?
1.25      millert  19951:   grep -v '^ *+' conftest.er1 >conftest.err
                   19952:   rm -f conftest.er1
                   19953:   cat conftest.err >&5
1.16      millert  19954:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19955:   (exit $ac_status); } && {
                   19956:         test -z "$ac_c_werror_flag" ||
                   19957:         test ! -s conftest.err
                   19958:        } && test -s conftest$ac_exeext &&
                   19959:        $as_test_x conftest$ac_exeext; then
1.37      millert  19960:   ac_cv_lib_dl_main=yes
1.9       millert  19961: else
                   19962:   echo "$as_me: failed program was:" >&5
1.16      millert  19963: sed 's/^/| /' conftest.$ac_ext >&5
                   19964:
1.37      millert  19965:        ac_cv_lib_dl_main=no
1.23      millert  19966: fi
1.27      millert  19967:
                   19968: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19969:       conftest$ac_exeext conftest.$ac_ext
1.37      millert  19970: LIBS=$ac_check_lib_save_LIBS
                   19971: fi
                   19972: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
                   19973: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
                   19974: if test $ac_cv_lib_dl_main = yes; then
                   19975:   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
                   19976: else
                   19977:   SUDO_LIBS="${SUDO_LIBS} -lpam"
1.9       millert  19978: fi
1.27      millert  19979:
1.47      millert  19980:                ac_cv_lib_dl=ac_cv_lib_dl_main
                   19981:                ;;
                   19982:     esac
1.27      millert  19983:
1.1       millert  19984:
1.16      millert  19985:
1.37      millert  19986: for ac_header in security/pam_appl.h pam/pam_appl.h
                   19987: do
                   19988: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   19989: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   19990:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   19991: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   19992: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.27      millert  19993:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.37      millert  19994: fi
                   19995: ac_res=`eval echo '${'$as_ac_Header'}'`
                   19996:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   19997: echo "${ECHO_T}$ac_res" >&6; }
1.27      millert  19998: else
1.37      millert  19999:   # Is the header compilable?
                   20000: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   20001: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   20002: cat >conftest.$ac_ext <<_ACEOF
1.24      millert  20003: /* confdefs.h.  */
                   20004: _ACEOF
                   20005: cat confdefs.h >>conftest.$ac_ext
                   20006: cat >>conftest.$ac_ext <<_ACEOF
                   20007: /* end confdefs.h.  */
1.27      millert  20008: $ac_includes_default
1.37      millert  20009: #include <$ac_header>
1.24      millert  20010: _ACEOF
1.37      millert  20011: rm -f conftest.$ac_objext
                   20012: if { (ac_try="$ac_compile"
1.27      millert  20013: case "(($ac_try" in
                   20014:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20015:   *) ac_try_echo=$ac_try;;
                   20016: esac
                   20017: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  20018:   (eval "$ac_compile") 2>conftest.er1
1.24      millert  20019:   ac_status=$?
1.37      millert  20020:   grep -v '^ *+' conftest.er1 >conftest.err
                   20021:   rm -f conftest.er1
                   20022:   cat conftest.err >&5
1.24      millert  20023:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  20024:   (exit $ac_status); } && {
                   20025:         test -z "$ac_c_werror_flag" ||
                   20026:         test ! -s conftest.err
                   20027:        } && test -s conftest.$ac_objext; then
                   20028:   ac_header_compiler=yes
1.27      millert  20029: else
1.37      millert  20030:   echo "$as_me: failed program was:" >&5
1.27      millert  20031: sed 's/^/| /' conftest.$ac_ext >&5
                   20032:
1.37      millert  20033:        ac_header_compiler=no
1.27      millert  20034: fi
                   20035:
1.37      millert  20036: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20037: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   20038: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.27      millert  20039:
1.37      millert  20040: # Is the header present?
                   20041: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   20042: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   20043: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20044: /* confdefs.h.  */
                   20045: _ACEOF
                   20046: cat confdefs.h >>conftest.$ac_ext
                   20047: cat >>conftest.$ac_ext <<_ACEOF
                   20048: /* end confdefs.h.  */
1.37      millert  20049: #include <$ac_header>
1.9       millert  20050: _ACEOF
1.37      millert  20051: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27      millert  20052: case "(($ac_try" in
                   20053:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20054:   *) ac_try_echo=$ac_try;;
                   20055: esac
                   20056: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  20057:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  20058:   ac_status=$?
1.25      millert  20059:   grep -v '^ *+' conftest.er1 >conftest.err
                   20060:   rm -f conftest.er1
                   20061:   cat conftest.err >&5
1.16      millert  20062:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  20063:   (exit $ac_status); } >/dev/null && {
                   20064:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27      millert  20065:         test ! -s conftest.err
1.37      millert  20066:        }; then
                   20067:   ac_header_preproc=yes
1.25      millert  20068: else
                   20069:   echo "$as_me: failed program was:" >&5
                   20070: sed 's/^/| /' conftest.$ac_ext >&5
                   20071:
1.37      millert  20072:   ac_header_preproc=no
1.25      millert  20073: fi
1.27      millert  20074:
1.37      millert  20075: rm -f conftest.err conftest.$ac_ext
                   20076: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   20077: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.23      millert  20078:
1.37      millert  20079: # So?  What about this header?
                   20080: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   20081:   yes:no: )
                   20082:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   20083: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   20084:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   20085: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   20086:     ac_header_preproc=yes
                   20087:     ;;
                   20088:   no:yes:* )
                   20089:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   20090: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   20091:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   20092: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   20093:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   20094: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   20095:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   20096: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   20097:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   20098: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   20099:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   20100: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  20101:     ( cat <<\_ASBOX
                   20102: ## --------------------------------------- ##
                   20103: ## Report this to http://www.sudo.ws/bugs/ ##
                   20104: ## --------------------------------------- ##
                   20105: _ASBOX
                   20106:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.37      millert  20107:     ;;
                   20108: esac
                   20109: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   20110: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   20111: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   20112:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.9       millert  20113: else
1.37      millert  20114:   eval "$as_ac_Header=\$ac_header_preproc"
                   20115: fi
                   20116: ac_res=`eval echo '${'$as_ac_Header'}'`
                   20117:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   20118: echo "${ECHO_T}$ac_res" >&6; }
                   20119:
                   20120: fi
                   20121: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   20122:   cat >>confdefs.h <<_ACEOF
                   20123: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   20124: _ACEOF
                   20125:  with_pam=yes; break
                   20126: fi
                   20127:
                   20128: done
1.16      millert  20129:
1.37      millert  20130:     if test "$with_pam" = "yes"; then
                   20131:        cat >>confdefs.h <<\_ACEOF
                   20132: #define HAVE_PAM 1
                   20133: _ACEOF
                   20134:
                   20135:        AUTH_OBJS="$AUTH_OBJS pam.o";
                   20136:        AUTH_EXCL=PAM
                   20137:        { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
                   20138: echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
                   20139:        # Check whether --enable-pam_session was given.
                   20140: if test "${enable_pam_session+set}" = set; then
                   20141:   enableval=$enable_pam_session;  case "$enableval" in
                   20142:                yes)    { echo "$as_me:$LINENO: result: yes" >&5
                   20143: echo "${ECHO_T}yes" >&6; }
                   20144:                        ;;
                   20145:                no)             { echo "$as_me:$LINENO: result: no" >&5
                   20146: echo "${ECHO_T}no" >&6; }
                   20147:
                   20148: cat >>confdefs.h <<\_ACEOF
                   20149: #define NO_PAM_SESSION
                   20150: _ACEOF
                   20151:
                   20152:                            ;;
                   20153:                *)              { echo "$as_me:$LINENO: result: no" >&5
                   20154: echo "${ECHO_T}no" >&6; }
                   20155:                            { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
                   20156: echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
                   20157:                            ;;
                   20158:            esac
1.25      millert  20159: else
1.37      millert  20160:   { echo "$as_me:$LINENO: result: yes" >&5
                   20161: echo "${ECHO_T}yes" >&6; }
                   20162: fi
1.27      millert  20163:
1.37      millert  20164:        case $host in
                   20165:            *-*-linux*|*-*-solaris*)
                   20166:                    # dgettext() may be defined to dgettext_libintl in the
                   20167:                    # header file, so first check that it links w/ additional
                   20168:                    # libs, then try with -lintl
                   20169:                    cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20170: /* confdefs.h.  */
                   20171: _ACEOF
                   20172: cat confdefs.h >>conftest.$ac_ext
                   20173: cat >>conftest.$ac_ext <<_ACEOF
                   20174: /* end confdefs.h.  */
1.37      millert  20175: #include <libintl.h>
1.16      millert  20176: int
                   20177: main ()
                   20178: {
1.37      millert  20179: (void)dgettext((char *)0, (char *)0);
1.9       millert  20180:   ;
                   20181:   return 0;
                   20182: }
                   20183: _ACEOF
                   20184: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20185: if { (ac_try="$ac_link"
                   20186: case "(($ac_try" in
                   20187:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20188:   *) ac_try_echo=$ac_try;;
                   20189: esac
                   20190: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20191:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20192:   ac_status=$?
1.25      millert  20193:   grep -v '^ *+' conftest.er1 >conftest.err
                   20194:   rm -f conftest.er1
                   20195:   cat conftest.err >&5
1.16      millert  20196:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20197:   (exit $ac_status); } && {
                   20198:         test -z "$ac_c_werror_flag" ||
                   20199:         test ! -s conftest.err
                   20200:        } && test -s conftest$ac_exeext &&
                   20201:        $as_test_x conftest$ac_exeext; then
1.37      millert  20202:   cat >>confdefs.h <<\_ACEOF
                   20203: #define HAVE_DGETTEXT 1
                   20204: _ACEOF
                   20205:
1.9       millert  20206: else
                   20207:   echo "$as_me: failed program was:" >&5
1.16      millert  20208: sed 's/^/| /' conftest.$ac_ext >&5
                   20209:
1.37      millert  20210:        { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
                   20211: echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
                   20212: if test "${ac_cv_lib_intl_dgettext+set}" = set; then
1.9       millert  20213:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20214: else
1.25      millert  20215:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  20216: LIBS="-lintl  $LIBS"
1.25      millert  20217: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20218: /* confdefs.h.  */
                   20219: _ACEOF
                   20220: cat confdefs.h >>conftest.$ac_ext
                   20221: cat >>conftest.$ac_ext <<_ACEOF
                   20222: /* end confdefs.h.  */
1.25      millert  20223:
1.37      millert  20224: /* Override any GCC internal prototype to avoid an error.
                   20225:    Use char because int might match the return type of a GCC
                   20226:    builtin and then its argument prototype would still apply.  */
                   20227: #ifdef __cplusplus
                   20228: extern "C"
                   20229: #endif
                   20230: char dgettext ();
1.16      millert  20231: int
                   20232: main ()
                   20233: {
1.37      millert  20234: return dgettext ();
1.9       millert  20235:   ;
                   20236:   return 0;
                   20237: }
                   20238: _ACEOF
                   20239: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20240: if { (ac_try="$ac_link"
                   20241: case "(($ac_try" in
                   20242:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20243:   *) ac_try_echo=$ac_try;;
                   20244: esac
                   20245: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20246:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20247:   ac_status=$?
1.25      millert  20248:   grep -v '^ *+' conftest.er1 >conftest.err
                   20249:   rm -f conftest.er1
                   20250:   cat conftest.err >&5
1.16      millert  20251:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20252:   (exit $ac_status); } && {
                   20253:         test -z "$ac_c_werror_flag" ||
                   20254:         test ! -s conftest.err
                   20255:        } && test -s conftest$ac_exeext &&
                   20256:        $as_test_x conftest$ac_exeext; then
1.37      millert  20257:   ac_cv_lib_intl_dgettext=yes
1.25      millert  20258: else
                   20259:   echo "$as_me: failed program was:" >&5
                   20260: sed 's/^/| /' conftest.$ac_ext >&5
                   20261:
1.37      millert  20262:        ac_cv_lib_intl_dgettext=no
1.9       millert  20263: fi
1.27      millert  20264:
                   20265: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   20266:       conftest$ac_exeext conftest.$ac_ext
                   20267: LIBS=$ac_check_lib_save_LIBS
1.9       millert  20268: fi
1.37      millert  20269: { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
                   20270: echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
                   20271: if test $ac_cv_lib_intl_dgettext = yes; then
                   20272:   LIBS="${LIBS} -lintl"
                   20273:                        cat >>confdefs.h <<\_ACEOF
                   20274: #define HAVE_DGETTEXT 1
                   20275: _ACEOF
                   20276:
                   20277: fi
                   20278:
1.25      millert  20279: fi
                   20280:
1.37      millert  20281: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   20282:       conftest$ac_exeext conftest.$ac_ext
                   20283:                    ;;
                   20284:        esac
                   20285:     fi
                   20286: fi
1.27      millert  20287:
1.37      millert  20288: if test ${with_aixauth-'no'} != "no"; then
                   20289:     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
                   20290:        { echo "$as_me:$LINENO: using AIX general authentication" >&5
                   20291: echo "$as_me: using AIX general authentication" >&6;}
                   20292:        cat >>confdefs.h <<\_ACEOF
                   20293: #define HAVE_AIXAUTH 1
                   20294: _ACEOF
1.25      millert  20295:
1.37      millert  20296:        AUTH_OBJS="$AUTH_OBJS aix_auth.o";
                   20297:        SUDO_LIBS="${SUDO_LIBS} -ls"
                   20298:        AUTH_EXCL=AIX_AUTH
                   20299:     fi
                   20300: fi
1.25      millert  20301:
1.37      millert  20302: if test ${with_bsdauth-'no'} != "no"; then
                   20303:     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
                   20304:   { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
                   20305: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
                   20306: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
1.27      millert  20307:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  20308: fi
1.37      millert  20309: { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
                   20310: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
1.1       millert  20311: else
1.27      millert  20312:   # Is the header compilable?
1.37      millert  20313: { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
                   20314: echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
1.27      millert  20315: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20316: /* confdefs.h.  */
                   20317: _ACEOF
                   20318: cat confdefs.h >>conftest.$ac_ext
                   20319: cat >>conftest.$ac_ext <<_ACEOF
                   20320: /* end confdefs.h.  */
1.27      millert  20321: $ac_includes_default
1.37      millert  20322: #include <bsd_auth.h>
1.9       millert  20323: _ACEOF
1.25      millert  20324: rm -f conftest.$ac_objext
1.27      millert  20325: if { (ac_try="$ac_compile"
                   20326: case "(($ac_try" in
                   20327:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20328:   *) ac_try_echo=$ac_try;;
                   20329: esac
                   20330: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20331:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  20332:   ac_status=$?
1.25      millert  20333:   grep -v '^ *+' conftest.er1 >conftest.err
                   20334:   rm -f conftest.er1
                   20335:   cat conftest.err >&5
1.16      millert  20336:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20337:   (exit $ac_status); } && {
                   20338:         test -z "$ac_c_werror_flag" ||
                   20339:         test ! -s conftest.err
                   20340:        } && test -s conftest.$ac_objext; then
                   20341:   ac_header_compiler=yes
1.9       millert  20342: else
                   20343:   echo "$as_me: failed program was:" >&5
1.16      millert  20344: sed 's/^/| /' conftest.$ac_ext >&5
                   20345:
1.27      millert  20346:        ac_header_compiler=no
                   20347: fi
1.25      millert  20348:
1.27      millert  20349: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20350: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   20351: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  20352:
1.27      millert  20353: # Is the header present?
1.37      millert  20354: { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
                   20355: echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
1.27      millert  20356: cat >conftest.$ac_ext <<_ACEOF
                   20357: /* confdefs.h.  */
1.25      millert  20358: _ACEOF
1.27      millert  20359: cat confdefs.h >>conftest.$ac_ext
                   20360: cat >>conftest.$ac_ext <<_ACEOF
                   20361: /* end confdefs.h.  */
1.37      millert  20362: #include <bsd_auth.h>
1.25      millert  20363: _ACEOF
1.27      millert  20364: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   20365: case "(($ac_try" in
                   20366:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20367:   *) ac_try_echo=$ac_try;;
                   20368: esac
                   20369: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20370:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25      millert  20371:   ac_status=$?
                   20372:   grep -v '^ *+' conftest.er1 >conftest.err
                   20373:   rm -f conftest.er1
                   20374:   cat conftest.err >&5
                   20375:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20376:   (exit $ac_status); } >/dev/null && {
                   20377:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   20378:         test ! -s conftest.err
                   20379:        }; then
                   20380:   ac_header_preproc=yes
1.1       millert  20381: else
1.25      millert  20382:   echo "$as_me: failed program was:" >&5
                   20383: sed 's/^/| /' conftest.$ac_ext >&5
                   20384:
1.27      millert  20385:   ac_header_preproc=no
                   20386: fi
                   20387:
                   20388: rm -f conftest.err conftest.$ac_ext
                   20389: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   20390: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   20391:
                   20392: # So?  What about this header?
                   20393: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   20394:   yes:no: )
1.37      millert  20395:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
                   20396: echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   20397:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
                   20398: echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
1.27      millert  20399:     ac_header_preproc=yes
                   20400:     ;;
                   20401:   no:yes:* )
1.37      millert  20402:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
                   20403: echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
                   20404:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&5
                   20405: echo "$as_me: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&2;}
                   20406:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
                   20407: echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
                   20408:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&5
                   20409: echo "$as_me: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
                   20410:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
                   20411: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
                   20412:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
                   20413: echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
1.40      millert  20414:     ( cat <<\_ASBOX
                   20415: ## --------------------------------------- ##
                   20416: ## Report this to http://www.sudo.ws/bugs/ ##
                   20417: ## --------------------------------------- ##
                   20418: _ASBOX
                   20419:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.27      millert  20420:     ;;
                   20421: esac
1.37      millert  20422: { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
                   20423: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
                   20424: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
1.27      millert  20425:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   20426: else
1.37      millert  20427:   ac_cv_header_bsd_auth_h=$ac_header_preproc
1.27      millert  20428: fi
1.37      millert  20429: { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
                   20430: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
1.25      millert  20431:
                   20432: fi
1.37      millert  20433: if test $ac_cv_header_bsd_auth_h = yes; then
                   20434:   cat >>confdefs.h <<\_ACEOF
                   20435: #define HAVE_BSD_AUTH_H 1
1.27      millert  20436: _ACEOF
1.37      millert  20437:
                   20438:        AUTH_OBJS="$AUTH_OBJS bsdauth.o"
                   20439:        BSDAUTH_USAGE='[-a auth_type] '
                   20440:        AUTH_EXCL=BSD_AUTH; BAMAN=""
                   20441: else
                   20442:   { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
                   20443: echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
                   20444:    { (exit 1); exit 1; }; }
1.27      millert  20445: fi
                   20446:
                   20447:
1.37      millert  20448: fi
1.25      millert  20449:
1.37      millert  20450: if test ${CHECKSIA-'false'} = "true"; then
1.30      millert  20451:
1.37      millert  20452: for ac_func in sia_ses_init
                   20453: do
                   20454: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   20455: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   20456: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   20457: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   20458:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.30      millert  20459: else
1.37      millert  20460:   cat >conftest.$ac_ext <<_ACEOF
1.32      millert  20461: /* confdefs.h.  */
                   20462: _ACEOF
                   20463: cat confdefs.h >>conftest.$ac_ext
                   20464: cat >>conftest.$ac_ext <<_ACEOF
                   20465: /* end confdefs.h.  */
1.37      millert  20466: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   20467:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   20468: #define $ac_func innocuous_$ac_func
                   20469:
                   20470: /* System header to define __stub macros and hopefully few prototypes,
                   20471:     which can conflict with char $ac_func (); below.
                   20472:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   20473:     <limits.h> exists even on freestanding compilers.  */
                   20474:
                   20475: #ifdef __STDC__
                   20476: # include <limits.h>
                   20477: #else
                   20478: # include <assert.h>
                   20479: #endif
                   20480:
                   20481: #undef $ac_func
                   20482:
                   20483: /* Override any GCC internal prototype to avoid an error.
                   20484:    Use char because int might match the return type of a GCC
                   20485:    builtin and then its argument prototype would still apply.  */
                   20486: #ifdef __cplusplus
                   20487: extern "C"
                   20488: #endif
                   20489: char $ac_func ();
                   20490: /* The GNU C library defines this for functions which it implements
                   20491:     to always fail with ENOSYS.  Some functions are actually named
                   20492:     something starting with __ and the normal name is an alias.  */
                   20493: #if defined __stub_$ac_func || defined __stub___$ac_func
                   20494: choke me
                   20495: #endif
                   20496:
1.32      millert  20497: int
                   20498: main ()
                   20499: {
1.37      millert  20500: return $ac_func ();
1.32      millert  20501:   ;
                   20502:   return 0;
                   20503: }
                   20504: _ACEOF
                   20505: rm -f conftest.$ac_objext conftest$ac_exeext
                   20506: if { (ac_try="$ac_link"
                   20507: case "(($ac_try" in
                   20508:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20509:   *) ac_try_echo=$ac_try;;
                   20510: esac
                   20511: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20512:   (eval "$ac_link") 2>conftest.er1
                   20513:   ac_status=$?
                   20514:   grep -v '^ *+' conftest.er1 >conftest.err
                   20515:   rm -f conftest.er1
                   20516:   cat conftest.err >&5
                   20517:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20518:   (exit $ac_status); } && {
                   20519:         test -z "$ac_c_werror_flag" ||
                   20520:         test ! -s conftest.err
                   20521:        } && test -s conftest$ac_exeext &&
                   20522:        $as_test_x conftest$ac_exeext; then
1.37      millert  20523:   eval "$as_ac_var=yes"
1.32      millert  20524: else
                   20525:   echo "$as_me: failed program was:" >&5
                   20526: sed 's/^/| /' conftest.$ac_ext >&5
                   20527:
1.37      millert  20528:        eval "$as_ac_var=no"
                   20529: fi
                   20530:
                   20531: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   20532:       conftest$ac_exeext conftest.$ac_ext
                   20533: fi
                   20534: ac_res=`eval echo '${'$as_ac_var'}'`
                   20535:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   20536: echo "${ECHO_T}$ac_res" >&6; }
                   20537: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   20538:   cat >>confdefs.h <<_ACEOF
                   20539: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   20540: _ACEOF
                   20541:  found=true
                   20542: else
                   20543:   found=false
                   20544: fi
                   20545: done
                   20546:
                   20547:     if test "$found" = "true"; then
                   20548:        AUTH_EXCL=SIA
                   20549:        AUTH_OBJS="$AUTH_OBJS sia.o"
                   20550:     fi
                   20551: fi
                   20552:
                   20553: if test ${with_fwtk-'no'} != "no"; then
                   20554:     if test "$with_fwtk" != "yes"; then
                   20555:
                   20556:     if test X"$with_rpath" = X"yes"; then
1.47      millert  20557:        case "$host" in
                   20558:            *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
                   20559:                        ;;
                   20560:            *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
                   20561:                        ;;
                   20562:        esac
1.37      millert  20563:     else
                   20564:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
                   20565:     fi
                   20566:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   20567:        blibpath_add="${blibpath_add}:${with_fwtk}"
                   20568:     fi
                   20569:
                   20570:        CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
                   20571:        with_fwtk=yes
                   20572:     fi
                   20573:     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
                   20574:     AUTH_OBJS="$AUTH_OBJS fwtk.o"
                   20575: fi
                   20576:
                   20577: if test ${with_SecurID-'no'} != "no"; then
                   20578:     if test "$with_SecurID" != "yes"; then
                   20579:        :
                   20580:     elif test -d /usr/ace/examples; then
                   20581:        with_SecurID=/usr/ace/examples
                   20582:     else
                   20583:        with_SecurID=/usr/ace
                   20584:     fi
                   20585:     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
                   20586:     _LDFLAGS="${LDFLAGS}"
                   20587:
                   20588:     if test X"$with_rpath" = X"yes"; then
1.47      millert  20589:        case "$host" in
                   20590:            *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
                   20591:                        ;;
                   20592:            *)          LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
                   20593:                        ;;
                   20594:        esac
1.37      millert  20595:     else
                   20596:        LDFLAGS="${LDFLAGS} -L${with_SecurID}"
                   20597:     fi
                   20598:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   20599:        blibpath_add="${blibpath_add}:${with_SecurID}"
                   20600:     fi
                   20601:
                   20602:     #
                   20603:     # Determine whether to use the new or old SecurID API
                   20604:     #
                   20605:     { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
                   20606: echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
                   20607: if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
1.32      millert  20608:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   20609: else
                   20610:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  20611: LIBS="-laceclnt
                   20612:            -lpthread
                   20613:
                   20614:      $LIBS"
1.32      millert  20615: cat >conftest.$ac_ext <<_ACEOF
                   20616: /* confdefs.h.  */
                   20617: _ACEOF
                   20618: cat confdefs.h >>conftest.$ac_ext
                   20619: cat >>conftest.$ac_ext <<_ACEOF
                   20620: /* end confdefs.h.  */
                   20621:
                   20622: /* Override any GCC internal prototype to avoid an error.
                   20623:    Use char because int might match the return type of a GCC
                   20624:    builtin and then its argument prototype would still apply.  */
                   20625: #ifdef __cplusplus
                   20626: extern "C"
                   20627: #endif
1.37      millert  20628: char SD_Init ();
1.32      millert  20629: int
                   20630: main ()
                   20631: {
1.37      millert  20632: return SD_Init ();
1.32      millert  20633:   ;
                   20634:   return 0;
                   20635: }
                   20636: _ACEOF
                   20637: rm -f conftest.$ac_objext conftest$ac_exeext
                   20638: if { (ac_try="$ac_link"
                   20639: case "(($ac_try" in
                   20640:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20641:   *) ac_try_echo=$ac_try;;
                   20642: esac
                   20643: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20644:   (eval "$ac_link") 2>conftest.er1
                   20645:   ac_status=$?
                   20646:   grep -v '^ *+' conftest.er1 >conftest.err
                   20647:   rm -f conftest.er1
                   20648:   cat conftest.err >&5
                   20649:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20650:   (exit $ac_status); } && {
                   20651:         test -z "$ac_c_werror_flag" ||
                   20652:         test ! -s conftest.err
                   20653:        } && test -s conftest$ac_exeext &&
                   20654:        $as_test_x conftest$ac_exeext; then
1.37      millert  20655:   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
1.32      millert  20656: else
                   20657:   echo "$as_me: failed program was:" >&5
                   20658: sed 's/^/| /' conftest.$ac_ext >&5
                   20659:
1.37      millert  20660:        ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
1.32      millert  20661: fi
                   20662:
                   20663: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   20664:       conftest$ac_exeext conftest.$ac_ext
                   20665: LIBS=$ac_check_lib_save_LIBS
                   20666: fi
1.37      millert  20667: { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
                   20668: echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
                   20669: if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
                   20670:
                   20671:            AUTH_OBJS="$AUTH_OBJS securid5.o";
                   20672:            SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
                   20673:
                   20674:
                   20675:
                   20676:     if test X"$with_rpath" = X"yes"; then
1.47      millert  20677:        case "$host" in
                   20678:            *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
                   20679:                        ;;
                   20680:            *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
                   20681:                        ;;
                   20682:        esac
1.37      millert  20683:     else
                   20684:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
                   20685:     fi
                   20686:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   20687:        blibpath_add="${blibpath_add}:${with_SecurID}"
                   20688:     fi
                   20689:
                   20690:
                   20691: else
                   20692:
                   20693:            AUTH_OBJS="$AUTH_OBJS securid.o";
                   20694:            SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
1.32      millert  20695:
                   20696: fi
                   20697:
1.37      millert  20698:     LDFLAGS="${_LDFLAGS}"
1.32      millert  20699: fi
                   20700:
1.37      millert  20701:
                   20702: if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
                   20703:     for auth in $AUTH_DEF; do
                   20704:        case $auth in
                   20705:            passwd)     : ${with_passwd='maybe'};;
1.32      millert  20706:        esac
1.37      millert  20707:     done
1.27      millert  20708: fi
                   20709:
1.37      millert  20710: if test ${with_kerb4-'no'} != "no"; then
                   20711:     cat >>confdefs.h <<\_ACEOF
                   20712: #define HAVE_KERB4 1
1.27      millert  20713: _ACEOF
1.25      millert  20714:
1.37      millert  20715:                 O_LDFLAGS="$LDFLAGS"
                   20716:     if test "$with_kerb4" = "yes"; then
                   20717:        found=no
                   20718:        O_CPPFLAGS="$CPPFLAGS"
                   20719:        for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
                   20720:            CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
                   20721:            cat >conftest.$ac_ext <<_ACEOF
                   20722: #include <krb.h>
                   20723: _ACEOF
                   20724: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   20725: case "(($ac_try" in
                   20726:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20727:   *) ac_try_echo=$ac_try;;
                   20728: esac
                   20729: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20730:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   20731:   ac_status=$?
                   20732:   grep -v '^ *+' conftest.er1 >conftest.err
                   20733:   rm -f conftest.er1
                   20734:   cat conftest.err >&5
                   20735:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20736:   (exit $ac_status); } >/dev/null && {
                   20737:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   20738:         test ! -s conftest.err
                   20739:        }; then
                   20740:   found=yes; break
                   20741: else
                   20742:   echo "$as_me: failed program was:" >&5
                   20743: sed 's/^/| /' conftest.$ac_ext >&5
                   20744:
                   20745:
                   20746: fi
                   20747:
                   20748: rm -f conftest.err conftest.$ac_ext
                   20749:        done
                   20750:        test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
                   20751:     else
                   20752:
                   20753:     if test X"$with_rpath" = X"yes"; then
1.47      millert  20754:        case "$host" in
                   20755:            *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
                   20756:                        ;;
                   20757:            *)          LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
                   20758:                        ;;
                   20759:        esac
1.37      millert  20760:     else
                   20761:        LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
                   20762:     fi
                   20763:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   20764:        blibpath_add="${blibpath_add}:${with_kerb4}/lib"
                   20765:     fi
                   20766:
                   20767:
                   20768:     if test X"$with_rpath" = X"yes"; then
1.47      millert  20769:        case "$host" in
                   20770:            *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
                   20771:                        ;;
                   20772:            *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
                   20773:                        ;;
                   20774:        esac
1.37      millert  20775:     else
                   20776:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
                   20777:     fi
                   20778:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   20779:        blibpath_add="${blibpath_add}:${with_kerb4}/lib"
1.25      millert  20780:     fi
                   20781:
1.37      millert  20782:        CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
                   20783:        if test "${ac_cv_header_krb_h+set}" = set; then
                   20784:   { echo "$as_me:$LINENO: checking for krb.h" >&5
                   20785: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
                   20786: if test "${ac_cv_header_krb_h+set}" = set; then
1.27      millert  20787:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   20788: fi
1.37      millert  20789: { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
                   20790: echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
1.27      millert  20791: else
                   20792:   # Is the header compilable?
1.37      millert  20793: { echo "$as_me:$LINENO: checking krb.h usability" >&5
                   20794: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
1.27      millert  20795: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20796: /* confdefs.h.  */
                   20797: _ACEOF
                   20798: cat confdefs.h >>conftest.$ac_ext
                   20799: cat >>conftest.$ac_ext <<_ACEOF
                   20800: /* end confdefs.h.  */
1.27      millert  20801: $ac_includes_default
1.37      millert  20802: #include <krb.h>
1.9       millert  20803: _ACEOF
1.25      millert  20804: rm -f conftest.$ac_objext
1.27      millert  20805: if { (ac_try="$ac_compile"
                   20806: case "(($ac_try" in
                   20807:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20808:   *) ac_try_echo=$ac_try;;
                   20809: esac
                   20810: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20811:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  20812:   ac_status=$?
1.25      millert  20813:   grep -v '^ *+' conftest.er1 >conftest.err
                   20814:   rm -f conftest.er1
                   20815:   cat conftest.err >&5
1.16      millert  20816:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20817:   (exit $ac_status); } && {
                   20818:         test -z "$ac_c_werror_flag" ||
                   20819:         test ! -s conftest.err
                   20820:        } && test -s conftest.$ac_objext; then
                   20821:   ac_header_compiler=yes
                   20822: else
                   20823:   echo "$as_me: failed program was:" >&5
                   20824: sed 's/^/| /' conftest.$ac_ext >&5
                   20825:
                   20826:        ac_header_compiler=no
                   20827: fi
1.16      millert  20828:
1.27      millert  20829: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20830: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   20831: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  20832:
1.27      millert  20833: # Is the header present?
1.37      millert  20834: { echo "$as_me:$LINENO: checking krb.h presence" >&5
                   20835: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
1.9       millert  20836: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20837: /* confdefs.h.  */
                   20838: _ACEOF
                   20839: cat confdefs.h >>conftest.$ac_ext
                   20840: cat >>conftest.$ac_ext <<_ACEOF
                   20841: /* end confdefs.h.  */
1.37      millert  20842: #include <krb.h>
1.9       millert  20843: _ACEOF
1.27      millert  20844: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   20845: case "(($ac_try" in
                   20846:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20847:   *) ac_try_echo=$ac_try;;
                   20848: esac
                   20849: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20850:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  20851:   ac_status=$?
1.25      millert  20852:   grep -v '^ *+' conftest.er1 >conftest.err
                   20853:   rm -f conftest.er1
                   20854:   cat conftest.err >&5
1.16      millert  20855:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20856:   (exit $ac_status); } >/dev/null && {
                   20857:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   20858:         test ! -s conftest.err
                   20859:        }; then
                   20860:   ac_header_preproc=yes
1.9       millert  20861: else
                   20862:   echo "$as_me: failed program was:" >&5
1.16      millert  20863: sed 's/^/| /' conftest.$ac_ext >&5
                   20864:
1.27      millert  20865:   ac_header_preproc=no
1.25      millert  20866: fi
                   20867:
1.27      millert  20868: rm -f conftest.err conftest.$ac_ext
                   20869: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   20870: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   20871:
                   20872: # So?  What about this header?
                   20873: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   20874:   yes:no: )
1.37      millert  20875:     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
                   20876: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   20877:     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
                   20878: echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
1.27      millert  20879:     ac_header_preproc=yes
                   20880:     ;;
                   20881:   no:yes:* )
1.37      millert  20882:     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
                   20883: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
                   20884:     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
                   20885: echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
                   20886:     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
                   20887: echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
                   20888:     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
                   20889: echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
                   20890:     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
                   20891: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
                   20892:     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
                   20893: echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
1.40      millert  20894:     ( cat <<\_ASBOX
                   20895: ## --------------------------------------- ##
                   20896: ## Report this to http://www.sudo.ws/bugs/ ##
                   20897: ## --------------------------------------- ##
                   20898: _ASBOX
                   20899:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.27      millert  20900:     ;;
                   20901: esac
1.37      millert  20902: { echo "$as_me:$LINENO: checking for krb.h" >&5
                   20903: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
                   20904: if test "${ac_cv_header_krb_h+set}" = set; then
1.27      millert  20905:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  20906: else
1.37      millert  20907:   ac_cv_header_krb_h=$ac_header_preproc
1.27      millert  20908: fi
1.37      millert  20909: { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
                   20910: echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
1.25      millert  20911:
1.1       millert  20912: fi
1.37      millert  20913: if test $ac_cv_header_krb_h = yes; then
                   20914:   found=yes
1.25      millert  20915: else
1.37      millert  20916:   found=no
1.1       millert  20917: fi
                   20918:
                   20919:
1.37      millert  20920:     fi
                   20921:     if test X"$found" = X"no"; then
                   20922:        { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
                   20923: echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
                   20924:     fi
1.27      millert  20925:
1.37      millert  20926:                 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
                   20927: echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
                   20928: if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
1.9       millert  20929:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20930: else
1.37      millert  20931:   ac_check_lib_save_LIBS=$LIBS
                   20932: LIBS="-ldes  $LIBS"
                   20933: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20934: /* confdefs.h.  */
                   20935: _ACEOF
                   20936: cat confdefs.h >>conftest.$ac_ext
                   20937: cat >>conftest.$ac_ext <<_ACEOF
                   20938: /* end confdefs.h.  */
1.25      millert  20939:
1.27      millert  20940: /* Override any GCC internal prototype to avoid an error.
                   20941:    Use char because int might match the return type of a GCC
                   20942:    builtin and then its argument prototype would still apply.  */
1.9       millert  20943: #ifdef __cplusplus
                   20944: extern "C"
                   20945: #endif
1.37      millert  20946: char des_cbc_encrypt ();
1.16      millert  20947: int
                   20948: main ()
                   20949: {
1.37      millert  20950: return des_cbc_encrypt ();
1.9       millert  20951:   ;
                   20952:   return 0;
                   20953: }
                   20954: _ACEOF
                   20955: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20956: if { (ac_try="$ac_link"
                   20957: case "(($ac_try" in
                   20958:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20959:   *) ac_try_echo=$ac_try;;
                   20960: esac
                   20961: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20962:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20963:   ac_status=$?
1.25      millert  20964:   grep -v '^ *+' conftest.er1 >conftest.err
                   20965:   rm -f conftest.er1
                   20966:   cat conftest.err >&5
1.16      millert  20967:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20968:   (exit $ac_status); } && {
                   20969:         test -z "$ac_c_werror_flag" ||
                   20970:         test ! -s conftest.err
                   20971:        } && test -s conftest$ac_exeext &&
                   20972:        $as_test_x conftest$ac_exeext; then
1.37      millert  20973:   ac_cv_lib_des_des_cbc_encrypt=yes
1.9       millert  20974: else
                   20975:   echo "$as_me: failed program was:" >&5
1.16      millert  20976: sed 's/^/| /' conftest.$ac_ext >&5
                   20977:
1.37      millert  20978:        ac_cv_lib_des_des_cbc_encrypt=no
1.25      millert  20979: fi
1.27      millert  20980:
                   20981: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20982:       conftest$ac_exeext conftest.$ac_ext
1.37      millert  20983: LIBS=$ac_check_lib_save_LIBS
1.25      millert  20984: fi
1.37      millert  20985: { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
                   20986: echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
                   20987: if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
                   20988:   K4LIBS="-ldes"
1.27      millert  20989: else
1.25      millert  20990:
1.37      millert  20991:        { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
                   20992: echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
                   20993: if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
1.9       millert  20994:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20995: else
1.9       millert  20996:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  20997: LIBS="-ldes425  $LIBS"
1.9       millert  20998: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20999: /* confdefs.h.  */
                   21000: _ACEOF
                   21001: cat confdefs.h >>conftest.$ac_ext
                   21002: cat >>conftest.$ac_ext <<_ACEOF
                   21003: /* end confdefs.h.  */
1.9       millert  21004:
1.27      millert  21005: /* Override any GCC internal prototype to avoid an error.
                   21006:    Use char because int might match the return type of a GCC
                   21007:    builtin and then its argument prototype would still apply.  */
                   21008: #ifdef __cplusplus
                   21009: extern "C"
                   21010: #endif
1.37      millert  21011: char des_cbc_encrypt ();
1.9       millert  21012: int
                   21013: main ()
                   21014: {
1.37      millert  21015: return des_cbc_encrypt ();
1.9       millert  21016:   ;
                   21017:   return 0;
                   21018: }
                   21019: _ACEOF
                   21020: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21021: if { (ac_try="$ac_link"
                   21022: case "(($ac_try" in
                   21023:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21024:   *) ac_try_echo=$ac_try;;
                   21025: esac
                   21026: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21027:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21028:   ac_status=$?
1.25      millert  21029:   grep -v '^ *+' conftest.er1 >conftest.err
                   21030:   rm -f conftest.er1
                   21031:   cat conftest.err >&5
1.16      millert  21032:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21033:   (exit $ac_status); } && {
                   21034:         test -z "$ac_c_werror_flag" ||
                   21035:         test ! -s conftest.err
                   21036:        } && test -s conftest$ac_exeext &&
                   21037:        $as_test_x conftest$ac_exeext; then
1.37      millert  21038:   ac_cv_lib_des425_des_cbc_encrypt=yes
1.9       millert  21039: else
                   21040:   echo "$as_me: failed program was:" >&5
1.16      millert  21041: sed 's/^/| /' conftest.$ac_ext >&5
                   21042:
1.37      millert  21043:        ac_cv_lib_des425_des_cbc_encrypt=no
1.9       millert  21044: fi
1.27      millert  21045:
                   21046: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21047:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  21048: LIBS=$ac_check_lib_save_LIBS
                   21049: fi
1.37      millert  21050: { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
                   21051: echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
                   21052: if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
                   21053:   K4LIBS="-ldes425"
1.27      millert  21054: else
1.37      millert  21055:   K4LIBS=""
1.27      millert  21056: fi
                   21057:
                   21058:
                   21059: fi
                   21060:
1.37      millert  21061:                 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
                   21062: echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
                   21063:     cat >conftest.$ac_ext <<_ACEOF
                   21064: /* confdefs.h.  */
1.27      millert  21065: _ACEOF
1.37      millert  21066: cat confdefs.h >>conftest.$ac_ext
                   21067: cat >>conftest.$ac_ext <<_ACEOF
                   21068: /* end confdefs.h.  */
1.27      millert  21069: #include <krb.h>
1.37      millert  21070: int
                   21071: main ()
                   21072: {
                   21073: const char *tmp = krb4_version;
                   21074:   ;
                   21075:   return 0;
                   21076: }
1.27      millert  21077: _ACEOF
1.37      millert  21078: rm -f conftest.$ac_objext
                   21079: if { (ac_try="$ac_compile"
1.27      millert  21080: case "(($ac_try" in
                   21081:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21082:   *) ac_try_echo=$ac_try;;
                   21083: esac
                   21084: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  21085:   (eval "$ac_compile") 2>conftest.er1
1.27      millert  21086:   ac_status=$?
                   21087:   grep -v '^ *+' conftest.er1 >conftest.err
                   21088:   rm -f conftest.er1
                   21089:   cat conftest.err >&5
                   21090:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  21091:   (exit $ac_status); } && {
                   21092:         test -z "$ac_c_werror_flag" ||
1.27      millert  21093:         test ! -s conftest.err
1.37      millert  21094:        } && test -s conftest.$ac_objext; then
1.27      millert  21095:
1.37      millert  21096:            { echo "$as_me:$LINENO: result: yes" >&5
                   21097: echo "${ECHO_T}yes" >&6; }
                   21098:            K4LIBS="${K4LIBS} -lcom_err"
                   21099:            { echo "$as_me:$LINENO: checking for main in -lroken" >&5
                   21100: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
                   21101: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9       millert  21102:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21103: else
1.37      millert  21104:   ac_check_lib_save_LIBS=$LIBS
                   21105: LIBS="-lroken  $LIBS"
1.9       millert  21106: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21107: /* confdefs.h.  */
                   21108: _ACEOF
                   21109: cat confdefs.h >>conftest.$ac_ext
                   21110: cat >>conftest.$ac_ext <<_ACEOF
                   21111: /* end confdefs.h.  */
1.37      millert  21112:
                   21113:
                   21114: int
                   21115: main ()
                   21116: {
                   21117: return main ();
                   21118:   ;
                   21119:   return 0;
                   21120: }
1.9       millert  21121: _ACEOF
1.37      millert  21122: rm -f conftest.$ac_objext conftest$ac_exeext
                   21123: if { (ac_try="$ac_link"
1.27      millert  21124: case "(($ac_try" in
                   21125:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21126:   *) ac_try_echo=$ac_try;;
                   21127: esac
                   21128: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  21129:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21130:   ac_status=$?
1.25      millert  21131:   grep -v '^ *+' conftest.er1 >conftest.err
                   21132:   rm -f conftest.er1
                   21133:   cat conftest.err >&5
1.16      millert  21134:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21135:   (exit $ac_status); } && {
                   21136:         test -z "$ac_c_werror_flag" ||
                   21137:         test ! -s conftest.err
1.37      millert  21138:        } && test -s conftest$ac_exeext &&
                   21139:        $as_test_x conftest$ac_exeext; then
                   21140:   ac_cv_lib_roken_main=yes
                   21141: else
                   21142:   echo "$as_me: failed program was:" >&5
                   21143: sed 's/^/| /' conftest.$ac_ext >&5
                   21144:
                   21145:        ac_cv_lib_roken_main=no
                   21146: fi
                   21147:
                   21148: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   21149:       conftest$ac_exeext conftest.$ac_ext
                   21150: LIBS=$ac_check_lib_save_LIBS
                   21151: fi
                   21152: { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
                   21153: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
                   21154: if test $ac_cv_lib_roken_main = yes; then
                   21155:   K4LIBS="${K4LIBS} -lroken"
                   21156: fi
                   21157:
                   21158:
1.9       millert  21159: else
                   21160:   echo "$as_me: failed program was:" >&5
1.16      millert  21161: sed 's/^/| /' conftest.$ac_ext >&5
                   21162:
1.37      millert  21163:
                   21164:            { echo "$as_me:$LINENO: result: no" >&5
                   21165: echo "${ECHO_T}no" >&6; }
                   21166:
                   21167:
1.9       millert  21168: fi
1.27      millert  21169:
                   21170: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.37      millert  21171:                 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
                   21172: { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
                   21173: echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
                   21174: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
                   21175:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21176: else
                   21177:   ac_check_lib_save_LIBS=$LIBS
                   21178: LIBS="-lkrb $K4LIBS $LIBS"
1.9       millert  21179: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21180: /* confdefs.h.  */
                   21181: _ACEOF
                   21182: cat confdefs.h >>conftest.$ac_ext
                   21183: cat >>conftest.$ac_ext <<_ACEOF
                   21184: /* end confdefs.h.  */
1.37      millert  21185:
                   21186:
                   21187: int
                   21188: main ()
                   21189: {
                   21190: return main ();
                   21191:   ;
                   21192:   return 0;
                   21193: }
1.9       millert  21194: _ACEOF
1.37      millert  21195: rm -f conftest.$ac_objext conftest$ac_exeext
                   21196: if { (ac_try="$ac_link"
1.27      millert  21197: case "(($ac_try" in
                   21198:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21199:   *) ac_try_echo=$ac_try;;
                   21200: esac
                   21201: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  21202:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21203:   ac_status=$?
1.25      millert  21204:   grep -v '^ *+' conftest.er1 >conftest.err
                   21205:   rm -f conftest.er1
                   21206:   cat conftest.err >&5
1.16      millert  21207:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  21208:   (exit $ac_status); } && {
                   21209:         test -z "$ac_c_werror_flag" ||
1.27      millert  21210:         test ! -s conftest.err
1.37      millert  21211:        } && test -s conftest$ac_exeext &&
                   21212:        $as_test_x conftest$ac_exeext; then
                   21213:   eval "$as_ac_Lib=yes"
1.9       millert  21214: else
                   21215:   echo "$as_me: failed program was:" >&5
1.25      millert  21216: sed 's/^/| /' conftest.$ac_ext >&5
                   21217:
1.37      millert  21218:        eval "$as_ac_Lib=no"
1.25      millert  21219: fi
1.27      millert  21220:
1.37      millert  21221: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   21222:       conftest$ac_exeext conftest.$ac_ext
                   21223: LIBS=$ac_check_lib_save_LIBS
1.27      millert  21224: fi
1.37      millert  21225: ac_res=`eval echo '${'$as_ac_Lib'}'`
                   21226:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   21227: echo "${ECHO_T}$ac_res" >&6; }
                   21228: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
                   21229:   K4LIBS="-lkrb $K4LIBS"
1.25      millert  21230: else
1.1       millert  21231:
1.37      millert  21232:        as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
                   21233: { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
                   21234: echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
                   21235: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  21236:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21237: else
1.27      millert  21238:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  21239: LIBS="-lkrb4 $K4LIBS $LIBS"
1.27      millert  21240: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21241: /* confdefs.h.  */
                   21242: _ACEOF
                   21243: cat confdefs.h >>conftest.$ac_ext
                   21244: cat >>conftest.$ac_ext <<_ACEOF
                   21245: /* end confdefs.h.  */
1.25      millert  21246:
1.37      millert  21247:
1.16      millert  21248: int
                   21249: main ()
                   21250: {
1.37      millert  21251: return main ();
1.9       millert  21252:   ;
                   21253:   return 0;
                   21254: }
                   21255: _ACEOF
                   21256: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21257: if { (ac_try="$ac_link"
                   21258: case "(($ac_try" in
                   21259:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21260:   *) ac_try_echo=$ac_try;;
                   21261: esac
                   21262: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21263:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21264:   ac_status=$?
1.25      millert  21265:   grep -v '^ *+' conftest.er1 >conftest.err
                   21266:   rm -f conftest.er1
                   21267:   cat conftest.err >&5
1.16      millert  21268:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21269:   (exit $ac_status); } && {
                   21270:         test -z "$ac_c_werror_flag" ||
                   21271:         test ! -s conftest.err
                   21272:        } && test -s conftest$ac_exeext &&
                   21273:        $as_test_x conftest$ac_exeext; then
1.37      millert  21274:   eval "$as_ac_Lib=yes"
1.9       millert  21275: else
                   21276:   echo "$as_me: failed program was:" >&5
1.16      millert  21277: sed 's/^/| /' conftest.$ac_ext >&5
                   21278:
1.37      millert  21279:        eval "$as_ac_Lib=no"
1.25      millert  21280: fi
1.27      millert  21281:
                   21282: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21283:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  21284: LIBS=$ac_check_lib_save_LIBS
1.9       millert  21285: fi
1.37      millert  21286: ac_res=`eval echo '${'$as_ac_Lib'}'`
                   21287:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   21288: echo "${ECHO_T}$ac_res" >&6; }
                   21289: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
                   21290:   K4LIBS="-lkrb4 $K4LIBS"
1.27      millert  21291: else
1.37      millert  21292:   K4LIBS="-lkrb $K4LIBS"
                   21293:            { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5
                   21294: echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;}
1.25      millert  21295:
1.37      millert  21296: fi
                   21297:
                   21298:
                   21299: fi
                   21300:
                   21301:     LDFLAGS="$O_LDFLAGS"
                   21302:     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
                   21303:     AUTH_OBJS="$AUTH_OBJS kerb4.o"
                   21304: fi
                   21305:
                   21306: if test ${with_kerb5-'no'} != "no"; then
                   21307:     # Extract the first word of "krb5-config", so it can be a program name with args.
                   21308: set dummy krb5-config; ac_word=$2
                   21309: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   21310: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   21311: if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
1.9       millert  21312:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.6       millert  21313: else
1.37      millert  21314:   if test -n "$KRB5CONFIG"; then
                   21315:   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
                   21316: else
                   21317: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   21318: for as_dir in $PATH
                   21319: do
                   21320:   IFS=$as_save_IFS
                   21321:   test -z "$as_dir" && as_dir=.
                   21322:   for ac_exec_ext in '' $ac_executable_extensions; do
                   21323:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   21324:     ac_cv_prog_KRB5CONFIG="yes"
                   21325:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   21326:     break 2
                   21327:   fi
                   21328: done
                   21329: done
                   21330: IFS=$as_save_IFS
                   21331:
                   21332:   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
                   21333: fi
                   21334: fi
                   21335: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
                   21336: if test -n "$KRB5CONFIG"; then
                   21337:   { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
                   21338: echo "${ECHO_T}$KRB5CONFIG" >&6; }
                   21339: else
                   21340:   { echo "$as_me:$LINENO: result: no" >&5
                   21341: echo "${ECHO_T}no" >&6; }
                   21342: fi
                   21343:
                   21344:
                   21345:     if test -n "$KRB5CONFIG"; then
                   21346:        cat >>confdefs.h <<\_ACEOF
                   21347: #define HAVE_KERB5 1
                   21348: _ACEOF
                   21349:
                   21350:        AUTH_OBJS="$AUTH_OBJS kerb5.o"
                   21351:        CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
                   21352:        SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
                   21353:                                { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
                   21354: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
                   21355:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21356: /* confdefs.h.  */
                   21357: _ACEOF
                   21358: cat confdefs.h >>conftest.$ac_ext
                   21359: cat >>conftest.$ac_ext <<_ACEOF
                   21360: /* end confdefs.h.  */
1.37      millert  21361: #include <krb5.h>
1.16      millert  21362: int
                   21363: main ()
                   21364: {
1.37      millert  21365: const char *tmp = heimdal_version;
1.9       millert  21366:   ;
                   21367:   return 0;
                   21368: }
                   21369: _ACEOF
1.37      millert  21370: rm -f conftest.$ac_objext
                   21371: if { (ac_try="$ac_compile"
1.27      millert  21372: case "(($ac_try" in
                   21373:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21374:   *) ac_try_echo=$ac_try;;
                   21375: esac
                   21376: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  21377:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  21378:   ac_status=$?
1.25      millert  21379:   grep -v '^ *+' conftest.er1 >conftest.err
                   21380:   rm -f conftest.er1
                   21381:   cat conftest.err >&5
1.16      millert  21382:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21383:   (exit $ac_status); } && {
                   21384:         test -z "$ac_c_werror_flag" ||
                   21385:         test ! -s conftest.err
1.37      millert  21386:        } && test -s conftest.$ac_objext; then
                   21387:
                   21388:                { echo "$as_me:$LINENO: result: yes" >&5
                   21389: echo "${ECHO_T}yes" >&6; }
                   21390:                cat >>confdefs.h <<\_ACEOF
                   21391: #define HAVE_HEIMDAL 1
                   21392: _ACEOF
                   21393:
                   21394:
1.9       millert  21395: else
                   21396:   echo "$as_me: failed program was:" >&5
1.16      millert  21397: sed 's/^/| /' conftest.$ac_ext >&5
                   21398:
1.37      millert  21399:
                   21400:                { echo "$as_me:$LINENO: result: no" >&5
                   21401: echo "${ECHO_T}no" >&6; }
                   21402:
                   21403:
1.25      millert  21404: fi
1.27      millert  21405:
1.37      millert  21406: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   21407:     fi
1.25      millert  21408: fi
1.37      millert  21409: if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
                   21410:     cat >>confdefs.h <<\_ACEOF
                   21411: #define HAVE_KERB5 1
                   21412: _ACEOF
                   21413:
                   21414:                 if test "$with_kerb5" = "yes"; then
                   21415:        found=no
                   21416:        O_CPPFLAGS="$CPPFLAGS"
                   21417:        for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
                   21418:            CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
                   21419:            cat >conftest.$ac_ext <<_ACEOF
                   21420: #include <krb5.h>
                   21421: _ACEOF
                   21422: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   21423: case "(($ac_try" in
                   21424:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21425:   *) ac_try_echo=$ac_try;;
                   21426: esac
                   21427: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21428:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   21429:   ac_status=$?
                   21430:   grep -v '^ *+' conftest.er1 >conftest.err
                   21431:   rm -f conftest.er1
                   21432:   cat conftest.err >&5
                   21433:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21434:   (exit $ac_status); } >/dev/null && {
                   21435:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   21436:         test ! -s conftest.err
                   21437:        }; then
                   21438:   found=yes; break
1.27      millert  21439: else
1.37      millert  21440:   echo "$as_me: failed program was:" >&5
                   21441: sed 's/^/| /' conftest.$ac_ext >&5
                   21442:
                   21443:
1.9       millert  21444: fi
1.25      millert  21445:
1.37      millert  21446: rm -f conftest.err conftest.$ac_ext
                   21447:        done
                   21448:        if test X"$found" = X"no"; then
                   21449:            CPPFLAGS="$O_CPPFLAGS"
                   21450:            { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
                   21451: 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;}
                   21452:        fi
                   21453:     else
                   21454:
                   21455:     if test X"$with_rpath" = X"yes"; then
1.47      millert  21456:        case "$host" in
                   21457:            *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
                   21458:                        ;;
                   21459:            *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
                   21460:                        ;;
                   21461:        esac
1.37      millert  21462:     else
                   21463:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
                   21464:     fi
                   21465:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21466:        blibpath_add="${blibpath_add}:${with_kerb5}/lib"
                   21467:     fi
1.27      millert  21468:
1.37      millert  21469:        CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
                   21470:     fi
1.25      millert  21471:
1.37      millert  21472:                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
                   21473: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
1.27      millert  21474:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21475: /* confdefs.h.  */
                   21476: _ACEOF
                   21477: cat confdefs.h >>conftest.$ac_ext
                   21478: cat >>conftest.$ac_ext <<_ACEOF
                   21479: /* end confdefs.h.  */
1.37      millert  21480: #include <krb5.h>
1.9       millert  21481: int
                   21482: main ()
                   21483: {
1.37      millert  21484: const char *tmp = heimdal_version;
1.9       millert  21485:   ;
                   21486:   return 0;
                   21487: }
                   21488: _ACEOF
1.27      millert  21489: rm -f conftest.$ac_objext
                   21490: if { (ac_try="$ac_compile"
                   21491: case "(($ac_try" in
                   21492:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21493:   *) ac_try_echo=$ac_try;;
                   21494: esac
                   21495: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21496:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  21497:   ac_status=$?
1.25      millert  21498:   grep -v '^ *+' conftest.er1 >conftest.err
                   21499:   rm -f conftest.er1
                   21500:   cat conftest.err >&5
1.16      millert  21501:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21502:   (exit $ac_status); } && {
                   21503:         test -z "$ac_c_werror_flag" ||
                   21504:         test ! -s conftest.err
                   21505:        } && test -s conftest.$ac_objext; then
1.16      millert  21506:
1.27      millert  21507:            { echo "$as_me:$LINENO: result: yes" >&5
                   21508: echo "${ECHO_T}yes" >&6; }
1.37      millert  21509:            cat >>confdefs.h <<\_ACEOF
                   21510: #define HAVE_HEIMDAL 1
                   21511: _ACEOF
                   21512:
                   21513:            # XXX - need to check whether -lcrypo is needed!
                   21514:            SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
1.27      millert  21515:            { echo "$as_me:$LINENO: checking for main in -lroken" >&5
                   21516: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
                   21517: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9       millert  21518:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21519: else
1.9       millert  21520:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  21521: LIBS="-lroken  $LIBS"
1.9       millert  21522: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21523: /* confdefs.h.  */
                   21524: _ACEOF
                   21525: cat confdefs.h >>conftest.$ac_ext
                   21526: cat >>conftest.$ac_ext <<_ACEOF
                   21527: /* end confdefs.h.  */
1.9       millert  21528:
1.27      millert  21529:
1.9       millert  21530: int
                   21531: main ()
                   21532: {
1.27      millert  21533: return main ();
1.9       millert  21534:   ;
                   21535:   return 0;
                   21536: }
                   21537: _ACEOF
                   21538: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21539: if { (ac_try="$ac_link"
                   21540: case "(($ac_try" in
                   21541:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21542:   *) ac_try_echo=$ac_try;;
                   21543: esac
                   21544: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21545:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21546:   ac_status=$?
1.25      millert  21547:   grep -v '^ *+' conftest.er1 >conftest.err
                   21548:   rm -f conftest.er1
                   21549:   cat conftest.err >&5
1.16      millert  21550:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21551:   (exit $ac_status); } && {
                   21552:         test -z "$ac_c_werror_flag" ||
                   21553:         test ! -s conftest.err
                   21554:        } && test -s conftest$ac_exeext &&
                   21555:        $as_test_x conftest$ac_exeext; then
                   21556:   ac_cv_lib_roken_main=yes
1.9       millert  21557: else
                   21558:   echo "$as_me: failed program was:" >&5
1.16      millert  21559: sed 's/^/| /' conftest.$ac_ext >&5
                   21560:
1.27      millert  21561:        ac_cv_lib_roken_main=no
1.9       millert  21562: fi
1.27      millert  21563:
                   21564: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21565:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  21566: LIBS=$ac_check_lib_save_LIBS
                   21567: fi
1.27      millert  21568: { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
                   21569: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
                   21570: if test $ac_cv_lib_roken_main = yes; then
1.37      millert  21571:   SUDO_LIBS="${SUDO_LIBS} -lroken"
1.1       millert  21572: fi
                   21573:
1.27      millert  21574:
                   21575: else
                   21576:   echo "$as_me: failed program was:" >&5
                   21577: sed 's/^/| /' conftest.$ac_ext >&5
                   21578:
                   21579:
                   21580:            { echo "$as_me:$LINENO: result: no" >&5
                   21581: echo "${ECHO_T}no" >&6; }
1.37      millert  21582:            SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
                   21583:            { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
                   21584: echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
                   21585: if test "${ac_cv_lib_krb5support_main+set}" = set; then
1.9       millert  21586:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21587: else
1.27      millert  21588:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  21589: LIBS="-lkrb5support  $LIBS"
1.27      millert  21590: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21591: /* confdefs.h.  */
                   21592: _ACEOF
                   21593: cat confdefs.h >>conftest.$ac_ext
                   21594: cat >>conftest.$ac_ext <<_ACEOF
                   21595: /* end confdefs.h.  */
1.25      millert  21596:
1.1       millert  21597:
1.16      millert  21598: int
                   21599: main ()
                   21600: {
1.27      millert  21601: return main ();
1.9       millert  21602:   ;
                   21603:   return 0;
                   21604: }
                   21605: _ACEOF
                   21606: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21607: if { (ac_try="$ac_link"
                   21608: case "(($ac_try" in
                   21609:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21610:   *) ac_try_echo=$ac_try;;
                   21611: esac
                   21612: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21613:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21614:   ac_status=$?
1.25      millert  21615:   grep -v '^ *+' conftest.er1 >conftest.err
                   21616:   rm -f conftest.er1
                   21617:   cat conftest.err >&5
1.16      millert  21618:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21619:   (exit $ac_status); } && {
                   21620:         test -z "$ac_c_werror_flag" ||
                   21621:         test ! -s conftest.err
                   21622:        } && test -s conftest$ac_exeext &&
                   21623:        $as_test_x conftest$ac_exeext; then
1.37      millert  21624:   ac_cv_lib_krb5support_main=yes
1.9       millert  21625: else
                   21626:   echo "$as_me: failed program was:" >&5
1.16      millert  21627: sed 's/^/| /' conftest.$ac_ext >&5
                   21628:
1.37      millert  21629:        ac_cv_lib_krb5support_main=no
1.9       millert  21630: fi
1.27      millert  21631:
                   21632: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21633:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  21634: LIBS=$ac_check_lib_save_LIBS
1.9       millert  21635: fi
1.37      millert  21636: { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
                   21637: echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
                   21638: if test $ac_cv_lib_krb5support_main = yes; then
1.41      millert  21639:   SUDO_LIBS="${SUDO_LIBS} -lkrb5support"
1.37      millert  21640: fi
                   21641:
                   21642:
                   21643: fi
                   21644:
                   21645: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   21646:     AUTH_OBJS="$AUTH_OBJS kerb5.o"
                   21647:     _LIBS="$LIBS"
                   21648:     LIBS="${LIBS} ${SUDO_LIBS}"
                   21649:
                   21650:
1.41      millert  21651: for ac_func in krb5_verify_user krb5_init_secure_context
1.37      millert  21652: do
                   21653: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   21654: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   21655: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   21656: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  21657:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21658: else
1.37      millert  21659:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21660: /* confdefs.h.  */
                   21661: _ACEOF
                   21662: cat confdefs.h >>conftest.$ac_ext
                   21663: cat >>conftest.$ac_ext <<_ACEOF
                   21664: /* end confdefs.h.  */
1.37      millert  21665: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   21666:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   21667: #define $ac_func innocuous_$ac_func
                   21668:
                   21669: /* System header to define __stub macros and hopefully few prototypes,
                   21670:     which can conflict with char $ac_func (); below.
                   21671:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   21672:     <limits.h> exists even on freestanding compilers.  */
                   21673:
                   21674: #ifdef __STDC__
                   21675: # include <limits.h>
                   21676: #else
                   21677: # include <assert.h>
                   21678: #endif
1.9       millert  21679:
1.37      millert  21680: #undef $ac_func
                   21681:
                   21682: /* Override any GCC internal prototype to avoid an error.
                   21683:    Use char because int might match the return type of a GCC
                   21684:    builtin and then its argument prototype would still apply.  */
                   21685: #ifdef __cplusplus
                   21686: extern "C"
                   21687: #endif
                   21688: char $ac_func ();
                   21689: /* The GNU C library defines this for functions which it implements
                   21690:     to always fail with ENOSYS.  Some functions are actually named
                   21691:     something starting with __ and the normal name is an alias.  */
                   21692: #if defined __stub_$ac_func || defined __stub___$ac_func
                   21693: choke me
                   21694: #endif
1.27      millert  21695:
1.9       millert  21696: int
                   21697: main ()
                   21698: {
1.37      millert  21699: return $ac_func ();
1.9       millert  21700:   ;
                   21701:   return 0;
                   21702: }
                   21703: _ACEOF
                   21704: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21705: if { (ac_try="$ac_link"
                   21706: case "(($ac_try" in
                   21707:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21708:   *) ac_try_echo=$ac_try;;
                   21709: esac
                   21710: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21711:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21712:   ac_status=$?
1.25      millert  21713:   grep -v '^ *+' conftest.er1 >conftest.err
                   21714:   rm -f conftest.er1
                   21715:   cat conftest.err >&5
1.16      millert  21716:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21717:   (exit $ac_status); } && {
                   21718:         test -z "$ac_c_werror_flag" ||
                   21719:         test ! -s conftest.err
                   21720:        } && test -s conftest$ac_exeext &&
                   21721:        $as_test_x conftest$ac_exeext; then
1.37      millert  21722:   eval "$as_ac_var=yes"
1.9       millert  21723: else
                   21724:   echo "$as_me: failed program was:" >&5
1.16      millert  21725: sed 's/^/| /' conftest.$ac_ext >&5
                   21726:
1.37      millert  21727:        eval "$as_ac_var=no"
1.9       millert  21728: fi
1.27      millert  21729:
                   21730: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21731:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  21732: fi
1.37      millert  21733: ac_res=`eval echo '${'$as_ac_var'}'`
1.27      millert  21734:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   21735: echo "${ECHO_T}$ac_res" >&6; }
1.37      millert  21736: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   21737:   cat >>confdefs.h <<_ACEOF
                   21738: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   21739: _ACEOF
1.27      millert  21740:
                   21741: fi
1.37      millert  21742: done
1.27      millert  21743:
1.41      millert  21744:
                   21745: for ac_func in krb5_get_init_creds_opt_alloc
                   21746: do
                   21747: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   21748: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   21749: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   21750: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   21751:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21752: else
                   21753:   cat >conftest.$ac_ext <<_ACEOF
                   21754: /* confdefs.h.  */
                   21755: _ACEOF
                   21756: cat confdefs.h >>conftest.$ac_ext
                   21757: cat >>conftest.$ac_ext <<_ACEOF
                   21758: /* end confdefs.h.  */
                   21759: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   21760:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   21761: #define $ac_func innocuous_$ac_func
                   21762:
                   21763: /* System header to define __stub macros and hopefully few prototypes,
                   21764:     which can conflict with char $ac_func (); below.
                   21765:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   21766:     <limits.h> exists even on freestanding compilers.  */
                   21767:
                   21768: #ifdef __STDC__
                   21769: # include <limits.h>
                   21770: #else
                   21771: # include <assert.h>
                   21772: #endif
                   21773:
                   21774: #undef $ac_func
                   21775:
                   21776: /* Override any GCC internal prototype to avoid an error.
                   21777:    Use char because int might match the return type of a GCC
                   21778:    builtin and then its argument prototype would still apply.  */
                   21779: #ifdef __cplusplus
                   21780: extern "C"
                   21781: #endif
                   21782: char $ac_func ();
                   21783: /* The GNU C library defines this for functions which it implements
                   21784:     to always fail with ENOSYS.  Some functions are actually named
                   21785:     something starting with __ and the normal name is an alias.  */
                   21786: #if defined __stub_$ac_func || defined __stub___$ac_func
                   21787: choke me
                   21788: #endif
                   21789:
                   21790: int
                   21791: main ()
                   21792: {
                   21793: return $ac_func ();
                   21794:   ;
                   21795:   return 0;
                   21796: }
                   21797: _ACEOF
                   21798: rm -f conftest.$ac_objext conftest$ac_exeext
                   21799: if { (ac_try="$ac_link"
                   21800: case "(($ac_try" in
                   21801:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21802:   *) ac_try_echo=$ac_try;;
                   21803: esac
                   21804: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21805:   (eval "$ac_link") 2>conftest.er1
                   21806:   ac_status=$?
                   21807:   grep -v '^ *+' conftest.er1 >conftest.err
                   21808:   rm -f conftest.er1
                   21809:   cat conftest.err >&5
                   21810:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21811:   (exit $ac_status); } && {
                   21812:         test -z "$ac_c_werror_flag" ||
                   21813:         test ! -s conftest.err
                   21814:        } && test -s conftest$ac_exeext &&
                   21815:        $as_test_x conftest$ac_exeext; then
                   21816:   eval "$as_ac_var=yes"
                   21817: else
                   21818:   echo "$as_me: failed program was:" >&5
                   21819: sed 's/^/| /' conftest.$ac_ext >&5
                   21820:
                   21821:        eval "$as_ac_var=no"
                   21822: fi
                   21823:
                   21824: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   21825:       conftest$ac_exeext conftest.$ac_ext
                   21826: fi
                   21827: ac_res=`eval echo '${'$as_ac_var'}'`
                   21828:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   21829: echo "${ECHO_T}$ac_res" >&6; }
                   21830: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   21831:   cat >>confdefs.h <<_ACEOF
                   21832: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   21833: _ACEOF
                   21834:
                   21835:        { echo "$as_me:$LINENO: checking whether krb5_get_init_creds_opt_free takes a context" >&5
                   21836: echo $ECHO_N "checking whether krb5_get_init_creds_opt_free takes a context... $ECHO_C" >&6; }
1.37      millert  21837: if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then
1.9       millert  21838:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21839: else
1.27      millert  21840:
1.41      millert  21841:                cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21842: /* confdefs.h.  */
                   21843: _ACEOF
                   21844: cat confdefs.h >>conftest.$ac_ext
                   21845: cat >>conftest.$ac_ext <<_ACEOF
                   21846: /* end confdefs.h.  */
1.27      millert  21847: #include <krb5.h>
1.9       millert  21848: int
                   21849: main ()
                   21850: {
1.41      millert  21851: krb5_get_init_creds_opt_free(NULL, NULL);
1.9       millert  21852:   ;
                   21853:   return 0;
                   21854: }
                   21855: _ACEOF
1.27      millert  21856: rm -f conftest.$ac_objext
                   21857: if { (ac_try="$ac_compile"
                   21858: case "(($ac_try" in
                   21859:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21860:   *) ac_try_echo=$ac_try;;
                   21861: esac
                   21862: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21863:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  21864:   ac_status=$?
1.25      millert  21865:   grep -v '^ *+' conftest.er1 >conftest.err
                   21866:   rm -f conftest.er1
                   21867:   cat conftest.err >&5
1.16      millert  21868:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21869:   (exit $ac_status); } && {
                   21870:         test -z "$ac_c_werror_flag" ||
                   21871:         test ! -s conftest.err
                   21872:        } && test -s conftest.$ac_objext; then
1.37      millert  21873:   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
1.27      millert  21874: else
                   21875:   echo "$as_me: failed program was:" >&5
                   21876: sed 's/^/| /' conftest.$ac_ext >&5
                   21877:
1.37      millert  21878:        sudo_cv_krb5_get_init_creds_opt_free_two_args=no
                   21879:
                   21880: fi
1.27      millert  21881:
1.37      millert  21882: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.27      millert  21883:
                   21884:
                   21885: fi
1.37      millert  21886: { echo "$as_me:$LINENO: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
                   21887: echo "${ECHO_T}$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
1.41      millert  21888:
                   21889: fi
                   21890: done
                   21891:
1.37      millert  21892:     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
                   21893:        cat >>confdefs.h <<\_ACEOF
                   21894: #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1
                   21895: _ACEOF
1.27      millert  21896:
                   21897:     fi
1.37      millert  21898:     LIBS="$_LIBS"
1.27      millert  21899: fi
                   21900:
1.37      millert  21901: if test ${with_AFS-'no'} = "yes"; then
                   21902:
                   21903:     # looks like the "standard" place for AFS libs is /usr/afsws/lib
                   21904:     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
                   21905:     for i in $AFSLIBDIRS; do
                   21906:        if test -d ${i}; then
                   21907:
                   21908:     if test X"$with_rpath" = X"yes"; then
1.47      millert  21909:        case "$host" in
                   21910:            *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,+b,$i"
                   21911:                        ;;
                   21912:            *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,-R$i"
                   21913:                        ;;
                   21914:        esac
1.37      millert  21915:     else
                   21916:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
                   21917:     fi
                   21918:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21919:        blibpath_add="${blibpath_add}:$i"
                   21920:     fi
                   21921:
                   21922:            FOUND_AFSLIBDIR=true
                   21923:        fi
                   21924:     done
                   21925:     if test -z "$FOUND_AFSLIBDIR"; then
                   21926:        { echo "$as_me:$LINENO: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&5
                   21927: echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
                   21928:     fi
                   21929:
                   21930:     # Order is important here.  Note that we build AFS_LIBS from right to left
                   21931:     # since AFS_LIBS may be initialized with BSD compat libs that must go last
                   21932:     AFS_LIBS="-laudit ${AFS_LIBS}"
                   21933:     for i in $AFSLIBDIRS; do
                   21934:        if test -f ${i}/util.a; then
                   21935:            AFS_LIBS="${i}/util.a ${AFS_LIBS}"
                   21936:            FOUND_UTIL_A=true
                   21937:            break;
                   21938:        fi
                   21939:     done
                   21940:     if test -z "$FOUND_UTIL_A"; then
                   21941:        AFS_LIBS="-lutil ${AFS_LIBS}"
                   21942:     fi
                   21943:     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
                   21944:
                   21945:     # AFS includes may live in /usr/include on some machines...
                   21946:     for i in /usr/afsws/include; do
                   21947:        if test -d ${i}; then
                   21948:            CPPFLAGS="${CPPFLAGS} -I${i}"
                   21949:            FOUND_AFSINCDIR=true
                   21950:        fi
                   21951:     done
                   21952:
                   21953:     if test -z "$FOUND_AFSLIBDIR"; then
                   21954:        { echo "$as_me:$LINENO: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&5
                   21955: 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;}
                   21956:     fi
1.16      millert  21957:
1.37      millert  21958:     AUTH_OBJS="$AUTH_OBJS afs.o"
                   21959: fi
1.27      millert  21960:
1.37      millert  21961: if test ${with_DCE-'no'} = "yes"; then
                   21962:     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
                   21963:     SUDO_LIBS="${SUDO_LIBS} -ldce"
                   21964:     AUTH_OBJS="$AUTH_OBJS dce.o"
1.9       millert  21965: fi
1.27      millert  21966:
1.37      millert  21967: if test ${with_skey-'no'} = "yes"; then
                   21968:     O_LDFLAGS="$LDFLAGS"
                   21969:     if test "$with_skey" != "yes"; then
                   21970:        CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
                   21971:
                   21972:     if test X"$with_rpath" = X"yes"; then
1.47      millert  21973:        case "$host" in
                   21974:            *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
                   21975:                        ;;
                   21976:            *)          LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
                   21977:                        ;;
                   21978:        esac
1.27      millert  21979:     else
1.37      millert  21980:        LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
                   21981:     fi
                   21982:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   21983:        blibpath_add="${blibpath_add}:${with_skey}/lib"
                   21984:     fi
                   21985:
1.27      millert  21986:
                   21987:     if test X"$with_rpath" = X"yes"; then
1.47      millert  21988:        case "$host" in
                   21989:            *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
                   21990:                        ;;
                   21991:            *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
                   21992:                        ;;
                   21993:        esac
1.27      millert  21994:     else
1.37      millert  21995:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
1.27      millert  21996:     fi
                   21997:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
1.37      millert  21998:        blibpath_add="${blibpath_add}:${with_skey}/lib"
1.27      millert  21999:     fi
                   22000:
1.37      millert  22001:        cat >conftest.$ac_ext <<_ACEOF
                   22002: #include <skey.h>
1.27      millert  22003: _ACEOF
1.37      millert  22004: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27      millert  22005: case "(($ac_try" in
                   22006:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22007:   *) ac_try_echo=$ac_try;;
                   22008: esac
                   22009: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  22010:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.27      millert  22011:   ac_status=$?
                   22012:   grep -v '^ *+' conftest.er1 >conftest.err
                   22013:   rm -f conftest.er1
                   22014:   cat conftest.err >&5
                   22015:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  22016:   (exit $ac_status); } >/dev/null && {
                   22017:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27      millert  22018:         test ! -s conftest.err
1.37      millert  22019:        }; then
                   22020:   found=yes
1.1       millert  22021: else
1.37      millert  22022:   echo "$as_me: failed program was:" >&5
                   22023: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  22024:
1.37      millert  22025:   found=no
                   22026: fi
1.27      millert  22027:
1.37      millert  22028: rm -f conftest.err conftest.$ac_ext
                   22029:     else
                   22030:        found=no
                   22031:        O_CPPFLAGS="$CPPFLAGS"
                   22032:        for dir in "" "/usr/local" "/usr/contrib"; do
                   22033:            test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
                   22034:            cat >conftest.$ac_ext <<_ACEOF
                   22035: #include <skey.h>
1.25      millert  22036: _ACEOF
1.37      millert  22037: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27      millert  22038: case "(($ac_try" in
                   22039:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22040:   *) ac_try_echo=$ac_try;;
                   22041: esac
                   22042: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  22043:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25      millert  22044:   ac_status=$?
                   22045:   grep -v '^ *+' conftest.er1 >conftest.err
                   22046:   rm -f conftest.er1
                   22047:   cat conftest.err >&5
                   22048:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  22049:   (exit $ac_status); } >/dev/null && {
                   22050:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27      millert  22051:         test ! -s conftest.err
1.37      millert  22052:        }; then
                   22053:   found=yes; break
1.25      millert  22054: else
                   22055:   echo "$as_me: failed program was:" >&5
                   22056: sed 's/^/| /' conftest.$ac_ext >&5
                   22057:
1.37      millert  22058:
1.25      millert  22059: fi
1.27      millert  22060:
1.37      millert  22061: rm -f conftest.err conftest.$ac_ext
                   22062:        done
                   22063:        if test "$found" = "no" -o -z "$dir"; then
                   22064:            CPPFLAGS="$O_CPPFLAGS"
                   22065:        else
1.25      millert  22066:
1.37      millert  22067:     if test X"$with_rpath" = X"yes"; then
1.47      millert  22068:        case "$host" in
                   22069:            *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
                   22070:                        ;;
                   22071:            *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
                   22072:                        ;;
                   22073:        esac
1.37      millert  22074:     else
                   22075:        LDFLAGS="${LDFLAGS} -L${dir}/lib"
                   22076:     fi
                   22077:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   22078:        blibpath_add="${blibpath_add}:${dir}/lib"
                   22079:     fi
1.25      millert  22080:
1.27      millert  22081:
1.37      millert  22082:     if test X"$with_rpath" = X"yes"; then
1.47      millert  22083:        case "$host" in
                   22084:            *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
                   22085:                        ;;
                   22086:            *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
                   22087:                        ;;
                   22088:        esac
1.37      millert  22089:     else
                   22090:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
                   22091:     fi
                   22092:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   22093:        blibpath_add="${blibpath_add}:${dir}/lib"
                   22094:     fi
1.27      millert  22095:
1.37      millert  22096:        fi
                   22097:     fi
                   22098:     if test "$found" = "no"; then
                   22099:        { echo "$as_me:$LINENO: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
                   22100: 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;}
                   22101:     fi
                   22102:     { echo "$as_me:$LINENO: checking for main in -lskey" >&5
                   22103: echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
                   22104: if test "${ac_cv_lib_skey_main+set}" = set; then
1.33      millert  22105:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22106: else
                   22107:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  22108: LIBS="-lskey  $LIBS"
1.33      millert  22109: cat >conftest.$ac_ext <<_ACEOF
                   22110: /* confdefs.h.  */
                   22111: _ACEOF
                   22112: cat confdefs.h >>conftest.$ac_ext
                   22113: cat >>conftest.$ac_ext <<_ACEOF
                   22114: /* end confdefs.h.  */
                   22115:
                   22116:
                   22117: int
                   22118: main ()
                   22119: {
                   22120: return main ();
                   22121:   ;
                   22122:   return 0;
                   22123: }
                   22124: _ACEOF
                   22125: rm -f conftest.$ac_objext conftest$ac_exeext
                   22126: if { (ac_try="$ac_link"
                   22127: case "(($ac_try" in
                   22128:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22129:   *) ac_try_echo=$ac_try;;
                   22130: esac
                   22131: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22132:   (eval "$ac_link") 2>conftest.er1
                   22133:   ac_status=$?
                   22134:   grep -v '^ *+' conftest.er1 >conftest.err
                   22135:   rm -f conftest.er1
                   22136:   cat conftest.err >&5
                   22137:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22138:   (exit $ac_status); } && {
                   22139:         test -z "$ac_c_werror_flag" ||
                   22140:         test ! -s conftest.err
                   22141:        } && test -s conftest$ac_exeext &&
                   22142:        $as_test_x conftest$ac_exeext; then
1.37      millert  22143:   ac_cv_lib_skey_main=yes
1.33      millert  22144: else
                   22145:   echo "$as_me: failed program was:" >&5
                   22146: sed 's/^/| /' conftest.$ac_ext >&5
                   22147:
1.37      millert  22148:        ac_cv_lib_skey_main=no
1.33      millert  22149: fi
                   22150:
                   22151: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22152:       conftest$ac_exeext conftest.$ac_ext
                   22153: LIBS=$ac_check_lib_save_LIBS
                   22154: fi
1.37      millert  22155: { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
                   22156: echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
                   22157: if test $ac_cv_lib_skey_main = yes; then
                   22158:   found=yes
                   22159: else
                   22160:   { echo "$as_me:$LINENO: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&5
                   22161: echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&2;}
1.33      millert  22162: fi
1.25      millert  22163:
1.37      millert  22164:     { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
                   22165: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
                   22166: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
1.25      millert  22167:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22168: else
1.37      millert  22169:   ac_check_lib_save_LIBS=$LIBS
                   22170: LIBS="-lskey  $LIBS"
                   22171: cat >conftest.$ac_ext <<_ACEOF
1.25      millert  22172: /* confdefs.h.  */
                   22173: _ACEOF
                   22174: cat confdefs.h >>conftest.$ac_ext
                   22175: cat >>conftest.$ac_ext <<_ACEOF
                   22176: /* end confdefs.h.  */
                   22177:
1.27      millert  22178: /* Override any GCC internal prototype to avoid an error.
                   22179:    Use char because int might match the return type of a GCC
                   22180:    builtin and then its argument prototype would still apply.  */
1.25      millert  22181: #ifdef __cplusplus
                   22182: extern "C"
                   22183: #endif
1.37      millert  22184: char skeyaccess ();
1.9       millert  22185: int
                   22186: main ()
                   22187: {
1.37      millert  22188: return skeyaccess ();
1.9       millert  22189:   ;
                   22190:   return 0;
                   22191: }
                   22192: _ACEOF
                   22193: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  22194: if { (ac_try="$ac_link"
                   22195: case "(($ac_try" in
                   22196:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22197:   *) ac_try_echo=$ac_try;;
                   22198: esac
                   22199: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22200:   (eval "$ac_link") 2>conftest.er1
1.9       millert  22201:   ac_status=$?
1.25      millert  22202:   grep -v '^ *+' conftest.er1 >conftest.err
                   22203:   rm -f conftest.er1
                   22204:   cat conftest.err >&5
1.16      millert  22205:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22206:   (exit $ac_status); } && {
                   22207:         test -z "$ac_c_werror_flag" ||
                   22208:         test ! -s conftest.err
                   22209:        } && test -s conftest$ac_exeext &&
                   22210:        $as_test_x conftest$ac_exeext; then
1.37      millert  22211:   ac_cv_lib_skey_skeyaccess=yes
1.9       millert  22212: else
                   22213:   echo "$as_me: failed program was:" >&5
1.16      millert  22214: sed 's/^/| /' conftest.$ac_ext >&5
                   22215:
1.37      millert  22216:        ac_cv_lib_skey_skeyaccess=no
1.1       millert  22217: fi
                   22218:
1.37      millert  22219: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22220:       conftest$ac_exeext conftest.$ac_ext
                   22221: LIBS=$ac_check_lib_save_LIBS
                   22222: fi
                   22223: { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
                   22224: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
                   22225: if test $ac_cv_lib_skey_skeyaccess = yes; then
                   22226:   cat >>confdefs.h <<\_ACEOF
                   22227: #define HAVE_SKEYACCESS 1
                   22228: _ACEOF
1.27      millert  22229:
1.1       millert  22230: fi
                   22231:
1.37      millert  22232:     LDFLAGS="$O_LDFLAGS"
                   22233:     SUDO_LIBS="${SUDO_LIBS} -lskey"
                   22234:     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
1.1       millert  22235: fi
                   22236:
1.37      millert  22237: if test ${with_opie-'no'} = "yes"; then
1.25      millert  22238:     O_LDFLAGS="$LDFLAGS"
1.37      millert  22239:     if test "$with_opie" != "yes"; then
                   22240:        CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
1.25      millert  22241:
                   22242:     if test X"$with_rpath" = X"yes"; then
1.47      millert  22243:        case "$host" in
                   22244:            *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
                   22245:                        ;;
                   22246:            *)          LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
                   22247:                        ;;
                   22248:        esac
1.25      millert  22249:     else
1.37      millert  22250:        LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
1.25      millert  22251:     fi
                   22252:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
1.37      millert  22253:        blibpath_add="${blibpath_add}:${with_opie}/lib"
1.25      millert  22254:     fi
                   22255:
                   22256:
                   22257:     if test X"$with_rpath" = X"yes"; then
1.47      millert  22258:        case "$host" in
                   22259:            *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
                   22260:                        ;;
                   22261:            *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
                   22262:                        ;;
                   22263:        esac
1.25      millert  22264:     else
1.37      millert  22265:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
1.25      millert  22266:     fi
                   22267:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
1.37      millert  22268:        blibpath_add="${blibpath_add}:${with_opie}/lib"
1.25      millert  22269:     fi
                   22270:
                   22271:        cat >conftest.$ac_ext <<_ACEOF
1.37      millert  22272: #include <opie.h>
1.16      millert  22273: _ACEOF
1.27      millert  22274: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   22275: case "(($ac_try" in
                   22276:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22277:   *) ac_try_echo=$ac_try;;
                   22278: esac
                   22279: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22280:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  22281:   ac_status=$?
1.25      millert  22282:   grep -v '^ *+' conftest.er1 >conftest.err
                   22283:   rm -f conftest.er1
                   22284:   cat conftest.err >&5
1.16      millert  22285:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22286:   (exit $ac_status); } >/dev/null && {
                   22287:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   22288:         test ! -s conftest.err
                   22289:        }; then
1.25      millert  22290:   found=yes
                   22291: else
                   22292:   echo "$as_me: failed program was:" >&5
                   22293: sed 's/^/| /' conftest.$ac_ext >&5
                   22294:
                   22295:   found=no
                   22296: fi
1.27      millert  22297:
1.25      millert  22298: rm -f conftest.err conftest.$ac_ext
                   22299:     else
                   22300:        found=no
                   22301:        O_CPPFLAGS="$CPPFLAGS"
                   22302:        for dir in "" "/usr/local" "/usr/contrib"; do
                   22303:            test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
                   22304:            cat >conftest.$ac_ext <<_ACEOF
1.37      millert  22305: #include <opie.h>
1.25      millert  22306: _ACEOF
1.27      millert  22307: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   22308: case "(($ac_try" in
                   22309:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22310:   *) ac_try_echo=$ac_try;;
                   22311: esac
                   22312: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22313:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  22314:   ac_status=$?
1.25      millert  22315:   grep -v '^ *+' conftest.er1 >conftest.err
                   22316:   rm -f conftest.er1
                   22317:   cat conftest.err >&5
1.16      millert  22318:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22319:   (exit $ac_status); } >/dev/null && {
                   22320:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   22321:         test ! -s conftest.err
                   22322:        }; then
1.25      millert  22323:   found=yes; break
1.9       millert  22324: else
                   22325:   echo "$as_me: failed program was:" >&5
1.16      millert  22326: sed 's/^/| /' conftest.$ac_ext >&5
                   22327:
1.25      millert  22328:
1.9       millert  22329: fi
1.27      millert  22330:
1.25      millert  22331: rm -f conftest.err conftest.$ac_ext
                   22332:        done
                   22333:        if test "$found" = "no" -o -z "$dir"; then
                   22334:            CPPFLAGS="$O_CPPFLAGS"
                   22335:        else
                   22336:
                   22337:     if test X"$with_rpath" = X"yes"; then
1.47      millert  22338:        case "$host" in
                   22339:            *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
                   22340:                        ;;
                   22341:            *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
                   22342:                        ;;
                   22343:        esac
1.25      millert  22344:     else
                   22345:        LDFLAGS="${LDFLAGS} -L${dir}/lib"
                   22346:     fi
                   22347:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   22348:        blibpath_add="${blibpath_add}:${dir}/lib"
                   22349:     fi
1.1       millert  22350:
                   22351:
1.25      millert  22352:     if test X"$with_rpath" = X"yes"; then
1.47      millert  22353:        case "$host" in
                   22354:            *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
                   22355:                        ;;
                   22356:            *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
                   22357:                        ;;
                   22358:        esac
1.25      millert  22359:     else
                   22360:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
                   22361:     fi
                   22362:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   22363:        blibpath_add="${blibpath_add}:${dir}/lib"
                   22364:     fi
1.1       millert  22365:
1.25      millert  22366:        fi
                   22367:     fi
                   22368:     if test "$found" = "no"; then
1.37      millert  22369:        { echo "$as_me:$LINENO: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
                   22370: 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;}
1.25      millert  22371:     fi
1.37      millert  22372:     { echo "$as_me:$LINENO: checking for main in -lopie" >&5
                   22373: echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
                   22374: if test "${ac_cv_lib_opie_main+set}" = set; then
1.9       millert  22375:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  22376: else
1.25      millert  22377:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  22378: LIBS="-lopie  $LIBS"
                   22379: cat >conftest.$ac_ext <<_ACEOF
                   22380: /* confdefs.h.  */
                   22381: _ACEOF
                   22382: cat confdefs.h >>conftest.$ac_ext
                   22383: cat >>conftest.$ac_ext <<_ACEOF
                   22384: /* end confdefs.h.  */
                   22385:
                   22386:
                   22387: int
                   22388: main ()
                   22389: {
                   22390: return main ();
                   22391:   ;
                   22392:   return 0;
                   22393: }
                   22394: _ACEOF
                   22395: rm -f conftest.$ac_objext conftest$ac_exeext
                   22396: if { (ac_try="$ac_link"
                   22397: case "(($ac_try" in
                   22398:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22399:   *) ac_try_echo=$ac_try;;
                   22400: esac
                   22401: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22402:   (eval "$ac_link") 2>conftest.er1
                   22403:   ac_status=$?
                   22404:   grep -v '^ *+' conftest.er1 >conftest.err
                   22405:   rm -f conftest.er1
                   22406:   cat conftest.err >&5
                   22407:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22408:   (exit $ac_status); } && {
                   22409:         test -z "$ac_c_werror_flag" ||
                   22410:         test ! -s conftest.err
                   22411:        } && test -s conftest$ac_exeext &&
                   22412:        $as_test_x conftest$ac_exeext; then
                   22413:   ac_cv_lib_opie_main=yes
                   22414: else
                   22415:   echo "$as_me: failed program was:" >&5
                   22416: sed 's/^/| /' conftest.$ac_ext >&5
                   22417:
                   22418:        ac_cv_lib_opie_main=no
                   22419: fi
                   22420:
                   22421: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22422:       conftest$ac_exeext conftest.$ac_ext
                   22423: LIBS=$ac_check_lib_save_LIBS
                   22424: fi
                   22425: { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
                   22426: echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
                   22427: if test $ac_cv_lib_opie_main = yes; then
                   22428:   found=yes
                   22429: else
                   22430:   { echo "$as_me:$LINENO: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&5
                   22431: echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&2;}
                   22432: fi
                   22433:
                   22434:     LDFLAGS="$O_LDFLAGS"
                   22435:     SUDO_LIBS="${SUDO_LIBS} -lopie"
                   22436:     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
                   22437: fi
                   22438:
                   22439: if test ${with_passwd-'no'} != "no"; then
                   22440:                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
                   22441:        { echo "$as_me:$LINENO: checking for library containing crypt" >&5
                   22442: echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
                   22443: if test "${ac_cv_search_crypt+set}" = set; then
                   22444:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22445: else
                   22446:   ac_func_search_save_LIBS=$LIBS
1.25      millert  22447: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  22448: /* confdefs.h.  */
1.37      millert  22449: _ACEOF
                   22450: cat confdefs.h >>conftest.$ac_ext
                   22451: cat >>conftest.$ac_ext <<_ACEOF
                   22452: /* end confdefs.h.  */
                   22453:
                   22454: /* Override any GCC internal prototype to avoid an error.
                   22455:    Use char because int might match the return type of a GCC
                   22456:    builtin and then its argument prototype would still apply.  */
                   22457: #ifdef __cplusplus
                   22458: extern "C"
                   22459: #endif
                   22460: char crypt ();
                   22461: int
                   22462: main ()
                   22463: {
                   22464: return crypt ();
                   22465:   ;
                   22466:   return 0;
                   22467: }
                   22468: _ACEOF
                   22469: for ac_lib in '' crypt crypt_d ufc; do
                   22470:   if test -z "$ac_lib"; then
                   22471:     ac_res="none required"
                   22472:   else
                   22473:     ac_res=-l$ac_lib
                   22474:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   22475:   fi
                   22476:   rm -f conftest.$ac_objext conftest$ac_exeext
                   22477: if { (ac_try="$ac_link"
                   22478: case "(($ac_try" in
                   22479:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22480:   *) ac_try_echo=$ac_try;;
                   22481: esac
                   22482: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22483:   (eval "$ac_link") 2>conftest.er1
                   22484:   ac_status=$?
                   22485:   grep -v '^ *+' conftest.er1 >conftest.err
                   22486:   rm -f conftest.er1
                   22487:   cat conftest.err >&5
                   22488:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22489:   (exit $ac_status); } && {
                   22490:         test -z "$ac_c_werror_flag" ||
                   22491:         test ! -s conftest.err
                   22492:        } && test -s conftest$ac_exeext &&
                   22493:        $as_test_x conftest$ac_exeext; then
                   22494:   ac_cv_search_crypt=$ac_res
                   22495: else
                   22496:   echo "$as_me: failed program was:" >&5
                   22497: sed 's/^/| /' conftest.$ac_ext >&5
                   22498:
                   22499:
                   22500: fi
                   22501:
                   22502: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22503:       conftest$ac_exeext
                   22504:   if test "${ac_cv_search_crypt+set}" = set; then
                   22505:   break
                   22506: fi
                   22507: done
                   22508: if test "${ac_cv_search_crypt+set}" = set; then
                   22509:   :
                   22510: else
                   22511:   ac_cv_search_crypt=no
                   22512: fi
                   22513: rm conftest.$ac_ext
                   22514: LIBS=$ac_func_search_save_LIBS
                   22515: fi
                   22516: { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
                   22517: echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
                   22518: ac_res=$ac_cv_search_crypt
                   22519: if test "$ac_res" != no; then
                   22520:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   22521:   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
                   22522: fi
                   22523:
                   22524:     fi
                   22525:
                   22526:     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
                   22527:        _LIBS="$LIBS"
                   22528:        LIBS="$LIBS $shadow_libs"
                   22529:        found=no
                   22530:
                   22531: for ac_func in $shadow_funcs
                   22532: do
                   22533: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   22534: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   22535: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   22536: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   22537:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22538: else
                   22539:   cat >conftest.$ac_ext <<_ACEOF
                   22540: /* confdefs.h.  */
                   22541: _ACEOF
                   22542: cat confdefs.h >>conftest.$ac_ext
                   22543: cat >>conftest.$ac_ext <<_ACEOF
                   22544: /* end confdefs.h.  */
                   22545: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   22546:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   22547: #define $ac_func innocuous_$ac_func
                   22548:
                   22549: /* System header to define __stub macros and hopefully few prototypes,
                   22550:     which can conflict with char $ac_func (); below.
                   22551:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   22552:     <limits.h> exists even on freestanding compilers.  */
                   22553:
                   22554: #ifdef __STDC__
                   22555: # include <limits.h>
                   22556: #else
                   22557: # include <assert.h>
                   22558: #endif
                   22559:
                   22560: #undef $ac_func
                   22561:
                   22562: /* Override any GCC internal prototype to avoid an error.
                   22563:    Use char because int might match the return type of a GCC
                   22564:    builtin and then its argument prototype would still apply.  */
                   22565: #ifdef __cplusplus
                   22566: extern "C"
                   22567: #endif
                   22568: char $ac_func ();
                   22569: /* The GNU C library defines this for functions which it implements
                   22570:     to always fail with ENOSYS.  Some functions are actually named
                   22571:     something starting with __ and the normal name is an alias.  */
                   22572: #if defined __stub_$ac_func || defined __stub___$ac_func
                   22573: choke me
                   22574: #endif
1.1       millert  22575:
1.9       millert  22576: int
                   22577: main ()
                   22578: {
1.37      millert  22579: return $ac_func ();
1.9       millert  22580:   ;
                   22581:   return 0;
                   22582: }
                   22583: _ACEOF
                   22584: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  22585: if { (ac_try="$ac_link"
                   22586: case "(($ac_try" in
                   22587:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22588:   *) ac_try_echo=$ac_try;;
                   22589: esac
                   22590: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22591:   (eval "$ac_link") 2>conftest.er1
1.9       millert  22592:   ac_status=$?
1.25      millert  22593:   grep -v '^ *+' conftest.er1 >conftest.err
                   22594:   rm -f conftest.er1
                   22595:   cat conftest.err >&5
1.16      millert  22596:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22597:   (exit $ac_status); } && {
                   22598:         test -z "$ac_c_werror_flag" ||
                   22599:         test ! -s conftest.err
                   22600:        } && test -s conftest$ac_exeext &&
                   22601:        $as_test_x conftest$ac_exeext; then
1.37      millert  22602:   eval "$as_ac_var=yes"
1.1       millert  22603: else
1.9       millert  22604:   echo "$as_me: failed program was:" >&5
1.16      millert  22605: sed 's/^/| /' conftest.$ac_ext >&5
                   22606:
1.37      millert  22607:        eval "$as_ac_var=no"
1.18      millert  22608: fi
                   22609:
1.27      millert  22610: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22611:       conftest$ac_exeext conftest.$ac_ext
                   22612: fi
1.37      millert  22613: ac_res=`eval echo '${'$as_ac_var'}'`
                   22614:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   22615: echo "${ECHO_T}$ac_res" >&6; }
                   22616: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   22617:   cat >>confdefs.h <<_ACEOF
                   22618: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   22619: _ACEOF
                   22620:  found=yes
1.27      millert  22621: fi
1.37      millert  22622: done
                   22623:
                   22624:        if test "$found" = "yes"; then
                   22625:            SUDO_LIBS="$SUDO_LIBS $shadow_libs"
                   22626:        elif test -n "$shadow_libs_optional"; then
                   22627:            LIBS="$LIBS $shadow_libs_optional"
1.18      millert  22628:
1.37      millert  22629: for ac_func in $shadow_funcs
                   22630: do
                   22631: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   22632: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   22633: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   22634: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18      millert  22635:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22636: else
1.37      millert  22637:   cat >conftest.$ac_ext <<_ACEOF
1.18      millert  22638: /* confdefs.h.  */
                   22639: _ACEOF
                   22640: cat confdefs.h >>conftest.$ac_ext
                   22641: cat >>conftest.$ac_ext <<_ACEOF
                   22642: /* end confdefs.h.  */
1.37      millert  22643: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   22644:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   22645: #define $ac_func innocuous_$ac_func
                   22646:
                   22647: /* System header to define __stub macros and hopefully few prototypes,
                   22648:     which can conflict with char $ac_func (); below.
                   22649:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   22650:     <limits.h> exists even on freestanding compilers.  */
                   22651:
                   22652: #ifdef __STDC__
                   22653: # include <limits.h>
                   22654: #else
                   22655: # include <assert.h>
                   22656: #endif
                   22657:
                   22658: #undef $ac_func
1.18      millert  22659:
1.27      millert  22660: /* Override any GCC internal prototype to avoid an error.
                   22661:    Use char because int might match the return type of a GCC
                   22662:    builtin and then its argument prototype would still apply.  */
1.25      millert  22663: #ifdef __cplusplus
                   22664: extern "C"
                   22665: #endif
1.37      millert  22666: char $ac_func ();
                   22667: /* The GNU C library defines this for functions which it implements
                   22668:     to always fail with ENOSYS.  Some functions are actually named
                   22669:     something starting with __ and the normal name is an alias.  */
                   22670: #if defined __stub_$ac_func || defined __stub___$ac_func
                   22671: choke me
                   22672: #endif
                   22673:
1.18      millert  22674: int
                   22675: main ()
                   22676: {
1.37      millert  22677: return $ac_func ();
1.18      millert  22678:   ;
                   22679:   return 0;
                   22680: }
                   22681: _ACEOF
                   22682: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  22683: if { (ac_try="$ac_link"
                   22684: case "(($ac_try" in
                   22685:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22686:   *) ac_try_echo=$ac_try;;
                   22687: esac
                   22688: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22689:   (eval "$ac_link") 2>conftest.er1
1.18      millert  22690:   ac_status=$?
1.25      millert  22691:   grep -v '^ *+' conftest.er1 >conftest.err
                   22692:   rm -f conftest.er1
                   22693:   cat conftest.err >&5
1.18      millert  22694:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22695:   (exit $ac_status); } && {
                   22696:         test -z "$ac_c_werror_flag" ||
                   22697:         test ! -s conftest.err
                   22698:        } && test -s conftest$ac_exeext &&
                   22699:        $as_test_x conftest$ac_exeext; then
1.37      millert  22700:   eval "$as_ac_var=yes"
1.18      millert  22701: else
                   22702:   echo "$as_me: failed program was:" >&5
                   22703: sed 's/^/| /' conftest.$ac_ext >&5
                   22704:
1.37      millert  22705:        eval "$as_ac_var=no"
1.25      millert  22706: fi
1.27      millert  22707:
                   22708: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  22709:       conftest$ac_exeext conftest.$ac_ext
1.18      millert  22710: fi
1.37      millert  22711: ac_res=`eval echo '${'$as_ac_var'}'`
                   22712:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   22713: echo "${ECHO_T}$ac_res" >&6; }
                   22714: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   22715:   cat >>confdefs.h <<_ACEOF
                   22716: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.27      millert  22717: _ACEOF
1.37      millert  22718:  found=yes
1.27      millert  22719: fi
1.37      millert  22720: done
1.25      millert  22721:
1.37      millert  22722:            if test "$found" = "yes"; then
                   22723:                SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
                   22724:            fi
                   22725:        fi
                   22726:        if test "$found" = "yes"; then
                   22727:            case "$shadow_funcs" in
                   22728:                *getprpwnam*) SECUREWARE=1;;
                   22729:            esac
                   22730:            test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
1.27      millert  22731:        else
1.37      millert  22732:            LIBS="$_LIBS"
1.27      millert  22733:        fi
1.37      millert  22734:        CHECKSHADOW=false
1.27      millert  22735:     fi
1.37      millert  22736:     if test "$CHECKSHADOW" = "true"; then
                   22737:        { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
                   22738: echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
                   22739: if test "${ac_cv_search_getspnam+set}" = set; then
1.27      millert  22740:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22741: else
1.37      millert  22742:   ac_func_search_save_LIBS=$LIBS
1.27      millert  22743: cat >conftest.$ac_ext <<_ACEOF
1.17      millert  22744: /* confdefs.h.  */
                   22745: _ACEOF
                   22746: cat confdefs.h >>conftest.$ac_ext
                   22747: cat >>conftest.$ac_ext <<_ACEOF
                   22748: /* end confdefs.h.  */
1.27      millert  22749:
1.37      millert  22750: /* Override any GCC internal prototype to avoid an error.
                   22751:    Use char because int might match the return type of a GCC
                   22752:    builtin and then its argument prototype would still apply.  */
                   22753: #ifdef __cplusplus
                   22754: extern "C"
                   22755: #endif
                   22756: char getspnam ();
1.17      millert  22757: int
                   22758: main ()
                   22759: {
1.37      millert  22760: return getspnam ();
1.17      millert  22761:   ;
                   22762:   return 0;
                   22763: }
                   22764: _ACEOF
1.37      millert  22765: for ac_lib in '' gen; do
                   22766:   if test -z "$ac_lib"; then
                   22767:     ac_res="none required"
                   22768:   else
                   22769:     ac_res=-l$ac_lib
                   22770:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   22771:   fi
                   22772:   rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  22773: if { (ac_try="$ac_link"
                   22774: case "(($ac_try" in
                   22775:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22776:   *) ac_try_echo=$ac_try;;
                   22777: esac
                   22778: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22779:   (eval "$ac_link") 2>conftest.er1
1.17      millert  22780:   ac_status=$?
1.25      millert  22781:   grep -v '^ *+' conftest.er1 >conftest.err
                   22782:   rm -f conftest.er1
                   22783:   cat conftest.err >&5
1.17      millert  22784:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22785:   (exit $ac_status); } && {
                   22786:         test -z "$ac_c_werror_flag" ||
                   22787:         test ! -s conftest.err
                   22788:        } && test -s conftest$ac_exeext &&
                   22789:        $as_test_x conftest$ac_exeext; then
1.37      millert  22790:   ac_cv_search_getspnam=$ac_res
1.17      millert  22791: else
                   22792:   echo "$as_me: failed program was:" >&5
                   22793: sed 's/^/| /' conftest.$ac_ext >&5
                   22794:
1.37      millert  22795:
1.17      millert  22796: fi
1.27      millert  22797:
                   22798: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.37      millert  22799:       conftest$ac_exeext
                   22800:   if test "${ac_cv_search_getspnam+set}" = set; then
                   22801:   break
1.27      millert  22802: fi
1.37      millert  22803: done
                   22804: if test "${ac_cv_search_getspnam+set}" = set; then
                   22805:   :
1.27      millert  22806: else
1.37      millert  22807:   ac_cv_search_getspnam=no
                   22808: fi
                   22809: rm conftest.$ac_ext
                   22810: LIBS=$ac_func_search_save_LIBS
1.27      millert  22811: fi
1.37      millert  22812: { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
                   22813: echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
                   22814: ac_res=$ac_cv_search_getspnam
                   22815: if test "$ac_res" != no; then
                   22816:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   22817:   cat >>confdefs.h <<\_ACEOF
                   22818: #define HAVE_GETSPNAM 1
                   22819: _ACEOF
                   22820:  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.27      millert  22821: fi
                   22822:
1.37      millert  22823:     fi
                   22824:     if test "$CHECKSHADOW" = "true"; then
                   22825:        { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
                   22826: echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
                   22827: if test "${ac_cv_search_getprpwnam+set}" = set; then
1.27      millert  22828:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22829: else
                   22830:   ac_func_search_save_LIBS=$LIBS
                   22831: cat >conftest.$ac_ext <<_ACEOF
1.17      millert  22832: /* confdefs.h.  */
                   22833: _ACEOF
                   22834: cat confdefs.h >>conftest.$ac_ext
                   22835: cat >>conftest.$ac_ext <<_ACEOF
                   22836: /* end confdefs.h.  */
1.27      millert  22837:
                   22838: /* Override any GCC internal prototype to avoid an error.
                   22839:    Use char because int might match the return type of a GCC
                   22840:    builtin and then its argument prototype would still apply.  */
                   22841: #ifdef __cplusplus
                   22842: extern "C"
                   22843: #endif
1.37      millert  22844: char getprpwnam ();
1.17      millert  22845: int
                   22846: main ()
                   22847: {
1.37      millert  22848: return getprpwnam ();
1.17      millert  22849:   ;
                   22850:   return 0;
                   22851: }
                   22852: _ACEOF
1.37      millert  22853: for ac_lib in '' sec security prot; do
1.27      millert  22854:   if test -z "$ac_lib"; then
                   22855:     ac_res="none required"
                   22856:   else
                   22857:     ac_res=-l$ac_lib
                   22858:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   22859:   fi
                   22860:   rm -f conftest.$ac_objext conftest$ac_exeext
                   22861: if { (ac_try="$ac_link"
                   22862: case "(($ac_try" in
                   22863:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22864:   *) ac_try_echo=$ac_try;;
                   22865: esac
                   22866: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22867:   (eval "$ac_link") 2>conftest.er1
1.17      millert  22868:   ac_status=$?
1.25      millert  22869:   grep -v '^ *+' conftest.er1 >conftest.err
                   22870:   rm -f conftest.er1
                   22871:   cat conftest.err >&5
1.17      millert  22872:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22873:   (exit $ac_status); } && {
                   22874:         test -z "$ac_c_werror_flag" ||
                   22875:         test ! -s conftest.err
                   22876:        } && test -s conftest$ac_exeext &&
                   22877:        $as_test_x conftest$ac_exeext; then
1.37      millert  22878:   ac_cv_search_getprpwnam=$ac_res
1.17      millert  22879: else
                   22880:   echo "$as_me: failed program was:" >&5
                   22881: sed 's/^/| /' conftest.$ac_ext >&5
                   22882:
1.25      millert  22883:
1.27      millert  22884: fi
1.25      millert  22885:
1.27      millert  22886: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22887:       conftest$ac_exeext
1.37      millert  22888:   if test "${ac_cv_search_getprpwnam+set}" = set; then
1.27      millert  22889:   break
                   22890: fi
                   22891: done
1.37      millert  22892: if test "${ac_cv_search_getprpwnam+set}" = set; then
1.27      millert  22893:   :
                   22894: else
1.37      millert  22895:   ac_cv_search_getprpwnam=no
1.27      millert  22896: fi
                   22897: rm conftest.$ac_ext
                   22898: LIBS=$ac_func_search_save_LIBS
                   22899: fi
1.37      millert  22900: { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
                   22901: echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
                   22902: ac_res=$ac_cv_search_getprpwnam
1.27      millert  22903: if test "$ac_res" != no; then
                   22904:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.37      millert  22905:   cat >>confdefs.h <<\_ACEOF
                   22906: #define HAVE_GETPRPWNAM 1
                   22907: _ACEOF
                   22908:  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.17      millert  22909: fi
1.25      millert  22910:
1.27      millert  22911:     fi
1.37      millert  22912:     if test -n "$SECUREWARE"; then
                   22913:
1.25      millert  22914:
1.17      millert  22915:
1.37      millert  22916: for ac_func in bigcrypt set_auth_parameters initprivs
1.25      millert  22917: do
                   22918: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  22919: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   22920: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   22921: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.17      millert  22922:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22923: else
1.25      millert  22924:   cat >conftest.$ac_ext <<_ACEOF
1.17      millert  22925: /* confdefs.h.  */
                   22926: _ACEOF
                   22927: cat confdefs.h >>conftest.$ac_ext
                   22928: cat >>conftest.$ac_ext <<_ACEOF
                   22929: /* end confdefs.h.  */
1.25      millert  22930: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   22931:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   22932: #define $ac_func innocuous_$ac_func
                   22933:
                   22934: /* System header to define __stub macros and hopefully few prototypes,
                   22935:     which can conflict with char $ac_func (); below.
                   22936:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   22937:     <limits.h> exists even on freestanding compilers.  */
                   22938:
                   22939: #ifdef __STDC__
                   22940: # include <limits.h>
                   22941: #else
                   22942: # include <assert.h>
                   22943: #endif
1.17      millert  22944:
1.25      millert  22945: #undef $ac_func
                   22946:
1.27      millert  22947: /* Override any GCC internal prototype to avoid an error.
                   22948:    Use char because int might match the return type of a GCC
                   22949:    builtin and then its argument prototype would still apply.  */
1.25      millert  22950: #ifdef __cplusplus
                   22951: extern "C"
                   22952: #endif
                   22953: char $ac_func ();
                   22954: /* The GNU C library defines this for functions which it implements
                   22955:     to always fail with ENOSYS.  Some functions are actually named
                   22956:     something starting with __ and the normal name is an alias.  */
1.27      millert  22957: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  22958: choke me
                   22959: #endif
1.17      millert  22960:
                   22961: int
                   22962: main ()
                   22963: {
1.27      millert  22964: return $ac_func ();
1.17      millert  22965:   ;
                   22966:   return 0;
                   22967: }
                   22968: _ACEOF
                   22969: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  22970: if { (ac_try="$ac_link"
                   22971: case "(($ac_try" in
                   22972:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22973:   *) ac_try_echo=$ac_try;;
                   22974: esac
                   22975: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22976:   (eval "$ac_link") 2>conftest.er1
1.17      millert  22977:   ac_status=$?
1.25      millert  22978:   grep -v '^ *+' conftest.er1 >conftest.err
                   22979:   rm -f conftest.er1
                   22980:   cat conftest.err >&5
1.17      millert  22981:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22982:   (exit $ac_status); } && {
                   22983:         test -z "$ac_c_werror_flag" ||
                   22984:         test ! -s conftest.err
                   22985:        } && test -s conftest$ac_exeext &&
                   22986:        $as_test_x conftest$ac_exeext; then
1.25      millert  22987:   eval "$as_ac_var=yes"
1.17      millert  22988: else
                   22989:   echo "$as_me: failed program was:" >&5
                   22990: sed 's/^/| /' conftest.$ac_ext >&5
                   22991:
1.27      millert  22992:        eval "$as_ac_var=no"
1.17      millert  22993: fi
1.27      millert  22994:
                   22995: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  22996:       conftest$ac_exeext conftest.$ac_ext
1.17      millert  22997: fi
1.27      millert  22998: ac_res=`eval echo '${'$as_ac_var'}'`
                   22999:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23000: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  23001: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   23002:   cat >>confdefs.h <<_ACEOF
                   23003: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   23004: _ACEOF
1.37      millert  23005:
1.17      millert  23006: fi
1.27      millert  23007: done
1.17      millert  23008:
1.37      millert  23009:        AUTH_OBJS="$AUTH_OBJS secureware.o"
                   23010:     fi
                   23011: fi
                   23012:
                   23013: if test ${with_ldap-'no'} != "no"; then
                   23014:     _LDFLAGS="$LDFLAGS"
                   23015:     if test "$with_ldap" != "yes"; then
                   23016:
                   23017:     if test X"$with_rpath" = X"yes"; then
1.47      millert  23018:        case "$host" in
                   23019:            *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
                   23020:                        ;;
                   23021:            *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
                   23022:                        ;;
                   23023:        esac
1.37      millert  23024:     else
                   23025:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
                   23026:     fi
                   23027:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   23028:        blibpath_add="${blibpath_add}:${with_ldap}/lib"
                   23029:     fi
                   23030:
                   23031:
                   23032:     if test X"$with_rpath" = X"yes"; then
1.47      millert  23033:        case "$host" in
                   23034:            *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
                   23035:                        ;;
                   23036:            *)          LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
                   23037:                        ;;
                   23038:        esac
1.37      millert  23039:     else
                   23040:        LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
                   23041:     fi
                   23042:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   23043:        blibpath_add="${blibpath_add}:${with_ldap}/lib"
                   23044:     fi
                   23045:
                   23046:        CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
                   23047:        with_ldap=yes
                   23048:     fi
                   23049:     SUDO_OBJS="${SUDO_OBJS} ldap.o"
1.46      millert  23050:     LDAP=""
1.17      millert  23051:
1.37      millert  23052:     { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
                   23053: echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
                   23054:     LDAP_LIBS=""
                   23055:     _LIBS="$LIBS"
                   23056:     found=no
                   23057:     for l in -lldap -llber '-lssl -lcrypto'; do
                   23058:        LIBS="${LIBS} $l"
                   23059:        LDAP_LIBS="${LDAP_LIBS} $l"
                   23060:        cat >conftest.$ac_ext <<_ACEOF
1.27      millert  23061: /* confdefs.h.  */
                   23062: _ACEOF
                   23063: cat confdefs.h >>conftest.$ac_ext
                   23064: cat >>conftest.$ac_ext <<_ACEOF
                   23065: /* end confdefs.h.  */
1.37      millert  23066: #include <sys/types.h>
                   23067:        #include <lber.h>
                   23068:        #include <ldap.h>
1.27      millert  23069: int
                   23070: main ()
                   23071: {
1.37      millert  23072: (void)ldap_init(0, 0)
1.27      millert  23073:   ;
                   23074:   return 0;
                   23075: }
1.17      millert  23076: _ACEOF
1.27      millert  23077: rm -f conftest.$ac_objext conftest$ac_exeext
                   23078: if { (ac_try="$ac_link"
                   23079: case "(($ac_try" in
                   23080:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23081:   *) ac_try_echo=$ac_try;;
                   23082: esac
                   23083: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23084:   (eval "$ac_link") 2>conftest.er1
                   23085:   ac_status=$?
                   23086:   grep -v '^ *+' conftest.er1 >conftest.err
                   23087:   rm -f conftest.er1
                   23088:   cat conftest.err >&5
                   23089:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23090:   (exit $ac_status); } && {
                   23091:         test -z "$ac_c_werror_flag" ||
                   23092:         test ! -s conftest.err
                   23093:        } && test -s conftest$ac_exeext &&
                   23094:        $as_test_x conftest$ac_exeext; then
1.37      millert  23095:   found=yes; break
1.27      millert  23096: else
                   23097:   echo "$as_me: failed program was:" >&5
                   23098: sed 's/^/| /' conftest.$ac_ext >&5
1.17      millert  23099:
1.37      millert  23100:
1.27      millert  23101: fi
1.25      millert  23102:
1.27      millert  23103: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   23104:       conftest$ac_exeext conftest.$ac_ext
1.37      millert  23105:     done
                   23106:         if test "$found" = "no"; then
                   23107:        LIBS="${_LIBS} -lldap"
                   23108:        LDAP_LIBS="-lldap"
                   23109:        { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
                   23110: echo "${ECHO_T}not found, using -lldap" >&6; }
                   23111:     else
                   23112:        { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
                   23113: echo "${ECHO_T}$LDAP_LIBS" >&6; }
1.27      millert  23114:     fi
1.37      millert  23115:         OLIBS="$LIBS"
                   23116:     { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
                   23117: echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
                   23118: if test "${ac_cv_search_ber_set_option+set}" = set; then
1.27      millert  23119:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  23120: else
1.27      millert  23121:   ac_func_search_save_LIBS=$LIBS
                   23122: cat >conftest.$ac_ext <<_ACEOF
                   23123: /* confdefs.h.  */
                   23124: _ACEOF
                   23125: cat confdefs.h >>conftest.$ac_ext
                   23126: cat >>conftest.$ac_ext <<_ACEOF
                   23127: /* end confdefs.h.  */
1.25      millert  23128:
1.27      millert  23129: /* Override any GCC internal prototype to avoid an error.
                   23130:    Use char because int might match the return type of a GCC
                   23131:    builtin and then its argument prototype would still apply.  */
                   23132: #ifdef __cplusplus
                   23133: extern "C"
                   23134: #endif
1.37      millert  23135: char ber_set_option ();
1.27      millert  23136: int
                   23137: main ()
                   23138: {
1.37      millert  23139: return ber_set_option ();
1.27      millert  23140:   ;
                   23141:   return 0;
                   23142: }
                   23143: _ACEOF
1.37      millert  23144: for ac_lib in '' lber; do
1.27      millert  23145:   if test -z "$ac_lib"; then
                   23146:     ac_res="none required"
1.25      millert  23147:   else
1.27      millert  23148:     ac_res=-l$ac_lib
                   23149:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
1.25      millert  23150:   fi
1.27      millert  23151:   rm -f conftest.$ac_objext conftest$ac_exeext
                   23152: if { (ac_try="$ac_link"
                   23153: case "(($ac_try" in
                   23154:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23155:   *) ac_try_echo=$ac_try;;
                   23156: esac
                   23157: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23158:   (eval "$ac_link") 2>conftest.er1
                   23159:   ac_status=$?
                   23160:   grep -v '^ *+' conftest.er1 >conftest.err
                   23161:   rm -f conftest.er1
                   23162:   cat conftest.err >&5
                   23163:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23164:   (exit $ac_status); } && {
                   23165:         test -z "$ac_c_werror_flag" ||
                   23166:         test ! -s conftest.err
                   23167:        } && test -s conftest$ac_exeext &&
                   23168:        $as_test_x conftest$ac_exeext; then
1.37      millert  23169:   ac_cv_search_ber_set_option=$ac_res
1.27      millert  23170: else
                   23171:   echo "$as_me: failed program was:" >&5
                   23172: sed 's/^/| /' conftest.$ac_ext >&5
                   23173:
1.25      millert  23174:
1.17      millert  23175: fi
                   23176:
1.27      millert  23177: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   23178:       conftest$ac_exeext
1.37      millert  23179:   if test "${ac_cv_search_ber_set_option+set}" = set; then
1.27      millert  23180:   break
                   23181: fi
                   23182: done
1.37      millert  23183: if test "${ac_cv_search_ber_set_option+set}" = set; then
1.27      millert  23184:   :
1.25      millert  23185: else
1.37      millert  23186:   ac_cv_search_ber_set_option=no
1.27      millert  23187: fi
                   23188: rm conftest.$ac_ext
                   23189: LIBS=$ac_func_search_save_LIBS
1.25      millert  23190: fi
1.37      millert  23191: { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
                   23192: echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
                   23193: ac_res=$ac_cv_search_ber_set_option
1.27      millert  23194: if test "$ac_res" != no; then
                   23195:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.37      millert  23196:   found=yes
                   23197: else
                   23198:   found=no
1.17      millert  23199: fi
                   23200:
1.37      millert  23201:     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
                   23202:        LDAP_LIBS="$LDAP_LIBS -llber"
1.27      millert  23203:     fi
1.37      millert  23204:         { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
                   23205: echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
                   23206:     cat >conftest.$ac_ext <<_ACEOF
1.27      millert  23207: /* confdefs.h.  */
                   23208: _ACEOF
                   23209: cat confdefs.h >>conftest.$ac_ext
                   23210: cat >>conftest.$ac_ext <<_ACEOF
                   23211: /* end confdefs.h.  */
1.37      millert  23212: #include <sys/types.h>
                   23213:     #include <ldap.h>
1.27      millert  23214: int
                   23215: main ()
                   23216: {
1.37      millert  23217: (void)ldap_init(0, 0)
1.27      millert  23218:   ;
                   23219:   return 0;
1.23      millert  23220: }
1.27      millert  23221: _ACEOF
1.37      millert  23222: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  23223: if { (ac_try="$ac_link"
                   23224: case "(($ac_try" in
                   23225:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23226:   *) ac_try_echo=$ac_try;;
                   23227: esac
                   23228: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23229:   (eval "$ac_link") 2>conftest.er1
                   23230:   ac_status=$?
                   23231:   grep -v '^ *+' conftest.er1 >conftest.err
                   23232:   rm -f conftest.er1
                   23233:   cat conftest.err >&5
                   23234:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23235:   (exit $ac_status); } && {
                   23236:         test -z "$ac_c_werror_flag" ||
                   23237:         test ! -s conftest.err
                   23238:        } && test -s conftest$ac_exeext &&
                   23239:        $as_test_x conftest$ac_exeext; then
1.37      millert  23240:   { echo "$as_me:$LINENO: result: no" >&5
                   23241: echo "${ECHO_T}no" >&6; }
1.27      millert  23242: else
                   23243:   echo "$as_me: failed program was:" >&5
                   23244: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  23245:
                   23246:
1.37      millert  23247:     { echo "$as_me:$LINENO: result: yes" >&5
                   23248: echo "${ECHO_T}yes" >&6; }
                   23249:     cat >>confdefs.h <<\_ACEOF
                   23250: #define HAVE_LBER_H 1
                   23251: _ACEOF
                   23252:
1.27      millert  23253: fi
1.23      millert  23254:
1.27      millert  23255: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.37      millert  23256:       conftest$ac_exeext conftest.$ac_ext
                   23257:
                   23258:
                   23259:
1.39      millert  23260: for ac_header in sasl/sasl.h sasl.h
1.37      millert  23261: do
                   23262: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   23263: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23264:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   23265: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   23266: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23267:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23268: fi
                   23269: ac_res=`eval echo '${'$as_ac_Header'}'`
                   23270:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23271: echo "${ECHO_T}$ac_res" >&6; }
                   23272: else
                   23273:   # Is the header compilable?
                   23274: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   23275: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   23276: cat >conftest.$ac_ext <<_ACEOF
                   23277: /* confdefs.h.  */
                   23278: _ACEOF
                   23279: cat confdefs.h >>conftest.$ac_ext
                   23280: cat >>conftest.$ac_ext <<_ACEOF
                   23281: /* end confdefs.h.  */
                   23282: $ac_includes_default
                   23283: #include <$ac_header>
                   23284: _ACEOF
                   23285: rm -f conftest.$ac_objext
                   23286: if { (ac_try="$ac_compile"
                   23287: case "(($ac_try" in
                   23288:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23289:   *) ac_try_echo=$ac_try;;
                   23290: esac
                   23291: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23292:   (eval "$ac_compile") 2>conftest.er1
                   23293:   ac_status=$?
                   23294:   grep -v '^ *+' conftest.er1 >conftest.err
                   23295:   rm -f conftest.er1
                   23296:   cat conftest.err >&5
                   23297:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23298:   (exit $ac_status); } && {
                   23299:         test -z "$ac_c_werror_flag" ||
                   23300:         test ! -s conftest.err
                   23301:        } && test -s conftest.$ac_objext; then
                   23302:   ac_header_compiler=yes
                   23303: else
                   23304:   echo "$as_me: failed program was:" >&5
                   23305: sed 's/^/| /' conftest.$ac_ext >&5
                   23306:
                   23307:        ac_header_compiler=no
                   23308: fi
                   23309:
                   23310: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   23311: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   23312: echo "${ECHO_T}$ac_header_compiler" >&6; }
                   23313:
                   23314: # Is the header present?
                   23315: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   23316: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   23317: cat >conftest.$ac_ext <<_ACEOF
                   23318: /* confdefs.h.  */
                   23319: _ACEOF
                   23320: cat confdefs.h >>conftest.$ac_ext
                   23321: cat >>conftest.$ac_ext <<_ACEOF
                   23322: /* end confdefs.h.  */
                   23323: #include <$ac_header>
                   23324: _ACEOF
                   23325: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   23326: case "(($ac_try" in
                   23327:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23328:   *) ac_try_echo=$ac_try;;
                   23329: esac
                   23330: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23331:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   23332:   ac_status=$?
                   23333:   grep -v '^ *+' conftest.er1 >conftest.err
                   23334:   rm -f conftest.er1
                   23335:   cat conftest.err >&5
                   23336:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23337:   (exit $ac_status); } >/dev/null && {
                   23338:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   23339:         test ! -s conftest.err
                   23340:        }; then
                   23341:   ac_header_preproc=yes
                   23342: else
                   23343:   echo "$as_me: failed program was:" >&5
                   23344: sed 's/^/| /' conftest.$ac_ext >&5
                   23345:
                   23346:   ac_header_preproc=no
                   23347: fi
                   23348:
                   23349: rm -f conftest.err conftest.$ac_ext
                   23350: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   23351: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   23352:
                   23353: # So?  What about this header?
                   23354: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   23355:   yes:no: )
                   23356:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   23357: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   23358:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   23359: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   23360:     ac_header_preproc=yes
                   23361:     ;;
                   23362:   no:yes:* )
                   23363:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   23364: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   23365:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   23366: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   23367:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   23368: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   23369:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   23370: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   23371:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   23372: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   23373:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   23374: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  23375:     ( cat <<\_ASBOX
                   23376: ## --------------------------------------- ##
                   23377: ## Report this to http://www.sudo.ws/bugs/ ##
                   23378: ## --------------------------------------- ##
                   23379: _ASBOX
                   23380:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.37      millert  23381:     ;;
                   23382: esac
                   23383: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   23384: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   23385: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23386:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23387: else
                   23388:   eval "$as_ac_Header=\$ac_header_preproc"
                   23389: fi
                   23390: ac_res=`eval echo '${'$as_ac_Header'}'`
                   23391:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23392: echo "${ECHO_T}$ac_res" >&6; }
                   23393:
                   23394: fi
                   23395: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   23396:   cat >>confdefs.h <<_ACEOF
                   23397: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   23398: _ACEOF
                   23399:
1.39      millert  23400: for ac_func in ldap_sasl_interactive_bind_s
                   23401: do
                   23402: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   23403: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   23404: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   23405: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   23406:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23407: else
                   23408:   cat >conftest.$ac_ext <<_ACEOF
                   23409: /* confdefs.h.  */
                   23410: _ACEOF
                   23411: cat confdefs.h >>conftest.$ac_ext
                   23412: cat >>conftest.$ac_ext <<_ACEOF
                   23413: /* end confdefs.h.  */
                   23414: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   23415:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   23416: #define $ac_func innocuous_$ac_func
                   23417:
                   23418: /* System header to define __stub macros and hopefully few prototypes,
                   23419:     which can conflict with char $ac_func (); below.
                   23420:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   23421:     <limits.h> exists even on freestanding compilers.  */
                   23422:
                   23423: #ifdef __STDC__
                   23424: # include <limits.h>
                   23425: #else
                   23426: # include <assert.h>
                   23427: #endif
                   23428:
                   23429: #undef $ac_func
                   23430:
                   23431: /* Override any GCC internal prototype to avoid an error.
                   23432:    Use char because int might match the return type of a GCC
                   23433:    builtin and then its argument prototype would still apply.  */
                   23434: #ifdef __cplusplus
                   23435: extern "C"
                   23436: #endif
                   23437: char $ac_func ();
                   23438: /* The GNU C library defines this for functions which it implements
                   23439:     to always fail with ENOSYS.  Some functions are actually named
                   23440:     something starting with __ and the normal name is an alias.  */
                   23441: #if defined __stub_$ac_func || defined __stub___$ac_func
                   23442: choke me
                   23443: #endif
                   23444:
                   23445: int
                   23446: main ()
                   23447: {
                   23448: return $ac_func ();
                   23449:   ;
                   23450:   return 0;
                   23451: }
                   23452: _ACEOF
                   23453: rm -f conftest.$ac_objext conftest$ac_exeext
                   23454: if { (ac_try="$ac_link"
                   23455: case "(($ac_try" in
                   23456:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23457:   *) ac_try_echo=$ac_try;;
                   23458: esac
                   23459: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23460:   (eval "$ac_link") 2>conftest.er1
                   23461:   ac_status=$?
                   23462:   grep -v '^ *+' conftest.er1 >conftest.err
                   23463:   rm -f conftest.er1
                   23464:   cat conftest.err >&5
                   23465:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23466:   (exit $ac_status); } && {
                   23467:         test -z "$ac_c_werror_flag" ||
                   23468:         test ! -s conftest.err
                   23469:        } && test -s conftest$ac_exeext &&
                   23470:        $as_test_x conftest$ac_exeext; then
                   23471:   eval "$as_ac_var=yes"
                   23472: else
                   23473:   echo "$as_me: failed program was:" >&5
                   23474: sed 's/^/| /' conftest.$ac_ext >&5
                   23475:
                   23476:        eval "$as_ac_var=no"
                   23477: fi
                   23478:
                   23479: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   23480:       conftest$ac_exeext conftest.$ac_ext
                   23481: fi
                   23482: ac_res=`eval echo '${'$as_ac_var'}'`
                   23483:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23484: echo "${ECHO_T}$ac_res" >&6; }
                   23485: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   23486:   cat >>confdefs.h <<_ACEOF
                   23487: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   23488: _ACEOF
                   23489:
                   23490: fi
                   23491: done
1.40      millert  23492:
                   23493: else
                   23494:   break
1.37      millert  23495: fi
                   23496:
                   23497: done
                   23498:
                   23499:
                   23500:
                   23501: for ac_header in ldap_ssl.h mps/ldap_ssl.h
                   23502: do
                   23503: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   23504: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   23505: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   23506: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23507:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23508: else
                   23509:   cat >conftest.$ac_ext <<_ACEOF
                   23510: /* confdefs.h.  */
                   23511: _ACEOF
                   23512: cat confdefs.h >>conftest.$ac_ext
                   23513: cat >>conftest.$ac_ext <<_ACEOF
                   23514: /* end confdefs.h.  */
                   23515: #include <ldap.h>
                   23516:
                   23517: #include <$ac_header>
                   23518: _ACEOF
                   23519: rm -f conftest.$ac_objext
                   23520: if { (ac_try="$ac_compile"
                   23521: case "(($ac_try" in
                   23522:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23523:   *) ac_try_echo=$ac_try;;
                   23524: esac
                   23525: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23526:   (eval "$ac_compile") 2>conftest.er1
                   23527:   ac_status=$?
                   23528:   grep -v '^ *+' conftest.er1 >conftest.err
                   23529:   rm -f conftest.er1
                   23530:   cat conftest.err >&5
                   23531:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23532:   (exit $ac_status); } && {
                   23533:         test -z "$ac_c_werror_flag" ||
                   23534:         test ! -s conftest.err
                   23535:        } && test -s conftest.$ac_objext; then
                   23536:   eval "$as_ac_Header=yes"
1.27      millert  23537: else
                   23538:   echo "$as_me: failed program was:" >&5
                   23539: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  23540:
1.37      millert  23541:        eval "$as_ac_Header=no"
1.17      millert  23542: fi
1.23      millert  23543:
1.37      millert  23544: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  23545: fi
1.37      millert  23546: ac_res=`eval echo '${'$as_ac_Header'}'`
1.27      millert  23547:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23548: echo "${ECHO_T}$ac_res" >&6; }
1.37      millert  23549: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.27      millert  23550:   cat >>confdefs.h <<_ACEOF
1.37      millert  23551: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.27      millert  23552: _ACEOF
1.37      millert  23553:  break
                   23554: fi
1.17      millert  23555:
1.27      millert  23556: done
1.17      millert  23557:
                   23558:
1.39      millert  23559:
                   23560:
                   23561:
                   23562:
                   23563:
                   23564:
                   23565:
                   23566:
                   23567:
                   23568:
                   23569: for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
                   23570: do
                   23571: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   23572: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   23573: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   23574: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   23575:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23576: else
                   23577:   cat >conftest.$ac_ext <<_ACEOF
                   23578: /* confdefs.h.  */
                   23579: _ACEOF
                   23580: cat confdefs.h >>conftest.$ac_ext
                   23581: cat >>conftest.$ac_ext <<_ACEOF
                   23582: /* end confdefs.h.  */
                   23583: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   23584:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   23585: #define $ac_func innocuous_$ac_func
                   23586:
                   23587: /* System header to define __stub macros and hopefully few prototypes,
                   23588:     which can conflict with char $ac_func (); below.
                   23589:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   23590:     <limits.h> exists even on freestanding compilers.  */
                   23591:
                   23592: #ifdef __STDC__
                   23593: # include <limits.h>
                   23594: #else
                   23595: # include <assert.h>
                   23596: #endif
                   23597:
                   23598: #undef $ac_func
                   23599:
                   23600: /* Override any GCC internal prototype to avoid an error.
                   23601:    Use char because int might match the return type of a GCC
                   23602:    builtin and then its argument prototype would still apply.  */
                   23603: #ifdef __cplusplus
                   23604: extern "C"
                   23605: #endif
                   23606: char $ac_func ();
                   23607: /* The GNU C library defines this for functions which it implements
                   23608:     to always fail with ENOSYS.  Some functions are actually named
                   23609:     something starting with __ and the normal name is an alias.  */
                   23610: #if defined __stub_$ac_func || defined __stub___$ac_func
                   23611: choke me
                   23612: #endif
                   23613:
                   23614: int
                   23615: main ()
                   23616: {
                   23617: return $ac_func ();
                   23618:   ;
                   23619:   return 0;
                   23620: }
                   23621: _ACEOF
                   23622: rm -f conftest.$ac_objext conftest$ac_exeext
                   23623: if { (ac_try="$ac_link"
                   23624: case "(($ac_try" in
                   23625:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23626:   *) ac_try_echo=$ac_try;;
                   23627: esac
                   23628: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23629:   (eval "$ac_link") 2>conftest.er1
                   23630:   ac_status=$?
                   23631:   grep -v '^ *+' conftest.er1 >conftest.err
                   23632:   rm -f conftest.er1
                   23633:   cat conftest.err >&5
                   23634:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23635:   (exit $ac_status); } && {
                   23636:         test -z "$ac_c_werror_flag" ||
                   23637:         test ! -s conftest.err
                   23638:        } && test -s conftest$ac_exeext &&
                   23639:        $as_test_x conftest$ac_exeext; then
                   23640:   eval "$as_ac_var=yes"
                   23641: else
                   23642:   echo "$as_me: failed program was:" >&5
                   23643: sed 's/^/| /' conftest.$ac_ext >&5
                   23644:
                   23645:        eval "$as_ac_var=no"
                   23646: fi
                   23647:
                   23648: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   23649:       conftest$ac_exeext conftest.$ac_ext
                   23650: fi
                   23651: ac_res=`eval echo '${'$as_ac_var'}'`
                   23652:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23653: echo "${ECHO_T}$ac_res" >&6; }
                   23654: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   23655:   cat >>confdefs.h <<_ACEOF
                   23656: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   23657: _ACEOF
                   23658:
                   23659: fi
                   23660: done
                   23661:
                   23662:
1.37      millert  23663:     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
                   23664:        { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5
                   23665: echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; }
                   23666: if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then
                   23667:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23668: else
                   23669:   ac_check_lib_save_LIBS=$LIBS
                   23670: LIBS="-lgssapi  $LIBS"
                   23671: cat >conftest.$ac_ext <<_ACEOF
1.27      millert  23672: /* confdefs.h.  */
1.25      millert  23673: _ACEOF
1.27      millert  23674: cat confdefs.h >>conftest.$ac_ext
                   23675: cat >>conftest.$ac_ext <<_ACEOF
                   23676: /* end confdefs.h.  */
1.37      millert  23677:
                   23678: /* Override any GCC internal prototype to avoid an error.
                   23679:    Use char because int might match the return type of a GCC
                   23680:    builtin and then its argument prototype would still apply.  */
                   23681: #ifdef __cplusplus
                   23682: extern "C"
                   23683: #endif
                   23684: char gss_krb5_ccache_name ();
1.27      millert  23685: int
                   23686: main ()
                   23687: {
1.37      millert  23688: return gss_krb5_ccache_name ();
1.27      millert  23689:   ;
                   23690:   return 0;
                   23691: }
1.25      millert  23692: _ACEOF
1.27      millert  23693: rm -f conftest.$ac_objext conftest$ac_exeext
                   23694: if { (ac_try="$ac_link"
                   23695: case "(($ac_try" in
                   23696:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23697:   *) ac_try_echo=$ac_try;;
                   23698: esac
                   23699: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23700:   (eval "$ac_link") 2>conftest.er1
                   23701:   ac_status=$?
                   23702:   grep -v '^ *+' conftest.er1 >conftest.err
                   23703:   rm -f conftest.er1
                   23704:   cat conftest.err >&5
                   23705:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23706:   (exit $ac_status); } && {
                   23707:         test -z "$ac_c_werror_flag" ||
                   23708:         test ! -s conftest.err
                   23709:        } && test -s conftest$ac_exeext &&
                   23710:        $as_test_x conftest$ac_exeext; then
1.37      millert  23711:   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
1.27      millert  23712: else
                   23713:   echo "$as_me: failed program was:" >&5
                   23714: sed 's/^/| /' conftest.$ac_ext >&5
1.17      millert  23715:
1.37      millert  23716:        ac_cv_lib_gssapi_gss_krb5_ccache_name=no
1.17      millert  23717: fi
                   23718:
1.27      millert  23719: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   23720:       conftest$ac_exeext conftest.$ac_ext
1.37      millert  23721: LIBS=$ac_check_lib_save_LIBS
                   23722: fi
                   23723: { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
                   23724: echo "${ECHO_T}$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
                   23725: if test $ac_cv_lib_gssapi_gss_krb5_ccache_name = yes; then
                   23726:   cat >>confdefs.h <<\_ACEOF
                   23727: #define HAVE_GSS_KRB5_CCACHE_NAME 1
                   23728: _ACEOF
                   23729:
                   23730:            LDAP_LIBS="${LDAP_LIBS} -lgssapi"
                   23731: else
                   23732:   { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
                   23733: echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi_krb5... $ECHO_C" >&6; }
                   23734: if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then
1.35      millert  23735:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23736: else
1.37      millert  23737:   ac_check_lib_save_LIBS=$LIBS
                   23738: LIBS="-lgssapi_krb5  $LIBS"
1.35      millert  23739: cat >conftest.$ac_ext <<_ACEOF
                   23740: /* confdefs.h.  */
                   23741: _ACEOF
                   23742: cat confdefs.h >>conftest.$ac_ext
                   23743: cat >>conftest.$ac_ext <<_ACEOF
                   23744: /* end confdefs.h.  */
                   23745:
                   23746: /* Override any GCC internal prototype to avoid an error.
                   23747:    Use char because int might match the return type of a GCC
                   23748:    builtin and then its argument prototype would still apply.  */
                   23749: #ifdef __cplusplus
                   23750: extern "C"
                   23751: #endif
1.37      millert  23752: char gss_krb5_ccache_name ();
1.35      millert  23753: int
                   23754: main ()
                   23755: {
1.37      millert  23756: return gss_krb5_ccache_name ();
1.35      millert  23757:   ;
                   23758:   return 0;
                   23759: }
                   23760: _ACEOF
1.37      millert  23761: rm -f conftest.$ac_objext conftest$ac_exeext
1.35      millert  23762: if { (ac_try="$ac_link"
                   23763: case "(($ac_try" in
                   23764:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23765:   *) ac_try_echo=$ac_try;;
                   23766: esac
                   23767: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23768:   (eval "$ac_link") 2>conftest.er1
                   23769:   ac_status=$?
                   23770:   grep -v '^ *+' conftest.er1 >conftest.err
                   23771:   rm -f conftest.er1
                   23772:   cat conftest.err >&5
                   23773:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23774:   (exit $ac_status); } && {
                   23775:         test -z "$ac_c_werror_flag" ||
                   23776:         test ! -s conftest.err
                   23777:        } && test -s conftest$ac_exeext &&
                   23778:        $as_test_x conftest$ac_exeext; then
1.37      millert  23779:   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
1.35      millert  23780: else
                   23781:   echo "$as_me: failed program was:" >&5
                   23782: sed 's/^/| /' conftest.$ac_ext >&5
                   23783:
1.37      millert  23784:        ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
                   23785: fi
                   23786:
                   23787: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   23788:       conftest$ac_exeext conftest.$ac_ext
                   23789: LIBS=$ac_check_lib_save_LIBS
                   23790: fi
                   23791: { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
                   23792: echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
                   23793: if test $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name = yes; then
                   23794:   cat >>confdefs.h <<\_ACEOF
                   23795: #define HAVE_GSS_KRB5_CCACHE_NAME 1
                   23796: _ACEOF
1.35      millert  23797:
1.37      millert  23798:                LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
1.35      millert  23799: fi
                   23800:
1.37      millert  23801:
1.35      millert  23802: fi
1.37      millert  23803:
                   23804:
                   23805:        # gssapi headers may be separate or part of Kerberos V
                   23806:        found=no
                   23807:        O_CPPFLAGS="$CPPFLAGS"
                   23808:        for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
                   23809:            test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
                   23810:            cat >conftest.$ac_ext <<_ACEOF
                   23811: #include <gssapi/gssapi.h>
                   23812: _ACEOF
                   23813: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   23814: case "(($ac_try" in
                   23815:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23816:   *) ac_try_echo=$ac_try;;
                   23817: esac
                   23818: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23819:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   23820:   ac_status=$?
                   23821:   grep -v '^ *+' conftest.er1 >conftest.err
                   23822:   rm -f conftest.er1
                   23823:   cat conftest.err >&5
                   23824:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23825:   (exit $ac_status); } >/dev/null && {
                   23826:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   23827:         test ! -s conftest.err
                   23828:        }; then
                   23829:   found="gssapi/gssapi.h"; break
                   23830: else
                   23831:   echo "$as_me: failed program was:" >&5
                   23832: sed 's/^/| /' conftest.$ac_ext >&5
                   23833:
                   23834:   cat >conftest.$ac_ext <<_ACEOF
                   23835: #include <gssapi.h>
                   23836: _ACEOF
                   23837: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   23838: case "(($ac_try" in
                   23839:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23840:   *) ac_try_echo=$ac_try;;
                   23841: esac
                   23842: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23843:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   23844:   ac_status=$?
                   23845:   grep -v '^ *+' conftest.er1 >conftest.err
                   23846:   rm -f conftest.er1
                   23847:   cat conftest.err >&5
                   23848:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23849:   (exit $ac_status); } >/dev/null && {
                   23850:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   23851:         test ! -s conftest.err
                   23852:        }; then
                   23853:   found="gssapi.h"; break
1.35      millert  23854: else
1.37      millert  23855:   echo "$as_me: failed program was:" >&5
                   23856: sed 's/^/| /' conftest.$ac_ext >&5
                   23857:
                   23858:
                   23859: fi
                   23860:
                   23861: rm -f conftest.err conftest.$ac_ext
1.35      millert  23862: fi
1.37      millert  23863:
                   23864: rm -f conftest.err conftest.$ac_ext
                   23865:        done
                   23866:        if test X"$found" != X"no"; then
                   23867:
                   23868: for ac_header in $found
                   23869: do
                   23870: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   23871: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23872:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   23873: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   23874: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23875:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.35      millert  23876: fi
1.37      millert  23877: ac_res=`eval echo '${'$as_ac_Header'}'`
                   23878:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23879: echo "${ECHO_T}$ac_res" >&6; }
                   23880: else
                   23881:   # Is the header compilable?
                   23882: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   23883: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   23884: cat >conftest.$ac_ext <<_ACEOF
                   23885: /* confdefs.h.  */
                   23886: _ACEOF
                   23887: cat confdefs.h >>conftest.$ac_ext
                   23888: cat >>conftest.$ac_ext <<_ACEOF
                   23889: /* end confdefs.h.  */
                   23890: $ac_includes_default
                   23891: #include <$ac_header>
                   23892: _ACEOF
                   23893: rm -f conftest.$ac_objext
                   23894: if { (ac_try="$ac_compile"
                   23895: case "(($ac_try" in
                   23896:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23897:   *) ac_try_echo=$ac_try;;
                   23898: esac
                   23899: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23900:   (eval "$ac_compile") 2>conftest.er1
                   23901:   ac_status=$?
                   23902:   grep -v '^ *+' conftest.er1 >conftest.err
                   23903:   rm -f conftest.er1
                   23904:   cat conftest.err >&5
                   23905:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23906:   (exit $ac_status); } && {
                   23907:         test -z "$ac_c_werror_flag" ||
                   23908:         test ! -s conftest.err
                   23909:        } && test -s conftest.$ac_objext; then
                   23910:   ac_header_compiler=yes
1.35      millert  23911: else
1.37      millert  23912:   echo "$as_me: failed program was:" >&5
                   23913: sed 's/^/| /' conftest.$ac_ext >&5
                   23914:
                   23915:        ac_header_compiler=no
1.35      millert  23916: fi
                   23917:
1.37      millert  23918: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   23919: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   23920: echo "${ECHO_T}$ac_header_compiler" >&6; }
                   23921:
                   23922: # Is the header present?
                   23923: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   23924: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   23925: cat >conftest.$ac_ext <<_ACEOF
1.27      millert  23926: /* confdefs.h.  */
1.17      millert  23927: _ACEOF
1.27      millert  23928: cat confdefs.h >>conftest.$ac_ext
                   23929: cat >>conftest.$ac_ext <<_ACEOF
                   23930: /* end confdefs.h.  */
1.37      millert  23931: #include <$ac_header>
1.25      millert  23932: _ACEOF
1.37      millert  23933: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27      millert  23934: case "(($ac_try" in
                   23935:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23936:   *) ac_try_echo=$ac_try;;
                   23937: esac
                   23938: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  23939:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.27      millert  23940:   ac_status=$?
                   23941:   grep -v '^ *+' conftest.er1 >conftest.err
                   23942:   rm -f conftest.er1
                   23943:   cat conftest.err >&5
                   23944:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  23945:   (exit $ac_status); } >/dev/null && {
                   23946:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27      millert  23947:         test ! -s conftest.err
1.37      millert  23948:        }; then
                   23949:   ac_header_preproc=yes
1.27      millert  23950: else
                   23951:   echo "$as_me: failed program was:" >&5
                   23952: sed 's/^/| /' conftest.$ac_ext >&5
1.17      millert  23953:
1.37      millert  23954:   ac_header_preproc=no
                   23955: fi
                   23956:
                   23957: rm -f conftest.err conftest.$ac_ext
                   23958: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   23959: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1       millert  23960:
1.37      millert  23961: # So?  What about this header?
                   23962: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   23963:   yes:no: )
                   23964:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   23965: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   23966:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   23967: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   23968:     ac_header_preproc=yes
                   23969:     ;;
                   23970:   no:yes:* )
                   23971:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   23972: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   23973:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   23974: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   23975:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   23976: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   23977:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   23978: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   23979:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   23980: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   23981:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   23982: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  23983:     ( cat <<\_ASBOX
                   23984: ## --------------------------------------- ##
                   23985: ## Report this to http://www.sudo.ws/bugs/ ##
                   23986: ## --------------------------------------- ##
                   23987: _ASBOX
                   23988:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.37      millert  23989:     ;;
                   23990: esac
                   23991: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   23992: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   23993: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23994:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23995: else
                   23996:   eval "$as_ac_Header=\$ac_header_preproc"
1.25      millert  23997: fi
1.37      millert  23998: ac_res=`eval echo '${'$as_ac_Header'}'`
                   23999:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   24000: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  24001:
1.37      millert  24002: fi
                   24003: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   24004:   cat >>confdefs.h <<_ACEOF
                   24005: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   24006: _ACEOF
1.1       millert  24007:
1.37      millert  24008: fi
1.1       millert  24009:
1.37      millert  24010: done
1.33      millert  24011:
1.37      millert  24012:            if test X"$found" = X"gssapi/gssapi.h"; then
1.35      millert  24013:
1.37      millert  24014: for ac_header in gssapi/gssapi_krb5.h
1.27      millert  24015: do
1.37      millert  24016: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   24017: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   24018:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   24019: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   24020: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.27      millert  24021:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.37      millert  24022: fi
                   24023: ac_res=`eval echo '${'$as_ac_Header'}'`
                   24024:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   24025: echo "${ECHO_T}$ac_res" >&6; }
1.27      millert  24026: else
1.37      millert  24027:   # Is the header compilable?
                   24028: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   24029: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   24030: cat >conftest.$ac_ext <<_ACEOF
1.27      millert  24031: /* confdefs.h.  */
1.16      millert  24032: _ACEOF
1.27      millert  24033: cat confdefs.h >>conftest.$ac_ext
                   24034: cat >>conftest.$ac_ext <<_ACEOF
                   24035: /* end confdefs.h.  */
1.37      millert  24036: $ac_includes_default
                   24037: #include <$ac_header>
1.27      millert  24038: _ACEOF
1.37      millert  24039: rm -f conftest.$ac_objext
                   24040: if { (ac_try="$ac_compile"
1.27      millert  24041: case "(($ac_try" in
                   24042:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   24043:   *) ac_try_echo=$ac_try;;
                   24044: esac
                   24045: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  24046:   (eval "$ac_compile") 2>conftest.er1
1.27      millert  24047:   ac_status=$?
                   24048:   grep -v '^ *+' conftest.er1 >conftest.err
                   24049:   rm -f conftest.er1
                   24050:   cat conftest.err >&5
                   24051:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   24052:   (exit $ac_status); } && {
                   24053:         test -z "$ac_c_werror_flag" ||
                   24054:         test ! -s conftest.err
1.37      millert  24055:        } && test -s conftest.$ac_objext; then
                   24056:   ac_header_compiler=yes
1.27      millert  24057: else
                   24058:   echo "$as_me: failed program was:" >&5
                   24059: sed 's/^/| /' conftest.$ac_ext >&5
1.16      millert  24060:
1.37      millert  24061:        ac_header_compiler=no
1.27      millert  24062: fi
1.17      millert  24063:
1.37      millert  24064: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   24065: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   24066: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.17      millert  24067:
1.37      millert  24068: # Is the header present?
                   24069: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   24070: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   24071: cat >conftest.$ac_ext <<_ACEOF
1.35      millert  24072: /* confdefs.h.  */
                   24073: _ACEOF
                   24074: cat confdefs.h >>conftest.$ac_ext
                   24075: cat >>conftest.$ac_ext <<_ACEOF
                   24076: /* end confdefs.h.  */
                   24077: #include <$ac_header>
                   24078: _ACEOF
1.37      millert  24079: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.35      millert  24080: case "(($ac_try" in
                   24081:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   24082:   *) ac_try_echo=$ac_try;;
                   24083: esac
                   24084: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  24085:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.35      millert  24086:   ac_status=$?
                   24087:   grep -v '^ *+' conftest.er1 >conftest.err
                   24088:   rm -f conftest.er1
                   24089:   cat conftest.err >&5
                   24090:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  24091:   (exit $ac_status); } >/dev/null && {
                   24092:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.35      millert  24093:         test ! -s conftest.err
1.37      millert  24094:        }; then
                   24095:   ac_header_preproc=yes
1.35      millert  24096: else
                   24097:   echo "$as_me: failed program was:" >&5
                   24098: sed 's/^/| /' conftest.$ac_ext >&5
                   24099:
1.37      millert  24100:   ac_header_preproc=no
1.35      millert  24101: fi
                   24102:
1.37      millert  24103: rm -f conftest.err conftest.$ac_ext
                   24104: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   24105: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   24106:
                   24107: # So?  What about this header?
                   24108: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   24109:   yes:no: )
                   24110:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   24111: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   24112:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   24113: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   24114:     ac_header_preproc=yes
                   24115:     ;;
                   24116:   no:yes:* )
                   24117:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   24118: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   24119:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   24120: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   24121:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   24122: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   24123:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   24124: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   24125:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   24126: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   24127:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   24128: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  24129:     ( cat <<\_ASBOX
                   24130: ## --------------------------------------- ##
                   24131: ## Report this to http://www.sudo.ws/bugs/ ##
                   24132: ## --------------------------------------- ##
                   24133: _ASBOX
                   24134:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.37      millert  24135:     ;;
                   24136: esac
                   24137: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   24138: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   24139: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   24140:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   24141: else
                   24142:   eval "$as_ac_Header=\$ac_header_preproc"
1.35      millert  24143: fi
                   24144: ac_res=`eval echo '${'$as_ac_Header'}'`
                   24145:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   24146: echo "${ECHO_T}$ac_res" >&6; }
1.37      millert  24147:
                   24148: fi
1.35      millert  24149: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   24150:   cat >>confdefs.h <<_ACEOF
                   24151: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   24152: _ACEOF
1.37      millert  24153:
1.35      millert  24154: fi
                   24155:
1.27      millert  24156: done
1.17      millert  24157:
1.37      millert  24158:            fi
                   24159:        else
                   24160:            CPPFLAGS="$O_CPPFLAGS"
                   24161:            { echo "$as_me:$LINENO: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&5
                   24162: 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;}
                   24163:        fi
                   24164:     fi
1.17      millert  24165:
1.36      millert  24166:     SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
1.27      millert  24167:     LIBS="$_LIBS"
                   24168:     LDFLAGS="$_LDFLAGS"
                   24169: fi
1.17      millert  24170:
1.40      millert  24171: if test X"$LIBVAS_RPATH" != X""; then
                   24172:     if test -n "$blibpath"; then
                   24173:        blibpath_add="${blibpath_add}:$LIBVAS_RPATH"
                   24174:     else
1.47      millert  24175:        case "$host" in
                   24176:            *-*-hpux*)  LDFLAGS="$LDFLAGS -Wl,+b,$LIBVAS_RPATH"
                   24177:                        ;;
                   24178:            *)          LDFLAGS="$LDFLAGS -Wl,-R$LIBVAS_RPATH"
                   24179:                        ;;
                   24180:        esac
1.40      millert  24181:     fi
                   24182: fi
                   24183:
1.27      millert  24184: if test -n "$blibpath"; then
                   24185:     if test -n "$blibpath_add"; then
                   24186:        SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
                   24187:     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
                   24188:        SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
1.17      millert  24189:     fi
1.27      millert  24190: fi
                   24191:
                   24192: { echo "$as_me:$LINENO: checking for log file location" >&5
                   24193: echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
                   24194: if test -n "$with_logpath"; then
                   24195:     { echo "$as_me:$LINENO: result: $with_logpath" >&5
                   24196: echo "${ECHO_T}$with_logpath" >&6; }
                   24197:     cat >>confdefs.h <<EOF
                   24198: #define _PATH_SUDO_LOGFILE "$with_logpath"
                   24199: EOF
1.17      millert  24200:
1.27      millert  24201: elif test -d "/var/log"; then
                   24202:     { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
                   24203: echo "${ECHO_T}/var/log/sudo.log" >&6; }
                   24204:     cat >>confdefs.h <<\EOF
                   24205: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
                   24206: EOF
1.17      millert  24207:
1.27      millert  24208: elif test -d "/var/adm"; then
                   24209:     { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
                   24210: echo "${ECHO_T}/var/adm/sudo.log" >&6; }
                   24211:     cat >>confdefs.h <<\EOF
                   24212: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
                   24213: EOF
1.17      millert  24214:
1.27      millert  24215: elif test -d "/usr/adm"; then
                   24216:     { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
                   24217: echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
                   24218:     cat >>confdefs.h <<\EOF
                   24219: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
                   24220: EOF
1.23      millert  24221:
                   24222: else
1.27      millert  24223:     { echo "$as_me:$LINENO: result: unknown" >&5
                   24224: echo "${ECHO_T}unknown" >&6; }
1.23      millert  24225: fi
                   24226:
1.27      millert  24227: { echo "$as_me:$LINENO: checking for timestamp file location" >&5
                   24228: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
                   24229: if test -n "$with_timedir"; then
                   24230:     { echo "$as_me:$LINENO: result: $with_timedir" >&5
                   24231: echo "${ECHO_T}$with_timedir" >&6; }
                   24232:     cat >>confdefs.h <<EOF
                   24233: #define _PATH_SUDO_TIMEDIR "$with_timedir"
                   24234: EOF
1.23      millert  24235:
1.27      millert  24236:     timedir="$with_timedir"
                   24237: elif test -d "/var/run"; then
                   24238:     { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
                   24239: echo "${ECHO_T}/var/run/sudo" >&6; }
                   24240:     cat >>confdefs.h <<\EOF
                   24241: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
                   24242: EOF
1.23      millert  24243:
1.27      millert  24244:     timedir="/var/run/sudo"
                   24245: elif test -d "/var/adm"; then
                   24246:     { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
                   24247: echo "${ECHO_T}/var/adm/sudo" >&6; }
                   24248:     cat >>confdefs.h <<\EOF
                   24249: #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
                   24250: EOF
1.23      millert  24251:
1.27      millert  24252:     timedir="/var/adm/sudo"
                   24253: else
                   24254:     { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
                   24255: echo "${ECHO_T}/usr/adm/sudo" >&6; }
                   24256:     cat >>confdefs.h <<\EOF
                   24257: #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
                   24258: EOF
1.23      millert  24259:
1.27      millert  24260:     timedir="/usr/adm/sudo"
                   24261: fi
1.23      millert  24262:
                   24263:
1.27      millert  24264: case "$with_passwd" in
                   24265: yes|maybe)
                   24266:     AUTH_OBJS="$AUTH_OBJS passwd.o"
                   24267:     ;;
                   24268: *)
                   24269:     cat >>confdefs.h <<\_ACEOF
                   24270: #define WITHOUT_PASSWD 1
1.23      millert  24271: _ACEOF
1.25      millert  24272:
1.27      millert  24273:     if test -z "$AUTH_OBJS"; then
                   24274:        { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
                   24275: echo "$as_me: error: no authentication methods defined." >&2;}
                   24276:    { (exit 1); exit 1; }; }
                   24277:     fi
                   24278:     ;;
                   24279: esac
                   24280: AUTH_OBJS=${AUTH_OBJS# }
                   24281: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   24282: { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
                   24283: echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
1.25      millert  24284:
1.27      millert  24285: if test -n "$LIBS"; then
                   24286:     L="$LIBS"
                   24287:     LIBS=
                   24288:     for l in ${L}; do
                   24289:        dupe=0
                   24290:        for sl in ${SUDO_LIBS} ${NET_LIBS}; do
                   24291:            test $l = $sl && dupe=1
                   24292:        done
                   24293:        test $dupe = 0 && LIBS="${LIBS} $l"
                   24294:     done
                   24295: fi
1.23      millert  24296:
1.27      millert  24297: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
1.23      millert  24298:
1.36      millert  24299: if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
1.27      millert  24300:     oexec_prefix="$exec_prefix"
                   24301:     if test "$exec_prefix" = '$(prefix)'; then
                   24302:        if test "$prefix" = "NONE"; then
                   24303:            exec_prefix="$ac_default_prefix"
                   24304:        else
                   24305:            exec_prefix="$prefix"
                   24306:        fi
                   24307:     fi
1.36      millert  24308:     if test X"$with_noexec" != X"no"; then
                   24309:        PROGS="${PROGS} sudo_noexec.la"
                   24310:        INSTALL_NOEXEC="install-noexec"
                   24311:
                   24312:        eval noexec_file="$with_noexec"
1.23      millert  24313:
1.27      millert  24314: cat >>confdefs.h <<_ACEOF
                   24315: #define _PATH_SUDO_NOEXEC "$noexec_file"
1.16      millert  24316: _ACEOF
1.23      millert  24317:
1.36      millert  24318:     fi
                   24319:     if test X"$with_selinux" != X"no"; then
                   24320:        eval sesh_file="$libexecdir/sesh"
                   24321:
                   24322: cat >>confdefs.h <<_ACEOF
                   24323: #define _PATH_SUDO_SESH "$sesh_file"
                   24324: _ACEOF
                   24325:
                   24326:     fi
1.27      millert  24327:     exec_prefix="$oexec_prefix"
                   24328: fi
                   24329:
1.37      millert  24330: ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudo_usage.h"
1.27      millert  24331:
                   24332: cat >confcache <<\_ACEOF
                   24333: # This file is a shell script that caches the results of configure
                   24334: # tests run on this system so they can be shared between configure
                   24335: # scripts and configure runs, see configure's option --config-cache.
                   24336: # It is not useful on other systems.  If it contains results you don't
                   24337: # want to keep, you may remove or edit it.
                   24338: #
                   24339: # config.status only pays attention to the cache file if you give it
                   24340: # the --recheck option to rerun configure.
1.25      millert  24341: #
1.27      millert  24342: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   24343: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   24344: # following values.
1.16      millert  24345:
1.23      millert  24346: _ACEOF
1.17      millert  24347:
1.27      millert  24348: # The following way of writing the cache mishandles newlines in values,
                   24349: # but we know of no workaround that is simple, portable, and efficient.
                   24350: # So, we kill variables containing newlines.
                   24351: # Ultrix sh set writes to stderr and can't be redirected directly,
                   24352: # and sets the high bit in the cache file unless we assign to the vars.
                   24353: (
                   24354:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   24355:     eval ac_val=\$$ac_var
                   24356:     case $ac_val in #(
                   24357:     *${as_nl}*)
                   24358:       case $ac_var in #(
                   24359:       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
                   24360: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
                   24361:       esac
                   24362:       case $ac_var in #(
                   24363:       _ | IFS | as_nl) ;; #(
                   24364:       *) $as_unset $ac_var ;;
                   24365:       esac ;;
                   24366:     esac
                   24367:   done
1.1       millert  24368:
1.27      millert  24369:   (set) 2>&1 |
                   24370:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   24371:     *${as_nl}ac_space=\ *)
                   24372:       # `set' does not quote correctly, so add quotes (double-quote
                   24373:       # substitution turns \\\\ into \\, and sed turns \\ into \).
                   24374:       sed -n \
                   24375:        "s/'/'\\\\''/g;
                   24376:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   24377:       ;; #(
                   24378:     *)
                   24379:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   24380:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   24381:       ;;
                   24382:     esac |
                   24383:     sort
                   24384: ) |
                   24385:   sed '
                   24386:      /^ac_cv_env_/b end
                   24387:      t clear
                   24388:      :clear
                   24389:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   24390:      t end
                   24391:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   24392:      :end' >>confcache
                   24393: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   24394:   if test -w "$cache_file"; then
                   24395:     test "x$cache_file" != "x/dev/null" &&
                   24396:       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
                   24397: echo "$as_me: updating cache $cache_file" >&6;}
                   24398:     cat confcache >$cache_file
1.25      millert  24399:   else
1.27      millert  24400:     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
                   24401: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.25      millert  24402:   fi
1.27      millert  24403: fi
                   24404: rm -f confcache
1.1       millert  24405:
1.27      millert  24406: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   24407: # Let make expand exec_prefix.
                   24408: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.1       millert  24409:
1.27      millert  24410: DEFS=-DHAVE_CONFIG_H
1.1       millert  24411:
1.27      millert  24412: ac_libobjs=
                   24413: ac_ltlibobjs=
                   24414: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   24415:   # 1. Remove the extension, and $U if already installed.
                   24416:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
                   24417:   ac_i=`echo "$ac_i" | sed "$ac_script"`
                   24418:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   24419:   #    will be set to the directory where LIBOBJS objects are built.
                   24420:   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   24421:   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
                   24422: done
                   24423: LIBOBJS=$ac_libobjs
1.1       millert  24424:
1.27      millert  24425: LTLIBOBJS=$ac_ltlibobjs
1.1       millert  24426:
                   24427:
                   24428:
1.27      millert  24429: : ${CONFIG_STATUS=./config.status}
                   24430: ac_clean_files_save=$ac_clean_files
                   24431: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
                   24432: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
                   24433: echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   24434: cat >$CONFIG_STATUS <<_ACEOF
                   24435: #! $SHELL
                   24436: # Generated by $as_me.
                   24437: # Run this file to recreate the current configuration.
                   24438: # Compiler output produced by configure, useful for debugging
                   24439: # configure, is in config.log if it exists.
1.1       millert  24440:
1.27      millert  24441: debug=false
                   24442: ac_cs_recheck=false
                   24443: ac_cs_silent=false
                   24444: SHELL=\${CONFIG_SHELL-$SHELL}
                   24445: _ACEOF
1.23      millert  24446:
1.27      millert  24447: cat >>$CONFIG_STATUS <<\_ACEOF
                   24448: ## --------------------- ##
                   24449: ## M4sh Initialization.  ##
                   24450: ## --------------------- ##
1.23      millert  24451:
1.27      millert  24452: # Be more Bourne compatible
                   24453: DUALCASE=1; export DUALCASE # for MKS sh
                   24454: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                   24455:   emulate sh
                   24456:   NULLCMD=:
                   24457:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                   24458:   # is contrary to our usage.  Disable this feature.
                   24459:   alias -g '${1+"$@"}'='"$@"'
                   24460:   setopt NO_GLOB_SUBST
                   24461: else
                   24462:   case `(set -o) 2>/dev/null` in
                   24463:   *posix*) set -o posix ;;
                   24464: esac
1.25      millert  24465:
1.27      millert  24466: fi
1.25      millert  24467:
1.9       millert  24468:
                   24469:
1.1       millert  24470:
1.27      millert  24471: # PATH needs CR
                   24472: # Avoid depending upon Character Ranges.
                   24473: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   24474: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   24475: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   24476: as_cr_digits='0123456789'
                   24477: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       millert  24478:
1.27      millert  24479: # The user is always right.
                   24480: if test "${PATH_SEPARATOR+set}" != set; then
                   24481:   echo "#! /bin/sh" >conf$$.sh
                   24482:   echo  "exit 0"   >>conf$$.sh
                   24483:   chmod +x conf$$.sh
                   24484:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
                   24485:     PATH_SEPARATOR=';'
                   24486:   else
                   24487:     PATH_SEPARATOR=:
                   24488:   fi
                   24489:   rm -f conf$$.sh
                   24490: fi
1.1       millert  24491:
1.27      millert  24492: # Support unset when possible.
                   24493: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
                   24494:   as_unset=unset
                   24495: else
                   24496:   as_unset=false
                   24497: fi
1.1       millert  24498:
1.16      millert  24499:
1.27      millert  24500: # IFS
                   24501: # We need space, tab and new line, in precisely that order.  Quoting is
                   24502: # there to prevent editors from complaining about space-tab.
                   24503: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   24504: # splitting by setting IFS to empty value.)
                   24505: as_nl='
                   24506: '
                   24507: IFS=" ""       $as_nl"
1.16      millert  24508:
1.27      millert  24509: # Find who we are.  Look in the path if we contain no directory separator.
                   24510: case $0 in
                   24511:   *[\\/]* ) as_myself=$0 ;;
                   24512:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   24513: for as_dir in $PATH
                   24514: do
                   24515:   IFS=$as_save_IFS
                   24516:   test -z "$as_dir" && as_dir=.
                   24517:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   24518: done
                   24519: IFS=$as_save_IFS
1.16      millert  24520:
1.27      millert  24521:      ;;
                   24522: esac
                   24523: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   24524: # in which case we are not to be found in the path.
                   24525: if test "x$as_myself" = x; then
                   24526:   as_myself=$0
                   24527: fi
                   24528: if test ! -f "$as_myself"; then
                   24529:   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   24530:   { (exit 1); exit 1; }
                   24531: fi
1.16      millert  24532:
1.27      millert  24533: # Work around bugs in pre-3.0 UWIN ksh.
                   24534: for as_var in ENV MAIL MAILPATH
                   24535: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                   24536: done
                   24537: PS1='$ '
                   24538: PS2='> '
                   24539: PS4='+ '
1.9       millert  24540:
1.27      millert  24541: # NLS nuisances.
                   24542: for as_var in \
                   24543:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
                   24544:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
                   24545:   LC_TELEPHONE LC_TIME
                   24546: do
                   24547:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
                   24548:     eval $as_var=C; export $as_var
                   24549:   else
                   24550:     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                   24551:   fi
                   24552: done
1.9       millert  24553:
1.27      millert  24554: # Required to use basename.
                   24555: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   24556:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   24557:   as_expr=expr
                   24558: else
                   24559:   as_expr=false
                   24560: fi
1.16      millert  24561:
1.27      millert  24562: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   24563:   as_basename=basename
                   24564: else
                   24565:   as_basename=false
                   24566: fi
1.9       millert  24567:
1.16      millert  24568:
1.27      millert  24569: # Name of the executable.
                   24570: as_me=`$as_basename -- "$0" ||
                   24571: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   24572:         X"$0" : 'X\(//\)$' \| \
                   24573:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                   24574: echo X/"$0" |
                   24575:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   24576:            s//\1/
                   24577:            q
                   24578:          }
                   24579:          /^X\/\(\/\/\)$/{
                   24580:            s//\1/
                   24581:            q
                   24582:          }
                   24583:          /^X\/\(\/\).*/{
                   24584:            s//\1/
                   24585:            q
                   24586:          }
                   24587:          s/.*/./; q'`
1.16      millert  24588:
1.27      millert  24589: # CDPATH.
                   24590: $as_unset CDPATH
1.16      millert  24591:
                   24592:
                   24593:
1.27      millert  24594:   as_lineno_1=$LINENO
                   24595:   as_lineno_2=$LINENO
                   24596:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                   24597:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.16      millert  24598:
1.27      millert  24599:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                   24600:   # uniformly replaced by the line number.  The first 'sed' inserts a
                   24601:   # line-number line after each line using $LINENO; the second 'sed'
                   24602:   # does the real work.  The second script uses 'N' to pair each
                   24603:   # line-number line with the line containing $LINENO, and appends
                   24604:   # trailing '-' during substitution so that $LINENO is not a special
                   24605:   # case at line end.
                   24606:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
                   24607:   # scripts with optimization help from Paolo Bonzini.  Blame Lee
                   24608:   # E. McMahon (1931-1989) for sed's syntax.  :-)
                   24609:   sed -n '
                   24610:     p
                   24611:     /[$]LINENO/=
                   24612:   ' <$as_myself |
                   24613:     sed '
                   24614:       s/[$]LINENO.*/&-/
                   24615:       t lineno
                   24616:       b
                   24617:       :lineno
                   24618:       N
                   24619:       :loop
                   24620:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                   24621:       t loop
                   24622:       s/-\n.*//
                   24623:     ' >$as_me.lineno &&
                   24624:   chmod +x "$as_me.lineno" ||
                   24625:     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
                   24626:    { (exit 1); exit 1; }; }
1.16      millert  24627:
1.27      millert  24628:   # Don't try to exec as it changes $[0], causing all sort of problems
                   24629:   # (the dirname of $[0] is not the place where we might find the
                   24630:   # original and so on.  Autoconf is especially sensitive to this).
                   24631:   . "./$as_me.lineno"
                   24632:   # Exit status is that of the last command.
                   24633:   exit
                   24634: }
1.16      millert  24635:
                   24636:
1.27      millert  24637: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   24638:   as_dirname=dirname
                   24639: else
                   24640:   as_dirname=false
                   24641: fi
1.16      millert  24642:
1.27      millert  24643: ECHO_C= ECHO_N= ECHO_T=
                   24644: case `echo -n x` in
                   24645: -n*)
                   24646:   case `echo 'x\c'` in
                   24647:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                   24648:   *)   ECHO_C='\c';;
                   24649:   esac;;
                   24650: *)
                   24651:   ECHO_N='-n';;
                   24652: esac
1.16      millert  24653:
1.27      millert  24654: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   24655:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   24656:   as_expr=expr
                   24657: else
                   24658:   as_expr=false
                   24659: fi
1.16      millert  24660:
1.27      millert  24661: rm -f conf$$ conf$$.exe conf$$.file
                   24662: if test -d conf$$.dir; then
                   24663:   rm -f conf$$.dir/conf$$.file
                   24664: else
                   24665:   rm -f conf$$.dir
                   24666:   mkdir conf$$.dir
                   24667: fi
                   24668: echo >conf$$.file
                   24669: if ln -s conf$$.file conf$$ 2>/dev/null; then
                   24670:   as_ln_s='ln -s'
                   24671:   # ... but there are two gotchas:
                   24672:   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   24673:   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   24674:   # In both cases, we have to default to `cp -p'.
                   24675:   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   24676:     as_ln_s='cp -p'
                   24677: elif ln conf$$.file conf$$ 2>/dev/null; then
                   24678:   as_ln_s=ln
                   24679: else
                   24680:   as_ln_s='cp -p'
                   24681: fi
                   24682: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   24683: rmdir conf$$.dir 2>/dev/null
1.16      millert  24684:
1.27      millert  24685: if mkdir -p . 2>/dev/null; then
                   24686:   as_mkdir_p=:
                   24687: else
                   24688:   test -d ./-p && rmdir ./-p
                   24689:   as_mkdir_p=false
                   24690: fi
1.16      millert  24691:
1.27      millert  24692: if test -x / >/dev/null 2>&1; then
                   24693:   as_test_x='test -x'
                   24694: else
                   24695:   if ls -dL / >/dev/null 2>&1; then
                   24696:     as_ls_L_option=L
                   24697:   else
                   24698:     as_ls_L_option=
                   24699:   fi
                   24700:   as_test_x='
                   24701:     eval sh -c '\''
                   24702:       if test -d "$1"; then
                   24703:         test -d "$1/.";
                   24704:       else
                   24705:        case $1 in
                   24706:         -*)set "./$1";;
                   24707:        esac;
                   24708:        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
                   24709:        ???[sx]*):;;*)false;;esac;fi
                   24710:     '\'' sh
                   24711:   '
                   24712: fi
                   24713: as_executable_p=$as_test_x
1.16      millert  24714:
1.27      millert  24715: # Sed expression to map a string onto a valid CPP name.
                   24716: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.16      millert  24717:
1.27      millert  24718: # Sed expression to map a string onto a valid variable name.
                   24719: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.16      millert  24720:
1.9       millert  24721:
1.27      millert  24722: exec 6>&1
1.9       millert  24723:
1.27      millert  24724: # Save the log message, to keep $[0] and so on meaningful, and to
                   24725: # report actual input values of CONFIG_FILES etc. instead of their
                   24726: # values after options handling.
                   24727: ac_log="
1.48    ! millert  24728: This file was extended by sudo $as_me 1.7.2p8, which was
1.27      millert  24729: generated by GNU Autoconf 2.61.  Invocation command line was
1.9       millert  24730:
1.27      millert  24731:   CONFIG_FILES    = $CONFIG_FILES
                   24732:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   24733:   CONFIG_LINKS    = $CONFIG_LINKS
                   24734:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   24735:   $ $0 $@
1.16      millert  24736:
1.27      millert  24737: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   24738: "
1.9       millert  24739:
1.27      millert  24740: _ACEOF
1.16      millert  24741:
1.27      millert  24742: cat >>$CONFIG_STATUS <<_ACEOF
                   24743: # Files that config.status was made for.
                   24744: config_files="$ac_config_files"
                   24745: config_headers="$ac_config_headers"
1.9       millert  24746:
1.27      millert  24747: _ACEOF
1.9       millert  24748:
1.27      millert  24749: cat >>$CONFIG_STATUS <<\_ACEOF
                   24750: ac_cs_usage="\
                   24751: \`$as_me' instantiates files from templates according to the
                   24752: current configuration.
1.9       millert  24753:
1.27      millert  24754: Usage: $0 [OPTIONS] [FILE]...
1.9       millert  24755:
1.27      millert  24756:   -h, --help       print this help, then exit
                   24757:   -V, --version    print version number and configuration settings, then exit
                   24758:   -q, --quiet      do not print progress messages
                   24759:   -d, --debug      don't remove temporary files
                   24760:       --recheck    update $as_me by reconfiguring in the same conditions
                   24761:   --file=FILE[:TEMPLATE]
                   24762:                   instantiate the configuration file FILE
                   24763:   --header=FILE[:TEMPLATE]
                   24764:                   instantiate the configuration header FILE
1.9       millert  24765:
1.27      millert  24766: Configuration files:
                   24767: $config_files
1.16      millert  24768:
1.27      millert  24769: Configuration headers:
                   24770: $config_headers
1.16      millert  24771:
1.27      millert  24772: Report bugs to <bug-autoconf@gnu.org>."
1.16      millert  24773:
1.27      millert  24774: _ACEOF
                   24775: cat >>$CONFIG_STATUS <<_ACEOF
                   24776: ac_cs_version="\\
1.48    ! millert  24777: sudo config.status 1.7.2p8
1.27      millert  24778: configured by $0, generated by GNU Autoconf 2.61,
                   24779:   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.9       millert  24780:
1.27      millert  24781: Copyright (C) 2006 Free Software Foundation, Inc.
                   24782: This config.status script is free software; the Free Software Foundation
                   24783: gives unlimited permission to copy, distribute and modify it."
1.9       millert  24784:
1.27      millert  24785: ac_pwd='$ac_pwd'
                   24786: srcdir='$srcdir'
                   24787: _ACEOF
1.9       millert  24788:
1.27      millert  24789: cat >>$CONFIG_STATUS <<\_ACEOF
                   24790: # If no file are specified by the user, then we need to provide default
                   24791: # value.  By we need to know if files were specified by the user.
                   24792: ac_need_defaults=:
                   24793: while test $# != 0
                   24794: do
                   24795:   case $1 in
                   24796:   --*=*)
                   24797:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   24798:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   24799:     ac_shift=:
                   24800:     ;;
                   24801:   *)
                   24802:     ac_option=$1
                   24803:     ac_optarg=$2
                   24804:     ac_shift=shift
                   24805:     ;;
                   24806:   esac
1.9       millert  24807:
1.27      millert  24808:   case $ac_option in
                   24809:   # Handling of the options.
                   24810:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   24811:     ac_cs_recheck=: ;;
                   24812:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
                   24813:     echo "$ac_cs_version"; exit ;;
                   24814:   --debug | --debu | --deb | --de | --d | -d )
                   24815:     debug=: ;;
                   24816:   --file | --fil | --fi | --f )
                   24817:     $ac_shift
                   24818:     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
                   24819:     ac_need_defaults=false;;
                   24820:   --header | --heade | --head | --hea )
                   24821:     $ac_shift
                   24822:     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
                   24823:     ac_need_defaults=false;;
                   24824:   --he | --h)
                   24825:     # Conflict between --help and --header
                   24826:     { echo "$as_me: error: ambiguous option: $1
                   24827: Try \`$0 --help' for more information." >&2
                   24828:    { (exit 1); exit 1; }; };;
                   24829:   --help | --hel | -h )
                   24830:     echo "$ac_cs_usage"; exit ;;
                   24831:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   24832:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   24833:     ac_cs_silent=: ;;
1.9       millert  24834:
1.27      millert  24835:   # This is an error.
                   24836:   -*) { echo "$as_me: error: unrecognized option: $1
                   24837: Try \`$0 --help' for more information." >&2
                   24838:    { (exit 1); exit 1; }; } ;;
1.9       millert  24839:
1.27      millert  24840:   *) ac_config_targets="$ac_config_targets $1"
                   24841:      ac_need_defaults=false ;;
1.9       millert  24842:
1.27      millert  24843:   esac
                   24844:   shift
                   24845: done
1.9       millert  24846:
1.27      millert  24847: ac_configure_extra_args=
1.9       millert  24848:
1.27      millert  24849: if $ac_cs_silent; then
                   24850:   exec 6>/dev/null
                   24851:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   24852: fi
1.9       millert  24853:
1.27      millert  24854: _ACEOF
                   24855: cat >>$CONFIG_STATUS <<_ACEOF
                   24856: if \$ac_cs_recheck; then
                   24857:   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
                   24858:   CONFIG_SHELL=$SHELL
                   24859:   export CONFIG_SHELL
                   24860:   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   24861: fi
1.9       millert  24862:
1.27      millert  24863: _ACEOF
                   24864: cat >>$CONFIG_STATUS <<\_ACEOF
                   24865: exec 5>>config.log
                   24866: {
                   24867:   echo
                   24868:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   24869: ## Running $as_me. ##
                   24870: _ASBOX
                   24871:   echo "$ac_log"
                   24872: } >&5
1.9       millert  24873:
1.27      millert  24874: _ACEOF
                   24875: cat >>$CONFIG_STATUS <<_ACEOF
                   24876: _ACEOF
1.9       millert  24877:
1.27      millert  24878: cat >>$CONFIG_STATUS <<\_ACEOF
1.9       millert  24879:
1.27      millert  24880: # Handling of arguments.
                   24881: for ac_config_target in $ac_config_targets
                   24882: do
                   24883:   case $ac_config_target in
                   24884:     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
                   24885:     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
                   24886:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   24887:     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
                   24888:     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
                   24889:     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
1.37      millert  24890:     "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
                   24891:     "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
1.9       millert  24892:
1.27      millert  24893:   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
                   24894: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
                   24895:    { (exit 1); exit 1; }; };;
                   24896:   esac
                   24897: done
1.9       millert  24898:
                   24899:
1.27      millert  24900: # If the user did not use the arguments to specify the items to instantiate,
                   24901: # then the envvar interface is used.  Set only those that are not.
                   24902: # We use the long form for the default assignment because of an extremely
                   24903: # bizarre bug on SunOS 4.1.3.
                   24904: if $ac_need_defaults; then
                   24905:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   24906:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   24907: fi
1.9       millert  24908:
1.27      millert  24909: # Have a temporary directory for convenience.  Make it in the build tree
                   24910: # simply because there is no reason against having it here, and in addition,
                   24911: # creating and moving files from /tmp can sometimes cause problems.
                   24912: # Hook for its removal unless debugging.
                   24913: # Note that there is a small window in which the directory will not be cleaned:
                   24914: # after its creation but before its name has been assigned to `$tmp'.
                   24915: $debug ||
                   24916: {
                   24917:   tmp=
                   24918:   trap 'exit_status=$?
                   24919:   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
                   24920: ' 0
                   24921:   trap '{ (exit 1); exit 1; }' 1 2 13 15
                   24922: }
                   24923: # Create a (secure) tmp directory for tmp files.
1.9       millert  24924:
1.27      millert  24925: {
                   24926:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   24927:   test -n "$tmp" && test -d "$tmp"
                   24928: }  ||
                   24929: {
                   24930:   tmp=./conf$$-$RANDOM
                   24931:   (umask 077 && mkdir "$tmp")
                   24932: } ||
                   24933: {
                   24934:    echo "$me: cannot create a temporary directory in ." >&2
                   24935:    { (exit 1); exit 1; }
                   24936: }
1.9       millert  24937:
1.27      millert  24938: #
                   24939: # Set up the sed scripts for CONFIG_FILES section.
                   24940: #
1.16      millert  24941:
1.27      millert  24942: # No need to generate the scripts if there are no CONFIG_FILES.
                   24943: # This happens for instance when ./config.status config.h
                   24944: if test -n "$CONFIG_FILES"; then
1.16      millert  24945:
1.27      millert  24946: _ACEOF
1.16      millert  24947:
                   24948:
1.1       millert  24949:
1.27      millert  24950: ac_delim='%!_!# '
                   24951: for ac_last_try in false false false false false :; do
                   24952:   cat >conf$$subs.sed <<_ACEOF
                   24953: SHELL!$SHELL$ac_delim
                   24954: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
                   24955: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
                   24956: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
                   24957: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
                   24958: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
                   24959: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
                   24960: exec_prefix!$exec_prefix$ac_delim
                   24961: prefix!$prefix$ac_delim
                   24962: program_transform_name!$program_transform_name$ac_delim
                   24963: bindir!$bindir$ac_delim
                   24964: sbindir!$sbindir$ac_delim
                   24965: libexecdir!$libexecdir$ac_delim
                   24966: datarootdir!$datarootdir$ac_delim
                   24967: datadir!$datadir$ac_delim
                   24968: sysconfdir!$sysconfdir$ac_delim
                   24969: sharedstatedir!$sharedstatedir$ac_delim
                   24970: localstatedir!$localstatedir$ac_delim
                   24971: includedir!$includedir$ac_delim
                   24972: oldincludedir!$oldincludedir$ac_delim
                   24973: docdir!$docdir$ac_delim
                   24974: infodir!$infodir$ac_delim
                   24975: htmldir!$htmldir$ac_delim
                   24976: dvidir!$dvidir$ac_delim
                   24977: pdfdir!$pdfdir$ac_delim
                   24978: psdir!$psdir$ac_delim
                   24979: libdir!$libdir$ac_delim
                   24980: localedir!$localedir$ac_delim
                   24981: mandir!$mandir$ac_delim
                   24982: DEFS!$DEFS$ac_delim
                   24983: ECHO_C!$ECHO_C$ac_delim
                   24984: ECHO_N!$ECHO_N$ac_delim
                   24985: ECHO_T!$ECHO_T$ac_delim
                   24986: LIBS!$LIBS$ac_delim
                   24987: build_alias!$build_alias$ac_delim
                   24988: host_alias!$host_alias$ac_delim
                   24989: target_alias!$target_alias$ac_delim
1.39      millert  24990: HAVE_BSM_AUDIT!$HAVE_BSM_AUDIT$ac_delim
1.27      millert  24991: LIBTOOL!$LIBTOOL$ac_delim
                   24992: CFLAGS!$CFLAGS$ac_delim
                   24993: PROGS!$PROGS$ac_delim
                   24994: CPPFLAGS!$CPPFLAGS$ac_delim
                   24995: LDFLAGS!$LDFLAGS$ac_delim
                   24996: SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
                   24997: SUDO_OBJS!$SUDO_OBJS$ac_delim
                   24998: SUDO_LIBS!$SUDO_LIBS$ac_delim
                   24999: NET_LIBS!$NET_LIBS$ac_delim
                   25000: AFS_LIBS!$AFS_LIBS$ac_delim
1.32      millert  25001: GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
1.27      millert  25002: OSDEFS!$OSDEFS$ac_delim
                   25003: AUTH_OBJS!$AUTH_OBJS$ac_delim
                   25004: MANTYPE!$MANTYPE$ac_delim
                   25005: MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
                   25006: SUDOERS_MODE!$SUDOERS_MODE$ac_delim
                   25007: SUDOERS_UID!$SUDOERS_UID$ac_delim
                   25008: SUDOERS_GID!$SUDOERS_GID$ac_delim
                   25009: DEV!$DEV$ac_delim
1.36      millert  25010: SELINUX!$SELINUX$ac_delim
                   25011: BAMAN!$BAMAN$ac_delim
                   25012: LCMAN!$LCMAN$ac_delim
                   25013: SEMAN!$SEMAN$ac_delim
1.37      millert  25014: devdir!$devdir$ac_delim
1.27      millert  25015: mansectsu!$mansectsu$ac_delim
                   25016: mansectform!$mansectform$ac_delim
                   25017: mansrcdir!$mansrcdir$ac_delim
1.36      millert  25018: NOEXECFILE!$NOEXECFILE$ac_delim
1.27      millert  25019: NOEXECDIR!$NOEXECDIR$ac_delim
                   25020: noexec_file!$noexec_file$ac_delim
                   25021: INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
                   25022: DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
1.37      millert  25023: BSDAUTH_USAGE!$BSDAUTH_USAGE$ac_delim
                   25024: SELINUX_USAGE!$SELINUX_USAGE$ac_delim
                   25025: LDAP!$LDAP$ac_delim
                   25026: LOGINCAP_USAGE!$LOGINCAP_USAGE$ac_delim
1.40      millert  25027: NONUNIX_GROUPS_IMPL!$NONUNIX_GROUPS_IMPL$ac_delim
1.27      millert  25028: timedir!$timedir$ac_delim
                   25029: timeout!$timeout$ac_delim
                   25030: password_timeout!$password_timeout$ac_delim
                   25031: sudo_umask!$sudo_umask$ac_delim
                   25032: passprompt!$passprompt$ac_delim
                   25033: long_otp_prompt!$long_otp_prompt$ac_delim
                   25034: lecture!$lecture$ac_delim
                   25035: logfac!$logfac$ac_delim
                   25036: goodpri!$goodpri$ac_delim
                   25037: badpri!$badpri$ac_delim
                   25038: loglen!$loglen$ac_delim
                   25039: ignore_dot!$ignore_dot$ac_delim
                   25040: mail_no_user!$mail_no_user$ac_delim
                   25041: mail_no_host!$mail_no_host$ac_delim
                   25042: mail_no_perms!$mail_no_perms$ac_delim
                   25043: mailto!$mailto$ac_delim
                   25044: mailsub!$mailsub$ac_delim
                   25045: badpass_message!$badpass_message$ac_delim
                   25046: fqdn!$fqdn$ac_delim
                   25047: runas_default!$runas_default$ac_delim
                   25048: env_editor!$env_editor$ac_delim
                   25049: passwd_tries!$passwd_tries$ac_delim
                   25050: _ACEOF
1.9       millert  25051:
1.27      millert  25052:   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
                   25053:     break
                   25054:   elif $ac_last_try; then
                   25055:     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
                   25056: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
                   25057:    { (exit 1); exit 1; }; }
                   25058:   else
                   25059:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   25060:   fi
                   25061: done
1.9       millert  25062:
1.27      millert  25063: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
                   25064: if test -n "$ac_eof"; then
                   25065:   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
                   25066:   ac_eof=`expr $ac_eof + 1`
                   25067: fi
1.16      millert  25068:
1.27      millert  25069: cat >>$CONFIG_STATUS <<_ACEOF
                   25070: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
                   25071: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   25072: _ACEOF
                   25073: sed '
                   25074: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
                   25075: s/^/s,@/; s/!/@,|#_!!_#|/
                   25076: :n
                   25077: t n
                   25078: s/'"$ac_delim"'$/,g/; t
                   25079: s/$/\\/; p
                   25080: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
                   25081: ' >>$CONFIG_STATUS <conf$$subs.sed
                   25082: rm -f conf$$subs.sed
                   25083: cat >>$CONFIG_STATUS <<_ACEOF
                   25084: CEOF$ac_eof
                   25085: _ACEOF
1.1       millert  25086:
                   25087:
1.27      millert  25088: ac_delim='%!_!# '
                   25089: for ac_last_try in false false false false false :; do
                   25090:   cat >conf$$subs.sed <<_ACEOF
1.40      millert  25091: tty_tickets!$tty_tickets$ac_delim
1.39      millert  25092: insults!$insults$ac_delim
1.37      millert  25093: root_sudo!$root_sudo$ac_delim
                   25094: path_info!$path_info$ac_delim
                   25095: ldap_conf!$ldap_conf$ac_delim
                   25096: ldap_secret!$ldap_secret$ac_delim
                   25097: nsswitch_conf!$nsswitch_conf$ac_delim
1.39      millert  25098: netsvc_conf!$netsvc_conf$ac_delim
1.41      millert  25099: secure_path!$secure_path$ac_delim
1.37      millert  25100: CC!$CC$ac_delim
                   25101: ac_ct_CC!$ac_ct_CC$ac_delim
1.36      millert  25102: EXEEXT!$EXEEXT$ac_delim
                   25103: OBJEXT!$OBJEXT$ac_delim
1.47      millert  25104: EGREPPROG!$EGREPPROG$ac_delim
1.36      millert  25105: CPP!$CPP$ac_delim
                   25106: build!$build$ac_delim
                   25107: build_cpu!$build_cpu$ac_delim
1.32      millert  25108: build_vendor!$build_vendor$ac_delim
1.27      millert  25109: build_os!$build_os$ac_delim
                   25110: host!$host$ac_delim
                   25111: host_cpu!$host_cpu$ac_delim
                   25112: host_vendor!$host_vendor$ac_delim
                   25113: host_os!$host_os$ac_delim
                   25114: SED!$SED$ac_delim
                   25115: GREP!$GREP$ac_delim
                   25116: EGREP!$EGREP$ac_delim
                   25117: LN_S!$LN_S$ac_delim
                   25118: ECHO!$ECHO$ac_delim
                   25119: AR!$AR$ac_delim
                   25120: RANLIB!$RANLIB$ac_delim
                   25121: STRIP!$STRIP$ac_delim
1.36      millert  25122: DSYMUTIL!$DSYMUTIL$ac_delim
                   25123: NMEDIT!$NMEDIT$ac_delim
1.27      millert  25124: UNAMEPROG!$UNAMEPROG$ac_delim
                   25125: TRPROG!$TRPROG$ac_delim
                   25126: NROFFPROG!$NROFFPROG$ac_delim
                   25127: YACC!$YACC$ac_delim
                   25128: YFLAGS!$YFLAGS$ac_delim
1.40      millert  25129: FLEX!$FLEX$ac_delim
1.27      millert  25130: LIBOBJS!$LIBOBJS$ac_delim
                   25131: KRB5CONFIG!$KRB5CONFIG$ac_delim
                   25132: LTLIBOBJS!$LTLIBOBJS$ac_delim
                   25133: _ACEOF
1.9       millert  25134:
1.41      millert  25135:   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then
1.27      millert  25136:     break
                   25137:   elif $ac_last_try; then
                   25138:     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
                   25139: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
                   25140:    { (exit 1); exit 1; }; }
                   25141:   else
                   25142:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   25143:   fi
                   25144: done
1.1       millert  25145:
1.27      millert  25146: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
                   25147: if test -n "$ac_eof"; then
                   25148:   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
                   25149:   ac_eof=`expr $ac_eof + 1`
                   25150: fi
1.9       millert  25151:
1.27      millert  25152: cat >>$CONFIG_STATUS <<_ACEOF
                   25153: cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
                   25154: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
                   25155: _ACEOF
                   25156: sed '
                   25157: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
                   25158: s/^/s,@/; s/!/@,|#_!!_#|/
                   25159: :n
                   25160: t n
                   25161: s/'"$ac_delim"'$/,g/; t
                   25162: s/$/\\/; p
                   25163: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
                   25164: ' >>$CONFIG_STATUS <conf$$subs.sed
                   25165: rm -f conf$$subs.sed
                   25166: cat >>$CONFIG_STATUS <<_ACEOF
                   25167: :end
                   25168: s/|#_!!_#|//g
                   25169: CEOF$ac_eof
                   25170: _ACEOF
1.1       millert  25171:
                   25172:
1.27      millert  25173: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   25174: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   25175: # trailing colons and then remove the whole line if VPATH becomes empty
                   25176: # (actually we leave an empty line to preserve line numbers).
                   25177: if test "x$srcdir" = x.; then
                   25178:   ac_vpsub='/^[         ]*VPATH[        ]*=/{
                   25179: s/:*\$(srcdir):*/:/
                   25180: s/:*\${srcdir}:*/:/
                   25181: s/:*@srcdir@:*/:/
                   25182: s/^\([^=]*=[    ]*\):*/\1/
                   25183: s/:*$//
                   25184: s/^[^=]*=[      ]*$//
                   25185: }'
                   25186: fi
1.1       millert  25187:
1.27      millert  25188: cat >>$CONFIG_STATUS <<\_ACEOF
                   25189: fi # test -n "$CONFIG_FILES"
1.16      millert  25190:
                   25191:
1.27      millert  25192: for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
                   25193: do
                   25194:   case $ac_tag in
                   25195:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   25196:   esac
                   25197:   case $ac_mode$ac_tag in
                   25198:   :[FHL]*:*);;
                   25199:   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
                   25200: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
                   25201:    { (exit 1); exit 1; }; };;
                   25202:   :[FH]-) ac_tag=-:-;;
                   25203:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   25204:   esac
                   25205:   ac_save_IFS=$IFS
                   25206:   IFS=:
                   25207:   set x $ac_tag
                   25208:   IFS=$ac_save_IFS
                   25209:   shift
                   25210:   ac_file=$1
                   25211:   shift
1.16      millert  25212:
1.27      millert  25213:   case $ac_mode in
                   25214:   :L) ac_source=$1;;
                   25215:   :[FH])
                   25216:     ac_file_inputs=
                   25217:     for ac_f
                   25218:     do
                   25219:       case $ac_f in
                   25220:       -) ac_f="$tmp/stdin";;
                   25221:       *) # Look for the file first in the build tree, then in the source tree
                   25222:         # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   25223:         # because $ac_f cannot contain `:'.
                   25224:         test -f "$ac_f" ||
                   25225:           case $ac_f in
                   25226:           [\\/$]*) false;;
                   25227:           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   25228:           esac ||
                   25229:           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
                   25230: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
                   25231:    { (exit 1); exit 1; }; };;
                   25232:       esac
                   25233:       ac_file_inputs="$ac_file_inputs $ac_f"
                   25234:     done
1.1       millert  25235:
1.27      millert  25236:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   25237:     # use $as_me), people would be surprised to read:
                   25238:     #    /* config.h.  Generated by config.status.  */
                   25239:     configure_input="Generated from "`IFS=:
                   25240:          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
                   25241:     if test x"$ac_file" != x-; then
                   25242:       configure_input="$ac_file.  $configure_input"
                   25243:       { echo "$as_me:$LINENO: creating $ac_file" >&5
                   25244: echo "$as_me: creating $ac_file" >&6;}
                   25245:     fi
1.1       millert  25246:
1.27      millert  25247:     case $ac_tag in
                   25248:     *:-:* | *:-) cat >"$tmp/stdin";;
                   25249:     esac
                   25250:     ;;
                   25251:   esac
1.1       millert  25252:
1.27      millert  25253:   ac_dir=`$as_dirname -- "$ac_file" ||
                   25254: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   25255:         X"$ac_file" : 'X\(//\)[^/]' \| \
                   25256:         X"$ac_file" : 'X\(//\)$' \| \
                   25257:         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
                   25258: echo X"$ac_file" |
                   25259:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   25260:            s//\1/
                   25261:            q
                   25262:          }
                   25263:          /^X\(\/\/\)[^/].*/{
                   25264:            s//\1/
                   25265:            q
                   25266:          }
                   25267:          /^X\(\/\/\)$/{
                   25268:            s//\1/
                   25269:            q
                   25270:          }
                   25271:          /^X\(\/\).*/{
                   25272:            s//\1/
                   25273:            q
                   25274:          }
                   25275:          s/.*/./; q'`
                   25276:   { as_dir="$ac_dir"
                   25277:   case $as_dir in #(
                   25278:   -*) as_dir=./$as_dir;;
                   25279:   esac
                   25280:   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
                   25281:     as_dirs=
                   25282:     while :; do
                   25283:       case $as_dir in #(
                   25284:       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
                   25285:       *) as_qdir=$as_dir;;
                   25286:       esac
                   25287:       as_dirs="'$as_qdir' $as_dirs"
                   25288:       as_dir=`$as_dirname -- "$as_dir" ||
                   25289: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   25290:         X"$as_dir" : 'X\(//\)[^/]' \| \
                   25291:         X"$as_dir" : 'X\(//\)$' \| \
                   25292:         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   25293: echo X"$as_dir" |
                   25294:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   25295:            s//\1/
                   25296:            q
                   25297:          }
                   25298:          /^X\(\/\/\)[^/].*/{
                   25299:            s//\1/
                   25300:            q
                   25301:          }
                   25302:          /^X\(\/\/\)$/{
                   25303:            s//\1/
                   25304:            q
                   25305:          }
                   25306:          /^X\(\/\).*/{
                   25307:            s//\1/
                   25308:            q
                   25309:          }
                   25310:          s/.*/./; q'`
                   25311:       test -d "$as_dir" && break
                   25312:     done
                   25313:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                   25314:   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
                   25315: echo "$as_me: error: cannot create directory $as_dir" >&2;}
                   25316:    { (exit 1); exit 1; }; }; }
                   25317:   ac_builddir=.
1.9       millert  25318:
1.27      millert  25319: case "$ac_dir" in
                   25320: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   25321: *)
                   25322:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
                   25323:   # A ".." for each directory in $ac_dir_suffix.
                   25324:   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
                   25325:   case $ac_top_builddir_sub in
                   25326:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   25327:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   25328:   esac ;;
                   25329: esac
                   25330: ac_abs_top_builddir=$ac_pwd
                   25331: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   25332: # for backward compatibility:
                   25333: ac_top_builddir=$ac_top_build_prefix
1.1       millert  25334:
1.27      millert  25335: case $srcdir in
                   25336:   .)  # We are building in place.
                   25337:     ac_srcdir=.
                   25338:     ac_top_srcdir=$ac_top_builddir_sub
                   25339:     ac_abs_top_srcdir=$ac_pwd ;;
                   25340:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   25341:     ac_srcdir=$srcdir$ac_dir_suffix;
                   25342:     ac_top_srcdir=$srcdir
                   25343:     ac_abs_top_srcdir=$srcdir ;;
                   25344:   *) # Relative name.
                   25345:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   25346:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   25347:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   25348: esac
                   25349: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1       millert  25350:
                   25351:
1.27      millert  25352:   case $ac_mode in
                   25353:   :F)
                   25354:   #
                   25355:   # CONFIG_FILE
                   25356:   #
1.1       millert  25357:
1.27      millert  25358: _ACEOF
1.1       millert  25359:
1.27      millert  25360: cat >>$CONFIG_STATUS <<\_ACEOF
                   25361: # If the template does not know about datarootdir, expand it.
                   25362: # FIXME: This hack should be removed a few years after 2.60.
                   25363: ac_datarootdir_hack=; ac_datarootdir_seen=
                   25364:
                   25365: case `sed -n '/datarootdir/ {
                   25366:   p
                   25367:   q
                   25368: }
                   25369: /@datadir@/p
                   25370: /@docdir@/p
                   25371: /@infodir@/p
                   25372: /@localedir@/p
                   25373: /@mandir@/p
                   25374: ' $ac_file_inputs` in
                   25375: *datarootdir*) ac_datarootdir_seen=yes;;
                   25376: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
                   25377:   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   25378: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
                   25379: _ACEOF
                   25380: cat >>$CONFIG_STATUS <<_ACEOF
                   25381:   ac_datarootdir_hack='
                   25382:   s&@datadir@&$datadir&g
                   25383:   s&@docdir@&$docdir&g
                   25384:   s&@infodir@&$infodir&g
                   25385:   s&@localedir@&$localedir&g
                   25386:   s&@mandir@&$mandir&g
                   25387:     s&\\\${datarootdir}&$datarootdir&g' ;;
                   25388: esac
                   25389: _ACEOF
1.1       millert  25390:
1.27      millert  25391: # Neutralize VPATH when `$srcdir' = `.'.
                   25392: # Shell code in configure.ac might set extrasub.
                   25393: # FIXME: do we really want to maintain this feature?
                   25394: cat >>$CONFIG_STATUS <<_ACEOF
                   25395:   sed "$ac_vpsub
                   25396: $extrasub
                   25397: _ACEOF
                   25398: cat >>$CONFIG_STATUS <<\_ACEOF
                   25399: :t
                   25400: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   25401: s&@configure_input@&$configure_input&;t t
                   25402: s&@top_builddir@&$ac_top_builddir_sub&;t t
                   25403: s&@srcdir@&$ac_srcdir&;t t
                   25404: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   25405: s&@top_srcdir@&$ac_top_srcdir&;t t
                   25406: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   25407: s&@builddir@&$ac_builddir&;t t
                   25408: s&@abs_builddir@&$ac_abs_builddir&;t t
                   25409: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   25410: $ac_datarootdir_hack
                   25411: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
                   25412:
                   25413: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   25414:   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
                   25415:   { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
                   25416:   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   25417: which seems to be undefined.  Please make sure it is defined." >&5
                   25418: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   25419: which seems to be undefined.  Please make sure it is defined." >&2;}
1.1       millert  25420:
1.27      millert  25421:   rm -f "$tmp/stdin"
                   25422:   case $ac_file in
                   25423:   -) cat "$tmp/out"; rm -f "$tmp/out";;
                   25424:   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
1.25      millert  25425:   esac
1.27      millert  25426:  ;;
                   25427:   :H)
                   25428:   #
                   25429:   # CONFIG_HEADER
                   25430:   #
                   25431: _ACEOF
                   25432:
                   25433: # Transform confdefs.h into a sed script `conftest.defines', that
                   25434: # substitutes the proper values into config.h.in to produce config.h.
                   25435: rm -f conftest.defines conftest.tail
                   25436: # First, append a space to every undef/define line, to ease matching.
                   25437: echo 's/$/ /' >conftest.defines
                   25438: # Then, protect against being on the right side of a sed subst, or in
                   25439: # an unquoted here document, in config.status.  If some macros were
                   25440: # called several times there might be several #defines for the same
                   25441: # symbol, which is useless.  But do not sort them, since the last
                   25442: # AC_DEFINE must be honored.
                   25443: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   25444: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
                   25445: # NAME is the cpp macro being defined, VALUE is the value it is being given.
                   25446: # PARAMS is the parameter list in the macro definition--in most cases, it's
                   25447: # just an empty string.
                   25448: ac_dA='s,^\\([  #]*\\)[^        ]*\\([  ]*'
                   25449: ac_dB='\\)[     (].*,\\1define\\2'
                   25450: ac_dC=' '
                   25451: ac_dD=' ,'
1.1       millert  25452:
1.27      millert  25453: uniq confdefs.h |
                   25454:   sed -n '
                   25455:        t rset
                   25456:        :rset
                   25457:        s/^[     ]*#[    ]*define[       ][      ]*//
                   25458:        t ok
                   25459:        d
                   25460:        :ok
                   25461:        s/[\\&,]/\\&/g
                   25462:        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
                   25463:        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
                   25464:   ' >>conftest.defines
1.1       millert  25465:
1.27      millert  25466: # Remove the space that was appended to ease matching.
                   25467: # Then replace #undef with comments.  This is necessary, for
                   25468: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   25469: # on some systems where configure will not decide to define it.
                   25470: # (The regexp can be short, since the line contains either #define or #undef.)
                   25471: echo 's/ $//
                   25472: s,^[    #]*u.*,/* & */,' >>conftest.defines
                   25473:
                   25474: # Break up conftest.defines:
                   25475: ac_max_sed_lines=50
                   25476:
                   25477: # First sed command is:         sed -f defines.sed $ac_file_inputs >"$tmp/out1"
                   25478: # Second one is:        sed -f defines.sed "$tmp/out1" >"$tmp/out2"
                   25479: # Third one will be:    sed -f defines.sed "$tmp/out2" >"$tmp/out1"
                   25480: # et cetera.
                   25481: ac_in='$ac_file_inputs'
                   25482: ac_out='"$tmp/out1"'
                   25483: ac_nxt='"$tmp/out2"'
1.1       millert  25484:
1.27      millert  25485: while :
                   25486: do
                   25487:   # Write a here document:
                   25488:     cat >>$CONFIG_STATUS <<_ACEOF
                   25489:     # First, check the format of the line:
                   25490:     cat >"\$tmp/defines.sed" <<\\CEOF
                   25491: /^[     ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
                   25492: /^[     ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
                   25493: b
                   25494: :def
                   25495: _ACEOF
                   25496:   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
                   25497:   echo 'CEOF
                   25498:     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
                   25499:   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
                   25500:   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
                   25501:   grep . conftest.tail >/dev/null || break
                   25502:   rm -f conftest.defines
                   25503:   mv conftest.tail conftest.defines
                   25504: done
                   25505: rm -f conftest.defines conftest.tail
1.9       millert  25506:
1.27      millert  25507: echo "ac_result=$ac_in" >>$CONFIG_STATUS
                   25508: cat >>$CONFIG_STATUS <<\_ACEOF
                   25509:   if test x"$ac_file" != x-; then
                   25510:     echo "/* $configure_input  */" >"$tmp/config.h"
                   25511:     cat "$ac_result" >>"$tmp/config.h"
                   25512:     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
                   25513:       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
                   25514: echo "$as_me: $ac_file is unchanged" >&6;}
                   25515:     else
                   25516:       rm -f $ac_file
                   25517:       mv "$tmp/config.h" $ac_file
                   25518:     fi
                   25519:   else
                   25520:     echo "/* $configure_input  */"
                   25521:     cat "$ac_result"
                   25522:   fi
                   25523:   rm -f "$tmp/out12"
                   25524: # Compute $ac_file's index in $config_headers.
1.36      millert  25525: _am_arg=$ac_file
1.27      millert  25526: _am_stamp_count=1
                   25527: for _am_header in $config_headers :; do
                   25528:   case $_am_header in
1.36      millert  25529:     $_am_arg | $_am_arg:* )
1.27      millert  25530:       break ;;
                   25531:     * )
                   25532:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   25533:   esac
                   25534: done
1.36      millert  25535: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   25536: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   25537:         X"$_am_arg" : 'X\(//\)[^/]' \| \
                   25538:         X"$_am_arg" : 'X\(//\)$' \| \
                   25539:         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
                   25540: echo X"$_am_arg" |
1.27      millert  25541:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   25542:            s//\1/
                   25543:            q
                   25544:          }
                   25545:          /^X\(\/\/\)[^/].*/{
                   25546:            s//\1/
                   25547:            q
                   25548:          }
                   25549:          /^X\(\/\/\)$/{
                   25550:            s//\1/
                   25551:            q
                   25552:          }
                   25553:          /^X\(\/\).*/{
                   25554:            s//\1/
                   25555:            q
                   25556:          }
                   25557:          s/.*/./; q'`/stamp-h$_am_stamp_count
                   25558:  ;;
1.9       millert  25559:
                   25560:
1.25      millert  25561:   esac
1.1       millert  25562:
1.27      millert  25563: done # for ac_tag
                   25564:
1.1       millert  25565:
1.9       millert  25566: { (exit 0); exit 0; }
1.16      millert  25567: _ACEOF
1.1       millert  25568: chmod +x $CONFIG_STATUS
1.9       millert  25569: ac_clean_files=$ac_clean_files_save
1.1       millert  25570:
1.16      millert  25571:
1.9       millert  25572: # configure is writing to config.log, and then calls config.status.
                   25573: # config.status does its own redirection, appending to config.log.
                   25574: # Unfortunately, on DOS this fails, as config.log is still kept open
                   25575: # by configure, so config.status won't be able to write to it; its
                   25576: # output is simply discarded.  So we exec the FD to /dev/null,
                   25577: # effectively closing config.log, so it can be properly (re)opened and
                   25578: # appended to by config.status.  When coming back to configure, we
                   25579: # need to make the FD available again.
                   25580: if test "$no_create" != yes; then
                   25581:   ac_cs_success=:
1.16      millert  25582:   ac_config_status_args=
                   25583:   test "$silent" = yes &&
                   25584:     ac_config_status_args="$ac_config_status_args --quiet"
1.9       millert  25585:   exec 5>/dev/null
1.16      millert  25586:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.9       millert  25587:   exec 5>>config.log
                   25588:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   25589:   # would make configure fail if this is the last instruction.
                   25590:   $ac_cs_success || { (exit 1); exit 1; }
                   25591: fi
1.1       millert  25592:
1.16      millert  25593:
1.1       millert  25594: if test "$with_pam" = "yes"; then
                   25595:     case $host in
                   25596:        *-*-linux*)
1.17      millert  25597:            { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
                   25598: echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
1.1       millert  25599:            ;;
                   25600:     esac
                   25601: fi
1.47      millert  25602:
                   25603:
1.40      millert  25604:
                   25605:
1.39      millert  25606:
                   25607:
1.37      millert  25608:
                   25609:
                   25610:
                   25611:
                   25612:
                   25613:
                   25614:
                   25615:
                   25616:
                   25617:
1.36      millert  25618:
                   25619:
1.34      millert  25620:
                   25621:
1.32      millert  25622:
                   25623:
1.31      millert  25624:
                   25625:
1.23      millert  25626:
                   25627:
                   25628:
                   25629:
                   25630:
                   25631:
                   25632:
                   25633:
                   25634:
                   25635:
                   25636:
                   25637:
                   25638:
                   25639:
                   25640:
                   25641:
                   25642:
                   25643:
                   25644:
                   25645:
                   25646:
                   25647:
                   25648:
                   25649:
                   25650:
                   25651:
                   25652:
                   25653:
                   25654:
                   25655:
                   25656:
                   25657:
                   25658:
                   25659:
                   25660:
                   25661:
                   25662:
                   25663:
                   25664:
                   25665:
                   25666:
                   25667:
                   25668:
                   25669:
                   25670:
                   25671:
                   25672:
                   25673:
                   25674:
                   25675:
                   25676:
                   25677:
                   25678:
                   25679:
                   25680:
                   25681:
                   25682:
                   25683:
                   25684:
                   25685:
                   25686:
                   25687:
                   25688:
                   25689:
                   25690:
                   25691:
                   25692:
                   25693:
                   25694:
                   25695:
                   25696:
                   25697:
                   25698:
                   25699:
                   25700:
                   25701:
                   25702:
                   25703:
                   25704:
                   25705:
                   25706:
                   25707:
                   25708:
                   25709:
                   25710:
                   25711: